earc/tree

eArc - the explicit architecture framework - tree composite blueprint

0.0 2019-07-17 08:14 UTC

This package is auto-updated.

Last update: 2024-04-17 19:08:09 UTC


README

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.