1 | <?php |
||
14 | class Sheet implements SheetInterface |
||
15 | { |
||
16 | /** @var \Box\Spout\Reader\ODS\RowIterator To iterate over sheet's rows */ |
||
17 | protected $rowIterator; |
||
18 | |||
19 | /** @var int ID of the sheet */ |
||
20 | protected $id; |
||
21 | |||
22 | /** @var int Index of the sheet, based on order in the workbook (zero-based) */ |
||
23 | protected $index; |
||
24 | |||
25 | /** @var string Name of the sheet */ |
||
26 | protected $name; |
||
27 | |||
28 | /** @var bool Whether the sheet was the active one */ |
||
29 | protected $isActive; |
||
30 | |||
31 | /** |
||
32 | * @param XMLReader $xmlReader XML Reader, positioned on the "<table:table>" element |
||
33 | * @param int $sheetIndex Index of the sheet, based on order in the workbook (zero-based) |
||
34 | * @param string $sheetName Name of the sheet |
||
35 | * @param bool $isSheetActive Whether the sheet was defined as active |
||
36 | * @param \Box\Spout\Reader\ODS\ReaderOptions $options Reader's current options |
||
37 | */ |
||
38 | 84 | public function __construct($xmlReader, $sheetIndex, $sheetName, $isSheetActive, $options) |
|
45 | |||
46 | /** |
||
47 | * @api |
||
48 | * @return \Box\Spout\Reader\ODS\RowIterator |
||
49 | */ |
||
50 | 78 | public function getRowIterator() |
|
54 | |||
55 | /** |
||
56 | * @api |
||
57 | * @return int Index of the sheet, based on order in the workbook (zero-based) |
||
58 | */ |
||
59 | 3 | public function getIndex() |
|
63 | |||
64 | /** |
||
65 | * @api |
||
66 | * @return string Name of the sheet |
||
67 | */ |
||
68 | 3 | public function getName() |
|
72 | |||
73 | /** |
||
74 | * @api |
||
75 | * @return bool Whether the sheet was defined as active |
||
76 | */ |
||
77 | 6 | public function isActive() |
|
81 | } |
||
82 |