Lines Matching refs:Node
12 * @var Node
16 public function __construct(Node $head = null)
18 $this->head = $head ? : new Node('HEAD');
22 * @return Node
31 * @return Node|bool
37 /** @var Node $node */
55 /** @var Node $node */
77 class Node extends \RecursiveArrayIterator implements \Countable
85 * @var Node
112 * @param Node $parent
115 public function __construct($data, $uid = null, Node $parent = null, $assureUnique = false)
143 * @param Node $child
145 public function addChild(Node $child)
184 * @param Node $parent
187 public function setParent(Node $parent)
190 throw new \RuntimeException("Node uid is not unique in assigned node tree");
197 * @param Node $node
201 protected static function checkUnique(Node $node, $uid)
214 * @return \IJsonRPC\Helpers\Tree\Node
221 public function current(): Node
266 $node1 = new Node('value1', 1);
268 $node2 = new Node('value2', 2);
274 Node Object
280 [parent:protected] => Node Object
284 [0] => Node Object
288 [parent:protected] => Node Object
292 [0] => Node Object