src/Recursivity/Tree/Node.php
public function addChild(Node $child)
    {
        $this->children[]            = $child;
        $child->parent               = $this;
        $child->properties['parent'] = $this->getId();
    }
public function addChild(Node $child)
    {
        $this->children[]            = $child;
        $child->parent               = $this;
        $child->properties['parent'] = $this->getId();
    }
public function addChild ( Node $ child ) { $ this -> children [ ] = $ child ; $ child -> parent = $ this ; $ child -> properties [ 'parent' ] = $ this -> getId ( ) ; }
Adds the given node to this node's children

@param Node $child
Adds the given node to this node s children