28 lines
590 B
PHP
28 lines
590 B
PHP
<?php
|
|
|
|
namespace App\Entities\Customer;
|
|
|
|
use App\Models\Customer\ClientModel;
|
|
|
|
class ClientEntity extends CustomerEntity
|
|
{
|
|
const PK = ClientModel::PK;
|
|
const TITLE = ClientModel::TITLE;
|
|
public function getRole(): string
|
|
{
|
|
return $this->attributes['role'];
|
|
}
|
|
public function getAccount(): int
|
|
{
|
|
return $this->attributes['account_balance'];
|
|
}
|
|
public function getCoupon(): int
|
|
{
|
|
return $this->attributes['coupon_balance'];
|
|
}
|
|
public function getPoint(): int
|
|
{
|
|
return $this->attributes['point_balance'];
|
|
}
|
|
}
|