PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.9.4
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.9.4
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
visualizer / vendor / phpoffice / phpspreadsheet / src / PhpSpreadsheet / Worksheet / Column.php

Column.php in Visualizer – Tables & Charts Manager with Built-in AI Generator 3.9.4, at vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Column.php

65 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace PhpOffice\PhpSpreadsheet\Worksheet;
4
5 class Column
6 {
7 /**
8 * \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet.
9 *
10 * @var Worksheet
11 */
12 private $parent;
13
14 /**
15 * Column index.
16 *
17 * @var string
18 */
19 private $columnIndex;
20
21 /**
22 * Create a new column.
23 *
24 * @param Worksheet $parent
25 * @param string $columnIndex
26 */
27 public function __construct(Worksheet $parent = null, $columnIndex = 'A')
28 {
29 // Set parent and column index
30 $this->parent = $parent;
31 $this->columnIndex = $columnIndex;
32 }
33
34 /**
35 * Destructor.
36 */
37 public function __destruct()
38 {
39 unset($this->parent);
40 }
41
42 /**
43 * Get column index.
44 *
45 * @return string
46 */
47 public function getColumnIndex()
48 {
49 return $this->columnIndex;
50 }
51
52 /**
53 * Get cell iterator.
54 *
55 * @param int $startRow The row number at which to start iterating
56 * @param int $endRow Optionally, the row number at which to stop iterating
57 *
58 * @return ColumnCellIterator
59 */
60 public function getCellIterator($startRow = 1, $endRow = null)
61 {
62 return new ColumnCellIterator($this->parent, $this->columnIndex, $startRow, $endRow);
63 }
64 }
65