28 lines
696 B
PHP
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'];;
|
|
}
|
|
}
|