From 75160b12821f7f4299cce7f0b69c83c1502ae071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Mon, 27 May 2024 13:08:29 +0200 Subject: 2024-02-19 upstream --- .../src/PhpSpreadsheet/Worksheet/Column.php | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Column.php (limited to 'vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Column.php') diff --git a/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Column.php b/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Column.php new file mode 100644 index 0000000..ebe5677 --- /dev/null +++ b/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Column.php @@ -0,0 +1,64 @@ +parent = $parent; + $this->columnIndex = $columnIndex; + } + + /** + * Destructor. + */ + public function __destruct() + { + $this->parent = null; + } + + /** + * Get column index as string eg: 'A'. + * + * @return string + */ + public function getColumnIndex() + { + return $this->columnIndex; + } + + /** + * Get cell iterator. + * + * @param int $startRow The row number at which to start iterating + * @param int $endRow Optionally, the row number at which to stop iterating + * + * @return ColumnCellIterator + */ + public function getCellIterator($startRow = 1, $endRow = null) + { + return new ColumnCellIterator($this->parent, $this->columnIndex, $startRow, $endRow); + } +} -- cgit v1.2.3