Automation/app/Libraries/Mangboard/BoardLibrary.php
2024-09-06 14:32:57 +09:00

28 lines
670 B
PHP

<?php
namespace App\Libraries\Mangboard;
use App\Libraries\CommonLibrary;
use App\Entities\Mangboard\BoardEntity;
abstract class BoardLibrary extends CommonLibrary
{
private $_model = null;
protected function __construct($model)
{
parent::__construct();
$this->_model = $model;
}
protected function getModel(): mixed
{
return $this->_model;
}
public function create(BoardEntity $entity, array $formDatas = []): BoardEntity
{
$entity = $this->getModel()->create($entity, $formDatas);
log_message("debug", __FUNCTION__ . "=>등록이 완료되었습니다.");
return $entity;
}
}