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 / DggContainer.php

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

164 lines 3.0 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
7 class DggContainer
8 {
9 /**
10 * Maximum shape index of all shapes in all drawings increased by one.
11 */
12 private int $spIdMax;
13
14 /**
15 * Total number of drawings saved.
16 */
17 private int $cDgSaved;
18
19 /**
20 * Total number of shapes saved (including group shapes).
21 */
22 private int $cSpSaved;
23
24 /**
25 * BLIP Store Container.
26 */
27 private ?DggContainer\BstoreContainer $bstoreContainer = null;
28
29 /**
30 * Array of options for the drawing group.
31 *
32 * @var mixed[]
33 */
34 private array $OPT = [];
35
36 /**
37 * Array of identifier clusters containing information about the maximum shape identifiers.
38 *
39 * @var mixed[]
40 */
41 private array $IDCLs = [];
42
43 /**
44 * Get maximum shape index of all shapes in all drawings (plus one).
45 */
46 public function getSpIdMax(): int
47 {
48 return $this->spIdMax;
49 }
50
51 /**
52 * Set maximum shape index of all shapes in all drawings (plus one).
53 */
54 public function setSpIdMax(int $value): void
55 {
56 $this->spIdMax = $value;
57 }
58
59 /**
60 * Get total number of drawings saved.
61 */
62 public function getCDgSaved(): int
63 {
64 return $this->cDgSaved;
65 }
66
67 /**
68 * Set total number of drawings saved.
69 */
70 public function setCDgSaved(int $value): void
71 {
72 $this->cDgSaved = $value;
73 }
74
75 /**
76 * Get total number of shapes saved (including group shapes).
77 */
78 public function getCSpSaved(): int
79 {
80 return $this->cSpSaved;
81 }
82
83 /**
84 * Set total number of shapes saved (including group shapes).
85 */
86 public function setCSpSaved(int $value): void
87 {
88 $this->cSpSaved = $value;
89 }
90
91 /**
92 * Get BLIP Store Container.
93 */
94 public function getBstoreContainer(): ?DggContainer\BstoreContainer
95 {
96 return $this->bstoreContainer;
97 }
98
99 /**
100 * Get BLIP Store Container.
101 */
102 public function getBstoreContainerOrThrow(): DggContainer\BstoreContainer
103 {
104 if (!isset($this->bstoreContainer)) {
105 throw new SpreadsheetException('bstoreContainer is unexpectedly null');
106 }
107 return $this->bstoreContainer;
108 }
109
110 /**
111 * Set BLIP Store Container.
112 */
113 public function setBstoreContainer(DggContainer\BstoreContainer $bstoreContainer): void
114 {
115 $this->bstoreContainer = $bstoreContainer;
116 }
117
118 /**
119 * Set an option for the drawing group.
120 *
121 * @param int $property The number specifies the option
122 * @param mixed $value
123 */
124 public function setOPT(int $property, $value): void
125 {
126 $this->OPT[$property] = $value;
127 }
128
129 /**
130 * Get an option for the drawing group.
131 *
132 * @param int $property The number specifies the option
133 * @return mixed
134 */
135 public function getOPT(int $property)
136 {
137 if (isset($this->OPT[$property])) {
138 return $this->OPT[$property];
139 }
140
141 return null;
142 }
143
144 /**
145 * Get identifier clusters.
146 *
147 * @return mixed[]
148 */
149 public function getIDCLs(): array
150 {
151 return $this->IDCLs;
152 }
153
154 /**
155 * Set identifier clusters. [<drawingId> => <max shape id>, ...].
156 *
157 * @param mixed[] $IDCLs
158 */
159 public function setIDCLs(array $IDCLs): void
160 {
161 $this->IDCLs = $IDCLs;
162 }
163 }
164