1 | <?php |
||
18 | class InitFileIterator extends FileIterator |
||
19 | { |
||
20 | /** @var SheetIterator */ |
||
21 | protected $worksheetIterator; |
||
22 | |||
23 | /** @var array */ |
||
24 | protected $options; |
||
25 | |||
26 | /** @var bool */ |
||
27 | protected $nextWorksheet = false; |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function __construct($type, $filePath, array $options = []) |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function current() |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function key() |
||
66 | |||
67 | /** |
||
68 | * @inheritdoc |
||
69 | */ |
||
70 | public function valid() |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | public function next() |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | public function rewind() |
||
106 | |||
107 | protected function trimRight($data) |
||
117 | |||
118 | /** |
||
119 | * Initializes the current worksheet |
||
120 | */ |
||
121 | protected function initializeValuesIterator() |
||
132 | |||
133 | /** |
||
134 | * Returns true if the worksheet should be read |
||
135 | * |
||
136 | * @param string $title |
||
137 | * |
||
138 | * @return boolean |
||
139 | */ |
||
140 | protected function isReadableWorksheet($title) |
||
144 | |||
145 | /** |
||
146 | * Returns true if the worksheet should be indluded |
||
147 | * |
||
148 | * @param string $title The title of the worksheet |
||
149 | * |
||
150 | * @return boolean |
||
151 | */ |
||
152 | protected function isIncludedWorksheet($title) |
||
166 | |||
167 | /** |
||
168 | * Returns true if the worksheet should be excluded |
||
169 | * |
||
170 | * @param string $title The title of the worksheet |
||
171 | * |
||
172 | * @return boolean |
||
173 | */ |
||
174 | protected function isExcludedWorksheet($title) |
||
188 | |||
189 | /** |
||
190 | * Create the values iterator according to the 'header_key' option |
||
191 | * Set the headers |
||
192 | * Leave reader cursor on the headers, like in the PIM |
||
193 | */ |
||
194 | protected function createValuesIterator() |
||
208 | |||
209 | /** |
||
210 | * {@inheritdoc} |
||
211 | */ |
||
212 | protected function configureOptions(OptionsResolver $resolver) |
||
227 | } |
||
228 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..