public function detachRight() : void
    {
        if ($this->right) {
            $this->right->setParent(null);

            $this->right = null;
        }
    }
public function detachRight() : void
    {
        if ($this->right) {
            $this->right->setParent(null);

            $this->right = null;
        }
    }
public function detachRight ( ) : void { if ( $ this -> right ) { $ this -> right -> setParent ( null ) ; $ this -> right = null ; } }
Detach the right child node.
Detach the right child node .