Пример #1
0
 public function addChild($name, $label, RouteBasedLocation $location = null)
 {
     $child = new MenuItem($name, $label, $location);
     $child->setParent($this);
     $this->getChildren()->append($child);
     return $child;
 }