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