Automation/app/Entities/Mangboard/FileEntity.php
2024-09-07 19:00:11 +09:00

23 lines
430 B
PHP

<?php
namespace App\Entities\Mangboard;
use App\Entities\CommonEntity;
class FileEntity 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['file_name'];
}
//Common Function
}