/** * Creates an Movie object based on a DB row. * * @param array $row The DB row containing Movie data. * @return \MyMovies\Domain\Movie */ protected function buildDomainObject($row) { $mov = new Movie(); $mov->setMovId($row['mov_id']); $mov->setMovTitle($row['mov_title']); $mov->setMovDescriptionShort($row['mov_description_short']); $mov->setMovDescriptionLong($row['mov_description_long']); $mov->setMovDirector($row['mov_director']); $mov->setMovYear($row['mov_year']); $mov->setMovImage($row['mov_image']); $mov->setCatId($row['cat_id']); return $mov; }