@@ -12,11 +12,11 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | class Data extends ArrayAccess implements JsonSerializable |
| 14 | 14 | { |
| 15 | - /** |
|
| 16 | - * @return array |
|
| 17 | - */ |
|
| 18 | - public function jsonSerialize() |
|
| 19 | - { |
|
| 20 | - return $this->data; |
|
| 21 | - } |
|
| 15 | + /** |
|
| 16 | + * @return array |
|
| 17 | + */ |
|
| 18 | + public function jsonSerialize() |
|
| 19 | + { |
|
| 20 | + return $this->data; |
|
| 21 | + } |
|
| 22 | 22 | } |
@@ -13,348 +13,348 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | class DataSet implements ChartOwnedInterface, ArraySerializableInterface, JsonSerializable |
| 15 | 15 | { |
| 16 | - use ChartOwned; |
|
| 17 | - use ArraySerializable; |
|
| 18 | - |
|
| 19 | - /** |
|
| 20 | - * @var string |
|
| 21 | - */ |
|
| 22 | - protected $type; |
|
| 23 | - |
|
| 24 | - /** |
|
| 25 | - * @var Data |
|
| 26 | - */ |
|
| 27 | - protected $data; |
|
| 28 | - |
|
| 29 | - /** |
|
| 30 | - * @var string |
|
| 31 | - */ |
|
| 32 | - protected $label; |
|
| 33 | - |
|
| 34 | - /** |
|
| 35 | - * @var string |
|
| 36 | - */ |
|
| 37 | - protected $xAxisID; |
|
| 38 | - |
|
| 39 | - /** |
|
| 40 | - * @var string |
|
| 41 | - */ |
|
| 42 | - protected $yAxisID; |
|
| 43 | - |
|
| 44 | - /** |
|
| 45 | - * @var string|string[] |
|
| 46 | - */ |
|
| 47 | - protected $backgroundColor; |
|
| 48 | - |
|
| 49 | - /** |
|
| 50 | - * @var string|string[] |
|
| 51 | - */ |
|
| 52 | - protected $borderColor; |
|
| 53 | - |
|
| 54 | - /** |
|
| 55 | - * @var int|int[] |
|
| 56 | - */ |
|
| 57 | - protected $borderWidth; |
|
| 58 | - |
|
| 59 | - /** |
|
| 60 | - * @var string |
|
| 61 | - */ |
|
| 62 | - protected $borderSkipped; |
|
| 63 | - |
|
| 64 | - /** |
|
| 65 | - * @var string|string[] |
|
| 66 | - */ |
|
| 67 | - protected $hoverBackgroundColor; |
|
| 68 | - |
|
| 69 | - /** |
|
| 70 | - * @var string|string[] |
|
| 71 | - */ |
|
| 72 | - protected $hoverBorderColor; |
|
| 73 | - |
|
| 74 | - /** |
|
| 75 | - * @var int|int[] |
|
| 76 | - */ |
|
| 77 | - protected $hoverBorderWidth; |
|
| 78 | - |
|
| 79 | - /** |
|
| 80 | - * @return string |
|
| 81 | - */ |
|
| 82 | - public function getType() |
|
| 83 | - { |
|
| 84 | - return $this->type; |
|
| 85 | - } |
|
| 86 | - |
|
| 87 | - /** |
|
| 88 | - * @param string $type |
|
| 89 | - * |
|
| 90 | - * @return $this |
|
| 91 | - */ |
|
| 92 | - public function setType($type) |
|
| 93 | - { |
|
| 94 | - $this->type = $type; |
|
| 95 | - |
|
| 96 | - return $this; |
|
| 97 | - } |
|
| 98 | - |
|
| 99 | - /** |
|
| 100 | - * @return Data |
|
| 101 | - */ |
|
| 102 | - public function data() |
|
| 103 | - { |
|
| 104 | - if (is_null($this->data)) { |
|
| 105 | - $this->data = new Data(); |
|
| 106 | - } |
|
| 107 | - |
|
| 108 | - return $this->data; |
|
| 109 | - } |
|
| 110 | - |
|
| 111 | - /** |
|
| 112 | - * @return string |
|
| 113 | - */ |
|
| 114 | - public function getLabel() |
|
| 115 | - { |
|
| 116 | - return $this->label; |
|
| 117 | - } |
|
| 118 | - |
|
| 119 | - /** |
|
| 120 | - * @param string $label |
|
| 121 | - * |
|
| 122 | - * @return $this |
|
| 123 | - */ |
|
| 124 | - public function setLabel($label) |
|
| 125 | - { |
|
| 126 | - $this->label = strval($label); |
|
| 127 | - |
|
| 128 | - return $this; |
|
| 129 | - } |
|
| 130 | - |
|
| 131 | - /** |
|
| 132 | - * @return string |
|
| 133 | - */ |
|
| 134 | - public function getXAxisID() |
|
| 135 | - { |
|
| 136 | - return $this->xAxisID; |
|
| 137 | - } |
|
| 138 | - |
|
| 139 | - /** |
|
| 140 | - * @param string $xAxisID |
|
| 141 | - * |
|
| 142 | - * @return $this |
|
| 143 | - */ |
|
| 144 | - public function setXAxisID($xAxisID) |
|
| 145 | - { |
|
| 146 | - $this->xAxisID = strval($xAxisID); |
|
| 147 | - |
|
| 148 | - return $this; |
|
| 149 | - } |
|
| 150 | - |
|
| 151 | - /** |
|
| 152 | - * @return string |
|
| 153 | - */ |
|
| 154 | - public function getYAxisID() |
|
| 155 | - { |
|
| 156 | - return $this->yAxisID; |
|
| 157 | - } |
|
| 158 | - |
|
| 159 | - /** |
|
| 160 | - * @param string $yAxisID |
|
| 161 | - * |
|
| 162 | - * @return $this |
|
| 163 | - */ |
|
| 164 | - public function setYAxisID($yAxisID) |
|
| 165 | - { |
|
| 166 | - $this->yAxisID = strval($yAxisID); |
|
| 167 | - |
|
| 168 | - return $this; |
|
| 169 | - } |
|
| 170 | - |
|
| 171 | - /** |
|
| 172 | - * @return string|string[] |
|
| 173 | - */ |
|
| 174 | - public function getBackgroundColor() |
|
| 175 | - { |
|
| 176 | - return $this->backgroundColor; |
|
| 177 | - } |
|
| 178 | - |
|
| 179 | - /** |
|
| 180 | - * @param string|string[] $backgroundColor |
|
| 181 | - * |
|
| 182 | - * @return $this |
|
| 183 | - */ |
|
| 184 | - public function setBackgroundColor($backgroundColor) |
|
| 185 | - { |
|
| 186 | - if (is_array($backgroundColor)) { |
|
| 187 | - $backgroundColor = array_map('strval', $backgroundColor); |
|
| 188 | - } |
|
| 189 | - if (! is_array($backgroundColor)) { |
|
| 190 | - $backgroundColor = strval($backgroundColor); |
|
| 191 | - } |
|
| 192 | - |
|
| 193 | - $this->backgroundColor = $backgroundColor; |
|
| 194 | - |
|
| 195 | - return $this; |
|
| 196 | - } |
|
| 197 | - |
|
| 198 | - /** |
|
| 199 | - * @return string|string[] |
|
| 200 | - */ |
|
| 201 | - public function getBorderColor() |
|
| 202 | - { |
|
| 203 | - return $this->borderColor; |
|
| 204 | - } |
|
| 205 | - |
|
| 206 | - /** |
|
| 207 | - * @param string|string[] $borderColor |
|
| 208 | - * |
|
| 209 | - * @return $this |
|
| 210 | - */ |
|
| 211 | - public function setBorderColor($borderColor) |
|
| 212 | - { |
|
| 213 | - if (is_array($borderColor)) { |
|
| 214 | - $borderColor = array_map('strval', $borderColor); |
|
| 215 | - } |
|
| 216 | - if (! is_array($borderColor)) { |
|
| 217 | - $borderColor = strval($borderColor); |
|
| 218 | - } |
|
| 219 | - |
|
| 220 | - $this->borderColor = $borderColor; |
|
| 221 | - |
|
| 222 | - return $this; |
|
| 223 | - } |
|
| 224 | - |
|
| 225 | - /** |
|
| 226 | - * @return int|int[] |
|
| 227 | - */ |
|
| 228 | - public function getBorderWidth() |
|
| 229 | - { |
|
| 230 | - return $this->borderWidth; |
|
| 231 | - } |
|
| 232 | - |
|
| 233 | - /** |
|
| 234 | - * @param int|int[] $borderWidth |
|
| 235 | - * |
|
| 236 | - * @return $this |
|
| 237 | - */ |
|
| 238 | - public function setBorderWidth($borderWidth) |
|
| 239 | - { |
|
| 240 | - if (is_array($borderWidth)) { |
|
| 241 | - $borderWidth = array_map('intval', $borderWidth); |
|
| 242 | - } |
|
| 243 | - if (! is_array($borderWidth)) { |
|
| 244 | - $borderWidth = intval($borderWidth); |
|
| 245 | - } |
|
| 246 | - |
|
| 247 | - $this->borderWidth = $borderWidth; |
|
| 248 | - |
|
| 249 | - return $this; |
|
| 250 | - } |
|
| 251 | - |
|
| 252 | - /** |
|
| 253 | - * @return string |
|
| 254 | - */ |
|
| 255 | - public function getBorderSkipped() |
|
| 256 | - { |
|
| 257 | - return $this->borderSkipped; |
|
| 258 | - } |
|
| 259 | - |
|
| 260 | - /** |
|
| 261 | - * @param string $borderSkipped |
|
| 262 | - * |
|
| 263 | - * @return $this |
|
| 264 | - */ |
|
| 265 | - public function setBorderSkipped($borderSkipped) |
|
| 266 | - { |
|
| 267 | - $this->borderSkipped = strval($borderSkipped); |
|
| 268 | - |
|
| 269 | - return $this; |
|
| 270 | - } |
|
| 271 | - |
|
| 272 | - /** |
|
| 273 | - * @return string|string[] |
|
| 274 | - */ |
|
| 275 | - public function getHoverBackgroundColor() |
|
| 276 | - { |
|
| 277 | - return $this->hoverBackgroundColor; |
|
| 278 | - } |
|
| 279 | - |
|
| 280 | - /** |
|
| 281 | - * @param string|string[] $hoverBackgroundColor |
|
| 282 | - * |
|
| 283 | - * @return $this |
|
| 284 | - */ |
|
| 285 | - public function setHoverBackgroundColor($hoverBackgroundColor) |
|
| 286 | - { |
|
| 287 | - if (is_array($hoverBackgroundColor)) { |
|
| 288 | - $hoverBackgroundColor = array_map('strval', $hoverBackgroundColor); |
|
| 289 | - } |
|
| 290 | - if (! is_array($hoverBackgroundColor)) { |
|
| 291 | - $hoverBackgroundColor = strval($hoverBackgroundColor); |
|
| 292 | - } |
|
| 293 | - |
|
| 294 | - $this->hoverBackgroundColor = $hoverBackgroundColor; |
|
| 295 | - |
|
| 296 | - return $this; |
|
| 297 | - } |
|
| 298 | - |
|
| 299 | - /** |
|
| 300 | - * @return string|string[] |
|
| 301 | - */ |
|
| 302 | - public function getHoverBorderColor() |
|
| 303 | - { |
|
| 304 | - return $this->hoverBorderColor; |
|
| 305 | - } |
|
| 306 | - |
|
| 307 | - /** |
|
| 308 | - * @param string|string[] $hoverBorderColor |
|
| 309 | - * |
|
| 310 | - * @return $this |
|
| 311 | - */ |
|
| 312 | - public function setHoverBorderColor($hoverBorderColor) |
|
| 313 | - { |
|
| 314 | - if (is_array($hoverBorderColor)) { |
|
| 315 | - $hoverBorderColor = array_map('strval', $hoverBorderColor); |
|
| 316 | - } |
|
| 317 | - if (! is_array($hoverBorderColor)) { |
|
| 318 | - $hoverBorderColor = strval($hoverBorderColor); |
|
| 319 | - } |
|
| 320 | - |
|
| 321 | - $this->hoverBorderColor = $hoverBorderColor; |
|
| 322 | - |
|
| 323 | - return $this; |
|
| 324 | - } |
|
| 325 | - |
|
| 326 | - /** |
|
| 327 | - * @return int|int[] |
|
| 328 | - */ |
|
| 329 | - public function getHoverBorderWidth() |
|
| 330 | - { |
|
| 331 | - return $this->hoverBorderWidth; |
|
| 332 | - } |
|
| 333 | - |
|
| 334 | - /** |
|
| 335 | - * @param int|int[] $hoverBorderWidth |
|
| 336 | - * |
|
| 337 | - * @return $this |
|
| 338 | - */ |
|
| 339 | - public function setHoverBorderWidth($hoverBorderWidth) |
|
| 340 | - { |
|
| 341 | - if (is_array($hoverBorderWidth)) { |
|
| 342 | - $hoverBorderWidth = array_map('intval', $hoverBorderWidth); |
|
| 343 | - } |
|
| 344 | - if (! is_array($hoverBorderWidth)) { |
|
| 345 | - $hoverBorderWidth = intval($hoverBorderWidth); |
|
| 346 | - } |
|
| 347 | - |
|
| 348 | - $this->hoverBorderWidth = $hoverBorderWidth; |
|
| 349 | - |
|
| 350 | - return $this; |
|
| 351 | - } |
|
| 352 | - |
|
| 353 | - /** |
|
| 354 | - * @return array |
|
| 355 | - */ |
|
| 356 | - public function jsonSerialize() |
|
| 357 | - { |
|
| 358 | - return $this->getArrayCopy(); |
|
| 359 | - } |
|
| 16 | + use ChartOwned; |
|
| 17 | + use ArraySerializable; |
|
| 18 | + |
|
| 19 | + /** |
|
| 20 | + * @var string |
|
| 21 | + */ |
|
| 22 | + protected $type; |
|
| 23 | + |
|
| 24 | + /** |
|
| 25 | + * @var Data |
|
| 26 | + */ |
|
| 27 | + protected $data; |
|
| 28 | + |
|
| 29 | + /** |
|
| 30 | + * @var string |
|
| 31 | + */ |
|
| 32 | + protected $label; |
|
| 33 | + |
|
| 34 | + /** |
|
| 35 | + * @var string |
|
| 36 | + */ |
|
| 37 | + protected $xAxisID; |
|
| 38 | + |
|
| 39 | + /** |
|
| 40 | + * @var string |
|
| 41 | + */ |
|
| 42 | + protected $yAxisID; |
|
| 43 | + |
|
| 44 | + /** |
|
| 45 | + * @var string|string[] |
|
| 46 | + */ |
|
| 47 | + protected $backgroundColor; |
|
| 48 | + |
|
| 49 | + /** |
|
| 50 | + * @var string|string[] |
|
| 51 | + */ |
|
| 52 | + protected $borderColor; |
|
| 53 | + |
|
| 54 | + /** |
|
| 55 | + * @var int|int[] |
|
| 56 | + */ |
|
| 57 | + protected $borderWidth; |
|
| 58 | + |
|
| 59 | + /** |
|
| 60 | + * @var string |
|
| 61 | + */ |
|
| 62 | + protected $borderSkipped; |
|
| 63 | + |
|
| 64 | + /** |
|
| 65 | + * @var string|string[] |
|
| 66 | + */ |
|
| 67 | + protected $hoverBackgroundColor; |
|
| 68 | + |
|
| 69 | + /** |
|
| 70 | + * @var string|string[] |
|
| 71 | + */ |
|
| 72 | + protected $hoverBorderColor; |
|
| 73 | + |
|
| 74 | + /** |
|
| 75 | + * @var int|int[] |
|
| 76 | + */ |
|
| 77 | + protected $hoverBorderWidth; |
|
| 78 | + |
|
| 79 | + /** |
|
| 80 | + * @return string |
|
| 81 | + */ |
|
| 82 | + public function getType() |
|
| 83 | + { |
|
| 84 | + return $this->type; |
|
| 85 | + } |
|
| 86 | + |
|
| 87 | + /** |
|
| 88 | + * @param string $type |
|
| 89 | + * |
|
| 90 | + * @return $this |
|
| 91 | + */ |
|
| 92 | + public function setType($type) |
|
| 93 | + { |
|
| 94 | + $this->type = $type; |
|
| 95 | + |
|
| 96 | + return $this; |
|
| 97 | + } |
|
| 98 | + |
|
| 99 | + /** |
|
| 100 | + * @return Data |
|
| 101 | + */ |
|
| 102 | + public function data() |
|
| 103 | + { |
|
| 104 | + if (is_null($this->data)) { |
|
| 105 | + $this->data = new Data(); |
|
| 106 | + } |
|
| 107 | + |
|
| 108 | + return $this->data; |
|
| 109 | + } |
|
| 110 | + |
|
| 111 | + /** |
|
| 112 | + * @return string |
|
| 113 | + */ |
|
| 114 | + public function getLabel() |
|
| 115 | + { |
|
| 116 | + return $this->label; |
|
| 117 | + } |
|
| 118 | + |
|
| 119 | + /** |
|
| 120 | + * @param string $label |
|
| 121 | + * |
|
| 122 | + * @return $this |
|
| 123 | + */ |
|
| 124 | + public function setLabel($label) |
|
| 125 | + { |
|
| 126 | + $this->label = strval($label); |
|
| 127 | + |
|
| 128 | + return $this; |
|
| 129 | + } |
|
| 130 | + |
|
| 131 | + /** |
|
| 132 | + * @return string |
|
| 133 | + */ |
|
| 134 | + public function getXAxisID() |
|
| 135 | + { |
|
| 136 | + return $this->xAxisID; |
|
| 137 | + } |
|
| 138 | + |
|
| 139 | + /** |
|
| 140 | + * @param string $xAxisID |
|
| 141 | + * |
|
| 142 | + * @return $this |
|
| 143 | + */ |
|
| 144 | + public function setXAxisID($xAxisID) |
|
| 145 | + { |
|
| 146 | + $this->xAxisID = strval($xAxisID); |
|
| 147 | + |
|
| 148 | + return $this; |
|
| 149 | + } |
|
| 150 | + |
|
| 151 | + /** |
|
| 152 | + * @return string |
|
| 153 | + */ |
|
| 154 | + public function getYAxisID() |
|
| 155 | + { |
|
| 156 | + return $this->yAxisID; |
|
| 157 | + } |
|
| 158 | + |
|
| 159 | + /** |
|
| 160 | + * @param string $yAxisID |
|
| 161 | + * |
|
| 162 | + * @return $this |
|
| 163 | + */ |
|
| 164 | + public function setYAxisID($yAxisID) |
|
| 165 | + { |
|
| 166 | + $this->yAxisID = strval($yAxisID); |
|
| 167 | + |
|
| 168 | + return $this; |
|
| 169 | + } |
|
| 170 | + |
|
| 171 | + /** |
|
| 172 | + * @return string|string[] |
|
| 173 | + */ |
|
| 174 | + public function getBackgroundColor() |
|
| 175 | + { |
|
| 176 | + return $this->backgroundColor; |
|
| 177 | + } |
|
| 178 | + |
|
| 179 | + /** |
|
| 180 | + * @param string|string[] $backgroundColor |
|
| 181 | + * |
|
| 182 | + * @return $this |
|
| 183 | + */ |
|
| 184 | + public function setBackgroundColor($backgroundColor) |
|
| 185 | + { |
|
| 186 | + if (is_array($backgroundColor)) { |
|
| 187 | + $backgroundColor = array_map('strval', $backgroundColor); |
|
| 188 | + } |
|
| 189 | + if (! is_array($backgroundColor)) { |
|
| 190 | + $backgroundColor = strval($backgroundColor); |
|
| 191 | + } |
|
| 192 | + |
|
| 193 | + $this->backgroundColor = $backgroundColor; |
|
| 194 | + |
|
| 195 | + return $this; |
|
| 196 | + } |
|
| 197 | + |
|
| 198 | + /** |
|
| 199 | + * @return string|string[] |
|
| 200 | + */ |
|
| 201 | + public function getBorderColor() |
|
| 202 | + { |
|
| 203 | + return $this->borderColor; |
|
| 204 | + } |
|
| 205 | + |
|
| 206 | + /** |
|
| 207 | + * @param string|string[] $borderColor |
|
| 208 | + * |
|
| 209 | + * @return $this |
|
| 210 | + */ |
|
| 211 | + public function setBorderColor($borderColor) |
|
| 212 | + { |
|
| 213 | + if (is_array($borderColor)) { |
|
| 214 | + $borderColor = array_map('strval', $borderColor); |
|
| 215 | + } |
|
| 216 | + if (! is_array($borderColor)) { |
|
| 217 | + $borderColor = strval($borderColor); |
|
| 218 | + } |
|
| 219 | + |
|
| 220 | + $this->borderColor = $borderColor; |
|
| 221 | + |
|
| 222 | + return $this; |
|
| 223 | + } |
|
| 224 | + |
|
| 225 | + /** |
|
| 226 | + * @return int|int[] |
|
| 227 | + */ |
|
| 228 | + public function getBorderWidth() |
|
| 229 | + { |
|
| 230 | + return $this->borderWidth; |
|
| 231 | + } |
|
| 232 | + |
|
| 233 | + /** |
|
| 234 | + * @param int|int[] $borderWidth |
|
| 235 | + * |
|
| 236 | + * @return $this |
|
| 237 | + */ |
|
| 238 | + public function setBorderWidth($borderWidth) |
|
| 239 | + { |
|
| 240 | + if (is_array($borderWidth)) { |
|
| 241 | + $borderWidth = array_map('intval', $borderWidth); |
|
| 242 | + } |
|
| 243 | + if (! is_array($borderWidth)) { |
|
| 244 | + $borderWidth = intval($borderWidth); |
|
| 245 | + } |
|
| 246 | + |
|
| 247 | + $this->borderWidth = $borderWidth; |
|
| 248 | + |
|
| 249 | + return $this; |
|
| 250 | + } |
|
| 251 | + |
|
| 252 | + /** |
|
| 253 | + * @return string |
|
| 254 | + */ |
|
| 255 | + public function getBorderSkipped() |
|
| 256 | + { |
|
| 257 | + return $this->borderSkipped; |
|
| 258 | + } |
|
| 259 | + |
|
| 260 | + /** |
|
| 261 | + * @param string $borderSkipped |
|
| 262 | + * |
|
| 263 | + * @return $this |
|
| 264 | + */ |
|
| 265 | + public function setBorderSkipped($borderSkipped) |
|
| 266 | + { |
|
| 267 | + $this->borderSkipped = strval($borderSkipped); |
|
| 268 | + |
|
| 269 | + return $this; |
|
| 270 | + } |
|
| 271 | + |
|
| 272 | + /** |
|
| 273 | + * @return string|string[] |
|
| 274 | + */ |
|
| 275 | + public function getHoverBackgroundColor() |
|
| 276 | + { |
|
| 277 | + return $this->hoverBackgroundColor; |
|
| 278 | + } |
|
| 279 | + |
|
| 280 | + /** |
|
| 281 | + * @param string|string[] $hoverBackgroundColor |
|
| 282 | + * |
|
| 283 | + * @return $this |
|
| 284 | + */ |
|
| 285 | + public function setHoverBackgroundColor($hoverBackgroundColor) |
|
| 286 | + { |
|
| 287 | + if (is_array($hoverBackgroundColor)) { |
|
| 288 | + $hoverBackgroundColor = array_map('strval', $hoverBackgroundColor); |
|
| 289 | + } |
|
| 290 | + if (! is_array($hoverBackgroundColor)) { |
|
| 291 | + $hoverBackgroundColor = strval($hoverBackgroundColor); |
|
| 292 | + } |
|
| 293 | + |
|
| 294 | + $this->hoverBackgroundColor = $hoverBackgroundColor; |
|
| 295 | + |
|
| 296 | + return $this; |
|
| 297 | + } |
|
| 298 | + |
|
| 299 | + /** |
|
| 300 | + * @return string|string[] |
|
| 301 | + */ |
|
| 302 | + public function getHoverBorderColor() |
|
| 303 | + { |
|
| 304 | + return $this->hoverBorderColor; |
|
| 305 | + } |
|
| 306 | + |
|
| 307 | + /** |
|
| 308 | + * @param string|string[] $hoverBorderColor |
|
| 309 | + * |
|
| 310 | + * @return $this |
|
| 311 | + */ |
|
| 312 | + public function setHoverBorderColor($hoverBorderColor) |
|
| 313 | + { |
|
| 314 | + if (is_array($hoverBorderColor)) { |
|
| 315 | + $hoverBorderColor = array_map('strval', $hoverBorderColor); |
|
| 316 | + } |
|
| 317 | + if (! is_array($hoverBorderColor)) { |
|
| 318 | + $hoverBorderColor = strval($hoverBorderColor); |
|
| 319 | + } |
|
| 320 | + |
|
| 321 | + $this->hoverBorderColor = $hoverBorderColor; |
|
| 322 | + |
|
| 323 | + return $this; |
|
| 324 | + } |
|
| 325 | + |
|
| 326 | + /** |
|
| 327 | + * @return int|int[] |
|
| 328 | + */ |
|
| 329 | + public function getHoverBorderWidth() |
|
| 330 | + { |
|
| 331 | + return $this->hoverBorderWidth; |
|
| 332 | + } |
|
| 333 | + |
|
| 334 | + /** |
|
| 335 | + * @param int|int[] $hoverBorderWidth |
|
| 336 | + * |
|
| 337 | + * @return $this |
|
| 338 | + */ |
|
| 339 | + public function setHoverBorderWidth($hoverBorderWidth) |
|
| 340 | + { |
|
| 341 | + if (is_array($hoverBorderWidth)) { |
|
| 342 | + $hoverBorderWidth = array_map('intval', $hoverBorderWidth); |
|
| 343 | + } |
|
| 344 | + if (! is_array($hoverBorderWidth)) { |
|
| 345 | + $hoverBorderWidth = intval($hoverBorderWidth); |
|
| 346 | + } |
|
| 347 | + |
|
| 348 | + $this->hoverBorderWidth = $hoverBorderWidth; |
|
| 349 | + |
|
| 350 | + return $this; |
|
| 351 | + } |
|
| 352 | + |
|
| 353 | + /** |
|
| 354 | + * @return array |
|
| 355 | + */ |
|
| 356 | + public function jsonSerialize() |
|
| 357 | + { |
|
| 358 | + return $this->getArrayCopy(); |
|
| 359 | + } |
|
| 360 | 360 | } |
@@ -12,25 +12,25 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | class DataSetCollection extends ArrayAccess implements JsonSerializable |
| 14 | 14 | { |
| 15 | - /** |
|
| 16 | - * @return array |
|
| 17 | - */ |
|
| 18 | - public function getArrayCopy() |
|
| 19 | - { |
|
| 20 | - $rows = []; |
|
| 21 | - foreach ($this->data as $row) { |
|
| 22 | - /** @var DataSet $row */ |
|
| 23 | - $rows[] = $row->getArrayCopy(); |
|
| 24 | - } |
|
| 15 | + /** |
|
| 16 | + * @return array |
|
| 17 | + */ |
|
| 18 | + public function getArrayCopy() |
|
| 19 | + { |
|
| 20 | + $rows = []; |
|
| 21 | + foreach ($this->data as $row) { |
|
| 22 | + /** @var DataSet $row */ |
|
| 23 | + $rows[] = $row->getArrayCopy(); |
|
| 24 | + } |
|
| 25 | 25 | |
| 26 | - return $rows; |
|
| 27 | - } |
|
| 26 | + return $rows; |
|
| 27 | + } |
|
| 28 | 28 | |
| 29 | - /** |
|
| 30 | - * @return array |
|
| 31 | - */ |
|
| 32 | - public function jsonSerialize() |
|
| 33 | - { |
|
| 34 | - return $this->getArrayCopy(); |
|
| 35 | - } |
|
| 29 | + /** |
|
| 30 | + * @return array |
|
| 31 | + */ |
|
| 32 | + public function jsonSerialize() |
|
| 33 | + { |
|
| 34 | + return $this->getArrayCopy(); |
|
| 35 | + } |
|
| 36 | 36 | } |
@@ -17,10 +17,10 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | public function getArrayCopy() |
| 19 | 19 | { |
| 20 | - $rows = []; |
|
| 20 | + $rows = [ ]; |
|
| 21 | 21 | foreach ($this->data as $row) { |
| 22 | 22 | /** @var DataSet $row */ |
| 23 | - $rows[] = $row->getArrayCopy(); |
|
| 23 | + $rows[ ] = $row->getArrayCopy(); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | return $rows; |
@@ -12,11 +12,11 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | class LabelsCollection extends ArrayAccess implements JsonSerializable |
| 14 | 14 | { |
| 15 | - /** |
|
| 16 | - * @return array |
|
| 17 | - */ |
|
| 18 | - public function jsonSerialize() |
|
| 19 | - { |
|
| 20 | - return $this->data; |
|
| 21 | - } |
|
| 15 | + /** |
|
| 16 | + * @return array |
|
| 17 | + */ |
|
| 18 | + public function jsonSerialize() |
|
| 19 | + { |
|
| 20 | + return $this->data; |
|
| 21 | + } |
|
| 22 | 22 | } |
@@ -21,204 +21,204 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | class Options implements ChartOwnedInterface, ArraySerializableInterface, JsonSerializable |
| 23 | 23 | { |
| 24 | - use ChartOwned; |
|
| 25 | - use ArraySerializable; |
|
| 26 | - |
|
| 27 | - /** |
|
| 28 | - * @var Layout |
|
| 29 | - */ |
|
| 30 | - protected $layout; |
|
| 31 | - |
|
| 32 | - /** |
|
| 33 | - * @var Title |
|
| 34 | - */ |
|
| 35 | - protected $title; |
|
| 36 | - |
|
| 37 | - /** |
|
| 38 | - * @var Elements |
|
| 39 | - */ |
|
| 40 | - protected $elements; |
|
| 41 | - |
|
| 42 | - /** |
|
| 43 | - * @var Hover |
|
| 44 | - */ |
|
| 45 | - protected $hover; |
|
| 46 | - |
|
| 47 | - /** |
|
| 48 | - * @var \Zend\Json\Expr |
|
| 49 | - */ |
|
| 50 | - protected $onClick; |
|
| 51 | - |
|
| 52 | - /** |
|
| 53 | - * @var Scales |
|
| 54 | - */ |
|
| 55 | - protected $scales; |
|
| 56 | - |
|
| 57 | - /** |
|
| 58 | - * @var Animation |
|
| 59 | - */ |
|
| 60 | - protected $animation; |
|
| 61 | - |
|
| 62 | - /** |
|
| 63 | - * @var Legend |
|
| 64 | - */ |
|
| 65 | - protected $legend; |
|
| 66 | - |
|
| 67 | - /** |
|
| 68 | - * @var Tooltips |
|
| 69 | - */ |
|
| 70 | - protected $tooltips; |
|
| 71 | - |
|
| 72 | - /** |
|
| 73 | - * @var bool |
|
| 74 | - */ |
|
| 75 | - protected $maintainAspectRatio; |
|
| 76 | - |
|
| 77 | - /** |
|
| 78 | - * @return Layout |
|
| 79 | - */ |
|
| 80 | - public function getLayout() |
|
| 81 | - { |
|
| 82 | - if (is_null($this->layout)) { |
|
| 83 | - $this->layout = new Layout(); |
|
| 84 | - } |
|
| 85 | - |
|
| 86 | - return $this->layout; |
|
| 87 | - } |
|
| 88 | - |
|
| 89 | - /** |
|
| 90 | - * @return Elements |
|
| 91 | - */ |
|
| 92 | - public function getElements() |
|
| 93 | - { |
|
| 94 | - if (is_null($this->elements)) { |
|
| 95 | - $this->elements = new Elements(); |
|
| 96 | - } |
|
| 97 | - |
|
| 98 | - return $this->elements; |
|
| 99 | - } |
|
| 100 | - |
|
| 101 | - /** |
|
| 102 | - * @return Title |
|
| 103 | - */ |
|
| 104 | - public function getTitle() |
|
| 105 | - { |
|
| 106 | - if (is_null($this->title)) { |
|
| 107 | - $this->title = new Title(); |
|
| 108 | - } |
|
| 109 | - |
|
| 110 | - return $this->title; |
|
| 111 | - } |
|
| 112 | - |
|
| 113 | - /** |
|
| 114 | - * @return Hover |
|
| 115 | - */ |
|
| 116 | - public function getHover() |
|
| 117 | - { |
|
| 118 | - if (is_null($this->hover)) { |
|
| 119 | - $this->hover = new Hover(); |
|
| 120 | - } |
|
| 121 | - |
|
| 122 | - return $this->hover; |
|
| 123 | - } |
|
| 124 | - |
|
| 125 | - /** |
|
| 126 | - * @return \Zend\Json\Expr |
|
| 127 | - */ |
|
| 128 | - public function getOnClick() |
|
| 129 | - { |
|
| 130 | - return $this->onClick; |
|
| 131 | - } |
|
| 132 | - |
|
| 133 | - /** |
|
| 134 | - * @param string $onClick |
|
| 135 | - * |
|
| 136 | - * @return $this |
|
| 137 | - */ |
|
| 138 | - public function setOnClick($onClick) |
|
| 139 | - { |
|
| 140 | - $this->onClick = new Expr(strval($onClick)); |
|
| 141 | - |
|
| 142 | - return $this; |
|
| 143 | - } |
|
| 144 | - |
|
| 145 | - /** |
|
| 146 | - * @return Scales |
|
| 147 | - */ |
|
| 148 | - public function getScales() |
|
| 149 | - { |
|
| 150 | - if (is_null($this->scales)) { |
|
| 151 | - $this->scales = new Scales(); |
|
| 152 | - } |
|
| 153 | - |
|
| 154 | - return $this->scales; |
|
| 155 | - } |
|
| 156 | - |
|
| 157 | - /** |
|
| 158 | - * @return Animation |
|
| 159 | - */ |
|
| 160 | - public function getAnimation() |
|
| 161 | - { |
|
| 162 | - if (is_null($this->animation)) { |
|
| 163 | - $this->animation = new Animation(); |
|
| 164 | - } |
|
| 165 | - |
|
| 166 | - return $this->animation; |
|
| 167 | - } |
|
| 168 | - |
|
| 169 | - /** |
|
| 170 | - * @return Legend |
|
| 171 | - */ |
|
| 172 | - public function getLegend() |
|
| 173 | - { |
|
| 174 | - if (is_null($this->legend)) { |
|
| 175 | - $this->legend = new Legend(); |
|
| 176 | - } |
|
| 177 | - |
|
| 178 | - return $this->legend; |
|
| 179 | - } |
|
| 180 | - |
|
| 181 | - /** |
|
| 182 | - * @return Tooltips |
|
| 183 | - */ |
|
| 184 | - public function getTooltips() |
|
| 185 | - { |
|
| 186 | - if (is_null($this->tooltips)) { |
|
| 187 | - $this->tooltips = new Tooltips(); |
|
| 188 | - } |
|
| 189 | - |
|
| 190 | - return $this->tooltips; |
|
| 191 | - } |
|
| 192 | - |
|
| 193 | - /** |
|
| 194 | - * @return bool |
|
| 195 | - */ |
|
| 196 | - public function isMaintainAspectRatio() |
|
| 197 | - { |
|
| 198 | - if (is_null($this->maintainAspectRatio)) { |
|
| 199 | - $this->maintainAspectRatio = true; |
|
| 200 | - } |
|
| 201 | - |
|
| 202 | - return $this->maintainAspectRatio; |
|
| 203 | - } |
|
| 204 | - |
|
| 205 | - /** |
|
| 206 | - * @param bool $flag |
|
| 207 | - * |
|
| 208 | - * @return $this |
|
| 209 | - */ |
|
| 210 | - public function setMaintainAspectRatio($flag) |
|
| 211 | - { |
|
| 212 | - $this->maintainAspectRatio = boolval($flag); |
|
| 213 | - |
|
| 214 | - return $this; |
|
| 215 | - } |
|
| 216 | - |
|
| 217 | - /** |
|
| 218 | - * @return array |
|
| 219 | - */ |
|
| 220 | - public function jsonSerialize() |
|
| 221 | - { |
|
| 222 | - return $this->getArrayCopy(); |
|
| 223 | - } |
|
| 24 | + use ChartOwned; |
|
| 25 | + use ArraySerializable; |
|
| 26 | + |
|
| 27 | + /** |
|
| 28 | + * @var Layout |
|
| 29 | + */ |
|
| 30 | + protected $layout; |
|
| 31 | + |
|
| 32 | + /** |
|
| 33 | + * @var Title |
|
| 34 | + */ |
|
| 35 | + protected $title; |
|
| 36 | + |
|
| 37 | + /** |
|
| 38 | + * @var Elements |
|
| 39 | + */ |
|
| 40 | + protected $elements; |
|
| 41 | + |
|
| 42 | + /** |
|
| 43 | + * @var Hover |
|
| 44 | + */ |
|
| 45 | + protected $hover; |
|
| 46 | + |
|
| 47 | + /** |
|
| 48 | + * @var \Zend\Json\Expr |
|
| 49 | + */ |
|
| 50 | + protected $onClick; |
|
| 51 | + |
|
| 52 | + /** |
|
| 53 | + * @var Scales |
|
| 54 | + */ |
|
| 55 | + protected $scales; |
|
| 56 | + |
|
| 57 | + /** |
|
| 58 | + * @var Animation |
|
| 59 | + */ |
|
| 60 | + protected $animation; |
|
| 61 | + |
|
| 62 | + /** |
|
| 63 | + * @var Legend |
|
| 64 | + */ |
|
| 65 | + protected $legend; |
|
| 66 | + |
|
| 67 | + /** |
|
| 68 | + * @var Tooltips |
|
| 69 | + */ |
|
| 70 | + protected $tooltips; |
|
| 71 | + |
|
| 72 | + /** |
|
| 73 | + * @var bool |
|
| 74 | + */ |
|
| 75 | + protected $maintainAspectRatio; |
|
| 76 | + |
|
| 77 | + /** |
|
| 78 | + * @return Layout |
|
| 79 | + */ |
|
| 80 | + public function getLayout() |
|
| 81 | + { |
|
| 82 | + if (is_null($this->layout)) { |
|
| 83 | + $this->layout = new Layout(); |
|
| 84 | + } |
|
| 85 | + |
|
| 86 | + return $this->layout; |
|
| 87 | + } |
|
| 88 | + |
|
| 89 | + /** |
|
| 90 | + * @return Elements |
|
| 91 | + */ |
|
| 92 | + public function getElements() |
|
| 93 | + { |
|
| 94 | + if (is_null($this->elements)) { |
|
| 95 | + $this->elements = new Elements(); |
|
| 96 | + } |
|
| 97 | + |
|
| 98 | + return $this->elements; |
|
| 99 | + } |
|
| 100 | + |
|
| 101 | + /** |
|
| 102 | + * @return Title |
|
| 103 | + */ |
|
| 104 | + public function getTitle() |
|
| 105 | + { |
|
| 106 | + if (is_null($this->title)) { |
|
| 107 | + $this->title = new Title(); |
|
| 108 | + } |
|
| 109 | + |
|
| 110 | + return $this->title; |
|
| 111 | + } |
|
| 112 | + |
|
| 113 | + /** |
|
| 114 | + * @return Hover |
|
| 115 | + */ |
|
| 116 | + public function getHover() |
|
| 117 | + { |
|
| 118 | + if (is_null($this->hover)) { |
|
| 119 | + $this->hover = new Hover(); |
|
| 120 | + } |
|
| 121 | + |
|
| 122 | + return $this->hover; |
|
| 123 | + } |
|
| 124 | + |
|
| 125 | + /** |
|
| 126 | + * @return \Zend\Json\Expr |
|
| 127 | + */ |
|
| 128 | + public function getOnClick() |
|
| 129 | + { |
|
| 130 | + return $this->onClick; |
|
| 131 | + } |
|
| 132 | + |
|
| 133 | + /** |
|
| 134 | + * @param string $onClick |
|
| 135 | + * |
|
| 136 | + * @return $this |
|
| 137 | + */ |
|
| 138 | + public function setOnClick($onClick) |
|
| 139 | + { |
|
| 140 | + $this->onClick = new Expr(strval($onClick)); |
|
| 141 | + |
|
| 142 | + return $this; |
|
| 143 | + } |
|
| 144 | + |
|
| 145 | + /** |
|
| 146 | + * @return Scales |
|
| 147 | + */ |
|
| 148 | + public function getScales() |
|
| 149 | + { |
|
| 150 | + if (is_null($this->scales)) { |
|
| 151 | + $this->scales = new Scales(); |
|
| 152 | + } |
|
| 153 | + |
|
| 154 | + return $this->scales; |
|
| 155 | + } |
|
| 156 | + |
|
| 157 | + /** |
|
| 158 | + * @return Animation |
|
| 159 | + */ |
|
| 160 | + public function getAnimation() |
|
| 161 | + { |
|
| 162 | + if (is_null($this->animation)) { |
|
| 163 | + $this->animation = new Animation(); |
|
| 164 | + } |
|
| 165 | + |
|
| 166 | + return $this->animation; |
|
| 167 | + } |
|
| 168 | + |
|
| 169 | + /** |
|
| 170 | + * @return Legend |
|
| 171 | + */ |
|
| 172 | + public function getLegend() |
|
| 173 | + { |
|
| 174 | + if (is_null($this->legend)) { |
|
| 175 | + $this->legend = new Legend(); |
|
| 176 | + } |
|
| 177 | + |
|
| 178 | + return $this->legend; |
|
| 179 | + } |
|
| 180 | + |
|
| 181 | + /** |
|
| 182 | + * @return Tooltips |
|
| 183 | + */ |
|
| 184 | + public function getTooltips() |
|
| 185 | + { |
|
| 186 | + if (is_null($this->tooltips)) { |
|
| 187 | + $this->tooltips = new Tooltips(); |
|
| 188 | + } |
|
| 189 | + |
|
| 190 | + return $this->tooltips; |
|
| 191 | + } |
|
| 192 | + |
|
| 193 | + /** |
|
| 194 | + * @return bool |
|
| 195 | + */ |
|
| 196 | + public function isMaintainAspectRatio() |
|
| 197 | + { |
|
| 198 | + if (is_null($this->maintainAspectRatio)) { |
|
| 199 | + $this->maintainAspectRatio = true; |
|
| 200 | + } |
|
| 201 | + |
|
| 202 | + return $this->maintainAspectRatio; |
|
| 203 | + } |
|
| 204 | + |
|
| 205 | + /** |
|
| 206 | + * @param bool $flag |
|
| 207 | + * |
|
| 208 | + * @return $this |
|
| 209 | + */ |
|
| 210 | + public function setMaintainAspectRatio($flag) |
|
| 211 | + { |
|
| 212 | + $this->maintainAspectRatio = boolval($flag); |
|
| 213 | + |
|
| 214 | + return $this; |
|
| 215 | + } |
|
| 216 | + |
|
| 217 | + /** |
|
| 218 | + * @return array |
|
| 219 | + */ |
|
| 220 | + public function jsonSerialize() |
|
| 221 | + { |
|
| 222 | + return $this->getArrayCopy(); |
|
| 223 | + } |
|
| 224 | 224 | } |
@@ -16,588 +16,588 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | abstract class Scale implements ArraySerializableInterface, JsonSerializable |
| 18 | 18 | { |
| 19 | - use ArraySerializable; |
|
| 20 | - |
|
| 21 | - /** |
|
| 22 | - * @var string |
|
| 23 | - */ |
|
| 24 | - protected $type; |
|
| 25 | - |
|
| 26 | - /** |
|
| 27 | - * @var bool |
|
| 28 | - */ |
|
| 29 | - protected $display; |
|
| 30 | - |
|
| 31 | - /** |
|
| 32 | - * @var string |
|
| 33 | - */ |
|
| 34 | - protected $id; |
|
| 35 | - |
|
| 36 | - /** |
|
| 37 | - * @var bool |
|
| 38 | - */ |
|
| 39 | - protected $stacked; |
|
| 40 | - |
|
| 41 | - /** |
|
| 42 | - * @var int |
|
| 43 | - */ |
|
| 44 | - protected $barThickness; |
|
| 45 | - |
|
| 46 | - /** |
|
| 47 | - * @var string |
|
| 48 | - */ |
|
| 49 | - protected $position; |
|
| 50 | - |
|
| 51 | - /** |
|
| 52 | - * @var string |
|
| 53 | - */ |
|
| 54 | - protected $beforeUpdate; |
|
| 55 | - |
|
| 56 | - /** |
|
| 57 | - * @var string |
|
| 58 | - */ |
|
| 59 | - protected $beforeSetDimensions; |
|
| 60 | - |
|
| 61 | - /** |
|
| 62 | - * @var string |
|
| 63 | - */ |
|
| 64 | - protected $afterSetDimensions; |
|
| 65 | - |
|
| 66 | - /** |
|
| 67 | - * @var string |
|
| 68 | - */ |
|
| 69 | - protected $beforeDataLimits; |
|
| 70 | - |
|
| 71 | - /** |
|
| 72 | - * @var string |
|
| 73 | - */ |
|
| 74 | - protected $afterDataLimits; |
|
| 75 | - |
|
| 76 | - /** |
|
| 77 | - * @var string |
|
| 78 | - */ |
|
| 79 | - protected $beforeBuildTicks; |
|
| 80 | - |
|
| 81 | - /** |
|
| 82 | - * @var string |
|
| 83 | - */ |
|
| 84 | - protected $afterBuildTicks; |
|
| 85 | - |
|
| 86 | - /** |
|
| 87 | - * @var string |
|
| 88 | - */ |
|
| 89 | - protected $beforeTickToLabelConversion; |
|
| 90 | - |
|
| 91 | - /** |
|
| 92 | - * @var string |
|
| 93 | - */ |
|
| 94 | - protected $afterTickToLabelConversion; |
|
| 95 | - |
|
| 96 | - /** |
|
| 97 | - * @var string |
|
| 98 | - */ |
|
| 99 | - protected $beforeCalculateTickRotation; |
|
| 100 | - |
|
| 101 | - /** |
|
| 102 | - * @var string |
|
| 103 | - */ |
|
| 104 | - protected $afterCalculateTickRotation; |
|
| 105 | - |
|
| 106 | - /** |
|
| 107 | - * @var string |
|
| 108 | - */ |
|
| 109 | - protected $beforeFit; |
|
| 110 | - |
|
| 111 | - /** |
|
| 112 | - * @var string |
|
| 113 | - */ |
|
| 114 | - protected $afterFit; |
|
| 115 | - |
|
| 116 | - /** |
|
| 117 | - * @var string |
|
| 118 | - */ |
|
| 119 | - protected $afterUpdate; |
|
| 120 | - |
|
| 121 | - /** |
|
| 122 | - * @var GridLines |
|
| 123 | - */ |
|
| 124 | - protected $gridLines; |
|
| 125 | - |
|
| 126 | - /** |
|
| 127 | - * @var ScaleLabel |
|
| 128 | - */ |
|
| 129 | - protected $scaleLabel; |
|
| 130 | - |
|
| 131 | - /** |
|
| 132 | - * @var Ticks |
|
| 133 | - */ |
|
| 134 | - protected $ticks; |
|
| 135 | - |
|
| 136 | - /** |
|
| 137 | - * @return string |
|
| 138 | - */ |
|
| 139 | - public function getType() |
|
| 140 | - { |
|
| 141 | - return $this->type; |
|
| 142 | - } |
|
| 143 | - |
|
| 144 | - /** |
|
| 145 | - * @param string $type |
|
| 146 | - * |
|
| 147 | - * @return $this |
|
| 148 | - */ |
|
| 149 | - public function setType($type) |
|
| 150 | - { |
|
| 151 | - $this->type = $type; |
|
| 152 | - |
|
| 153 | - return $this; |
|
| 154 | - } |
|
| 155 | - |
|
| 156 | - /** |
|
| 157 | - * @return bool |
|
| 158 | - */ |
|
| 159 | - public function isDisplay() |
|
| 160 | - { |
|
| 161 | - return $this->display; |
|
| 162 | - } |
|
| 163 | - |
|
| 164 | - /** |
|
| 165 | - * @param bool $display |
|
| 166 | - * |
|
| 167 | - * @return $this |
|
| 168 | - */ |
|
| 169 | - public function setDisplay($display) |
|
| 170 | - { |
|
| 171 | - $this->display = $display; |
|
| 172 | - |
|
| 173 | - return $this; |
|
| 174 | - } |
|
| 175 | - |
|
| 176 | - /** |
|
| 177 | - * @return string |
|
| 178 | - */ |
|
| 179 | - public function getId() |
|
| 180 | - { |
|
| 181 | - return $this->id; |
|
| 182 | - } |
|
| 183 | - |
|
| 184 | - /** |
|
| 185 | - * @param string $id |
|
| 186 | - * |
|
| 187 | - * @return $this |
|
| 188 | - */ |
|
| 189 | - public function setId($id) |
|
| 190 | - { |
|
| 191 | - $this->id = strval($id); |
|
| 192 | - |
|
| 193 | - return $this; |
|
| 194 | - } |
|
| 195 | - |
|
| 196 | - /** |
|
| 197 | - * @return bool |
|
| 198 | - */ |
|
| 199 | - public function isStacked() |
|
| 200 | - { |
|
| 201 | - return $this->stacked; |
|
| 202 | - } |
|
| 203 | - |
|
| 204 | - /** |
|
| 205 | - * @param bool $stacked |
|
| 206 | - * |
|
| 207 | - * @return $this |
|
| 208 | - */ |
|
| 209 | - public function setStacked($stacked) |
|
| 210 | - { |
|
| 211 | - $this->stacked = ! ! $stacked; |
|
| 212 | - |
|
| 213 | - return $this; |
|
| 214 | - } |
|
| 215 | - |
|
| 216 | - /** |
|
| 217 | - * @return int |
|
| 218 | - */ |
|
| 219 | - public function getBarThickness() |
|
| 220 | - { |
|
| 221 | - return $this->barThickness; |
|
| 222 | - } |
|
| 223 | - |
|
| 224 | - /** |
|
| 225 | - * @param int $barThickness |
|
| 226 | - * |
|
| 227 | - * @return $this |
|
| 228 | - */ |
|
| 229 | - public function setBarThickness($barThickness) |
|
| 230 | - { |
|
| 231 | - $this->barThickness = intval($barThickness); |
|
| 232 | - |
|
| 233 | - return $this; |
|
| 234 | - } |
|
| 235 | - |
|
| 236 | - /** |
|
| 237 | - * @return string |
|
| 238 | - */ |
|
| 239 | - public function getPosition() |
|
| 240 | - { |
|
| 241 | - return $this->position; |
|
| 242 | - } |
|
| 243 | - |
|
| 244 | - /** |
|
| 245 | - * @param string $position |
|
| 246 | - * |
|
| 247 | - * @return $this |
|
| 248 | - */ |
|
| 249 | - public function setPosition($position) |
|
| 250 | - { |
|
| 251 | - $this->position = strval($position); |
|
| 252 | - |
|
| 253 | - return $this; |
|
| 254 | - } |
|
| 255 | - |
|
| 256 | - /** |
|
| 257 | - * @return string |
|
| 258 | - */ |
|
| 259 | - public function getBeforeUpdate() |
|
| 260 | - { |
|
| 261 | - return $this->beforeUpdate; |
|
| 262 | - } |
|
| 263 | - |
|
| 264 | - /** |
|
| 265 | - * @param string $beforeUpdate |
|
| 266 | - * |
|
| 267 | - * @return $this |
|
| 268 | - */ |
|
| 269 | - public function setBeforeUpdate($beforeUpdate) |
|
| 270 | - { |
|
| 271 | - $this->beforeUpdate = strval($beforeUpdate); |
|
| 272 | - |
|
| 273 | - return $this; |
|
| 274 | - } |
|
| 275 | - |
|
| 276 | - /** |
|
| 277 | - * @return string |
|
| 278 | - */ |
|
| 279 | - public function getBeforeSetDimensions() |
|
| 280 | - { |
|
| 281 | - return $this->beforeSetDimensions; |
|
| 282 | - } |
|
| 283 | - |
|
| 284 | - /** |
|
| 285 | - * @param string $beforeSetDimensions |
|
| 286 | - * |
|
| 287 | - * @return $this |
|
| 288 | - */ |
|
| 289 | - public function setBeforeSetDimensions($beforeSetDimensions) |
|
| 290 | - { |
|
| 291 | - $this->beforeSetDimensions = strval($beforeSetDimensions); |
|
| 292 | - |
|
| 293 | - return $this; |
|
| 294 | - } |
|
| 295 | - |
|
| 296 | - /** |
|
| 297 | - * @return string |
|
| 298 | - */ |
|
| 299 | - public function getAfterSetDimensions() |
|
| 300 | - { |
|
| 301 | - return $this->afterSetDimensions; |
|
| 302 | - } |
|
| 303 | - |
|
| 304 | - /** |
|
| 305 | - * @param string $afterSetDimensions |
|
| 306 | - * |
|
| 307 | - * @return $this |
|
| 308 | - */ |
|
| 309 | - public function setAfterSetDimensions($afterSetDimensions) |
|
| 310 | - { |
|
| 311 | - $this->afterSetDimensions = strval($afterSetDimensions); |
|
| 312 | - |
|
| 313 | - return $this; |
|
| 314 | - } |
|
| 315 | - |
|
| 316 | - /** |
|
| 317 | - * @return string |
|
| 318 | - */ |
|
| 319 | - public function getBeforeDataLimits() |
|
| 320 | - { |
|
| 321 | - return $this->beforeDataLimits; |
|
| 322 | - } |
|
| 323 | - |
|
| 324 | - /** |
|
| 325 | - * @param string $beforeDataLimits |
|
| 326 | - * |
|
| 327 | - * @return $this |
|
| 328 | - */ |
|
| 329 | - public function setBeforeDataLimits($beforeDataLimits) |
|
| 330 | - { |
|
| 331 | - $this->beforeDataLimits = strval($beforeDataLimits); |
|
| 332 | - |
|
| 333 | - return $this; |
|
| 334 | - } |
|
| 335 | - |
|
| 336 | - /** |
|
| 337 | - * @return string |
|
| 338 | - */ |
|
| 339 | - public function getAfterDataLimits() |
|
| 340 | - { |
|
| 341 | - return $this->afterDataLimits; |
|
| 342 | - } |
|
| 343 | - |
|
| 344 | - /** |
|
| 345 | - * @param string $afterDataLimits |
|
| 346 | - * |
|
| 347 | - * @return $this |
|
| 348 | - */ |
|
| 349 | - public function setAfterDataLimits($afterDataLimits) |
|
| 350 | - { |
|
| 351 | - $this->afterDataLimits = strval($afterDataLimits); |
|
| 352 | - |
|
| 353 | - return $this; |
|
| 354 | - } |
|
| 355 | - |
|
| 356 | - /** |
|
| 357 | - * @return string |
|
| 358 | - */ |
|
| 359 | - public function getBeforeBuildTicks() |
|
| 360 | - { |
|
| 361 | - return $this->beforeBuildTicks; |
|
| 362 | - } |
|
| 363 | - |
|
| 364 | - /** |
|
| 365 | - * @param string $beforeBuildTicks |
|
| 366 | - * |
|
| 367 | - * @return $this |
|
| 368 | - */ |
|
| 369 | - public function setBeforeBuildTicks($beforeBuildTicks) |
|
| 370 | - { |
|
| 371 | - $this->beforeBuildTicks = strval($beforeBuildTicks); |
|
| 372 | - |
|
| 373 | - return $this; |
|
| 374 | - } |
|
| 375 | - |
|
| 376 | - /** |
|
| 377 | - * @return string |
|
| 378 | - */ |
|
| 379 | - public function getAfterBuildTicks() |
|
| 380 | - { |
|
| 381 | - return $this->afterBuildTicks; |
|
| 382 | - } |
|
| 383 | - |
|
| 384 | - /** |
|
| 385 | - * @param string $afterBuildTicks |
|
| 386 | - * |
|
| 387 | - * @return $this |
|
| 388 | - */ |
|
| 389 | - public function setAfterBuildTicks($afterBuildTicks) |
|
| 390 | - { |
|
| 391 | - $this->afterBuildTicks = strval($afterBuildTicks); |
|
| 392 | - |
|
| 393 | - return $this; |
|
| 394 | - } |
|
| 395 | - |
|
| 396 | - /** |
|
| 397 | - * @return string |
|
| 398 | - */ |
|
| 399 | - public function getBeforeTickToLabelConversion() |
|
| 400 | - { |
|
| 401 | - return $this->beforeTickToLabelConversion; |
|
| 402 | - } |
|
| 403 | - |
|
| 404 | - /** |
|
| 405 | - * @param string $beforeTickToLabelConversion |
|
| 406 | - * |
|
| 407 | - * @return $this |
|
| 408 | - */ |
|
| 409 | - public function setBeforeTickToLabelConversion($beforeTickToLabelConversion) |
|
| 410 | - { |
|
| 411 | - $this->beforeTickToLabelConversion = strval($beforeTickToLabelConversion); |
|
| 412 | - |
|
| 413 | - return $this; |
|
| 414 | - } |
|
| 415 | - |
|
| 416 | - /** |
|
| 417 | - * @return string |
|
| 418 | - */ |
|
| 419 | - public function getAfterTickToLabelConversion() |
|
| 420 | - { |
|
| 421 | - return $this->afterTickToLabelConversion; |
|
| 422 | - } |
|
| 423 | - |
|
| 424 | - /** |
|
| 425 | - * @param string $afterTickToLabelConversion |
|
| 426 | - * |
|
| 427 | - * @return $this |
|
| 428 | - */ |
|
| 429 | - public function setAfterTickToLabelConversion($afterTickToLabelConversion) |
|
| 430 | - { |
|
| 431 | - $this->afterTickToLabelConversion = strval($afterTickToLabelConversion); |
|
| 432 | - |
|
| 433 | - return $this; |
|
| 434 | - } |
|
| 435 | - |
|
| 436 | - /** |
|
| 437 | - * @return string |
|
| 438 | - */ |
|
| 439 | - public function getBeforeCalculateTickRotation() |
|
| 440 | - { |
|
| 441 | - return $this->beforeCalculateTickRotation; |
|
| 442 | - } |
|
| 443 | - |
|
| 444 | - /** |
|
| 445 | - * @param string $beforeCalculateTickRotation |
|
| 446 | - * |
|
| 447 | - * @return $this |
|
| 448 | - */ |
|
| 449 | - public function setBeforeCalculateTickRotation($beforeCalculateTickRotation) |
|
| 450 | - { |
|
| 451 | - $this->beforeCalculateTickRotation = strval($beforeCalculateTickRotation); |
|
| 452 | - |
|
| 453 | - return $this; |
|
| 454 | - } |
|
| 455 | - |
|
| 456 | - /** |
|
| 457 | - * @return string |
|
| 458 | - */ |
|
| 459 | - public function getAfterCalculateTickRotation() |
|
| 460 | - { |
|
| 461 | - return $this->afterCalculateTickRotation; |
|
| 462 | - } |
|
| 463 | - |
|
| 464 | - /** |
|
| 465 | - * @param string $afterCalculateTickRotation |
|
| 466 | - * |
|
| 467 | - * @return $this |
|
| 468 | - */ |
|
| 469 | - public function setAfterCalculateTickRotation($afterCalculateTickRotation) |
|
| 470 | - { |
|
| 471 | - $this->afterCalculateTickRotation = strval($afterCalculateTickRotation); |
|
| 472 | - |
|
| 473 | - return $this; |
|
| 474 | - } |
|
| 475 | - |
|
| 476 | - /** |
|
| 477 | - * @return string |
|
| 478 | - */ |
|
| 479 | - public function getBeforeFit() |
|
| 480 | - { |
|
| 481 | - return $this->beforeFit; |
|
| 482 | - } |
|
| 483 | - |
|
| 484 | - /** |
|
| 485 | - * @param string $beforeFit |
|
| 486 | - * |
|
| 487 | - * @return $this |
|
| 488 | - */ |
|
| 489 | - public function setBeforeFit($beforeFit) |
|
| 490 | - { |
|
| 491 | - $this->beforeFit = strval($beforeFit); |
|
| 492 | - |
|
| 493 | - return $this; |
|
| 494 | - } |
|
| 495 | - |
|
| 496 | - /** |
|
| 497 | - * @return string |
|
| 498 | - */ |
|
| 499 | - public function getAfterFit() |
|
| 500 | - { |
|
| 501 | - return $this->afterFit; |
|
| 502 | - } |
|
| 503 | - |
|
| 504 | - /** |
|
| 505 | - * @param string $afterFit |
|
| 506 | - * |
|
| 507 | - * @return $this |
|
| 508 | - */ |
|
| 509 | - public function setAfterFit($afterFit) |
|
| 510 | - { |
|
| 511 | - $this->afterFit = strval($afterFit); |
|
| 512 | - |
|
| 513 | - return $this; |
|
| 514 | - } |
|
| 515 | - |
|
| 516 | - /** |
|
| 517 | - * @return string |
|
| 518 | - */ |
|
| 519 | - public function getAfterUpdate() |
|
| 520 | - { |
|
| 521 | - return $this->afterUpdate; |
|
| 522 | - } |
|
| 523 | - |
|
| 524 | - /** |
|
| 525 | - * @param string $afterUpdate |
|
| 526 | - * |
|
| 527 | - * @return $this |
|
| 528 | - */ |
|
| 529 | - public function setAfterUpdate($afterUpdate) |
|
| 530 | - { |
|
| 531 | - $this->afterUpdate = strval($afterUpdate); |
|
| 532 | - |
|
| 533 | - return $this; |
|
| 534 | - } |
|
| 535 | - |
|
| 536 | - /** |
|
| 537 | - * @return GridLines |
|
| 538 | - */ |
|
| 539 | - public function getGridLines() |
|
| 540 | - { |
|
| 541 | - return $this->gridLines; |
|
| 542 | - } |
|
| 543 | - |
|
| 544 | - /** |
|
| 545 | - * @return GridLines |
|
| 546 | - */ |
|
| 547 | - public function gridLines() |
|
| 548 | - { |
|
| 549 | - if (is_null($this->gridLines)) { |
|
| 550 | - $this->gridLines = new GridLines(); |
|
| 551 | - } |
|
| 552 | - |
|
| 553 | - return $this->gridLines; |
|
| 554 | - } |
|
| 555 | - |
|
| 556 | - /** |
|
| 557 | - * @return ScaleLabel |
|
| 558 | - */ |
|
| 559 | - public function getScaleLabel() |
|
| 560 | - { |
|
| 561 | - return $this->scaleLabel; |
|
| 562 | - } |
|
| 563 | - |
|
| 564 | - /** |
|
| 565 | - * @return ScaleLabel |
|
| 566 | - */ |
|
| 567 | - public function scaleLabel() |
|
| 568 | - { |
|
| 569 | - if (is_null($this->scaleLabel)) { |
|
| 570 | - $this->scaleLabel = new ScaleLabel(); |
|
| 571 | - } |
|
| 572 | - |
|
| 573 | - return $this->scaleLabel; |
|
| 574 | - } |
|
| 575 | - |
|
| 576 | - /** |
|
| 577 | - * @return Ticks |
|
| 578 | - */ |
|
| 579 | - public function getTicks() |
|
| 580 | - { |
|
| 581 | - return $this->ticks; |
|
| 582 | - } |
|
| 583 | - |
|
| 584 | - /** |
|
| 585 | - * @return Ticks |
|
| 586 | - */ |
|
| 587 | - public function ticks() |
|
| 588 | - { |
|
| 589 | - if (is_null($this->ticks)) { |
|
| 590 | - $this->ticks = new Ticks(); |
|
| 591 | - } |
|
| 592 | - |
|
| 593 | - return $this->ticks; |
|
| 594 | - } |
|
| 595 | - |
|
| 596 | - /** |
|
| 597 | - * @return array |
|
| 598 | - */ |
|
| 599 | - public function jsonSerialize() |
|
| 600 | - { |
|
| 601 | - return $this->getArrayCopy(); |
|
| 602 | - } |
|
| 19 | + use ArraySerializable; |
|
| 20 | + |
|
| 21 | + /** |
|
| 22 | + * @var string |
|
| 23 | + */ |
|
| 24 | + protected $type; |
|
| 25 | + |
|
| 26 | + /** |
|
| 27 | + * @var bool |
|
| 28 | + */ |
|
| 29 | + protected $display; |
|
| 30 | + |
|
| 31 | + /** |
|
| 32 | + * @var string |
|
| 33 | + */ |
|
| 34 | + protected $id; |
|
| 35 | + |
|
| 36 | + /** |
|
| 37 | + * @var bool |
|
| 38 | + */ |
|
| 39 | + protected $stacked; |
|
| 40 | + |
|
| 41 | + /** |
|
| 42 | + * @var int |
|
| 43 | + */ |
|
| 44 | + protected $barThickness; |
|
| 45 | + |
|
| 46 | + /** |
|
| 47 | + * @var string |
|
| 48 | + */ |
|
| 49 | + protected $position; |
|
| 50 | + |
|
| 51 | + /** |
|
| 52 | + * @var string |
|
| 53 | + */ |
|
| 54 | + protected $beforeUpdate; |
|
| 55 | + |
|
| 56 | + /** |
|
| 57 | + * @var string |
|
| 58 | + */ |
|
| 59 | + protected $beforeSetDimensions; |
|
| 60 | + |
|
| 61 | + /** |
|
| 62 | + * @var string |
|
| 63 | + */ |
|
| 64 | + protected $afterSetDimensions; |
|
| 65 | + |
|
| 66 | + /** |
|
| 67 | + * @var string |
|
| 68 | + */ |
|
| 69 | + protected $beforeDataLimits; |
|
| 70 | + |
|
| 71 | + /** |
|
| 72 | + * @var string |
|
| 73 | + */ |
|
| 74 | + protected $afterDataLimits; |
|
| 75 | + |
|
| 76 | + /** |
|
| 77 | + * @var string |
|
| 78 | + */ |
|
| 79 | + protected $beforeBuildTicks; |
|
| 80 | + |
|
| 81 | + /** |
|
| 82 | + * @var string |
|
| 83 | + */ |
|
| 84 | + protected $afterBuildTicks; |
|
| 85 | + |
|
| 86 | + /** |
|
| 87 | + * @var string |
|
| 88 | + */ |
|
| 89 | + protected $beforeTickToLabelConversion; |
|
| 90 | + |
|
| 91 | + /** |
|
| 92 | + * @var string |
|
| 93 | + */ |
|
| 94 | + protected $afterTickToLabelConversion; |
|
| 95 | + |
|
| 96 | + /** |
|
| 97 | + * @var string |
|
| 98 | + */ |
|
| 99 | + protected $beforeCalculateTickRotation; |
|
| 100 | + |
|
| 101 | + /** |
|
| 102 | + * @var string |
|
| 103 | + */ |
|
| 104 | + protected $afterCalculateTickRotation; |
|
| 105 | + |
|
| 106 | + /** |
|
| 107 | + * @var string |
|
| 108 | + */ |
|
| 109 | + protected $beforeFit; |
|
| 110 | + |
|
| 111 | + /** |
|
| 112 | + * @var string |
|
| 113 | + */ |
|
| 114 | + protected $afterFit; |
|
| 115 | + |
|
| 116 | + /** |
|
| 117 | + * @var string |
|
| 118 | + */ |
|
| 119 | + protected $afterUpdate; |
|
| 120 | + |
|
| 121 | + /** |
|
| 122 | + * @var GridLines |
|
| 123 | + */ |
|
| 124 | + protected $gridLines; |
|
| 125 | + |
|
| 126 | + /** |
|
| 127 | + * @var ScaleLabel |
|
| 128 | + */ |
|
| 129 | + protected $scaleLabel; |
|
| 130 | + |
|
| 131 | + /** |
|
| 132 | + * @var Ticks |
|
| 133 | + */ |
|
| 134 | + protected $ticks; |
|
| 135 | + |
|
| 136 | + /** |
|
| 137 | + * @return string |
|
| 138 | + */ |
|
| 139 | + public function getType() |
|
| 140 | + { |
|
| 141 | + return $this->type; |
|
| 142 | + } |
|
| 143 | + |
|
| 144 | + /** |
|
| 145 | + * @param string $type |
|
| 146 | + * |
|
| 147 | + * @return $this |
|
| 148 | + */ |
|
| 149 | + public function setType($type) |
|
| 150 | + { |
|
| 151 | + $this->type = $type; |
|
| 152 | + |
|
| 153 | + return $this; |
|
| 154 | + } |
|
| 155 | + |
|
| 156 | + /** |
|
| 157 | + * @return bool |
|
| 158 | + */ |
|
| 159 | + public function isDisplay() |
|
| 160 | + { |
|
| 161 | + return $this->display; |
|
| 162 | + } |
|
| 163 | + |
|
| 164 | + /** |
|
| 165 | + * @param bool $display |
|
| 166 | + * |
|
| 167 | + * @return $this |
|
| 168 | + */ |
|
| 169 | + public function setDisplay($display) |
|
| 170 | + { |
|
| 171 | + $this->display = $display; |
|
| 172 | + |
|
| 173 | + return $this; |
|
| 174 | + } |
|
| 175 | + |
|
| 176 | + /** |
|
| 177 | + * @return string |
|
| 178 | + */ |
|
| 179 | + public function getId() |
|
| 180 | + { |
|
| 181 | + return $this->id; |
|
| 182 | + } |
|
| 183 | + |
|
| 184 | + /** |
|
| 185 | + * @param string $id |
|
| 186 | + * |
|
| 187 | + * @return $this |
|
| 188 | + */ |
|
| 189 | + public function setId($id) |
|
| 190 | + { |
|
| 191 | + $this->id = strval($id); |
|
| 192 | + |
|
| 193 | + return $this; |
|
| 194 | + } |
|
| 195 | + |
|
| 196 | + /** |
|
| 197 | + * @return bool |
|
| 198 | + */ |
|
| 199 | + public function isStacked() |
|
| 200 | + { |
|
| 201 | + return $this->stacked; |
|
| 202 | + } |
|
| 203 | + |
|
| 204 | + /** |
|
| 205 | + * @param bool $stacked |
|
| 206 | + * |
|
| 207 | + * @return $this |
|
| 208 | + */ |
|
| 209 | + public function setStacked($stacked) |
|
| 210 | + { |
|
| 211 | + $this->stacked = ! ! $stacked; |
|
| 212 | + |
|
| 213 | + return $this; |
|
| 214 | + } |
|
| 215 | + |
|
| 216 | + /** |
|
| 217 | + * @return int |
|
| 218 | + */ |
|
| 219 | + public function getBarThickness() |
|
| 220 | + { |
|
| 221 | + return $this->barThickness; |
|
| 222 | + } |
|
| 223 | + |
|
| 224 | + /** |
|
| 225 | + * @param int $barThickness |
|
| 226 | + * |
|
| 227 | + * @return $this |
|
| 228 | + */ |
|
| 229 | + public function setBarThickness($barThickness) |
|
| 230 | + { |
|
| 231 | + $this->barThickness = intval($barThickness); |
|
| 232 | + |
|
| 233 | + return $this; |
|
| 234 | + } |
|
| 235 | + |
|
| 236 | + /** |
|
| 237 | + * @return string |
|
| 238 | + */ |
|
| 239 | + public function getPosition() |
|
| 240 | + { |
|
| 241 | + return $this->position; |
|
| 242 | + } |
|
| 243 | + |
|
| 244 | + /** |
|
| 245 | + * @param string $position |
|
| 246 | + * |
|
| 247 | + * @return $this |
|
| 248 | + */ |
|
| 249 | + public function setPosition($position) |
|
| 250 | + { |
|
| 251 | + $this->position = strval($position); |
|
| 252 | + |
|
| 253 | + return $this; |
|
| 254 | + } |
|
| 255 | + |
|
| 256 | + /** |
|
| 257 | + * @return string |
|
| 258 | + */ |
|
| 259 | + public function getBeforeUpdate() |
|
| 260 | + { |
|
| 261 | + return $this->beforeUpdate; |
|
| 262 | + } |
|
| 263 | + |
|
| 264 | + /** |
|
| 265 | + * @param string $beforeUpdate |
|
| 266 | + * |
|
| 267 | + * @return $this |
|
| 268 | + */ |
|
| 269 | + public function setBeforeUpdate($beforeUpdate) |
|
| 270 | + { |
|
| 271 | + $this->beforeUpdate = strval($beforeUpdate); |
|
| 272 | + |
|
| 273 | + return $this; |
|
| 274 | + } |
|
| 275 | + |
|
| 276 | + /** |
|
| 277 | + * @return string |
|
| 278 | + */ |
|
| 279 | + public function getBeforeSetDimensions() |
|
| 280 | + { |
|
| 281 | + return $this->beforeSetDimensions; |
|
| 282 | + } |
|
| 283 | + |
|
| 284 | + /** |
|
| 285 | + * @param string $beforeSetDimensions |
|
| 286 | + * |
|
| 287 | + * @return $this |
|
| 288 | + */ |
|
| 289 | + public function setBeforeSetDimensions($beforeSetDimensions) |
|
| 290 | + { |
|
| 291 | + $this->beforeSetDimensions = strval($beforeSetDimensions); |
|
| 292 | + |
|
| 293 | + return $this; |
|
| 294 | + } |
|
| 295 | + |
|
| 296 | + /** |
|
| 297 | + * @return string |
|
| 298 | + */ |
|
| 299 | + public function getAfterSetDimensions() |
|
| 300 | + { |
|
| 301 | + return $this->afterSetDimensions; |
|
| 302 | + } |
|
| 303 | + |
|
| 304 | + /** |
|
| 305 | + * @param string $afterSetDimensions |
|
| 306 | + * |
|
| 307 | + * @return $this |
|
| 308 | + */ |
|
| 309 | + public function setAfterSetDimensions($afterSetDimensions) |
|
| 310 | + { |
|
| 311 | + $this->afterSetDimensions = strval($afterSetDimensions); |
|
| 312 | + |
|
| 313 | + return $this; |
|
| 314 | + } |
|
| 315 | + |
|
| 316 | + /** |
|
| 317 | + * @return string |
|
| 318 | + */ |
|
| 319 | + public function getBeforeDataLimits() |
|
| 320 | + { |
|
| 321 | + return $this->beforeDataLimits; |
|
| 322 | + } |
|
| 323 | + |
|
| 324 | + /** |
|
| 325 | + * @param string $beforeDataLimits |
|
| 326 | + * |
|
| 327 | + * @return $this |
|
| 328 | + */ |
|
| 329 | + public function setBeforeDataLimits($beforeDataLimits) |
|
| 330 | + { |
|
| 331 | + $this->beforeDataLimits = strval($beforeDataLimits); |
|
| 332 | + |
|
| 333 | + return $this; |
|
| 334 | + } |
|
| 335 | + |
|
| 336 | + /** |
|
| 337 | + * @return string |
|
| 338 | + */ |
|
| 339 | + public function getAfterDataLimits() |
|
| 340 | + { |
|
| 341 | + return $this->afterDataLimits; |
|
| 342 | + } |
|
| 343 | + |
|
| 344 | + /** |
|
| 345 | + * @param string $afterDataLimits |
|
| 346 | + * |
|
| 347 | + * @return $this |
|
| 348 | + */ |
|
| 349 | + public function setAfterDataLimits($afterDataLimits) |
|
| 350 | + { |
|
| 351 | + $this->afterDataLimits = strval($afterDataLimits); |
|
| 352 | + |
|
| 353 | + return $this; |
|
| 354 | + } |
|
| 355 | + |
|
| 356 | + /** |
|
| 357 | + * @return string |
|
| 358 | + */ |
|
| 359 | + public function getBeforeBuildTicks() |
|
| 360 | + { |
|
| 361 | + return $this->beforeBuildTicks; |
|
| 362 | + } |
|
| 363 | + |
|
| 364 | + /** |
|
| 365 | + * @param string $beforeBuildTicks |
|
| 366 | + * |
|
| 367 | + * @return $this |
|
| 368 | + */ |
|
| 369 | + public function setBeforeBuildTicks($beforeBuildTicks) |
|
| 370 | + { |
|
| 371 | + $this->beforeBuildTicks = strval($beforeBuildTicks); |
|
| 372 | + |
|
| 373 | + return $this; |
|
| 374 | + } |
|
| 375 | + |
|
| 376 | + /** |
|
| 377 | + * @return string |
|
| 378 | + */ |
|
| 379 | + public function getAfterBuildTicks() |
|
| 380 | + { |
|
| 381 | + return $this->afterBuildTicks; |
|
| 382 | + } |
|
| 383 | + |
|
| 384 | + /** |
|
| 385 | + * @param string $afterBuildTicks |
|
| 386 | + * |
|
| 387 | + * @return $this |
|
| 388 | + */ |
|
| 389 | + public function setAfterBuildTicks($afterBuildTicks) |
|
| 390 | + { |
|
| 391 | + $this->afterBuildTicks = strval($afterBuildTicks); |
|
| 392 | + |
|
| 393 | + return $this; |
|
| 394 | + } |
|
| 395 | + |
|
| 396 | + /** |
|
| 397 | + * @return string |
|
| 398 | + */ |
|
| 399 | + public function getBeforeTickToLabelConversion() |
|
| 400 | + { |
|
| 401 | + return $this->beforeTickToLabelConversion; |
|
| 402 | + } |
|
| 403 | + |
|
| 404 | + /** |
|
| 405 | + * @param string $beforeTickToLabelConversion |
|
| 406 | + * |
|
| 407 | + * @return $this |
|
| 408 | + */ |
|
| 409 | + public function setBeforeTickToLabelConversion($beforeTickToLabelConversion) |
|
| 410 | + { |
|
| 411 | + $this->beforeTickToLabelConversion = strval($beforeTickToLabelConversion); |
|
| 412 | + |
|
| 413 | + return $this; |
|
| 414 | + } |
|
| 415 | + |
|
| 416 | + /** |
|
| 417 | + * @return string |
|
| 418 | + */ |
|
| 419 | + public function getAfterTickToLabelConversion() |
|
| 420 | + { |
|
| 421 | + return $this->afterTickToLabelConversion; |
|
| 422 | + } |
|
| 423 | + |
|
| 424 | + /** |
|
| 425 | + * @param string $afterTickToLabelConversion |
|
| 426 | + * |
|
| 427 | + * @return $this |
|
| 428 | + */ |
|
| 429 | + public function setAfterTickToLabelConversion($afterTickToLabelConversion) |
|
| 430 | + { |
|
| 431 | + $this->afterTickToLabelConversion = strval($afterTickToLabelConversion); |
|
| 432 | + |
|
| 433 | + return $this; |
|
| 434 | + } |
|
| 435 | + |
|
| 436 | + /** |
|
| 437 | + * @return string |
|
| 438 | + */ |
|
| 439 | + public function getBeforeCalculateTickRotation() |
|
| 440 | + { |
|
| 441 | + return $this->beforeCalculateTickRotation; |
|
| 442 | + } |
|
| 443 | + |
|
| 444 | + /** |
|
| 445 | + * @param string $beforeCalculateTickRotation |
|
| 446 | + * |
|
| 447 | + * @return $this |
|
| 448 | + */ |
|
| 449 | + public function setBeforeCalculateTickRotation($beforeCalculateTickRotation) |
|
| 450 | + { |
|
| 451 | + $this->beforeCalculateTickRotation = strval($beforeCalculateTickRotation); |
|
| 452 | + |
|
| 453 | + return $this; |
|
| 454 | + } |
|
| 455 | + |
|
| 456 | + /** |
|
| 457 | + * @return string |
|
| 458 | + */ |
|
| 459 | + public function getAfterCalculateTickRotation() |
|
| 460 | + { |
|
| 461 | + return $this->afterCalculateTickRotation; |
|
| 462 | + } |
|
| 463 | + |
|
| 464 | + /** |
|
| 465 | + * @param string $afterCalculateTickRotation |
|
| 466 | + * |
|
| 467 | + * @return $this |
|
| 468 | + */ |
|
| 469 | + public function setAfterCalculateTickRotation($afterCalculateTickRotation) |
|
| 470 | + { |
|
| 471 | + $this->afterCalculateTickRotation = strval($afterCalculateTickRotation); |
|
| 472 | + |
|
| 473 | + return $this; |
|
| 474 | + } |
|
| 475 | + |
|
| 476 | + /** |
|
| 477 | + * @return string |
|
| 478 | + */ |
|
| 479 | + public function getBeforeFit() |
|
| 480 | + { |
|
| 481 | + return $this->beforeFit; |
|
| 482 | + } |
|
| 483 | + |
|
| 484 | + /** |
|
| 485 | + * @param string $beforeFit |
|
| 486 | + * |
|
| 487 | + * @return $this |
|
| 488 | + */ |
|
| 489 | + public function setBeforeFit($beforeFit) |
|
| 490 | + { |
|
| 491 | + $this->beforeFit = strval($beforeFit); |
|
| 492 | + |
|
| 493 | + return $this; |
|
| 494 | + } |
|
| 495 | + |
|
| 496 | + /** |
|
| 497 | + * @return string |
|
| 498 | + */ |
|
| 499 | + public function getAfterFit() |
|
| 500 | + { |
|
| 501 | + return $this->afterFit; |
|
| 502 | + } |
|
| 503 | + |
|
| 504 | + /** |
|
| 505 | + * @param string $afterFit |
|
| 506 | + * |
|
| 507 | + * @return $this |
|
| 508 | + */ |
|
| 509 | + public function setAfterFit($afterFit) |
|
| 510 | + { |
|
| 511 | + $this->afterFit = strval($afterFit); |
|
| 512 | + |
|
| 513 | + return $this; |
|
| 514 | + } |
|
| 515 | + |
|
| 516 | + /** |
|
| 517 | + * @return string |
|
| 518 | + */ |
|
| 519 | + public function getAfterUpdate() |
|
| 520 | + { |
|
| 521 | + return $this->afterUpdate; |
|
| 522 | + } |
|
| 523 | + |
|
| 524 | + /** |
|
| 525 | + * @param string $afterUpdate |
|
| 526 | + * |
|
| 527 | + * @return $this |
|
| 528 | + */ |
|
| 529 | + public function setAfterUpdate($afterUpdate) |
|
| 530 | + { |
|
| 531 | + $this->afterUpdate = strval($afterUpdate); |
|
| 532 | + |
|
| 533 | + return $this; |
|
| 534 | + } |
|
| 535 | + |
|
| 536 | + /** |
|
| 537 | + * @return GridLines |
|
| 538 | + */ |
|
| 539 | + public function getGridLines() |
|
| 540 | + { |
|
| 541 | + return $this->gridLines; |
|
| 542 | + } |
|
| 543 | + |
|
| 544 | + /** |
|
| 545 | + * @return GridLines |
|
| 546 | + */ |
|
| 547 | + public function gridLines() |
|
| 548 | + { |
|
| 549 | + if (is_null($this->gridLines)) { |
|
| 550 | + $this->gridLines = new GridLines(); |
|
| 551 | + } |
|
| 552 | + |
|
| 553 | + return $this->gridLines; |
|
| 554 | + } |
|
| 555 | + |
|
| 556 | + /** |
|
| 557 | + * @return ScaleLabel |
|
| 558 | + */ |
|
| 559 | + public function getScaleLabel() |
|
| 560 | + { |
|
| 561 | + return $this->scaleLabel; |
|
| 562 | + } |
|
| 563 | + |
|
| 564 | + /** |
|
| 565 | + * @return ScaleLabel |
|
| 566 | + */ |
|
| 567 | + public function scaleLabel() |
|
| 568 | + { |
|
| 569 | + if (is_null($this->scaleLabel)) { |
|
| 570 | + $this->scaleLabel = new ScaleLabel(); |
|
| 571 | + } |
|
| 572 | + |
|
| 573 | + return $this->scaleLabel; |
|
| 574 | + } |
|
| 575 | + |
|
| 576 | + /** |
|
| 577 | + * @return Ticks |
|
| 578 | + */ |
|
| 579 | + public function getTicks() |
|
| 580 | + { |
|
| 581 | + return $this->ticks; |
|
| 582 | + } |
|
| 583 | + |
|
| 584 | + /** |
|
| 585 | + * @return Ticks |
|
| 586 | + */ |
|
| 587 | + public function ticks() |
|
| 588 | + { |
|
| 589 | + if (is_null($this->ticks)) { |
|
| 590 | + $this->ticks = new Ticks(); |
|
| 591 | + } |
|
| 592 | + |
|
| 593 | + return $this->ticks; |
|
| 594 | + } |
|
| 595 | + |
|
| 596 | + /** |
|
| 597 | + * @return array |
|
| 598 | + */ |
|
| 599 | + public function jsonSerialize() |
|
| 600 | + { |
|
| 601 | + return $this->getArrayCopy(); |
|
| 602 | + } |
|
| 603 | 603 | } |
@@ -15,805 +15,805 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | class Tooltips implements ArraySerializableInterface, JsonSerializable |
| 17 | 17 | { |
| 18 | - use ArraySerializable; |
|
| 19 | - |
|
| 20 | - /** |
|
| 21 | - * @var bool |
|
| 22 | - */ |
|
| 23 | - private $enabled; |
|
| 24 | - |
|
| 25 | - /** |
|
| 26 | - * @var Expr |
|
| 27 | - */ |
|
| 28 | - private $custom; |
|
| 29 | - |
|
| 30 | - /** |
|
| 31 | - * @var string |
|
| 32 | - */ |
|
| 33 | - private $mode; |
|
| 34 | - |
|
| 35 | - /** |
|
| 36 | - * @var bool |
|
| 37 | - */ |
|
| 38 | - private $intersect; |
|
| 39 | - |
|
| 40 | - /** |
|
| 41 | - * @var string |
|
| 42 | - */ |
|
| 43 | - private $position; |
|
| 44 | - |
|
| 45 | - /** |
|
| 46 | - * @var Expr |
|
| 47 | - */ |
|
| 48 | - private $itemSort; |
|
| 49 | - |
|
| 50 | - /** |
|
| 51 | - * @var Expr |
|
| 52 | - */ |
|
| 53 | - private $filter; |
|
| 54 | - |
|
| 55 | - /** |
|
| 56 | - * @var string |
|
| 57 | - */ |
|
| 58 | - private $backgroundColor; |
|
| 59 | - |
|
| 60 | - /** |
|
| 61 | - * @var string |
|
| 62 | - */ |
|
| 63 | - private $titleFontFamily; |
|
| 64 | - |
|
| 65 | - /** |
|
| 66 | - * @var int |
|
| 67 | - */ |
|
| 68 | - private $titleFontSize; |
|
| 69 | - |
|
| 70 | - /** |
|
| 71 | - * @var string |
|
| 72 | - */ |
|
| 73 | - private $titleFontStyle; |
|
| 74 | - |
|
| 75 | - /** |
|
| 76 | - * @var string |
|
| 77 | - */ |
|
| 78 | - private $titleFontColor; |
|
| 79 | - |
|
| 80 | - /** |
|
| 81 | - * @var int |
|
| 82 | - */ |
|
| 83 | - private $titleSpacing; |
|
| 84 | - |
|
| 85 | - /** |
|
| 86 | - * @var int |
|
| 87 | - */ |
|
| 88 | - private $titleMarginBottom; |
|
| 89 | - |
|
| 90 | - /** |
|
| 91 | - * @var string |
|
| 92 | - */ |
|
| 93 | - private $bodyFontFamily; |
|
| 94 | - |
|
| 95 | - /** |
|
| 96 | - * @var int |
|
| 97 | - */ |
|
| 98 | - private $bodyFontSize; |
|
| 99 | - |
|
| 100 | - /** |
|
| 101 | - * @var string |
|
| 102 | - */ |
|
| 103 | - private $bodyFontStyle; |
|
| 104 | - |
|
| 105 | - /** |
|
| 106 | - * @var string |
|
| 107 | - */ |
|
| 108 | - private $bodyFontColor; |
|
| 109 | - |
|
| 110 | - /** |
|
| 111 | - * @var int |
|
| 112 | - */ |
|
| 113 | - private $bodySpacing; |
|
| 114 | - |
|
| 115 | - /** |
|
| 116 | - * @var string |
|
| 117 | - */ |
|
| 118 | - private $footerFontFamily; |
|
| 119 | - |
|
| 120 | - /** |
|
| 121 | - * @var int |
|
| 122 | - */ |
|
| 123 | - private $footerFontSize; |
|
| 124 | - |
|
| 125 | - /** |
|
| 126 | - * @var string |
|
| 127 | - */ |
|
| 128 | - private $footerFontStyle; |
|
| 129 | - |
|
| 130 | - /** |
|
| 131 | - * @var string |
|
| 132 | - */ |
|
| 133 | - private $footerFontColor; |
|
| 134 | - |
|
| 135 | - /** |
|
| 136 | - * @var int |
|
| 137 | - */ |
|
| 138 | - private $footerSpacing; |
|
| 139 | - |
|
| 140 | - /** |
|
| 141 | - * @var int |
|
| 142 | - */ |
|
| 143 | - private $footerMarginTop; |
|
| 144 | - |
|
| 145 | - /** |
|
| 146 | - * @var int |
|
| 147 | - */ |
|
| 148 | - private $xPadding; |
|
| 149 | - |
|
| 150 | - /** |
|
| 151 | - * @var int |
|
| 152 | - */ |
|
| 153 | - private $yPadding; |
|
| 154 | - |
|
| 155 | - /** |
|
| 156 | - * @var int |
|
| 157 | - */ |
|
| 158 | - private $caretSize; |
|
| 159 | - |
|
| 160 | - /** |
|
| 161 | - * @var int |
|
| 162 | - */ |
|
| 163 | - private $cornerRadius; |
|
| 164 | - |
|
| 165 | - /** |
|
| 166 | - * @var string |
|
| 167 | - */ |
|
| 168 | - private $multiKeyBackground; |
|
| 169 | - |
|
| 170 | - /** |
|
| 171 | - * @var bool |
|
| 172 | - */ |
|
| 173 | - private $displayColors; |
|
| 174 | - |
|
| 175 | - /** |
|
| 176 | - * @var Callbacks |
|
| 177 | - */ |
|
| 178 | - private $callbacks; |
|
| 179 | - |
|
| 180 | - /** |
|
| 181 | - * @return bool |
|
| 182 | - */ |
|
| 183 | - public function isEnabled() |
|
| 184 | - { |
|
| 185 | - return $this->enabled; |
|
| 186 | - } |
|
| 187 | - |
|
| 188 | - /** |
|
| 189 | - * @param bool $enabled |
|
| 190 | - * |
|
| 191 | - * @return $this |
|
| 192 | - */ |
|
| 193 | - public function setEnabled($enabled) |
|
| 194 | - { |
|
| 195 | - $this->enabled = boolval($enabled); |
|
| 196 | - |
|
| 197 | - return $this; |
|
| 198 | - } |
|
| 199 | - |
|
| 200 | - /** |
|
| 201 | - * @return \Zend\Json\Expr |
|
| 202 | - */ |
|
| 203 | - public function getCustom() |
|
| 204 | - { |
|
| 205 | - return $this->custom; |
|
| 206 | - } |
|
| 207 | - |
|
| 208 | - /** |
|
| 209 | - * @param \Zend\Json\Expr $custom |
|
| 210 | - * |
|
| 211 | - * @return $this |
|
| 212 | - */ |
|
| 213 | - public function setCustom($custom) |
|
| 214 | - { |
|
| 215 | - $this->custom = $custom; |
|
| 216 | - |
|
| 217 | - return $this; |
|
| 218 | - } |
|
| 219 | - |
|
| 220 | - /** |
|
| 221 | - * @return string |
|
| 222 | - */ |
|
| 223 | - public function getMode() |
|
| 224 | - { |
|
| 225 | - return $this->mode; |
|
| 226 | - } |
|
| 227 | - |
|
| 228 | - /** |
|
| 229 | - * @param string $mode |
|
| 230 | - * |
|
| 231 | - * @return $this |
|
| 232 | - */ |
|
| 233 | - public function setMode($mode) |
|
| 234 | - { |
|
| 235 | - $this->mode = strval($mode); |
|
| 236 | - |
|
| 237 | - return $this; |
|
| 238 | - } |
|
| 239 | - |
|
| 240 | - /** |
|
| 241 | - * @return bool |
|
| 242 | - */ |
|
| 243 | - public function isIntersect() |
|
| 244 | - { |
|
| 245 | - return $this->intersect; |
|
| 246 | - } |
|
| 247 | - |
|
| 248 | - /** |
|
| 249 | - * @param bool $intersect |
|
| 250 | - * |
|
| 251 | - * @return $this |
|
| 252 | - */ |
|
| 253 | - public function setIntersect($intersect) |
|
| 254 | - { |
|
| 255 | - $this->intersect = boolval($intersect); |
|
| 256 | - |
|
| 257 | - return $this; |
|
| 258 | - } |
|
| 259 | - |
|
| 260 | - /** |
|
| 261 | - * @return string |
|
| 262 | - */ |
|
| 263 | - public function getPosition() |
|
| 264 | - { |
|
| 265 | - return $this->position; |
|
| 266 | - } |
|
| 267 | - |
|
| 268 | - /** |
|
| 269 | - * @param string $position |
|
| 270 | - * |
|
| 271 | - * @return $this |
|
| 272 | - */ |
|
| 273 | - public function setPosition($position) |
|
| 274 | - { |
|
| 275 | - $this->position = strval($position); |
|
| 276 | - |
|
| 277 | - return $this; |
|
| 278 | - } |
|
| 279 | - |
|
| 280 | - /** |
|
| 281 | - * @return Expr |
|
| 282 | - */ |
|
| 283 | - public function getItemSort() |
|
| 284 | - { |
|
| 285 | - return $this->itemSort; |
|
| 286 | - } |
|
| 287 | - |
|
| 288 | - /** |
|
| 289 | - * @param Expr $itemSort |
|
| 290 | - * |
|
| 291 | - * @return $this |
|
| 292 | - */ |
|
| 293 | - public function setItemSort($itemSort) |
|
| 294 | - { |
|
| 295 | - $this->itemSort = new Expr(strval($itemSort)); |
|
| 296 | - |
|
| 297 | - return $this; |
|
| 298 | - } |
|
| 299 | - |
|
| 300 | - /** |
|
| 301 | - * @return Expr |
|
| 302 | - */ |
|
| 303 | - public function getFilter() |
|
| 304 | - { |
|
| 305 | - return $this->filter; |
|
| 306 | - } |
|
| 307 | - |
|
| 308 | - /** |
|
| 309 | - * @param Expr $filter |
|
| 310 | - * |
|
| 311 | - * @return $this |
|
| 312 | - */ |
|
| 313 | - public function setFilter($filter) |
|
| 314 | - { |
|
| 315 | - $this->filter = new Expr(strval($filter)); |
|
| 316 | - |
|
| 317 | - return $this; |
|
| 318 | - } |
|
| 319 | - |
|
| 320 | - /** |
|
| 321 | - * @return string |
|
| 322 | - */ |
|
| 323 | - public function getBackgroundColor() |
|
| 324 | - { |
|
| 325 | - return $this->backgroundColor; |
|
| 326 | - } |
|
| 327 | - |
|
| 328 | - /** |
|
| 329 | - * @param string $backgroundColor |
|
| 330 | - * |
|
| 331 | - * @return $this |
|
| 332 | - */ |
|
| 333 | - public function setBackgroundColor($backgroundColor) |
|
| 334 | - { |
|
| 335 | - $this->backgroundColor = strval($backgroundColor); |
|
| 336 | - |
|
| 337 | - return $this; |
|
| 338 | - } |
|
| 339 | - |
|
| 340 | - /** |
|
| 341 | - * @return string |
|
| 342 | - */ |
|
| 343 | - public function getTitleFontFamily() |
|
| 344 | - { |
|
| 345 | - return $this->titleFontFamily; |
|
| 346 | - } |
|
| 347 | - |
|
| 348 | - /** |
|
| 349 | - * @param string $titleFontFamily |
|
| 350 | - * |
|
| 351 | - * @return $this |
|
| 352 | - */ |
|
| 353 | - public function setTitleFontFamily($titleFontFamily) |
|
| 354 | - { |
|
| 355 | - $this->titleFontFamily = strval($titleFontFamily); |
|
| 356 | - |
|
| 357 | - return $this; |
|
| 358 | - } |
|
| 359 | - |
|
| 360 | - /** |
|
| 361 | - * @return int |
|
| 362 | - */ |
|
| 363 | - public function getTitleFontSize() |
|
| 364 | - { |
|
| 365 | - return $this->titleFontSize; |
|
| 366 | - } |
|
| 367 | - |
|
| 368 | - /** |
|
| 369 | - * @param int $titleFontSize |
|
| 370 | - * |
|
| 371 | - * @return $this |
|
| 372 | - */ |
|
| 373 | - public function setTitleFontSize($titleFontSize) |
|
| 374 | - { |
|
| 375 | - $this->titleFontSize = intval($titleFontSize); |
|
| 376 | - |
|
| 377 | - return $this; |
|
| 378 | - } |
|
| 379 | - |
|
| 380 | - /** |
|
| 381 | - * @return string |
|
| 382 | - */ |
|
| 383 | - public function getTitleFontStyle() |
|
| 384 | - { |
|
| 385 | - return $this->titleFontStyle; |
|
| 386 | - } |
|
| 387 | - |
|
| 388 | - /** |
|
| 389 | - * @param string $titleFontStyle |
|
| 390 | - * |
|
| 391 | - * @return $this |
|
| 392 | - */ |
|
| 393 | - public function setTitleFontStyle($titleFontStyle) |
|
| 394 | - { |
|
| 395 | - $this->titleFontStyle = strval($titleFontStyle); |
|
| 396 | - |
|
| 397 | - return $this; |
|
| 398 | - } |
|
| 399 | - |
|
| 400 | - /** |
|
| 401 | - * @return string |
|
| 402 | - */ |
|
| 403 | - public function getTitleFontColor() |
|
| 404 | - { |
|
| 405 | - return $this->titleFontColor; |
|
| 406 | - } |
|
| 407 | - |
|
| 408 | - /** |
|
| 409 | - * @param string $titleFontColor |
|
| 410 | - * |
|
| 411 | - * @return $this |
|
| 412 | - */ |
|
| 413 | - public function setTitleFontColor($titleFontColor) |
|
| 414 | - { |
|
| 415 | - $this->titleFontColor = strval($titleFontColor); |
|
| 416 | - |
|
| 417 | - return $this; |
|
| 418 | - } |
|
| 419 | - |
|
| 420 | - /** |
|
| 421 | - * @return int |
|
| 422 | - */ |
|
| 423 | - public function getTitleSpacing() |
|
| 424 | - { |
|
| 425 | - return $this->titleSpacing; |
|
| 426 | - } |
|
| 427 | - |
|
| 428 | - /** |
|
| 429 | - * @param int $titleSpacing |
|
| 430 | - * |
|
| 431 | - * @return $this |
|
| 432 | - */ |
|
| 433 | - public function setTitleSpacing($titleSpacing) |
|
| 434 | - { |
|
| 435 | - $this->titleSpacing = intval($titleSpacing); |
|
| 436 | - |
|
| 437 | - return $this; |
|
| 438 | - } |
|
| 439 | - |
|
| 440 | - /** |
|
| 441 | - * @return int |
|
| 442 | - */ |
|
| 443 | - public function getTitleMarginBottom() |
|
| 444 | - { |
|
| 445 | - return $this->titleMarginBottom; |
|
| 446 | - } |
|
| 447 | - |
|
| 448 | - /** |
|
| 449 | - * @param int $titleMarginBottom |
|
| 450 | - * |
|
| 451 | - * @return $this |
|
| 452 | - */ |
|
| 453 | - public function setTitleMarginBottom($titleMarginBottom) |
|
| 454 | - { |
|
| 455 | - $this->titleMarginBottom = intval($titleMarginBottom); |
|
| 456 | - |
|
| 457 | - return $this; |
|
| 458 | - } |
|
| 459 | - |
|
| 460 | - /** |
|
| 461 | - * @return string |
|
| 462 | - */ |
|
| 463 | - public function getBodyFontFamily() |
|
| 464 | - { |
|
| 465 | - return $this->bodyFontFamily; |
|
| 466 | - } |
|
| 467 | - |
|
| 468 | - /** |
|
| 469 | - * @param string $bodyFontFamily |
|
| 470 | - * |
|
| 471 | - * @return $this |
|
| 472 | - */ |
|
| 473 | - public function setBodyFontFamily($bodyFontFamily) |
|
| 474 | - { |
|
| 475 | - $this->bodyFontFamily = strval($bodyFontFamily); |
|
| 476 | - |
|
| 477 | - return $this; |
|
| 478 | - } |
|
| 479 | - |
|
| 480 | - /** |
|
| 481 | - * @return int |
|
| 482 | - */ |
|
| 483 | - public function getBodyFontSize() |
|
| 484 | - { |
|
| 485 | - return $this->bodyFontSize; |
|
| 486 | - } |
|
| 487 | - |
|
| 488 | - /** |
|
| 489 | - * @param int $bodyFontSize |
|
| 490 | - * |
|
| 491 | - * @return $this |
|
| 492 | - */ |
|
| 493 | - public function setBodyFontSize($bodyFontSize) |
|
| 494 | - { |
|
| 495 | - $this->bodyFontSize = intval($bodyFontSize); |
|
| 496 | - |
|
| 497 | - return $this; |
|
| 498 | - } |
|
| 499 | - |
|
| 500 | - /** |
|
| 501 | - * @return string |
|
| 502 | - */ |
|
| 503 | - public function getBodyFontStyle() |
|
| 504 | - { |
|
| 505 | - return $this->bodyFontStyle; |
|
| 506 | - } |
|
| 507 | - |
|
| 508 | - /** |
|
| 509 | - * @param string $bodyFontStyle |
|
| 510 | - * |
|
| 511 | - * @return $this |
|
| 512 | - */ |
|
| 513 | - public function setBodyFontStyle($bodyFontStyle) |
|
| 514 | - { |
|
| 515 | - $this->bodyFontStyle = strval($bodyFontStyle); |
|
| 516 | - |
|
| 517 | - return $this; |
|
| 518 | - } |
|
| 519 | - |
|
| 520 | - /** |
|
| 521 | - * @return string |
|
| 522 | - */ |
|
| 523 | - public function getBodyFontColor() |
|
| 524 | - { |
|
| 525 | - return $this->bodyFontColor; |
|
| 526 | - } |
|
| 527 | - |
|
| 528 | - /** |
|
| 529 | - * @param string $bodyFontColor |
|
| 530 | - * |
|
| 531 | - * @return $this |
|
| 532 | - */ |
|
| 533 | - public function setBodyFontColor($bodyFontColor) |
|
| 534 | - { |
|
| 535 | - $this->bodyFontColor = strval($bodyFontColor); |
|
| 536 | - |
|
| 537 | - return $this; |
|
| 538 | - } |
|
| 539 | - |
|
| 540 | - /** |
|
| 541 | - * @return int |
|
| 542 | - */ |
|
| 543 | - public function getBodySpacing() |
|
| 544 | - { |
|
| 545 | - return $this->bodySpacing; |
|
| 546 | - } |
|
| 547 | - |
|
| 548 | - /** |
|
| 549 | - * @param int $bodySpacing |
|
| 550 | - * |
|
| 551 | - * @return $this |
|
| 552 | - */ |
|
| 553 | - public function setBodySpacing($bodySpacing) |
|
| 554 | - { |
|
| 555 | - $this->bodySpacing = intval($bodySpacing); |
|
| 556 | - |
|
| 557 | - return $this; |
|
| 558 | - } |
|
| 559 | - |
|
| 560 | - /** |
|
| 561 | - * @return string |
|
| 562 | - */ |
|
| 563 | - public function getFooterFontFamily() |
|
| 564 | - { |
|
| 565 | - return $this->footerFontFamily; |
|
| 566 | - } |
|
| 567 | - |
|
| 568 | - /** |
|
| 569 | - * @param string $footerFontFamily |
|
| 570 | - * |
|
| 571 | - * @return $this |
|
| 572 | - */ |
|
| 573 | - public function setFooterFontFamily($footerFontFamily) |
|
| 574 | - { |
|
| 575 | - $this->footerFontFamily = strval($footerFontFamily); |
|
| 576 | - |
|
| 577 | - return $this; |
|
| 578 | - } |
|
| 579 | - |
|
| 580 | - /** |
|
| 581 | - * @return int |
|
| 582 | - */ |
|
| 583 | - public function getFooterFontSize() |
|
| 584 | - { |
|
| 585 | - return $this->footerFontSize; |
|
| 586 | - } |
|
| 587 | - |
|
| 588 | - /** |
|
| 589 | - * @param int $footerFontSize |
|
| 590 | - * |
|
| 591 | - * @return $this |
|
| 592 | - */ |
|
| 593 | - public function setFooterFontSize($footerFontSize) |
|
| 594 | - { |
|
| 595 | - $this->footerFontSize = intval($footerFontSize); |
|
| 596 | - |
|
| 597 | - return $this; |
|
| 598 | - } |
|
| 599 | - |
|
| 600 | - /** |
|
| 601 | - * @return string |
|
| 602 | - */ |
|
| 603 | - public function getFooterFontStyle() |
|
| 604 | - { |
|
| 605 | - return $this->footerFontStyle; |
|
| 606 | - } |
|
| 607 | - |
|
| 608 | - /** |
|
| 609 | - * @param string $footerFontStyle |
|
| 610 | - * |
|
| 611 | - * @return $this |
|
| 612 | - */ |
|
| 613 | - public function setFooterFontStyle($footerFontStyle) |
|
| 614 | - { |
|
| 615 | - $this->footerFontStyle = strval($footerFontStyle); |
|
| 616 | - |
|
| 617 | - return $this; |
|
| 618 | - } |
|
| 619 | - |
|
| 620 | - /** |
|
| 621 | - * @return string |
|
| 622 | - */ |
|
| 623 | - public function getFooterFontColor() |
|
| 624 | - { |
|
| 625 | - return $this->footerFontColor; |
|
| 626 | - } |
|
| 627 | - |
|
| 628 | - /** |
|
| 629 | - * @param string $footerFontColor |
|
| 630 | - * |
|
| 631 | - * @return $this |
|
| 632 | - */ |
|
| 633 | - public function setFooterFontColor($footerFontColor) |
|
| 634 | - { |
|
| 635 | - $this->footerFontColor = strval($footerFontColor); |
|
| 636 | - |
|
| 637 | - return $this; |
|
| 638 | - } |
|
| 639 | - |
|
| 640 | - /** |
|
| 641 | - * @return int |
|
| 642 | - */ |
|
| 643 | - public function getFooterSpacing() |
|
| 644 | - { |
|
| 645 | - return $this->footerSpacing; |
|
| 646 | - } |
|
| 647 | - |
|
| 648 | - /** |
|
| 649 | - * @param int $footerSpacing |
|
| 650 | - * |
|
| 651 | - * @return $this |
|
| 652 | - */ |
|
| 653 | - public function setFooterSpacing($footerSpacing) |
|
| 654 | - { |
|
| 655 | - $this->footerSpacing = intval($footerSpacing); |
|
| 656 | - |
|
| 657 | - return $this; |
|
| 658 | - } |
|
| 659 | - |
|
| 660 | - /** |
|
| 661 | - * @return int |
|
| 662 | - */ |
|
| 663 | - public function getFooterMarginTop() |
|
| 664 | - { |
|
| 665 | - return $this->footerMarginTop; |
|
| 666 | - } |
|
| 667 | - |
|
| 668 | - /** |
|
| 669 | - * @param int $footerMarginTop |
|
| 670 | - * |
|
| 671 | - * @return $this |
|
| 672 | - */ |
|
| 673 | - public function setFooterMarginTop($footerMarginTop) |
|
| 674 | - { |
|
| 675 | - $this->footerMarginTop = intval($footerMarginTop); |
|
| 676 | - |
|
| 677 | - return $this; |
|
| 678 | - } |
|
| 679 | - |
|
| 680 | - /** |
|
| 681 | - * @return int |
|
| 682 | - */ |
|
| 683 | - public function getXPadding() |
|
| 684 | - { |
|
| 685 | - return $this->xPadding; |
|
| 686 | - } |
|
| 687 | - |
|
| 688 | - /** |
|
| 689 | - * @param int $xPadding |
|
| 690 | - * |
|
| 691 | - * @return $this |
|
| 692 | - */ |
|
| 693 | - public function setXPadding($xPadding) |
|
| 694 | - { |
|
| 695 | - $this->xPadding = intval($xPadding); |
|
| 696 | - |
|
| 697 | - return $this; |
|
| 698 | - } |
|
| 699 | - |
|
| 700 | - /** |
|
| 701 | - * @return int |
|
| 702 | - */ |
|
| 703 | - public function getYPadding() |
|
| 704 | - { |
|
| 705 | - return $this->yPadding; |
|
| 706 | - } |
|
| 707 | - |
|
| 708 | - /** |
|
| 709 | - * @param int $yPadding |
|
| 710 | - * |
|
| 711 | - * @return $this |
|
| 712 | - */ |
|
| 713 | - public function setYPadding($yPadding) |
|
| 714 | - { |
|
| 715 | - $this->yPadding = intval($yPadding); |
|
| 716 | - |
|
| 717 | - return $this; |
|
| 718 | - } |
|
| 719 | - |
|
| 720 | - /** |
|
| 721 | - * @return int |
|
| 722 | - */ |
|
| 723 | - public function getCaretSize() |
|
| 724 | - { |
|
| 725 | - return $this->caretSize; |
|
| 726 | - } |
|
| 727 | - |
|
| 728 | - /** |
|
| 729 | - * @param int $caretSize |
|
| 730 | - * |
|
| 731 | - * @return $this |
|
| 732 | - */ |
|
| 733 | - public function setCaretSize($caretSize) |
|
| 734 | - { |
|
| 735 | - $this->caretSize = intval($caretSize); |
|
| 736 | - |
|
| 737 | - return $this; |
|
| 738 | - } |
|
| 739 | - |
|
| 740 | - /** |
|
| 741 | - * @return int |
|
| 742 | - */ |
|
| 743 | - public function getCornerRadius() |
|
| 744 | - { |
|
| 745 | - return $this->cornerRadius; |
|
| 746 | - } |
|
| 747 | - |
|
| 748 | - /** |
|
| 749 | - * @param int $cornerRadius |
|
| 750 | - * |
|
| 751 | - * @return $this |
|
| 752 | - */ |
|
| 753 | - public function setCornerRadius($cornerRadius) |
|
| 754 | - { |
|
| 755 | - $this->cornerRadius = intval($cornerRadius); |
|
| 756 | - |
|
| 757 | - return $this; |
|
| 758 | - } |
|
| 759 | - |
|
| 760 | - /** |
|
| 761 | - * @return string |
|
| 762 | - */ |
|
| 763 | - public function getMultiKeyBackground() |
|
| 764 | - { |
|
| 765 | - return $this->multiKeyBackground; |
|
| 766 | - } |
|
| 767 | - |
|
| 768 | - /** |
|
| 769 | - * @param string $multiKeyBackground |
|
| 770 | - * |
|
| 771 | - * @return $this |
|
| 772 | - */ |
|
| 773 | - public function setMultiKeyBackground($multiKeyBackground) |
|
| 774 | - { |
|
| 775 | - $this->multiKeyBackground = strval($multiKeyBackground); |
|
| 776 | - |
|
| 777 | - return $this; |
|
| 778 | - } |
|
| 779 | - |
|
| 780 | - /** |
|
| 781 | - * @return bool |
|
| 782 | - */ |
|
| 783 | - public function isDisplayColors() |
|
| 784 | - { |
|
| 785 | - return $this->displayColors; |
|
| 786 | - } |
|
| 787 | - |
|
| 788 | - /** |
|
| 789 | - * @param bool $displayColors |
|
| 790 | - * |
|
| 791 | - * @return $this |
|
| 792 | - */ |
|
| 793 | - public function setDisplayColors($displayColors) |
|
| 794 | - { |
|
| 795 | - $this->displayColors = boolval($displayColors); |
|
| 796 | - |
|
| 797 | - return $this; |
|
| 798 | - } |
|
| 799 | - |
|
| 800 | - /** |
|
| 801 | - * @return Callbacks |
|
| 802 | - */ |
|
| 803 | - public function callbacks() |
|
| 804 | - { |
|
| 805 | - if (is_null($this->callbacks)) { |
|
| 806 | - $this->callbacks = new Callbacks(); |
|
| 807 | - } |
|
| 808 | - |
|
| 809 | - return $this->callbacks; |
|
| 810 | - } |
|
| 811 | - |
|
| 812 | - /** |
|
| 813 | - * @return array |
|
| 814 | - */ |
|
| 815 | - public function jsonSerialize() |
|
| 816 | - { |
|
| 817 | - return $this->getArrayCopy(); |
|
| 818 | - } |
|
| 18 | + use ArraySerializable; |
|
| 19 | + |
|
| 20 | + /** |
|
| 21 | + * @var bool |
|
| 22 | + */ |
|
| 23 | + private $enabled; |
|
| 24 | + |
|
| 25 | + /** |
|
| 26 | + * @var Expr |
|
| 27 | + */ |
|
| 28 | + private $custom; |
|
| 29 | + |
|
| 30 | + /** |
|
| 31 | + * @var string |
|
| 32 | + */ |
|
| 33 | + private $mode; |
|
| 34 | + |
|
| 35 | + /** |
|
| 36 | + * @var bool |
|
| 37 | + */ |
|
| 38 | + private $intersect; |
|
| 39 | + |
|
| 40 | + /** |
|
| 41 | + * @var string |
|
| 42 | + */ |
|
| 43 | + private $position; |
|
| 44 | + |
|
| 45 | + /** |
|
| 46 | + * @var Expr |
|
| 47 | + */ |
|
| 48 | + private $itemSort; |
|
| 49 | + |
|
| 50 | + /** |
|
| 51 | + * @var Expr |
|
| 52 | + */ |
|
| 53 | + private $filter; |
|
| 54 | + |
|
| 55 | + /** |
|
| 56 | + * @var string |
|
| 57 | + */ |
|
| 58 | + private $backgroundColor; |
|
| 59 | + |
|
| 60 | + /** |
|
| 61 | + * @var string |
|
| 62 | + */ |
|
| 63 | + private $titleFontFamily; |
|
| 64 | + |
|
| 65 | + /** |
|
| 66 | + * @var int |
|
| 67 | + */ |
|
| 68 | + private $titleFontSize; |
|
| 69 | + |
|
| 70 | + /** |
|
| 71 | + * @var string |
|
| 72 | + */ |
|
| 73 | + private $titleFontStyle; |
|
| 74 | + |
|
| 75 | + /** |
|
| 76 | + * @var string |
|
| 77 | + */ |
|
| 78 | + private $titleFontColor; |
|
| 79 | + |
|
| 80 | + /** |
|
| 81 | + * @var int |
|
| 82 | + */ |
|
| 83 | + private $titleSpacing; |
|
| 84 | + |
|
| 85 | + /** |
|
| 86 | + * @var int |
|
| 87 | + */ |
|
| 88 | + private $titleMarginBottom; |
|
| 89 | + |
|
| 90 | + /** |
|
| 91 | + * @var string |
|
| 92 | + */ |
|
| 93 | + private $bodyFontFamily; |
|
| 94 | + |
|
| 95 | + /** |
|
| 96 | + * @var int |
|
| 97 | + */ |
|
| 98 | + private $bodyFontSize; |
|
| 99 | + |
|
| 100 | + /** |
|
| 101 | + * @var string |
|
| 102 | + */ |
|
| 103 | + private $bodyFontStyle; |
|
| 104 | + |
|
| 105 | + /** |
|
| 106 | + * @var string |
|
| 107 | + */ |
|
| 108 | + private $bodyFontColor; |
|
| 109 | + |
|
| 110 | + /** |
|
| 111 | + * @var int |
|
| 112 | + */ |
|
| 113 | + private $bodySpacing; |
|
| 114 | + |
|
| 115 | + /** |
|
| 116 | + * @var string |
|
| 117 | + */ |
|
| 118 | + private $footerFontFamily; |
|
| 119 | + |
|
| 120 | + /** |
|
| 121 | + * @var int |
|
| 122 | + */ |
|
| 123 | + private $footerFontSize; |
|
| 124 | + |
|
| 125 | + /** |
|
| 126 | + * @var string |
|
| 127 | + */ |
|
| 128 | + private $footerFontStyle; |
|
| 129 | + |
|
| 130 | + /** |
|
| 131 | + * @var string |
|
| 132 | + */ |
|
| 133 | + private $footerFontColor; |
|
| 134 | + |
|
| 135 | + /** |
|
| 136 | + * @var int |
|
| 137 | + */ |
|
| 138 | + private $footerSpacing; |
|
| 139 | + |
|
| 140 | + /** |
|
| 141 | + * @var int |
|
| 142 | + */ |
|
| 143 | + private $footerMarginTop; |
|
| 144 | + |
|
| 145 | + /** |
|
| 146 | + * @var int |
|
| 147 | + */ |
|
| 148 | + private $xPadding; |
|
| 149 | + |
|
| 150 | + /** |
|
| 151 | + * @var int |
|
| 152 | + */ |
|
| 153 | + private $yPadding; |
|
| 154 | + |
|
| 155 | + /** |
|
| 156 | + * @var int |
|
| 157 | + */ |
|
| 158 | + private $caretSize; |
|
| 159 | + |
|
| 160 | + /** |
|
| 161 | + * @var int |
|
| 162 | + */ |
|
| 163 | + private $cornerRadius; |
|
| 164 | + |
|
| 165 | + /** |
|
| 166 | + * @var string |
|
| 167 | + */ |
|
| 168 | + private $multiKeyBackground; |
|
| 169 | + |
|
| 170 | + /** |
|
| 171 | + * @var bool |
|
| 172 | + */ |
|
| 173 | + private $displayColors; |
|
| 174 | + |
|
| 175 | + /** |
|
| 176 | + * @var Callbacks |
|
| 177 | + */ |
|
| 178 | + private $callbacks; |
|
| 179 | + |
|
| 180 | + /** |
|
| 181 | + * @return bool |
|
| 182 | + */ |
|
| 183 | + public function isEnabled() |
|
| 184 | + { |
|
| 185 | + return $this->enabled; |
|
| 186 | + } |
|
| 187 | + |
|
| 188 | + /** |
|
| 189 | + * @param bool $enabled |
|
| 190 | + * |
|
| 191 | + * @return $this |
|
| 192 | + */ |
|
| 193 | + public function setEnabled($enabled) |
|
| 194 | + { |
|
| 195 | + $this->enabled = boolval($enabled); |
|
| 196 | + |
|
| 197 | + return $this; |
|
| 198 | + } |
|
| 199 | + |
|
| 200 | + /** |
|
| 201 | + * @return \Zend\Json\Expr |
|
| 202 | + */ |
|
| 203 | + public function getCustom() |
|
| 204 | + { |
|
| 205 | + return $this->custom; |
|
| 206 | + } |
|
| 207 | + |
|
| 208 | + /** |
|
| 209 | + * @param \Zend\Json\Expr $custom |
|
| 210 | + * |
|
| 211 | + * @return $this |
|
| 212 | + */ |
|
| 213 | + public function setCustom($custom) |
|
| 214 | + { |
|
| 215 | + $this->custom = $custom; |
|
| 216 | + |
|
| 217 | + return $this; |
|
| 218 | + } |
|
| 219 | + |
|
| 220 | + /** |
|
| 221 | + * @return string |
|
| 222 | + */ |
|
| 223 | + public function getMode() |
|
| 224 | + { |
|
| 225 | + return $this->mode; |
|
| 226 | + } |
|
| 227 | + |
|
| 228 | + /** |
|
| 229 | + * @param string $mode |
|
| 230 | + * |
|
| 231 | + * @return $this |
|
| 232 | + */ |
|
| 233 | + public function setMode($mode) |
|
| 234 | + { |
|
| 235 | + $this->mode = strval($mode); |
|
| 236 | + |
|
| 237 | + return $this; |
|
| 238 | + } |
|
| 239 | + |
|
| 240 | + /** |
|
| 241 | + * @return bool |
|
| 242 | + */ |
|
| 243 | + public function isIntersect() |
|
| 244 | + { |
|
| 245 | + return $this->intersect; |
|
| 246 | + } |
|
| 247 | + |
|
| 248 | + /** |
|
| 249 | + * @param bool $intersect |
|
| 250 | + * |
|
| 251 | + * @return $this |
|
| 252 | + */ |
|
| 253 | + public function setIntersect($intersect) |
|
| 254 | + { |
|
| 255 | + $this->intersect = boolval($intersect); |
|
| 256 | + |
|
| 257 | + return $this; |
|
| 258 | + } |
|
| 259 | + |
|
| 260 | + /** |
|
| 261 | + * @return string |
|
| 262 | + */ |
|
| 263 | + public function getPosition() |
|
| 264 | + { |
|
| 265 | + return $this->position; |
|
| 266 | + } |
|
| 267 | + |
|
| 268 | + /** |
|
| 269 | + * @param string $position |
|
| 270 | + * |
|
| 271 | + * @return $this |
|
| 272 | + */ |
|
| 273 | + public function setPosition($position) |
|
| 274 | + { |
|
| 275 | + $this->position = strval($position); |
|
| 276 | + |
|
| 277 | + return $this; |
|
| 278 | + } |
|
| 279 | + |
|
| 280 | + /** |
|
| 281 | + * @return Expr |
|
| 282 | + */ |
|
| 283 | + public function getItemSort() |
|
| 284 | + { |
|
| 285 | + return $this->itemSort; |
|
| 286 | + } |
|
| 287 | + |
|
| 288 | + /** |
|
| 289 | + * @param Expr $itemSort |
|
| 290 | + * |
|
| 291 | + * @return $this |
|
| 292 | + */ |
|
| 293 | + public function setItemSort($itemSort) |
|
| 294 | + { |
|
| 295 | + $this->itemSort = new Expr(strval($itemSort)); |
|
| 296 | + |
|
| 297 | + return $this; |
|
| 298 | + } |
|
| 299 | + |
|
| 300 | + /** |
|
| 301 | + * @return Expr |
|
| 302 | + */ |
|
| 303 | + public function getFilter() |
|
| 304 | + { |
|
| 305 | + return $this->filter; |
|
| 306 | + } |
|
| 307 | + |
|
| 308 | + /** |
|
| 309 | + * @param Expr $filter |
|
| 310 | + * |
|
| 311 | + * @return $this |
|
| 312 | + */ |
|
| 313 | + public function setFilter($filter) |
|
| 314 | + { |
|
| 315 | + $this->filter = new Expr(strval($filter)); |
|
| 316 | + |
|
| 317 | + return $this; |
|
| 318 | + } |
|
| 319 | + |
|
| 320 | + /** |
|
| 321 | + * @return string |
|
| 322 | + */ |
|
| 323 | + public function getBackgroundColor() |
|
| 324 | + { |
|
| 325 | + return $this->backgroundColor; |
|
| 326 | + } |
|
| 327 | + |
|
| 328 | + /** |
|
| 329 | + * @param string $backgroundColor |
|
| 330 | + * |
|
| 331 | + * @return $this |
|
| 332 | + */ |
|
| 333 | + public function setBackgroundColor($backgroundColor) |
|
| 334 | + { |
|
| 335 | + $this->backgroundColor = strval($backgroundColor); |
|
| 336 | + |
|
| 337 | + return $this; |
|
| 338 | + } |
|
| 339 | + |
|
| 340 | + /** |
|
| 341 | + * @return string |
|
| 342 | + */ |
|
| 343 | + public function getTitleFontFamily() |
|
| 344 | + { |
|
| 345 | + return $this->titleFontFamily; |
|
| 346 | + } |
|
| 347 | + |
|
| 348 | + /** |
|
| 349 | + * @param string $titleFontFamily |
|
| 350 | + * |
|
| 351 | + * @return $this |
|
| 352 | + */ |
|
| 353 | + public function setTitleFontFamily($titleFontFamily) |
|
| 354 | + { |
|
| 355 | + $this->titleFontFamily = strval($titleFontFamily); |
|
| 356 | + |
|
| 357 | + return $this; |
|
| 358 | + } |
|
| 359 | + |
|
| 360 | + /** |
|
| 361 | + * @return int |
|
| 362 | + */ |
|
| 363 | + public function getTitleFontSize() |
|
| 364 | + { |
|
| 365 | + return $this->titleFontSize; |
|
| 366 | + } |
|
| 367 | + |
|
| 368 | + /** |
|
| 369 | + * @param int $titleFontSize |
|
| 370 | + * |
|
| 371 | + * @return $this |
|
| 372 | + */ |
|
| 373 | + public function setTitleFontSize($titleFontSize) |
|
| 374 | + { |
|
| 375 | + $this->titleFontSize = intval($titleFontSize); |
|
| 376 | + |
|
| 377 | + return $this; |
|
| 378 | + } |
|
| 379 | + |
|
| 380 | + /** |
|
| 381 | + * @return string |
|
| 382 | + */ |
|
| 383 | + public function getTitleFontStyle() |
|
| 384 | + { |
|
| 385 | + return $this->titleFontStyle; |
|
| 386 | + } |
|
| 387 | + |
|
| 388 | + /** |
|
| 389 | + * @param string $titleFontStyle |
|
| 390 | + * |
|
| 391 | + * @return $this |
|
| 392 | + */ |
|
| 393 | + public function setTitleFontStyle($titleFontStyle) |
|
| 394 | + { |
|
| 395 | + $this->titleFontStyle = strval($titleFontStyle); |
|
| 396 | + |
|
| 397 | + return $this; |
|
| 398 | + } |
|
| 399 | + |
|
| 400 | + /** |
|
| 401 | + * @return string |
|
| 402 | + */ |
|
| 403 | + public function getTitleFontColor() |
|
| 404 | + { |
|
| 405 | + return $this->titleFontColor; |
|
| 406 | + } |
|
| 407 | + |
|
| 408 | + /** |
|
| 409 | + * @param string $titleFontColor |
|
| 410 | + * |
|
| 411 | + * @return $this |
|
| 412 | + */ |
|
| 413 | + public function setTitleFontColor($titleFontColor) |
|
| 414 | + { |
|
| 415 | + $this->titleFontColor = strval($titleFontColor); |
|
| 416 | + |
|
| 417 | + return $this; |
|
| 418 | + } |
|
| 419 | + |
|
| 420 | + /** |
|
| 421 | + * @return int |
|
| 422 | + */ |
|
| 423 | + public function getTitleSpacing() |
|
| 424 | + { |
|
| 425 | + return $this->titleSpacing; |
|
| 426 | + } |
|
| 427 | + |
|
| 428 | + /** |
|
| 429 | + * @param int $titleSpacing |
|
| 430 | + * |
|
| 431 | + * @return $this |
|
| 432 | + */ |
|
| 433 | + public function setTitleSpacing($titleSpacing) |
|
| 434 | + { |
|
| 435 | + $this->titleSpacing = intval($titleSpacing); |
|
| 436 | + |
|
| 437 | + return $this; |
|
| 438 | + } |
|
| 439 | + |
|
| 440 | + /** |
|
| 441 | + * @return int |
|
| 442 | + */ |
|
| 443 | + public function getTitleMarginBottom() |
|
| 444 | + { |
|
| 445 | + return $this->titleMarginBottom; |
|
| 446 | + } |
|
| 447 | + |
|
| 448 | + /** |
|
| 449 | + * @param int $titleMarginBottom |
|
| 450 | + * |
|
| 451 | + * @return $this |
|
| 452 | + */ |
|
| 453 | + public function setTitleMarginBottom($titleMarginBottom) |
|
| 454 | + { |
|
| 455 | + $this->titleMarginBottom = intval($titleMarginBottom); |
|
| 456 | + |
|
| 457 | + return $this; |
|
| 458 | + } |
|
| 459 | + |
|
| 460 | + /** |
|
| 461 | + * @return string |
|
| 462 | + */ |
|
| 463 | + public function getBodyFontFamily() |
|
| 464 | + { |
|
| 465 | + return $this->bodyFontFamily; |
|
| 466 | + } |
|
| 467 | + |
|
| 468 | + /** |
|
| 469 | + * @param string $bodyFontFamily |
|
| 470 | + * |
|
| 471 | + * @return $this |
|
| 472 | + */ |
|
| 473 | + public function setBodyFontFamily($bodyFontFamily) |
|
| 474 | + { |
|
| 475 | + $this->bodyFontFamily = strval($bodyFontFamily); |
|
| 476 | + |
|
| 477 | + return $this; |
|
| 478 | + } |
|
| 479 | + |
|
| 480 | + /** |
|
| 481 | + * @return int |
|
| 482 | + */ |
|
| 483 | + public function getBodyFontSize() |
|
| 484 | + { |
|
| 485 | + return $this->bodyFontSize; |
|
| 486 | + } |
|
| 487 | + |
|
| 488 | + /** |
|
| 489 | + * @param int $bodyFontSize |
|
| 490 | + * |
|
| 491 | + * @return $this |
|
| 492 | + */ |
|
| 493 | + public function setBodyFontSize($bodyFontSize) |
|
| 494 | + { |
|
| 495 | + $this->bodyFontSize = intval($bodyFontSize); |
|
| 496 | + |
|
| 497 | + return $this; |
|
| 498 | + } |
|
| 499 | + |
|
| 500 | + /** |
|
| 501 | + * @return string |
|
| 502 | + */ |
|
| 503 | + public function getBodyFontStyle() |
|
| 504 | + { |
|
| 505 | + return $this->bodyFontStyle; |
|
| 506 | + } |
|
| 507 | + |
|
| 508 | + /** |
|
| 509 | + * @param string $bodyFontStyle |
|
| 510 | + * |
|
| 511 | + * @return $this |
|
| 512 | + */ |
|
| 513 | + public function setBodyFontStyle($bodyFontStyle) |
|
| 514 | + { |
|
| 515 | + $this->bodyFontStyle = strval($bodyFontStyle); |
|
| 516 | + |
|
| 517 | + return $this; |
|
| 518 | + } |
|
| 519 | + |
|
| 520 | + /** |
|
| 521 | + * @return string |
|
| 522 | + */ |
|
| 523 | + public function getBodyFontColor() |
|
| 524 | + { |
|
| 525 | + return $this->bodyFontColor; |
|
| 526 | + } |
|
| 527 | + |
|
| 528 | + /** |
|
| 529 | + * @param string $bodyFontColor |
|
| 530 | + * |
|
| 531 | + * @return $this |
|
| 532 | + */ |
|
| 533 | + public function setBodyFontColor($bodyFontColor) |
|
| 534 | + { |
|
| 535 | + $this->bodyFontColor = strval($bodyFontColor); |
|
| 536 | + |
|
| 537 | + return $this; |
|
| 538 | + } |
|
| 539 | + |
|
| 540 | + /** |
|
| 541 | + * @return int |
|
| 542 | + */ |
|
| 543 | + public function getBodySpacing() |
|
| 544 | + { |
|
| 545 | + return $this->bodySpacing; |
|
| 546 | + } |
|
| 547 | + |
|
| 548 | + /** |
|
| 549 | + * @param int $bodySpacing |
|
| 550 | + * |
|
| 551 | + * @return $this |
|
| 552 | + */ |
|
| 553 | + public function setBodySpacing($bodySpacing) |
|
| 554 | + { |
|
| 555 | + $this->bodySpacing = intval($bodySpacing); |
|
| 556 | + |
|
| 557 | + return $this; |
|
| 558 | + } |
|
| 559 | + |
|
| 560 | + /** |
|
| 561 | + * @return string |
|
| 562 | + */ |
|
| 563 | + public function getFooterFontFamily() |
|
| 564 | + { |
|
| 565 | + return $this->footerFontFamily; |
|
| 566 | + } |
|
| 567 | + |
|
| 568 | + /** |
|
| 569 | + * @param string $footerFontFamily |
|
| 570 | + * |
|
| 571 | + * @return $this |
|
| 572 | + */ |
|
| 573 | + public function setFooterFontFamily($footerFontFamily) |
|
| 574 | + { |
|
| 575 | + $this->footerFontFamily = strval($footerFontFamily); |
|
| 576 | + |
|
| 577 | + return $this; |
|
| 578 | + } |
|
| 579 | + |
|
| 580 | + /** |
|
| 581 | + * @return int |
|
| 582 | + */ |
|
| 583 | + public function getFooterFontSize() |
|
| 584 | + { |
|
| 585 | + return $this->footerFontSize; |
|
| 586 | + } |
|
| 587 | + |
|
| 588 | + /** |
|
| 589 | + * @param int $footerFontSize |
|
| 590 | + * |
|
| 591 | + * @return $this |
|
| 592 | + */ |
|
| 593 | + public function setFooterFontSize($footerFontSize) |
|
| 594 | + { |
|
| 595 | + $this->footerFontSize = intval($footerFontSize); |
|
| 596 | + |
|
| 597 | + return $this; |
|
| 598 | + } |
|
| 599 | + |
|
| 600 | + /** |
|
| 601 | + * @return string |
|
| 602 | + */ |
|
| 603 | + public function getFooterFontStyle() |
|
| 604 | + { |
|
| 605 | + return $this->footerFontStyle; |
|
| 606 | + } |
|
| 607 | + |
|
| 608 | + /** |
|
| 609 | + * @param string $footerFontStyle |
|
| 610 | + * |
|
| 611 | + * @return $this |
|
| 612 | + */ |
|
| 613 | + public function setFooterFontStyle($footerFontStyle) |
|
| 614 | + { |
|
| 615 | + $this->footerFontStyle = strval($footerFontStyle); |
|
| 616 | + |
|
| 617 | + return $this; |
|
| 618 | + } |
|
| 619 | + |
|
| 620 | + /** |
|
| 621 | + * @return string |
|
| 622 | + */ |
|
| 623 | + public function getFooterFontColor() |
|
| 624 | + { |
|
| 625 | + return $this->footerFontColor; |
|
| 626 | + } |
|
| 627 | + |
|
| 628 | + /** |
|
| 629 | + * @param string $footerFontColor |
|
| 630 | + * |
|
| 631 | + * @return $this |
|
| 632 | + */ |
|
| 633 | + public function setFooterFontColor($footerFontColor) |
|
| 634 | + { |
|
| 635 | + $this->footerFontColor = strval($footerFontColor); |
|
| 636 | + |
|
| 637 | + return $this; |
|
| 638 | + } |
|
| 639 | + |
|
| 640 | + /** |
|
| 641 | + * @return int |
|
| 642 | + */ |
|
| 643 | + public function getFooterSpacing() |
|
| 644 | + { |
|
| 645 | + return $this->footerSpacing; |
|
| 646 | + } |
|
| 647 | + |
|
| 648 | + /** |
|
| 649 | + * @param int $footerSpacing |
|
| 650 | + * |
|
| 651 | + * @return $this |
|
| 652 | + */ |
|
| 653 | + public function setFooterSpacing($footerSpacing) |
|
| 654 | + { |
|
| 655 | + $this->footerSpacing = intval($footerSpacing); |
|
| 656 | + |
|
| 657 | + return $this; |
|
| 658 | + } |
|
| 659 | + |
|
| 660 | + /** |
|
| 661 | + * @return int |
|
| 662 | + */ |
|
| 663 | + public function getFooterMarginTop() |
|
| 664 | + { |
|
| 665 | + return $this->footerMarginTop; |
|
| 666 | + } |
|
| 667 | + |
|
| 668 | + /** |
|
| 669 | + * @param int $footerMarginTop |
|
| 670 | + * |
|
| 671 | + * @return $this |
|
| 672 | + */ |
|
| 673 | + public function setFooterMarginTop($footerMarginTop) |
|
| 674 | + { |
|
| 675 | + $this->footerMarginTop = intval($footerMarginTop); |
|
| 676 | + |
|
| 677 | + return $this; |
|
| 678 | + } |
|
| 679 | + |
|
| 680 | + /** |
|
| 681 | + * @return int |
|
| 682 | + */ |
|
| 683 | + public function getXPadding() |
|
| 684 | + { |
|
| 685 | + return $this->xPadding; |
|
| 686 | + } |
|
| 687 | + |
|
| 688 | + /** |
|
| 689 | + * @param int $xPadding |
|
| 690 | + * |
|
| 691 | + * @return $this |
|
| 692 | + */ |
|
| 693 | + public function setXPadding($xPadding) |
|
| 694 | + { |
|
| 695 | + $this->xPadding = intval($xPadding); |
|
| 696 | + |
|
| 697 | + return $this; |
|
| 698 | + } |
|
| 699 | + |
|
| 700 | + /** |
|
| 701 | + * @return int |
|
| 702 | + */ |
|
| 703 | + public function getYPadding() |
|
| 704 | + { |
|
| 705 | + return $this->yPadding; |
|
| 706 | + } |
|
| 707 | + |
|
| 708 | + /** |
|
| 709 | + * @param int $yPadding |
|
| 710 | + * |
|
| 711 | + * @return $this |
|
| 712 | + */ |
|
| 713 | + public function setYPadding($yPadding) |
|
| 714 | + { |
|
| 715 | + $this->yPadding = intval($yPadding); |
|
| 716 | + |
|
| 717 | + return $this; |
|
| 718 | + } |
|
| 719 | + |
|
| 720 | + /** |
|
| 721 | + * @return int |
|
| 722 | + */ |
|
| 723 | + public function getCaretSize() |
|
| 724 | + { |
|
| 725 | + return $this->caretSize; |
|
| 726 | + } |
|
| 727 | + |
|
| 728 | + /** |
|
| 729 | + * @param int $caretSize |
|
| 730 | + * |
|
| 731 | + * @return $this |
|
| 732 | + */ |
|
| 733 | + public function setCaretSize($caretSize) |
|
| 734 | + { |
|
| 735 | + $this->caretSize = intval($caretSize); |
|
| 736 | + |
|
| 737 | + return $this; |
|
| 738 | + } |
|
| 739 | + |
|
| 740 | + /** |
|
| 741 | + * @return int |
|
| 742 | + */ |
|
| 743 | + public function getCornerRadius() |
|
| 744 | + { |
|
| 745 | + return $this->cornerRadius; |
|
| 746 | + } |
|
| 747 | + |
|
| 748 | + /** |
|
| 749 | + * @param int $cornerRadius |
|
| 750 | + * |
|
| 751 | + * @return $this |
|
| 752 | + */ |
|
| 753 | + public function setCornerRadius($cornerRadius) |
|
| 754 | + { |
|
| 755 | + $this->cornerRadius = intval($cornerRadius); |
|
| 756 | + |
|
| 757 | + return $this; |
|
| 758 | + } |
|
| 759 | + |
|
| 760 | + /** |
|
| 761 | + * @return string |
|
| 762 | + */ |
|
| 763 | + public function getMultiKeyBackground() |
|
| 764 | + { |
|
| 765 | + return $this->multiKeyBackground; |
|
| 766 | + } |
|
| 767 | + |
|
| 768 | + /** |
|
| 769 | + * @param string $multiKeyBackground |
|
| 770 | + * |
|
| 771 | + * @return $this |
|
| 772 | + */ |
|
| 773 | + public function setMultiKeyBackground($multiKeyBackground) |
|
| 774 | + { |
|
| 775 | + $this->multiKeyBackground = strval($multiKeyBackground); |
|
| 776 | + |
|
| 777 | + return $this; |
|
| 778 | + } |
|
| 779 | + |
|
| 780 | + /** |
|
| 781 | + * @return bool |
|
| 782 | + */ |
|
| 783 | + public function isDisplayColors() |
|
| 784 | + { |
|
| 785 | + return $this->displayColors; |
|
| 786 | + } |
|
| 787 | + |
|
| 788 | + /** |
|
| 789 | + * @param bool $displayColors |
|
| 790 | + * |
|
| 791 | + * @return $this |
|
| 792 | + */ |
|
| 793 | + public function setDisplayColors($displayColors) |
|
| 794 | + { |
|
| 795 | + $this->displayColors = boolval($displayColors); |
|
| 796 | + |
|
| 797 | + return $this; |
|
| 798 | + } |
|
| 799 | + |
|
| 800 | + /** |
|
| 801 | + * @return Callbacks |
|
| 802 | + */ |
|
| 803 | + public function callbacks() |
|
| 804 | + { |
|
| 805 | + if (is_null($this->callbacks)) { |
|
| 806 | + $this->callbacks = new Callbacks(); |
|
| 807 | + } |
|
| 808 | + |
|
| 809 | + return $this->callbacks; |
|
| 810 | + } |
|
| 811 | + |
|
| 812 | + /** |
|
| 813 | + * @return array |
|
| 814 | + */ |
|
| 815 | + public function jsonSerialize() |
|
| 816 | + { |
|
| 817 | + return $this->getArrayCopy(); |
|
| 818 | + } |
|
| 819 | 819 | } |
@@ -17,113 +17,113 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | class Elements implements ArraySerializableInterface, JsonSerializable |
| 19 | 19 | { |
| 20 | - use ArraySerializable; |
|
| 21 | - |
|
| 22 | - /** |
|
| 23 | - * @var Rectangle |
|
| 24 | - */ |
|
| 25 | - private $rectangle; |
|
| 26 | - |
|
| 27 | - /** |
|
| 28 | - * @var Line |
|
| 29 | - */ |
|
| 30 | - private $line; |
|
| 31 | - |
|
| 32 | - /** |
|
| 33 | - * @var Point |
|
| 34 | - */ |
|
| 35 | - private $point; |
|
| 36 | - |
|
| 37 | - /** |
|
| 38 | - * @var Arc |
|
| 39 | - */ |
|
| 40 | - private $arc; |
|
| 41 | - |
|
| 42 | - /** |
|
| 43 | - * @return Rectangle |
|
| 44 | - */ |
|
| 45 | - public function getRectangle() |
|
| 46 | - { |
|
| 47 | - return $this->rectangle; |
|
| 48 | - } |
|
| 49 | - |
|
| 50 | - /** |
|
| 51 | - * @return Rectangle |
|
| 52 | - */ |
|
| 53 | - public function rectangle() |
|
| 54 | - { |
|
| 55 | - if (is_null($this->rectangle)) { |
|
| 56 | - $this->rectangle = new Rectangle(); |
|
| 57 | - } |
|
| 58 | - |
|
| 59 | - return $this->rectangle; |
|
| 60 | - } |
|
| 61 | - |
|
| 62 | - /** |
|
| 63 | - * @return Line |
|
| 64 | - */ |
|
| 65 | - public function getLine() |
|
| 66 | - { |
|
| 67 | - return $this->line; |
|
| 68 | - } |
|
| 69 | - |
|
| 70 | - /** |
|
| 71 | - * @return Line |
|
| 72 | - */ |
|
| 73 | - public function line() |
|
| 74 | - { |
|
| 75 | - if (is_null($this->line)) { |
|
| 76 | - $this->line = new Line(); |
|
| 77 | - } |
|
| 78 | - |
|
| 79 | - return $this->line; |
|
| 80 | - } |
|
| 81 | - |
|
| 82 | - /** |
|
| 83 | - * @return Point |
|
| 84 | - */ |
|
| 85 | - public function getPoint() |
|
| 86 | - { |
|
| 87 | - return $this->point; |
|
| 88 | - } |
|
| 89 | - |
|
| 90 | - /** |
|
| 91 | - * @return Point |
|
| 92 | - */ |
|
| 93 | - public function point() |
|
| 94 | - { |
|
| 95 | - if (is_null($this->point)) { |
|
| 96 | - $this->point = new Point(); |
|
| 97 | - } |
|
| 98 | - |
|
| 99 | - return $this->point; |
|
| 100 | - } |
|
| 101 | - |
|
| 102 | - /** |
|
| 103 | - * @return Arc |
|
| 104 | - */ |
|
| 105 | - public function getArc() |
|
| 106 | - { |
|
| 107 | - return $this->arc; |
|
| 108 | - } |
|
| 109 | - |
|
| 110 | - /** |
|
| 111 | - * @return Arc |
|
| 112 | - */ |
|
| 113 | - public function arc() |
|
| 114 | - { |
|
| 115 | - if (is_null($this->arc)) { |
|
| 116 | - $this->arc = new Arc(); |
|
| 117 | - } |
|
| 118 | - |
|
| 119 | - return $this->arc; |
|
| 120 | - } |
|
| 121 | - |
|
| 122 | - /** |
|
| 123 | - * @return array |
|
| 124 | - */ |
|
| 125 | - public function jsonSerialize() |
|
| 126 | - { |
|
| 127 | - return $this->getArrayCopy(); |
|
| 128 | - } |
|
| 20 | + use ArraySerializable; |
|
| 21 | + |
|
| 22 | + /** |
|
| 23 | + * @var Rectangle |
|
| 24 | + */ |
|
| 25 | + private $rectangle; |
|
| 26 | + |
|
| 27 | + /** |
|
| 28 | + * @var Line |
|
| 29 | + */ |
|
| 30 | + private $line; |
|
| 31 | + |
|
| 32 | + /** |
|
| 33 | + * @var Point |
|
| 34 | + */ |
|
| 35 | + private $point; |
|
| 36 | + |
|
| 37 | + /** |
|
| 38 | + * @var Arc |
|
| 39 | + */ |
|
| 40 | + private $arc; |
|
| 41 | + |
|
| 42 | + /** |
|
| 43 | + * @return Rectangle |
|
| 44 | + */ |
|
| 45 | + public function getRectangle() |
|
| 46 | + { |
|
| 47 | + return $this->rectangle; |
|
| 48 | + } |
|
| 49 | + |
|
| 50 | + /** |
|
| 51 | + * @return Rectangle |
|
| 52 | + */ |
|
| 53 | + public function rectangle() |
|
| 54 | + { |
|
| 55 | + if (is_null($this->rectangle)) { |
|
| 56 | + $this->rectangle = new Rectangle(); |
|
| 57 | + } |
|
| 58 | + |
|
| 59 | + return $this->rectangle; |
|
| 60 | + } |
|
| 61 | + |
|
| 62 | + /** |
|
| 63 | + * @return Line |
|
| 64 | + */ |
|
| 65 | + public function getLine() |
|
| 66 | + { |
|
| 67 | + return $this->line; |
|
| 68 | + } |
|
| 69 | + |
|
| 70 | + /** |
|
| 71 | + * @return Line |
|
| 72 | + */ |
|
| 73 | + public function line() |
|
| 74 | + { |
|
| 75 | + if (is_null($this->line)) { |
|
| 76 | + $this->line = new Line(); |
|
| 77 | + } |
|
| 78 | + |
|
| 79 | + return $this->line; |
|
| 80 | + } |
|
| 81 | + |
|
| 82 | + /** |
|
| 83 | + * @return Point |
|
| 84 | + */ |
|
| 85 | + public function getPoint() |
|
| 86 | + { |
|
| 87 | + return $this->point; |
|
| 88 | + } |
|
| 89 | + |
|
| 90 | + /** |
|
| 91 | + * @return Point |
|
| 92 | + */ |
|
| 93 | + public function point() |
|
| 94 | + { |
|
| 95 | + if (is_null($this->point)) { |
|
| 96 | + $this->point = new Point(); |
|
| 97 | + } |
|
| 98 | + |
|
| 99 | + return $this->point; |
|
| 100 | + } |
|
| 101 | + |
|
| 102 | + /** |
|
| 103 | + * @return Arc |
|
| 104 | + */ |
|
| 105 | + public function getArc() |
|
| 106 | + { |
|
| 107 | + return $this->arc; |
|
| 108 | + } |
|
| 109 | + |
|
| 110 | + /** |
|
| 111 | + * @return Arc |
|
| 112 | + */ |
|
| 113 | + public function arc() |
|
| 114 | + { |
|
| 115 | + if (is_null($this->arc)) { |
|
| 116 | + $this->arc = new Arc(); |
|
| 117 | + } |
|
| 118 | + |
|
| 119 | + return $this->arc; |
|
| 120 | + } |
|
| 121 | + |
|
| 122 | + /** |
|
| 123 | + * @return array |
|
| 124 | + */ |
|
| 125 | + public function jsonSerialize() |
|
| 126 | + { |
|
| 127 | + return $this->getArrayCopy(); |
|
| 128 | + } |
|
| 129 | 129 | } |
@@ -12,113 +12,113 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | class Padding implements ArraySerializableInterface, JsonSerializable |
| 14 | 14 | { |
| 15 | - use ArraySerializable; |
|
| 16 | - |
|
| 17 | - /** |
|
| 18 | - * @var int |
|
| 19 | - */ |
|
| 20 | - private $bottom; |
|
| 21 | - |
|
| 22 | - /** |
|
| 23 | - * @var int |
|
| 24 | - */ |
|
| 25 | - private $left; |
|
| 26 | - |
|
| 27 | - /** |
|
| 28 | - * @var int |
|
| 29 | - */ |
|
| 30 | - private $right; |
|
| 31 | - |
|
| 32 | - /** |
|
| 33 | - * @var int |
|
| 34 | - */ |
|
| 35 | - private $top; |
|
| 36 | - |
|
| 37 | - /** |
|
| 38 | - * @return int |
|
| 39 | - */ |
|
| 40 | - public function getBottom() |
|
| 41 | - { |
|
| 42 | - return $this->bottom; |
|
| 43 | - } |
|
| 44 | - |
|
| 45 | - /** |
|
| 46 | - * @param int $bottom |
|
| 47 | - * |
|
| 48 | - * @return $this |
|
| 49 | - */ |
|
| 50 | - public function setBottom($bottom) |
|
| 51 | - { |
|
| 52 | - $this->bottom = intval($bottom); |
|
| 53 | - |
|
| 54 | - return $this; |
|
| 55 | - } |
|
| 56 | - |
|
| 57 | - /** |
|
| 58 | - * @return int |
|
| 59 | - */ |
|
| 60 | - public function getLeft() |
|
| 61 | - { |
|
| 62 | - return $this->left; |
|
| 63 | - } |
|
| 64 | - |
|
| 65 | - /** |
|
| 66 | - * @param int $left |
|
| 67 | - * |
|
| 68 | - * @return $this |
|
| 69 | - */ |
|
| 70 | - public function setLeft($left) |
|
| 71 | - { |
|
| 72 | - $this->left = intval($left); |
|
| 73 | - |
|
| 74 | - return $this; |
|
| 75 | - } |
|
| 76 | - |
|
| 77 | - /** |
|
| 78 | - * @return int |
|
| 79 | - */ |
|
| 80 | - public function getRight() |
|
| 81 | - { |
|
| 82 | - return $this->right; |
|
| 83 | - } |
|
| 84 | - |
|
| 85 | - /** |
|
| 86 | - * @param int $right |
|
| 87 | - * |
|
| 88 | - * @return $this |
|
| 89 | - */ |
|
| 90 | - public function setRight($right) |
|
| 91 | - { |
|
| 92 | - $this->right = intval($right); |
|
| 93 | - |
|
| 94 | - return $this; |
|
| 95 | - } |
|
| 96 | - |
|
| 97 | - /** |
|
| 98 | - * @return int |
|
| 99 | - */ |
|
| 100 | - public function getTop() |
|
| 101 | - { |
|
| 102 | - return $this->top; |
|
| 103 | - } |
|
| 104 | - |
|
| 105 | - /** |
|
| 106 | - * @param int $top |
|
| 107 | - * |
|
| 108 | - * @return $this |
|
| 109 | - */ |
|
| 110 | - public function setTop($top) |
|
| 111 | - { |
|
| 112 | - $this->top = intval($top); |
|
| 113 | - |
|
| 114 | - return $this; |
|
| 115 | - } |
|
| 116 | - |
|
| 117 | - /** |
|
| 118 | - * @return array |
|
| 119 | - */ |
|
| 120 | - public function jsonSerialize() |
|
| 121 | - { |
|
| 122 | - return $this->getArrayCopy(); |
|
| 123 | - } |
|
| 15 | + use ArraySerializable; |
|
| 16 | + |
|
| 17 | + /** |
|
| 18 | + * @var int |
|
| 19 | + */ |
|
| 20 | + private $bottom; |
|
| 21 | + |
|
| 22 | + /** |
|
| 23 | + * @var int |
|
| 24 | + */ |
|
| 25 | + private $left; |
|
| 26 | + |
|
| 27 | + /** |
|
| 28 | + * @var int |
|
| 29 | + */ |
|
| 30 | + private $right; |
|
| 31 | + |
|
| 32 | + /** |
|
| 33 | + * @var int |
|
| 34 | + */ |
|
| 35 | + private $top; |
|
| 36 | + |
|
| 37 | + /** |
|
| 38 | + * @return int |
|
| 39 | + */ |
|
| 40 | + public function getBottom() |
|
| 41 | + { |
|
| 42 | + return $this->bottom; |
|
| 43 | + } |
|
| 44 | + |
|
| 45 | + /** |
|
| 46 | + * @param int $bottom |
|
| 47 | + * |
|
| 48 | + * @return $this |
|
| 49 | + */ |
|
| 50 | + public function setBottom($bottom) |
|
| 51 | + { |
|
| 52 | + $this->bottom = intval($bottom); |
|
| 53 | + |
|
| 54 | + return $this; |
|
| 55 | + } |
|
| 56 | + |
|
| 57 | + /** |
|
| 58 | + * @return int |
|
| 59 | + */ |
|
| 60 | + public function getLeft() |
|
| 61 | + { |
|
| 62 | + return $this->left; |
|
| 63 | + } |
|
| 64 | + |
|
| 65 | + /** |
|
| 66 | + * @param int $left |
|
| 67 | + * |
|
| 68 | + * @return $this |
|
| 69 | + */ |
|
| 70 | + public function setLeft($left) |
|
| 71 | + { |
|
| 72 | + $this->left = intval($left); |
|
| 73 | + |
|
| 74 | + return $this; |
|
| 75 | + } |
|
| 76 | + |
|
| 77 | + /** |
|
| 78 | + * @return int |
|
| 79 | + */ |
|
| 80 | + public function getRight() |
|
| 81 | + { |
|
| 82 | + return $this->right; |
|
| 83 | + } |
|
| 84 | + |
|
| 85 | + /** |
|
| 86 | + * @param int $right |
|
| 87 | + * |
|
| 88 | + * @return $this |
|
| 89 | + */ |
|
| 90 | + public function setRight($right) |
|
| 91 | + { |
|
| 92 | + $this->right = intval($right); |
|
| 93 | + |
|
| 94 | + return $this; |
|
| 95 | + } |
|
| 96 | + |
|
| 97 | + /** |
|
| 98 | + * @return int |
|
| 99 | + */ |
|
| 100 | + public function getTop() |
|
| 101 | + { |
|
| 102 | + return $this->top; |
|
| 103 | + } |
|
| 104 | + |
|
| 105 | + /** |
|
| 106 | + * @param int $top |
|
| 107 | + * |
|
| 108 | + * @return $this |
|
| 109 | + */ |
|
| 110 | + public function setTop($top) |
|
| 111 | + { |
|
| 112 | + $this->top = intval($top); |
|
| 113 | + |
|
| 114 | + return $this; |
|
| 115 | + } |
|
| 116 | + |
|
| 117 | + /** |
|
| 118 | + * @return array |
|
| 119 | + */ |
|
| 120 | + public function jsonSerialize() |
|
| 121 | + { |
|
| 122 | + return $this->getArrayCopy(); |
|
| 123 | + } |
|
| 124 | 124 | } |