1 | <?php |
||
18 | class SourceIterator implements SourceIteratorInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var Iterator |
||
22 | */ |
||
23 | protected $iterator; |
||
24 | |||
25 | /** |
||
26 | * @param Iterator $iterator Iterator with string array elements |
||
27 | */ |
||
28 | public function __construct(Iterator $iterator) |
||
32 | |||
33 | /** |
||
34 | * @return Iterator |
||
35 | */ |
||
36 | public function getIterator() |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public function current() |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function next() |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function key() |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | public function valid() |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | public function rewind() |
||
80 | } |
||
81 |