public function add(MenuEntry $menu)
    {
        $menu->parent = $this;
        $menu->urlGenerator = $this->urlGenerator;
        $this->children[$menu->getName()] = $menu;

        return $menu;
    }
public function add(MenuEntry $menu)
    {
        $menu->parent = $this;
        $menu->urlGenerator = $this->urlGenerator;
        $this->children[$menu->getName()] = $menu;

        return $menu;
    }
public function add ( MenuEntry $ menu ) { $ menu -> parent = $ this ; $ menu -> urlGenerator = $ this -> urlGenerator ; $ this -> children [ $ menu -> getName ( ) ] = $ menu ; return $ menu ; }
Add child menu entry.

@param MenuEntry $menu

@return MenuEntry
Add child menu entry .