dbmsv4/app/Entities/Customer/Wallet/AccountEntity.php
2025-12-19 10:03:03 +09:00

39 lines
868 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 $attributes = [
'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->attributes['bank'] ?? '';
}
public function getAlias(): string
{
return $this->attributes['alias'] ?? '';
}
public function getIssueAt(): string
{
return $this->attributes['issue_at'] ?? '';
}
}