src/Tree.php
public function remove($nodeName)
    {
        $children = self::removeTreeNode($this->hierarchy, $nodeName);
        // @todo remove all children
        $this->removeNodeFromList($nodeName);
        $this->updateRequired = true;

        return $this;
    }
public function remove($nodeName)
    {
        $children = self::removeTreeNode($this->hierarchy, $nodeName);
        // @todo remove all children
        $this->removeNodeFromList($nodeName);
        $this->updateRequired = true;

        return $this;
    }
public function remove ( $ nodeName ) { $ children = self :: removeTreeNode ( $ this -> hierarchy , $ nodeName ) ; // @todo remove all children $ this -> removeNodeFromList ( $ nodeName ) ; $ this -> updateRequired = true ; return $ this ; }
Removes node by its name.

@param string $nodeName

@return $this
Removes node by its name .