public function get($name)
    {
        if (isset($this->children[$name])) {
            return $this->children[$name];
        }

        throw new \InvalidArgumentException(sprintf('Menu entry %s does not have a child named "%s"', $this->name, $name));
    }
public function get($name)
    {
        if (isset($this->children[$name])) {
            return $this->children[$name];
        }

        throw new \InvalidArgumentException(sprintf('Menu entry %s does not have a child named "%s"', $this->name, $name));
    }
public function get ( $ name ) { if ( isset ( $ this -> children [ $ name ] ) ) { return $ this -> children [ $ name ] ; } throw new \ InvalidArgumentException ( sprintf ( 'Menu entry %s does not have a child named "%s"' , $ this -> name , $ name ) ) ; }
Return a menu entry's named child.

@param string $name

@return MenuEntry
Return a menu entry s named child .