dbmsv2/app/Entities/Customer/ServiceEntity.php
2025-09-05 17:33:23 +09:00

38 lines
983 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|null $entity): void
{
$this->attributes['serverEntity'] = $entity;
}
public function getServerEntity(): ServerEntity|null
{
if (!array_key_exists('serverEntity', $this->attributes)) {
return null;
}
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'];
}
}