cfmgrv4/app/Entities/MyLogEntity.php
2025-03-12 12:51:37 +09:00

28 lines
581 B
PHP

<?php
namespace App\Entities;
use App\Entities\CommonEntity;
use App\Models\MyLogModel;
class MyLogEntity extends CommonEntity
{
public function __toString(): string
{
return "{$this->getPK()}:{$this->getTitle()}}";
}
public function getPK(): int
{
return $this->attributes[MyLogModel::PK];
}
public function getTitle(): string
{
return $this->attributes[MyLogModel::TITLE];
}
public function setTitle(string $title): void
{
$this->attributes[MyLogModel::TITLE] = $title;
}
//Common Function
}