dbms/app/Entities/Customer/ServicePaymentEntity.php
2025-06-11 17:14:53 +09:00

28 lines
696 B
PHP

<?php
namespace App\Entities\Customer;
use App\Models\Customer\ServicePaymentModel;
class ServicePaymentEntity extends CustomerEntity
{
const PK = ServicePaymentModel::PK;
const TITLE = ServicePaymentModel::TITLE;
public function getServiceUid(): int
{
return intval($this->attributes['serviceinfo_uid']);
}
public function getItemUid(): int
{
return intval($this->attributes['item_uid']);
}
public function getAmount(): int
{
return intval($this->attributes['amount']);
}
public function getView_BillingCycle(): string
{
return $this->attributes['billing_cycle'] == "month" ? "" : ICONS['ONETIME'];;
}
}