1 | <?php |
||
9 | class NodeList implements \IteratorAggregate |
||
10 | { |
||
11 | /** |
||
12 | * @var Node[] |
||
13 | */ |
||
14 | private $list; |
||
15 | |||
16 | public function __construct(array $list = null) { |
||
29 | |||
30 | /** |
||
31 | * Method to retrieve the iterrator on the list property. |
||
32 | * |
||
33 | * @return ArrayIterator : the ArrayInterrator instance with the current collection. |
||
34 | */ |
||
35 | public function getIterator() { |
||
38 | |||
39 | /** |
||
40 | * Add a Node object to the collection. |
||
41 | * |
||
42 | * @param Node $node : The Node instance to add to the current collection. |
||
43 | */ |
||
44 | public function add(Node $node) { |
||
47 | } |