1 | <?php |
||
16 | class RowIterator implements \Iterator |
||
17 | { |
||
18 | /** |
||
19 | * @var RowBuilderFactory |
||
20 | */ |
||
21 | protected $rowBuilderFactory; |
||
22 | |||
23 | /** |
||
24 | * @var ColumnIndexTransformer |
||
25 | */ |
||
26 | protected $columnIndexTransformer; |
||
27 | |||
28 | /** |
||
29 | * @var ValueTransformer |
||
30 | */ |
||
31 | protected $valueTransformer; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $path; |
||
37 | |||
38 | /** |
||
39 | * @var array |
||
40 | */ |
||
41 | protected $options; |
||
42 | |||
43 | /** |
||
44 | * @var \XMLReader |
||
45 | */ |
||
46 | protected $xml; |
||
47 | |||
48 | /** |
||
49 | * @var int |
||
50 | */ |
||
51 | protected $currentKey; |
||
52 | |||
53 | /** |
||
54 | * @var array |
||
55 | */ |
||
56 | protected $currentValue; |
||
57 | |||
58 | /** |
||
59 | * @var boolean |
||
60 | */ |
||
61 | protected $valid; |
||
62 | |||
63 | /** |
||
64 | * Constructor |
||
65 | * |
||
66 | * @param RowBuilderFactory $rowBuilderFactory |
||
67 | * @param ColumnIndexTransformer $columnIndexTransformer |
||
68 | * @param ValueTransformer $valueTransformer |
||
69 | * @param string $path |
||
70 | * @param array $options |
||
71 | */ |
||
72 | public function __construct( |
||
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | public function current() |
||
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | */ |
||
97 | public function key() |
||
101 | |||
102 | /** |
||
103 | * {@inheritdoc} |
||
104 | */ |
||
105 | public function next() |
||
152 | |||
153 | /** |
||
154 | * {@inheritdoc} |
||
155 | */ |
||
156 | public function rewind() |
||
165 | |||
166 | /** |
||
167 | * {@inheritdoc} |
||
168 | */ |
||
169 | public function valid() |
||
173 | |||
174 | /** |
||
175 | * Returns a normalized attribute value |
||
176 | * |
||
177 | * @param string $value |
||
178 | * |
||
179 | * @return string |
||
180 | */ |
||
181 | protected function getValue($value) |
||
185 | } |
||
186 |
As per the PSR-2 coding standard, there must not be a space in front of the colon in case statements.
To learn more about the PSR-2 coding standard, please refer to the PHP-Fig.