20 lines
357 B
PHP
20 lines
357 B
PHP
<?php
|
|
|
|
namespace App\Entities\Mangboard;
|
|
|
|
use App\Entities\MyStorage\FileEntity as ParentEntity;
|
|
|
|
class FileEntity extends ParentEntity
|
|
{
|
|
public function __toString(): string
|
|
{
|
|
return "{$this->getPK()}:{$this->getTitle()}";
|
|
}
|
|
//Common Function
|
|
|
|
public function getPK(): int
|
|
{
|
|
return $this->attributes['pid'];
|
|
}
|
|
}
|