3 namespace PhpOffice\PhpSpreadsheet\Worksheet
;
8 * \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet.
19 private $rowIndex = 0;
24 * @param Worksheet $worksheet
25 * @param int $rowIndex
27 public function __construct(Worksheet
$worksheet = null, $rowIndex = 1)
29 // Set parent and row index
30 $this->worksheet
= $worksheet;
31 $this->rowIndex
= $rowIndex;
37 public function __destruct()
39 unset($this->worksheet
);
47 public function getRowIndex()
49 return $this->rowIndex
;
55 * @param string $startColumn The column address at which to start iterating
56 * @param string $endColumn Optionally, the column address at which to stop iterating
58 * @return RowCellIterator
60 public function getCellIterator($startColumn = 'A', $endColumn = null)
62 return new RowCellIterator($this->worksheet
, $this->rowIndex
, $startColumn, $endColumn);
66 * Returns bound worksheet.
70 public function getWorksheet()
72 return $this->worksheet
;