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

23 lines
437 B
PHP

<?php
namespace App\Entities\Equipment;
use App\Models\Equipment\SwitchModel;
class SwitchEntity extends EquipmentEntity
{
const PK = SwitchModel::PK;
const TITLE = SwitchModel::TITLE;
const DEFAULT_STATUS = STATUS['AVAILABLE'];
public function getCode(): string
{
return $this->attributes['code'];
}
public function getPrice(): int
{
return $this->attributes['price'];
}
}