17 lines
413 B
PHP
17 lines
413 B
PHP
<?php
|
|
|
|
namespace App\Entities\Customer;
|
|
|
|
use App\Models\Customer\ServiceItemModel;
|
|
|
|
class ServiceItemEntity extends CustomerEntity
|
|
{
|
|
const PK = ServiceItemModel::PK;
|
|
const TITLE = ServiceItemModel::TITLE;
|
|
|
|
public function getTitle(): string
|
|
{
|
|
return parent::getTitle() . " [" . number_format($this->attributes['price']) . '/' . number_format($this->attributes['amount']) . "원]";
|
|
}
|
|
}
|