dbmsv2/app/Entities/Equipment/CSEntity.php
2025-09-09 14:51:43 +09:00

21 lines
466 B
PHP

<?php
namespace App\Entities\Equipment;
use App\Models\Equipment\CSModel;
class CSEntity extends EquipmentEntity
{
const PK = CSModel::PK;
const TITLE = CSModel::TITLE;
const DEFAULT_STATUS = STATUS['AVAILABLE'];
public function getPrice(): int
{
return $this->attributes['price'];
}
public function getCustomTitle(): string
{
return $this->getTitle() . " " . number_format($this->getPrice()) . "";
}
}