@@ 58-65 (lines=8) @@ | ||
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 | public function __construct(\PhpOffice\PhpSpreadsheet\Worksheet $subject = null, $columnIndex = 'A', $startRow = 1, $endRow = null) |
|
59 | { |
|
60 | // Set subject |
|
61 | $this->subject = $subject; |
|
62 | $this->columnIndex = \PhpOffice\PhpSpreadsheet\Cell::columnIndexFromString($columnIndex) - 1; |
|
63 | $this->resetEnd($endRow); |
|
64 | $this->resetStart($startRow); |
|
65 | } |
|
66 | ||
67 | /** |
|
68 | * Destructor. |
@@ 58-65 (lines=8) @@ | ||
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 |
|
57 | */ |
|
58 | public function __construct(\PhpOffice\PhpSpreadsheet\Worksheet $subject = null, $rowIndex = 1, $startColumn = 'A', $endColumn = null) |
|
59 | { |
|
60 | // Set subject and row index |
|
61 | $this->subject = $subject; |
|
62 | $this->rowIndex = $rowIndex; |
|
63 | $this->resetEnd($endColumn); |
|
64 | $this->resetStart($startColumn); |
|
65 | } |
|
66 | ||
67 | /** |
|
68 | * Destructor. |