diff --git a/app/Controllers/CLI/Crawler.php b/app/Controllers/CLI/Crawler.php index 5f114c0..603b193 100644 --- a/app/Controllers/CLI/Crawler.php +++ b/app/Controllers/CLI/Crawler.php @@ -49,7 +49,7 @@ class Crawler extends BaseController //미디어관련정보 entity에 넣기 $entity = new BoardEntity(); - $entity->setTitle($nickname); + $entity->title = $nickname; $entity->data_type = "html"; $entity->editor_type = "S"; $entity->content = is_array($mediaTags) ? implode("\n", $mediaTags) : $mediaTags; diff --git a/app/Entities/Mangboard/BoardEntity.php b/app/Entities/Mangboard/BoardEntity.php index 07ee398..3ee21a3 100644 --- a/app/Entities/Mangboard/BoardEntity.php +++ b/app/Entities/Mangboard/BoardEntity.php @@ -19,9 +19,4 @@ class BoardEntity extends CommonEntity return $this->attributes['title']; } //Common Function - - public function setTitle(string $value): void - { - $this->attributes['title'] = $value; - } }