| 1 | <?php |
||
| 12 | class Sheet implements SheetInterface |
||
| 13 | { |
||
| 14 | /** @var \Box\Spout\Reader\CSV\RowIterator To iterate over the CSV's rows */ |
||
| 15 | protected $rowIterator; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param resource $filePointer Pointer to the CSV file to read |
||
| 19 | * @param \Box\Spout\Reader\CSV\ReaderOptions $options |
||
| 20 | * @param \Box\Spout\Common\Helper\GlobalFunctionsHelper $globalFunctionsHelper |
||
| 21 | */ |
||
| 22 | 81 | public function __construct($filePointer, $options, $globalFunctionsHelper) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @api |
||
| 29 | * @return \Box\Spout\Reader\CSV\RowIterator |
||
| 30 | */ |
||
| 31 | 78 | public function getRowIterator() |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @api |
||
| 38 | * @return int Index of the sheet |
||
| 39 | */ |
||
| 40 | 3 | public function getIndex() |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @api |
||
| 47 | * @return string Name of the sheet - empty string since CSV does not support that |
||
| 48 | */ |
||
| 49 | 3 | public function getName() |
|
| 53 | |||
| 54 | /** |
||
| 55 | * @api |
||
| 56 | * @return bool Always TRUE as there is only one sheet |
||
| 57 | */ |
||
| 58 | 3 | public function isActive() |
|
| 62 | } |
||
| 63 |