dbmsv2/app/Entities/Customer/ClientEntity.php
2025-09-03 18:03:04 +09:00

43 lines
1002 B
PHP

<?php
namespace App\Entities\Customer;
use App\Models\Customer\ClientModel;
class ClientEntity extends CustomerEntity
{
const PK = ClientModel::PK;
const TITLE = ClientModel::TITLE;
const STATUS_NORMAL = "normal";
const STATUS_PAUSE = "pause";
const STATUS_TERMINATED = "terminated";
const DEFAULT_STATUS = self::STATUS_NORMAL;
//타 객체정의 부분
public function getCode(): string
{
return $this->attributes['code'] ?? "null";
}
public function getName(): string
{
return $this->attributes['name'];
}
public function getRole(): string
{
return $this->attributes['role'];
}
public function getAccountBalance(): int
{
return $this->attributes['account_balance'];
}
public function getCouponBalance(): int
{
return $this->attributes['coupon_balance'];
}
public function getPointBalance(): int
{
return $this->attributes['point_balance'];
}
}