예제 #1
0
 /**
  * @inheritDoc
  */
 public function addChild(MenuItemInterface $item)
 {
     if (!$this->children->contains($item)) {
         $this->children->add($item);
     }
     return $this;
 }
예제 #2
0
 /**
  * @param MenuItem[]|ArrayCollection $items
  */
 public function addItems($items)
 {
     $this->items->add($items);
 }