public function remove(): self
    {
        if ($this->_parent) {
            $id = spl_object_hash($this);
            unset($this->_parent->_children[$id]);
            unset($this->_parent);
        }
        return $this;
    }
public function remove(): self
    {
        if ($this->_parent) {
            $id = spl_object_hash($this);
            unset($this->_parent->_children[$id]);
            unset($this->_parent);
        }
        return $this;
    }
public function remove ( ) : self { if ( $ this -> _parent ) { $ id = spl_object_hash ( $ this ) ; unset ( $ this -> _parent -> _children [ $ id ] ) ; unset ( $ this -> _parent ) ; } return $ this ; }
Remove this node from the tree.

@return self The removed node
Remove this node from the tree .