src/ParametricTree/RecursiveLeaf.php
public function addChild(RecursiveLeafInterface $leaf)
    {
        $leaf->setDepth($this->depth + 1);
        $this->children[] = $leaf;
    }
public function addChild(RecursiveLeafInterface $leaf)
    {
        $leaf->setDepth($this->depth + 1);
        $this->children[] = $leaf;
    }
public function addChild ( RecursiveLeafInterface $ leaf ) { $ leaf -> setDepth ( $ this -> depth + 1 ) ; $ this -> children [ ] = $ leaf ; }
Adds the child leaf.

@param RecursiveLeafInterface $leaf The leaf
Adds the child leaf .