38 lines
983 B
PHP
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'];
|
|
}
|
|
}
|