Lines Matching refs:Node
12 * @var Node
17 * @param Node $head
19 public function __construct(Node $head = null)
21 $this->head = $head ? : new Node('HEAD');
25 * @return Node
34 * @return Node|bool
40 /** @var Node $node */
58 /** @var Node $node */
80 class Node extends \RecursiveArrayIterator implements \Countable
88 * @var Node
115 * @param Node $parent
118 public function __construct($data, $uid = null, Node $parent = null, $assureUnique = false)
146 * @param Node $child
148 public function addChild(Node $child)
187 * @param Node $parent
190 public function setParent(Node $parent)
193 throw new \RuntimeException("Node uid is not unique in assigned node tree");
200 * @param Node $node
204 protected static function checkUnique(Node $node, $uid)
217 * @return \IJsonRPC\Helpers\Tree\Node
225 * @return Node
290 $node1 = new Node('value1', 1);
292 $node2 = new Node('value2', 2);
298 Node Object
304 [parent:protected] => Node Object
308 [0] => Node Object
312 [parent:protected] => Node Object
316 [0] => Node Object