45 lines
989 B
PHP
45 lines
989 B
PHP
<?php
|
|
|
|
namespace App\Entities\Customer\Wallet;
|
|
|
|
use App\Models\Customer\Wallet\AccountModel;
|
|
|
|
class AccountEntity extends WalletEntity
|
|
{
|
|
const PK = AccountModel::PK;
|
|
const TITLE = AccountModel::TITLE;
|
|
protected $casts = [
|
|
'clientinfo_uid' => 'integer',
|
|
'user_uid' => '?integer',
|
|
];
|
|
protected $attributes = [
|
|
'clientinfo_uid' => null,
|
|
'user_uid' => null,
|
|
'title' => '',
|
|
'bank' => '',
|
|
'alias' => '',
|
|
'issue_at' => '',
|
|
'amount' => 0,
|
|
'balance' => 0,
|
|
'status' => '',
|
|
'content' => ''
|
|
];
|
|
public function __construct(array|null $data = null)
|
|
{
|
|
parent::__construct($data);
|
|
}
|
|
//기본기능
|
|
public function getBank(): string
|
|
{
|
|
return $this->bank ?? '';
|
|
}
|
|
public function getAlias(): string
|
|
{
|
|
return $this->alias ?? '';
|
|
}
|
|
public function getIssueAt(): string
|
|
{
|
|
return $this->issue_at ?? '';
|
|
}
|
|
}
|