/** * Add a child item to collection. * * @param self $item * * @return \Arcanedev\Menus\Entities\MenuItem */ private function addChild(MenuItem $item) { $this->children->push($item); return $this; }
/** * Add an item to the menu. * * @param MenuItem $item */ private function addItem(MenuItem $item) { $this->items->push($item); }