public function setChild(INabuDataObjectTreeNode $child)
    {
        $this->nb_tree_child_list->setItem($child);
        $child->setParent($this);

        return $this;
    }
public function setChild(INabuDataObjectTreeNode $child)
    {
        $this->nb_tree_child_list->setItem($child);
        $child->setParent($this);

        return $this;
    }
public function setChild ( INabuDataObjectTreeNode $ child ) { $ this -> nb_tree_child_list -> setItem ( $ child ) ; $ child -> setParent ( $ this ) ; return $ this ; }
Add or replaces a child. If child is in a deep level then looks for their parent level to connect both
instances.
@param CNabuDataObject $child The child to be added or replaced.
@return INabuDataObjectTreeNode Returns the parent instance where the child is added.
Add or replaces a child . If child is in a deep level then looks for their parent level to connect both instances .