dbmsv2/app/Entities/Equipment/ServerEntity.php
2025-08-25 10:21:17 +09:00

29 lines
718 B
PHP

<?php
namespace App\Entities\Equipment;
use App\Models\Equipment\ServerModel;
class ServerEntity extends EquipmentEntity
{
const PK = ServerModel::PK;
const TITLE = ServerModel::TITLE;
const STATUS_AVAILABLE = "available";
const STATUS_OCCUPIED = "occupied";
const STATUS_FORBIDDEN = "forbidden";
const DEFAULT_STATUS = self::STATUS_AVAILABLE;
public function getCode(): string
{
return $this->attributes['code'];
}
public function getClientInfoUID(): int|null
{
return $this->attributes['clientinfo_uid'] ?? null;
}
public function getServiceInfoUID(): int|null
{
return $this->attributes['serviceinfo_uid'] ?? null;
}
}