23 lines
430 B
PHP
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
|
|
}
|