/** * Creates an Article object based on a DB row. * * @param array $row The DB row containing Article data. * @return \DeadPoolCave\Domain\Article */ protected function buildDomainObject($row) { $article = new Article(); $article->setId($row['art_id']); $article->setTitle($row['art_title']); $article->setContent($row['art_content']); $article->setPrice($row['art_price']); $article->setImg($row['art_img']); $article->setSerie($row['art_series']); $article->setGenre($row['art_genre']); return $article; }