PluginProbe
TablePress – Tables in WordPress made easy / 3.4
TablePress – Tables in WordPress made easy v3.4
3.4 3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 All 45 releases
tablepress / libraries / vendor / PhpSpreadsheet / Shared / Escher / DgContainer.php

DgContainer.php in TablePress – Tables in WordPress made easy 3.4, at libraries/vendor/PhpSpreadsheet/Shared/Escher/DgContainer.php

61 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace TablePress\PhpOffice\PhpSpreadsheet\Shared\Escher;
4
5 use TablePress\PhpOffice\PhpSpreadsheet\Exception as SpreadsheetException;
6 use TablePress\PhpOffice\PhpSpreadsheet\Shared\Escher\DgContainer\SpgrContainer;
7
8 class DgContainer
9 {
10 /**
11 * Drawing index, 1-based.
12 */
13 private ?int $dgId = null;
14
15 /**
16 * Last shape index in this drawing.
17 */
18 private ?int $lastSpId = null;
19
20 private ?SpgrContainer $spgrContainer = null;
21
22 public function getDgId(): ?int
23 {
24 return $this->dgId;
25 }
26
27 public function setDgId(int $value): void
28 {
29 $this->dgId = $value;
30 }
31
32 public function getLastSpId(): ?int
33 {
34 return $this->lastSpId;
35 }
36
37 public function setLastSpId(int $value): void
38 {
39 $this->lastSpId = $value;
40 }
41
42 public function getSpgrContainer(): ?SpgrContainer
43 {
44 return $this->spgrContainer;
45 }
46
47 public function getSpgrContainerOrThrow(): SpgrContainer
48 {
49 if ($this->spgrContainer !== null) {
50 return $this->spgrContainer;
51 }
52
53 throw new SpreadsheetException('spgrContainer is unexpectedly null');
54 }
55
56 public function setSpgrContainer(SpgrContainer $spgrContainer): SpgrContainer
57 {
58 return $this->spgrContainer = $spgrContainer;
59 }
60 }
61