1 | <?php |
||
10 | class Sheet implements SheetInterface |
||
11 | { |
||
12 | /** @var \Box\Spout\Reader\CSV\RowIterator To iterate over the CSV's rows */ |
||
13 | protected $rowIterator; |
||
14 | |||
15 | /** |
||
16 | * @param RowIterator $rowIterator Corresponding row iterator |
||
17 | */ |
||
18 | 27 | public function __construct(RowIterator $rowIterator) |
|
22 | |||
23 | /** |
||
24 | * @return \Box\Spout\Reader\CSV\RowIterator |
||
25 | */ |
||
26 | 26 | public function getRowIterator() |
|
30 | |||
31 | /** |
||
32 | * @return int Index of the sheet |
||
33 | */ |
||
34 | 1 | public function getIndex() |
|
38 | |||
39 | /** |
||
40 | * @return string Name of the sheet - empty string since CSV does not support that |
||
41 | */ |
||
42 | 1 | public function getName() |
|
46 | |||
47 | /** |
||
48 | * @return bool Always TRUE as there is only one sheet |
||
49 | */ |
||
50 | 1 | public function isActive() |
|
54 | |||
55 | /** |
||
56 | * @return bool Always TRUE as the only sheet is always visible |
||
57 | */ |
||
58 | public function isVisible() |
||
62 | } |
||
63 |