Ejemplo n.º 1
0
 /**
  * Creates an Category object based on a DB row.
  *
  * @param array $row The DB row containing Category data.
  * @return \MyMovies\Domain\Category
  */
 protected function buildDomainObject($row)
 {
     $cat = new Categorie();
     $cat->setCat_id($row['cat_id']);
     $cat->setCat_name($row['cat_name']);
     return $cat;
 }