28 lines
658 B
PHP
28 lines
658 B
PHP
<?php
|
|
|
|
namespace App\Libraries\Mangboard;
|
|
|
|
use App\Libraries\CommonLibrary;
|
|
use App\Entities\Mangboard\BoardEntity;
|
|
|
|
class BoardLibrary extends CommonLibrary
|
|
{
|
|
private $_model = null;
|
|
public 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;
|
|
}
|
|
}
|