Ejemplo n.º 1
0
 /**
  * add the given menu item category to the repository
  * please note that this is a private method to be used only by the constructor
  * @param MenuCategory $category
  */
 private function addMenuCategory(MenuCategory $category)
 {
     // obtain ID from the menu category object
     $id = $category->getMenuCategoryCode();
     //add menu category object to the array, with index of the ID
     $this->categories[$id] = $category;
 }