src/Node/Node.php
public function clearParents(): NodeInterface
    {
        /** @var NodeInterface $parent */
        foreach ($this->getParents() as $parent) {
            $this->removeParent($parent->getId());
        }

        return $this;
    }
public function clearParents(): NodeInterface
    {
        /** @var NodeInterface $parent */
        foreach ($this->getParents() as $parent) {
            $this->removeParent($parent->getId());
        }

        return $this;
    }
public function clearParents ( ) : NodeInterface { /** @var NodeInterface $parent */ foreach ( $ this -> getParents ( ) as $ parent ) { $ this -> removeParent ( $ parent -> getId ( ) ) ; } return $ this ; }
Clears all parents of this node.

@return NodeInterface
Clears all parents of this node .