Example #1
0
 /**
  * Creates an Category object based on a DB row.
  *
  * @param array $row The DB row containing Category data.
  * @return \MyMovie\Domain\Category
  */
 protected function buildDomainObject($row)
 {
     $cat = new Category();
     $cat->setCatId($row['cat_id']);
     $cat->setCatName($row['cat_name']);
     return $cat;
 }