/**
* Add child to this node
*
* If the child already has a parent, the link is unset
*
* @param NodeInterface $child The child to be added.
*
* @return void
*
* @since 4.0.0
*/
public function addChild(NodeInterface $child)
{
$child->setParent($this);
}