1 | <?php |
||
16 | class ArrayMetadataIterator implements MetadataIterator |
||
17 | { |
||
18 | /** |
||
19 | * @var Metadata[] |
||
20 | */ |
||
21 | private $resources; |
||
22 | |||
23 | /** |
||
24 | * @param Metadata[] $metadataResources |
||
25 | */ |
||
26 | 8 | public function __construct(array $metadataResources) |
|
32 | |||
33 | /** |
||
34 | * (PHP 5 >= 5.0.0)<br/> |
||
35 | * Move forward to next element |
||
36 | * @link http://php.net/manual/en/iterator.next.php |
||
37 | * @return void Any returned value is ignored. |
||
38 | */ |
||
39 | 4 | public function next() |
|
43 | |||
44 | /** |
||
45 | * (PHP 5 >= 5.0.0)<br/> |
||
46 | * Return the key of the current element |
||
47 | * @link http://php.net/manual/en/iterator.key.php |
||
48 | * @return mixed scalar on success, or null on failure. |
||
49 | */ |
||
50 | 4 | public function key() |
|
54 | |||
55 | /** |
||
56 | * (PHP 5 >= 5.0.0)<br/> |
||
57 | * Checks if current position is valid |
||
58 | * @link http://php.net/manual/en/iterator.valid.php |
||
59 | * @return boolean The return value will be casted to boolean and then evaluated. |
||
60 | * Returns true on success or false on failure. |
||
61 | */ |
||
62 | 4 | public function valid() |
|
66 | |||
67 | /** |
||
68 | * (PHP 5 >= 5.0.0)<br/> |
||
69 | * Rewind the Iterator to the first element |
||
70 | * @link http://php.net/manual/en/iterator.rewind.php |
||
71 | * @return void Any returned value is ignored. |
||
72 | */ |
||
73 | 4 | public function rewind() |
|
77 | |||
78 | /** |
||
79 | * @return Metadata |
||
80 | */ |
||
81 | 4 | public function current() |
|
85 | } |
||
86 |