public function setParent(\Tx_Oelib_Visibility_Node $parentNode)
    {
        if ($this->parentNode !== null) {
            throw new \InvalidArgumentException('This node already has a parent node.', 1331488668);
        }

        $this->parentNode = $parentNode;
    }
public function setParent(\Tx_Oelib_Visibility_Node $parentNode)
    {
        if ($this->parentNode !== null) {
            throw new \InvalidArgumentException('This node already has a parent node.', 1331488668);
        }

        $this->parentNode = $parentNode;
    }
public function setParent ( \ Tx_Oelib_Visibility_Node $ parentNode ) { if ( $ this -> parentNode !== null ) { throw new \ InvalidArgumentException ( 'This node already has a parent node.' , 1331488668 ) ; } $ this -> parentNode = $ parentNode ; }
Sets the parent node of this node.

The parent can only be set once.

@param \Tx_Oelib_Visibility_Node $parentNode the parent node to add

@return void
Sets the parent node of this node .