dbmsv4/app/Entities/Customer/Wallet/WalletEntity.php
2025-12-10 13:51:58 +09:00

19 lines
358 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 getBalance(): int
{
return $this->attributes['balance'] ?? 0;
}
}