dbmsv2/app/Entities/Customer/ServiceEntity.php
2025-09-05 18:13:06 +09:00

35 lines
870 B
PHP

<?php
namespace App\Entities\Customer;
use App\Entities\Equipment\ServerEntity;
use App\Entities\Equipment\SwitchEntity;
use App\Models\Customer\ServiceModel;
class ServiceEntity extends CustomerEntity
{
const PK = ServiceModel::PK;
const TITLE = ServiceModel::TITLE;
const DEFAULT_STATUS = STATUS['NORMAL'];
public function setServerEntity(ServerEntity $entity): void
{
$this->attributes['serverEntity'] = $entity;
}
public function getServerEntity(): ServerEntity
{
return $this->attributes['serverEntity'];
}
public function getCode(): string|null
{
return $this->attributes['code'];
}
public function getType(): string
{
return $this->attributes['type'];
}
final public function getBillingAt(): string
{
return $this->attributes['billing_at'];
}
}