Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 495 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 495 Bytes

earc/tree

Basic tree composite blueprint.

installation

$ composer install earc/tree

basic usage

use eArc\Tree\Node;

$root = new Node();

$root->addChild(new Node($root), 'identifier');

$root->getChild('identifier');

Please refer to the NodeInterface for details.

If you want to add the tree composite functionality to a existing class use the eArc\Tree\Node\NodeTrait.