original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Adds a MenuEntry as child and add this MenuEntry as parent of the child .