dbmsv4/app/Entities/Equipment/LineEntity.php
2025-12-24 14:00:22 +09:00

50 lines
1.1 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->attributes['type'] ?? '';
}
public function getProtocol(): string
{
return $this->attributes['protocol'] ?? '';
}
public function getBandwith(): string
{
return $this->attributes['bandwith'] ?? '';
}
public function getStartAt(): string
{
return $this->attributes['start_at'] ?? '';
}
public function getEndAt(): string
{
return $this->attributes['end_at'] ?? '';
}
public function getContent(): string
{
return $this->attributes['content'] ?? '';
}
}