@@ -1828,7 +1828,7 @@ public function setBreak($coordinate, $break, int $max = -1): static
1828
1828
*
1829
1829
* @return $this
1830
1830
*/
1831
- public function setBreakByColumnAndRow ($ columnIndex , $ row , $ break )
1831
+ public function setBreakByColumnAndRow ($ columnIndex , $ row , $ break ): static
1832
1832
{
1833
1833
return $ this ->setBreak (Coordinate::stringFromColumnIndex ($ columnIndex ) . $ row , $ break );
1834
1834
}
@@ -2047,7 +2047,7 @@ public function mergeCellBehaviour(Cell $cell, string $upperLeft, string $behavi
2047
2047
*
2048
2048
* @return $this
2049
2049
*/
2050
- public function mergeCellsByColumnAndRow ($ columnIndex1 , $ row1 , $ columnIndex2 , $ row2 , $ behaviour = self ::MERGE_CELL_CONTENT_EMPTY )
2050
+ public function mergeCellsByColumnAndRow ($ columnIndex1 , $ row1 , $ columnIndex2 , $ row2 , $ behaviour = self ::MERGE_CELL_CONTENT_EMPTY ): static
2051
2051
{
2052
2052
$ cellRange = new CellRange (
2053
2053
CellAddress::fromColumnAndRow ($ columnIndex1 , $ row1 ),
@@ -2099,7 +2099,7 @@ public function unmergeCells($range): static
2099
2099
*
2100
2100
* @return $this
2101
2101
*/
2102
- public function unmergeCellsByColumnAndRow ($ columnIndex1 , $ row1 , $ columnIndex2 , $ row2 )
2102
+ public function unmergeCellsByColumnAndRow ($ columnIndex1 , $ row1 , $ columnIndex2 , $ row2 ): static
2103
2103
{
2104
2104
$ cellRange = new CellRange (
2105
2105
CellAddress::fromColumnAndRow ($ columnIndex1 , $ row1 ),
@@ -2175,7 +2175,7 @@ public function protectCells($range, $password, $alreadyHashed = false): static
2175
2175
*
2176
2176
* @return $this
2177
2177
*/
2178
- public function protectCellsByColumnAndRow ($ columnIndex1 , $ row1 , $ columnIndex2 , $ row2 , $ password , $ alreadyHashed = false )
2178
+ public function protectCellsByColumnAndRow ($ columnIndex1 , $ row1 , $ columnIndex2 , $ row2 , $ password , $ alreadyHashed = false ): static
2179
2179
{
2180
2180
$ cellRange = new CellRange (
2181
2181
CellAddress::fromColumnAndRow ($ columnIndex1 , $ row1 ),
@@ -2223,7 +2223,7 @@ public function unprotectCells($range): static
2223
2223
*
2224
2224
* @return $this
2225
2225
*/
2226
- public function unprotectCellsByColumnAndRow ($ columnIndex1 , $ row1 , $ columnIndex2 , $ row2 )
2226
+ public function unprotectCellsByColumnAndRow ($ columnIndex1 , $ row1 , $ columnIndex2 , $ row2 ): static
2227
2227
{
2228
2228
$ cellRange = new CellRange (
2229
2229
CellAddress::fromColumnAndRow ($ columnIndex1 , $ row1 ),
@@ -2292,7 +2292,7 @@ public function setAutoFilter($autoFilterOrRange): static
2292
2292
*
2293
2293
* @return $this
2294
2294
*/
2295
- public function setAutoFilterByColumnAndRow ($ columnIndex1 , $ row1 , $ columnIndex2 , $ row2 )
2295
+ public function setAutoFilterByColumnAndRow ($ columnIndex1 , $ row1 , $ columnIndex2 , $ row2 ): static
2296
2296
{
2297
2297
$ cellRange = new CellRange (
2298
2298
CellAddress::fromColumnAndRow ($ columnIndex1 , $ row1 ),
@@ -2511,7 +2511,7 @@ public function setTopLeftCell(string $topLeftCell): self
2511
2511
*
2512
2512
* @return $this
2513
2513
*/
2514
- public function freezePaneByColumnAndRow ($ columnIndex , $ row )
2514
+ public function freezePaneByColumnAndRow ($ columnIndex , $ row ): static
2515
2515
{
2516
2516
return $ this ->freezePane (Coordinate::stringFromColumnIndex ($ columnIndex ) . $ row );
2517
2517
}
@@ -2521,7 +2521,7 @@ public function freezePaneByColumnAndRow($columnIndex, $row)
2521
2521
*
2522
2522
* @return $this
2523
2523
*/
2524
- public function unfreezePane ()
2524
+ public function unfreezePane (): static
2525
2525
{
2526
2526
return $ this ->freezePane (null );
2527
2527
}
@@ -2686,7 +2686,7 @@ public function insertNewColumnBefore(string $before, int $numberOfColumns = 1):
2686
2686
*
2687
2687
* @return $this
2688
2688
*/
2689
- public function insertNewColumnBeforeByIndex (int $ beforeColumnIndex , int $ numberOfColumns = 1 )
2689
+ public function insertNewColumnBeforeByIndex (int $ beforeColumnIndex , int $ numberOfColumns = 1 ): static
2690
2690
{
2691
2691
if ($ beforeColumnIndex >= 1 ) {
2692
2692
return $ this ->insertNewColumnBefore (Coordinate::stringFromColumnIndex ($ beforeColumnIndex ), $ numberOfColumns );
@@ -2821,7 +2821,7 @@ private function removeColumnDimensions(int $pColumnIndex, int $numberOfColumns)
2821
2821
*
2822
2822
* @return $this
2823
2823
*/
2824
- public function removeColumnByIndex (int $ columnIndex , int $ numColumns = 1 )
2824
+ public function removeColumnByIndex (int $ columnIndex , int $ numColumns = 1 ): static
2825
2825
{
2826
2826
if ($ columnIndex >= 1 ) {
2827
2827
return $ this ->removeColumn (Coordinate::stringFromColumnIndex ($ columnIndex ), $ numColumns );
@@ -3064,7 +3064,7 @@ public function getSelectedCells()
3064
3064
*
3065
3065
* @return $this
3066
3066
*/
3067
- public function setSelectedCell ($ coordinate )
3067
+ public function setSelectedCell ($ coordinate ): static
3068
3068
{
3069
3069
return $ this ->setSelectedCells ($ coordinate );
3070
3070
}
@@ -3129,7 +3129,7 @@ private function setSelectedCellsActivePane(): void
3129
3129
*
3130
3130
* @return $this
3131
3131
*/
3132
- public function setSelectedCellByColumnAndRow ($ columnIndex , $ row )
3132
+ public function setSelectedCellByColumnAndRow ($ columnIndex , $ row ): static
3133
3133
{
3134
3134
return $ this ->setSelectedCells (Coordinate::stringFromColumnIndex ($ columnIndex ) . $ row );
3135
3135
}
0 commit comments