50 lines
1.0 KiB
PHP
50 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Entities\Equipment;
|
|
|
|
use App\Models\Equipment\LineModel;
|
|
|
|
class LineEntity extends EquipmentEntity
|
|
{
|
|
const PK = LineModel::PK;
|
|
protected $attributes = [
|
|
'title' => '',
|
|
'type' => '',
|
|
'protocol' => '',
|
|
'bandwith' => '',
|
|
'start_at' => 0,
|
|
'end_at' => 0,
|
|
'status' => '',
|
|
'content' => '',
|
|
];
|
|
public function __construct(array|null $data = null)
|
|
{
|
|
parent::__construct($data);
|
|
}
|
|
const TITLE = LineModel::TITLE;
|
|
public function getType(): string
|
|
{
|
|
return $this->type ?? '';
|
|
}
|
|
public function getProtocol(): string
|
|
{
|
|
return $this->protocol ?? '';
|
|
}
|
|
public function getBandwith(): string
|
|
{
|
|
return $this->bandwith ?? '';
|
|
}
|
|
public function getStartAt(): string
|
|
{
|
|
return $this->start_at ?? '';
|
|
}
|
|
public function getEndAt(): string
|
|
{
|
|
return $this->end_at ?? '';
|
|
}
|
|
public function getContent(): string
|
|
{
|
|
return $this->content ?? '';
|
|
}
|
|
}
|