public function addChild(MenuEntry $child)
    {
        if (isset($this->children[$child->getKey()])) {
            return false;
        }
        
        $this->children[$child->getKey()] = $child;
        
        // Sets this MenuEntry as parent of the child
        $child->setParent($this);
        
        return true;
    }
public function addChild(MenuEntry $child)
    {
        if (isset($this->children[$child->getKey()])) {
            return false;
        }
        
        $this->children[$child->getKey()] = $child;
        
        // Sets this MenuEntry as parent of the child
        $child->setParent($this);
        
        return true;
    }
public function addChild ( MenuEntry $ child ) { if ( isset ( $ this -> children [ $ child -> getKey ( ) ] ) ) { return false ; } $ this -> children [ $ child -> getKey ( ) ] = $ child ; // Sets this MenuEntry as parent of the child $ child -> setParent ( $ this ) ; return true ; }
Adds a MenuEntry as child and add this MenuEntry as
parent of the child.

@access public
@param \Zepi\Web\General\Entity\MenuEntry $child
@return boolean
Adds a MenuEntry as child and add this MenuEntry as parent of the child .