Automation/app/Entities/Mangboard/FreeboardEntity.php
2024-09-05 20:13:31 +09:00

38 lines
731 B
PHP

<?php
namespace App\Entities\Mangboard;
use App\Entities\CommonEntity;
class FreeboardEntity extends CommonEntity
{
public function __toString(): string
{
return "{$this->getPK()}:{$this->getTitle()}";
}
public function getPK(): int
{
return $this->attributes['pid'];
}
public function getTitle(): string
{
return $this->attributes['title'];
}
//Common Function
public function setTitle(string $title)
{
$this->attributes['title'] = $title;
}
public function getGID(): int
{
return $this->attributes['gid'];
}
public function setContent(string $content)
{
$this->attributes['content'] = $content;
}
}