19 lines
358 B
PHP
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;
|
|
}
|
|
}
|