PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.0
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.0
1.7.0 1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 All 50 releases
fluent-cart / vendor / openspout / openspout / src / Reader / ODS / Sheet.php

Sheet.php in FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler 1.6.0, at vendor/openspout/openspout/src/Reader/ODS/Sheet.php

74 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentCart\OpenSpout\Reader\ODS;
4
5 use FluentCart\OpenSpout\Reader\SheetInterface;
6 /**
7 * Represents a sheet within a ODS file.
8 */
9 class Sheet implements SheetInterface
10 {
11 /** @var \OpenSpout\Reader\ODS\RowIterator To iterate over sheet's rows */
12 protected $rowIterator;
13 /** @var int ID of the sheet */
14 protected $id;
15 /** @var int Index of the sheet, based on order in the workbook (zero-based) */
16 protected $index;
17 /** @var string Name of the sheet */
18 protected $name;
19 /** @var bool Whether the sheet was the active one */
20 protected $isActive;
21 /** @var bool Whether the sheet is visible */
22 protected $isVisible;
23 /**
24 * @param RowIterator $rowIterator The corresponding row iterator
25 * @param int $sheetIndex Index of the sheet, based on order in the workbook (zero-based)
26 * @param string $sheetName Name of the sheet
27 * @param bool $isSheetActive Whether the sheet was defined as active
28 * @param bool $isSheetVisible Whether the sheet is visible
29 */
30 public function __construct($rowIterator, $sheetIndex, $sheetName, $isSheetActive, $isSheetVisible)
31 {
32 $this->rowIterator = $rowIterator;
33 $this->index = $sheetIndex;
34 $this->name = $sheetName;
35 $this->isActive = $isSheetActive;
36 $this->isVisible = $isSheetVisible;
37 }
38 /**
39 * @return \OpenSpout\Reader\ODS\RowIterator
40 */
41 public function getRowIterator()
42 {
43 return $this->rowIterator;
44 }
45 /**
46 * @return int Index of the sheet, based on order in the workbook (zero-based)
47 */
48 public function getIndex()
49 {
50 return $this->index;
51 }
52 /**
53 * @return string Name of the sheet
54 */
55 public function getName()
56 {
57 return $this->name;
58 }
59 /**
60 * @return bool Whether the sheet was defined as active
61 */
62 public function isActive()
63 {
64 return $this->isActive;
65 }
66 /**
67 * @return bool Whether the sheet is visible
68 */
69 public function isVisible()
70 {
71 return $this->isVisible;
72 }
73 }
74