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

36 lines
834 B
PHP

<?php
namespace App\Entities\Customer\Wallet;
use App\Entities\Customer\CustomerEntity;
abstract class WalletEntity extends CustomerEntity
{
public function __construct(array|null $data = null)
{
parent::__construct($data);
}
final public function getUserUid(): int|null
{
return $this->attributes['user_uid'] ?? null;
}
final public function getClientInfoUid(): int|null
{
return $this->attributes['clientinfo_uid'] ?? null;
}
//기본기능
final public function getAmount(): int
{
return $this->attributes['amount'] ?? 0;
}
final public function getBalance(): int
{
return $this->attributes['balance'] ?? 0;
}
final public function getContent(): string
{
return $this->attributes['content'] ?? '';
}
}