earc / tree
eArc - the explicit architecture framework - tree composite blueprint
0.0
2019-07-17 08:14 UTC
Requires
- php: ^7.2
This package is auto-updated.
Last update: 2025-04-17 21:19:47 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
.