PluginProbe
wpDataTables – WordPress Data Table, Dynamic Tables & Table Charts Plugin / 6.5.1.7
wpDataTables – WordPress Data Table, Dynamic Tables & Table Charts Plugin v6.5.1.7
6.5.1.7 6.5.1.6 6.5.1.5 6.5.1.4 6.5.1.3 6.5.1.2 6.5.1.1 6.5.0.9 6.5.0.8 6.5.0.7 6.5.0.6 trunk 3.4.2.40 3.4.2.41 3.4.2.42 3.4.2.43 3.4.2.44 3.4.2.45 3.4.2.46 3.4.2.47 3.4.2.48 3.4.2.49 3.4.2.50 6.3.2 6.3.3.1 All 47 releases
wpdatatables / lib / phpoffice / phpspreadsheet / src / PhpSpreadsheet / Worksheet / PageBreak.php

PageBreak.php in wpDataTables – WordPress Data Table, Dynamic Tables & Table Charts Plugin 6.5.1.7, at lib/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/PageBreak.php

59 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 use PhpOffice\PhpSpreadsheet\Calculation\Functions;
6 use PhpOffice\PhpSpreadsheet\Cell\CellAddress;
7 use PhpOffice\PhpSpreadsheet\Cell\Coordinate;
8
9 class PageBreak
10 {
11 /** @var int */
12 private $breakType;
13
14 /** @var string */
15 private $coordinate;
16
17 /** @var int */
18 private $maxColOrRow;
19
20 /** @param array|CellAddress|string $coordinate */
21 public function __construct(int $breakType, $coordinate, int $maxColOrRow = -1)
22 {
23 $coordinate = Functions::trimSheetFromCellReference(Validations::validateCellAddress($coordinate));
24 $this->breakType = $breakType;
25 $this->coordinate = $coordinate;
26 $this->maxColOrRow = $maxColOrRow;
27 }
28
29 public function getBreakType(): int
30 {
31 return $this->breakType;
32 }
33
34 public function getCoordinate(): string
35 {
36 return $this->coordinate;
37 }
38
39 public function getMaxColOrRow(): int
40 {
41 return $this->maxColOrRow;
42 }
43
44 public function getColumnInt(): int
45 {
46 return Coordinate::indexesFromString($this->coordinate)[0];
47 }
48
49 public function getRow(): int
50 {
51 return Coordinate::indexesFromString($this->coordinate)[1];
52 }
53
54 public function getColumnString(): string
55 {
56 return Coordinate::indexesFromString($this->coordinate)[2];
57 }
58 }
59