@@ -14,48 +14,48 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | class Layout implements ArraySerializableInterface, \JsonSerializable |
| 16 | 16 | { |
| 17 | - use ArraySerializable; |
|
| 18 | - |
|
| 19 | - /** |
|
| 20 | - * @var int|Padding |
|
| 21 | - */ |
|
| 22 | - private $padding; |
|
| 23 | - |
|
| 24 | - /** |
|
| 25 | - * @param int $padding |
|
| 26 | - */ |
|
| 27 | - public function setPadding($padding) |
|
| 28 | - { |
|
| 29 | - $this->padding = intval($padding); |
|
| 30 | - } |
|
| 31 | - |
|
| 32 | - /** |
|
| 33 | - * @return int|Padding |
|
| 34 | - */ |
|
| 35 | - public function getPadding() |
|
| 36 | - { |
|
| 37 | - return $this->padding; |
|
| 38 | - } |
|
| 39 | - |
|
| 40 | - /** |
|
| 41 | - * @return Padding |
|
| 42 | - */ |
|
| 43 | - public function padding() |
|
| 44 | - { |
|
| 45 | - if (is_null($this->padding)) { |
|
| 46 | - $this->padding = new Padding(); |
|
| 47 | - } |
|
| 48 | - |
|
| 49 | - return $this->padding; |
|
| 50 | - } |
|
| 51 | - |
|
| 52 | - /** |
|
| 53 | - * @return string |
|
| 54 | - * @throws \ReflectionException |
|
| 55 | - * @throws \Zend_Reflection_Exception |
|
| 56 | - */ |
|
| 57 | - public function jsonSerialize() |
|
| 58 | - { |
|
| 59 | - return Json::encode($this->getArrayCopy()); |
|
| 60 | - } |
|
| 17 | + use ArraySerializable; |
|
| 18 | + |
|
| 19 | + /** |
|
| 20 | + * @var int|Padding |
|
| 21 | + */ |
|
| 22 | + private $padding; |
|
| 23 | + |
|
| 24 | + /** |
|
| 25 | + * @param int $padding |
|
| 26 | + */ |
|
| 27 | + public function setPadding($padding) |
|
| 28 | + { |
|
| 29 | + $this->padding = intval($padding); |
|
| 30 | + } |
|
| 31 | + |
|
| 32 | + /** |
|
| 33 | + * @return int|Padding |
|
| 34 | + */ |
|
| 35 | + public function getPadding() |
|
| 36 | + { |
|
| 37 | + return $this->padding; |
|
| 38 | + } |
|
| 39 | + |
|
| 40 | + /** |
|
| 41 | + * @return Padding |
|
| 42 | + */ |
|
| 43 | + public function padding() |
|
| 44 | + { |
|
| 45 | + if (is_null($this->padding)) { |
|
| 46 | + $this->padding = new Padding(); |
|
| 47 | + } |
|
| 48 | + |
|
| 49 | + return $this->padding; |
|
| 50 | + } |
|
| 51 | + |
|
| 52 | + /** |
|
| 53 | + * @return string |
|
| 54 | + * @throws \ReflectionException |
|
| 55 | + * @throws \Zend_Reflection_Exception |
|
| 56 | + */ |
|
| 57 | + public function jsonSerialize() |
|
| 58 | + { |
|
| 59 | + return Json::encode($this->getArrayCopy()); |
|
| 60 | + } |
|
| 61 | 61 | } |
@@ -12,341 +12,341 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | class GridLines implements ArraySerializableInterface, \JsonSerializable |
| 14 | 14 | { |
| 15 | - use ArraySerializable; |
|
| 16 | - |
|
| 17 | - /** |
|
| 18 | - * @var bool |
|
| 19 | - */ |
|
| 20 | - private $display; |
|
| 21 | - |
|
| 22 | - /** |
|
| 23 | - * @var string|string[] |
|
| 24 | - */ |
|
| 25 | - private $color; |
|
| 26 | - |
|
| 27 | - /** |
|
| 28 | - * @var float[] |
|
| 29 | - */ |
|
| 30 | - private $borderDash; |
|
| 31 | - |
|
| 32 | - /** |
|
| 33 | - * @var float |
|
| 34 | - */ |
|
| 35 | - private $borderDashOffset; |
|
| 36 | - |
|
| 37 | - /** |
|
| 38 | - * @var int|int[] |
|
| 39 | - */ |
|
| 40 | - private $lineWidth; |
|
| 41 | - |
|
| 42 | - /** |
|
| 43 | - * @var bool |
|
| 44 | - */ |
|
| 45 | - private $drawBorder; |
|
| 46 | - |
|
| 47 | - /** |
|
| 48 | - * @var bool |
|
| 49 | - */ |
|
| 50 | - private $drawOnChartArea; |
|
| 51 | - |
|
| 52 | - /** |
|
| 53 | - * @var bool |
|
| 54 | - */ |
|
| 55 | - private $drawTicks; |
|
| 56 | - |
|
| 57 | - /** |
|
| 58 | - * @var int |
|
| 59 | - */ |
|
| 60 | - private $tickMarkLength; |
|
| 61 | - |
|
| 62 | - /** |
|
| 63 | - * @var int |
|
| 64 | - */ |
|
| 65 | - private $zeroLineWidth; |
|
| 66 | - |
|
| 67 | - /** |
|
| 68 | - * @var string |
|
| 69 | - */ |
|
| 70 | - private $zeroLineColor; |
|
| 71 | - |
|
| 72 | - /** |
|
| 73 | - * @var bool |
|
| 74 | - */ |
|
| 75 | - private $offsetGridLines; |
|
| 76 | - |
|
| 77 | - /** |
|
| 78 | - * @return boolean |
|
| 79 | - */ |
|
| 80 | - public function isDisplay() |
|
| 81 | - { |
|
| 82 | - return $this->display; |
|
| 83 | - } |
|
| 84 | - |
|
| 85 | - /** |
|
| 86 | - * @param boolean $display |
|
| 87 | - * |
|
| 88 | - * @return $this |
|
| 89 | - */ |
|
| 90 | - public function setDisplay($display) |
|
| 91 | - { |
|
| 92 | - $this->display = $display; |
|
| 93 | - |
|
| 94 | - return $this; |
|
| 95 | - } |
|
| 96 | - |
|
| 97 | - /** |
|
| 98 | - * @return string|string[] |
|
| 99 | - */ |
|
| 100 | - public function getColor() |
|
| 101 | - { |
|
| 102 | - return $this->color; |
|
| 103 | - } |
|
| 104 | - |
|
| 105 | - /** |
|
| 106 | - * @param string|string[] $color |
|
| 107 | - * |
|
| 108 | - * @return $this |
|
| 109 | - */ |
|
| 110 | - public function setColor($color) |
|
| 111 | - { |
|
| 112 | - if (is_array($color)) { |
|
| 113 | - array_walk_recursive( |
|
| 114 | - $color, |
|
| 115 | - function (&$value) { |
|
| 116 | - $value = strval($value); |
|
| 117 | - } |
|
| 118 | - ); |
|
| 119 | - $this->color = $color; |
|
| 120 | - } else { |
|
| 121 | - $this->color = is_null($color) ? null : strval($color); |
|
| 122 | - } |
|
| 123 | - |
|
| 124 | - return $this; |
|
| 125 | - } |
|
| 126 | - |
|
| 127 | - /** |
|
| 128 | - * @return float[] |
|
| 129 | - */ |
|
| 130 | - public function getBorderDash() |
|
| 131 | - { |
|
| 132 | - return $this->borderDash; |
|
| 133 | - } |
|
| 134 | - |
|
| 135 | - /** |
|
| 136 | - * @param float[] $borderDash |
|
| 137 | - * |
|
| 138 | - * @return $this |
|
| 139 | - */ |
|
| 140 | - public function setBorderDash($borderDash) |
|
| 141 | - { |
|
| 142 | - if (is_array($borderDash)) { |
|
| 143 | - array_walk_recursive( |
|
| 144 | - $borderDash, |
|
| 145 | - function (&$value) { |
|
| 146 | - $value = floatval($value); |
|
| 147 | - } |
|
| 148 | - ); |
|
| 149 | - $this->borderDash = $borderDash; |
|
| 150 | - } |
|
| 151 | - |
|
| 152 | - return $this; |
|
| 153 | - } |
|
| 154 | - |
|
| 155 | - /** |
|
| 156 | - * @return float |
|
| 157 | - */ |
|
| 158 | - public function getBorderDashOffset() |
|
| 159 | - { |
|
| 160 | - return $this->borderDashOffset; |
|
| 161 | - } |
|
| 162 | - |
|
| 163 | - /** |
|
| 164 | - * @param float $borderDashOffset |
|
| 165 | - * |
|
| 166 | - * @return $this |
|
| 167 | - */ |
|
| 168 | - public function setBorderDashOffset($borderDashOffset) |
|
| 169 | - { |
|
| 170 | - $this->borderDashOffset = floatval($borderDashOffset); |
|
| 171 | - |
|
| 172 | - return $this; |
|
| 173 | - } |
|
| 174 | - |
|
| 175 | - /** |
|
| 176 | - * @return int|int[] |
|
| 177 | - */ |
|
| 178 | - public function getLineWidth() |
|
| 179 | - { |
|
| 180 | - return $this->lineWidth; |
|
| 181 | - } |
|
| 182 | - |
|
| 183 | - /** |
|
| 184 | - * @param int|int[] $lineWidth |
|
| 185 | - * |
|
| 186 | - * @return $this |
|
| 187 | - */ |
|
| 188 | - public function setLineWidth($lineWidth) |
|
| 189 | - { |
|
| 190 | - if (is_array($lineWidth)) { |
|
| 191 | - array_walk_recursive( |
|
| 192 | - $lineWidth, |
|
| 193 | - function (&$value) { |
|
| 194 | - $value = intval($value); |
|
| 195 | - } |
|
| 196 | - ); |
|
| 197 | - $this->lineWidth = $lineWidth; |
|
| 198 | - } else { |
|
| 199 | - $this->lineWidth = is_null($lineWidth) ? null : intval($lineWidth); |
|
| 200 | - } |
|
| 201 | - |
|
| 202 | - return $this; |
|
| 203 | - } |
|
| 204 | - |
|
| 205 | - /** |
|
| 206 | - * @return boolean |
|
| 207 | - */ |
|
| 208 | - public function isDrawBorder() |
|
| 209 | - { |
|
| 210 | - return $this->drawBorder; |
|
| 211 | - } |
|
| 212 | - |
|
| 213 | - /** |
|
| 214 | - * @param boolean $drawBorder |
|
| 215 | - * |
|
| 216 | - * @return $this |
|
| 217 | - */ |
|
| 218 | - public function setDrawBorder($drawBorder) |
|
| 219 | - { |
|
| 220 | - $this->drawBorder = boolval($drawBorder); |
|
| 221 | - |
|
| 222 | - return $this; |
|
| 223 | - } |
|
| 224 | - |
|
| 225 | - /** |
|
| 226 | - * @return boolean |
|
| 227 | - */ |
|
| 228 | - public function isDrawOnChartArea() |
|
| 229 | - { |
|
| 230 | - return $this->drawOnChartArea; |
|
| 231 | - } |
|
| 232 | - |
|
| 233 | - /** |
|
| 234 | - * @param boolean $drawOnChartArea |
|
| 235 | - * |
|
| 236 | - * @return $this |
|
| 237 | - */ |
|
| 238 | - public function setDrawOnChartArea($drawOnChartArea) |
|
| 239 | - { |
|
| 240 | - $this->drawOnChartArea = boolval($drawOnChartArea); |
|
| 241 | - |
|
| 242 | - return $this; |
|
| 243 | - } |
|
| 244 | - |
|
| 245 | - /** |
|
| 246 | - * @return boolean |
|
| 247 | - */ |
|
| 248 | - public function isDrawTicks() |
|
| 249 | - { |
|
| 250 | - return $this->drawTicks; |
|
| 251 | - } |
|
| 252 | - |
|
| 253 | - /** |
|
| 254 | - * @param boolean $drawTicks |
|
| 255 | - * |
|
| 256 | - * @return $this |
|
| 257 | - */ |
|
| 258 | - public function setDrawTicks($drawTicks) |
|
| 259 | - { |
|
| 260 | - $this->drawTicks = boolval($drawTicks); |
|
| 261 | - |
|
| 262 | - return $this; |
|
| 263 | - } |
|
| 264 | - |
|
| 265 | - /** |
|
| 266 | - * @return int |
|
| 267 | - */ |
|
| 268 | - public function getTickMarkLength() |
|
| 269 | - { |
|
| 270 | - return $this->tickMarkLength; |
|
| 271 | - } |
|
| 272 | - |
|
| 273 | - /** |
|
| 274 | - * @param int $tickMarkLength |
|
| 275 | - * |
|
| 276 | - * @return $this |
|
| 277 | - */ |
|
| 278 | - public function setTickMarkLength($tickMarkLength) |
|
| 279 | - { |
|
| 280 | - $this->tickMarkLength = intval($tickMarkLength); |
|
| 281 | - |
|
| 282 | - return $this; |
|
| 283 | - } |
|
| 284 | - |
|
| 285 | - /** |
|
| 286 | - * @return int |
|
| 287 | - */ |
|
| 288 | - public function getZeroLineWidth() |
|
| 289 | - { |
|
| 290 | - return $this->zeroLineWidth; |
|
| 291 | - } |
|
| 292 | - |
|
| 293 | - /** |
|
| 294 | - * @param int $zeroLineWidth |
|
| 295 | - * |
|
| 296 | - * @return $this |
|
| 297 | - */ |
|
| 298 | - public function setZeroLineWidth($zeroLineWidth) |
|
| 299 | - { |
|
| 300 | - $this->zeroLineWidth = intval($zeroLineWidth); |
|
| 301 | - |
|
| 302 | - return $this; |
|
| 303 | - } |
|
| 304 | - |
|
| 305 | - /** |
|
| 306 | - * @return string |
|
| 307 | - */ |
|
| 308 | - public function getZeroLineColor() |
|
| 309 | - { |
|
| 310 | - return $this->zeroLineColor; |
|
| 311 | - } |
|
| 312 | - |
|
| 313 | - /** |
|
| 314 | - * @param string $zeroLineColor |
|
| 315 | - * |
|
| 316 | - * @return $this |
|
| 317 | - */ |
|
| 318 | - public function setZeroLineColor($zeroLineColor) |
|
| 319 | - { |
|
| 320 | - $this->zeroLineColor = is_null($zeroLineColor) ? null : strval($zeroLineColor); |
|
| 321 | - |
|
| 322 | - return $this; |
|
| 323 | - } |
|
| 324 | - |
|
| 325 | - /** |
|
| 326 | - * @return boolean |
|
| 327 | - */ |
|
| 328 | - public function isOffsetGridLines() |
|
| 329 | - { |
|
| 330 | - return $this->offsetGridLines; |
|
| 331 | - } |
|
| 332 | - |
|
| 333 | - /** |
|
| 334 | - * @param boolean $offsetGridLines |
|
| 335 | - * |
|
| 336 | - * @return $this |
|
| 337 | - */ |
|
| 338 | - public function setOffsetGridLines($offsetGridLines) |
|
| 339 | - { |
|
| 340 | - $this->offsetGridLines = boolval($offsetGridLines); |
|
| 341 | - |
|
| 342 | - return $this; |
|
| 343 | - } |
|
| 344 | - |
|
| 345 | - /** |
|
| 346 | - * @return string |
|
| 347 | - */ |
|
| 348 | - public function jsonSerialize() |
|
| 349 | - { |
|
| 350 | - return Json::encode($this->getArrayCopy()); |
|
| 351 | - } |
|
| 15 | + use ArraySerializable; |
|
| 16 | + |
|
| 17 | + /** |
|
| 18 | + * @var bool |
|
| 19 | + */ |
|
| 20 | + private $display; |
|
| 21 | + |
|
| 22 | + /** |
|
| 23 | + * @var string|string[] |
|
| 24 | + */ |
|
| 25 | + private $color; |
|
| 26 | + |
|
| 27 | + /** |
|
| 28 | + * @var float[] |
|
| 29 | + */ |
|
| 30 | + private $borderDash; |
|
| 31 | + |
|
| 32 | + /** |
|
| 33 | + * @var float |
|
| 34 | + */ |
|
| 35 | + private $borderDashOffset; |
|
| 36 | + |
|
| 37 | + /** |
|
| 38 | + * @var int|int[] |
|
| 39 | + */ |
|
| 40 | + private $lineWidth; |
|
| 41 | + |
|
| 42 | + /** |
|
| 43 | + * @var bool |
|
| 44 | + */ |
|
| 45 | + private $drawBorder; |
|
| 46 | + |
|
| 47 | + /** |
|
| 48 | + * @var bool |
|
| 49 | + */ |
|
| 50 | + private $drawOnChartArea; |
|
| 51 | + |
|
| 52 | + /** |
|
| 53 | + * @var bool |
|
| 54 | + */ |
|
| 55 | + private $drawTicks; |
|
| 56 | + |
|
| 57 | + /** |
|
| 58 | + * @var int |
|
| 59 | + */ |
|
| 60 | + private $tickMarkLength; |
|
| 61 | + |
|
| 62 | + /** |
|
| 63 | + * @var int |
|
| 64 | + */ |
|
| 65 | + private $zeroLineWidth; |
|
| 66 | + |
|
| 67 | + /** |
|
| 68 | + * @var string |
|
| 69 | + */ |
|
| 70 | + private $zeroLineColor; |
|
| 71 | + |
|
| 72 | + /** |
|
| 73 | + * @var bool |
|
| 74 | + */ |
|
| 75 | + private $offsetGridLines; |
|
| 76 | + |
|
| 77 | + /** |
|
| 78 | + * @return boolean |
|
| 79 | + */ |
|
| 80 | + public function isDisplay() |
|
| 81 | + { |
|
| 82 | + return $this->display; |
|
| 83 | + } |
|
| 84 | + |
|
| 85 | + /** |
|
| 86 | + * @param boolean $display |
|
| 87 | + * |
|
| 88 | + * @return $this |
|
| 89 | + */ |
|
| 90 | + public function setDisplay($display) |
|
| 91 | + { |
|
| 92 | + $this->display = $display; |
|
| 93 | + |
|
| 94 | + return $this; |
|
| 95 | + } |
|
| 96 | + |
|
| 97 | + /** |
|
| 98 | + * @return string|string[] |
|
| 99 | + */ |
|
| 100 | + public function getColor() |
|
| 101 | + { |
|
| 102 | + return $this->color; |
|
| 103 | + } |
|
| 104 | + |
|
| 105 | + /** |
|
| 106 | + * @param string|string[] $color |
|
| 107 | + * |
|
| 108 | + * @return $this |
|
| 109 | + */ |
|
| 110 | + public function setColor($color) |
|
| 111 | + { |
|
| 112 | + if (is_array($color)) { |
|
| 113 | + array_walk_recursive( |
|
| 114 | + $color, |
|
| 115 | + function (&$value) { |
|
| 116 | + $value = strval($value); |
|
| 117 | + } |
|
| 118 | + ); |
|
| 119 | + $this->color = $color; |
|
| 120 | + } else { |
|
| 121 | + $this->color = is_null($color) ? null : strval($color); |
|
| 122 | + } |
|
| 123 | + |
|
| 124 | + return $this; |
|
| 125 | + } |
|
| 126 | + |
|
| 127 | + /** |
|
| 128 | + * @return float[] |
|
| 129 | + */ |
|
| 130 | + public function getBorderDash() |
|
| 131 | + { |
|
| 132 | + return $this->borderDash; |
|
| 133 | + } |
|
| 134 | + |
|
| 135 | + /** |
|
| 136 | + * @param float[] $borderDash |
|
| 137 | + * |
|
| 138 | + * @return $this |
|
| 139 | + */ |
|
| 140 | + public function setBorderDash($borderDash) |
|
| 141 | + { |
|
| 142 | + if (is_array($borderDash)) { |
|
| 143 | + array_walk_recursive( |
|
| 144 | + $borderDash, |
|
| 145 | + function (&$value) { |
|
| 146 | + $value = floatval($value); |
|
| 147 | + } |
|
| 148 | + ); |
|
| 149 | + $this->borderDash = $borderDash; |
|
| 150 | + } |
|
| 151 | + |
|
| 152 | + return $this; |
|
| 153 | + } |
|
| 154 | + |
|
| 155 | + /** |
|
| 156 | + * @return float |
|
| 157 | + */ |
|
| 158 | + public function getBorderDashOffset() |
|
| 159 | + { |
|
| 160 | + return $this->borderDashOffset; |
|
| 161 | + } |
|
| 162 | + |
|
| 163 | + /** |
|
| 164 | + * @param float $borderDashOffset |
|
| 165 | + * |
|
| 166 | + * @return $this |
|
| 167 | + */ |
|
| 168 | + public function setBorderDashOffset($borderDashOffset) |
|
| 169 | + { |
|
| 170 | + $this->borderDashOffset = floatval($borderDashOffset); |
|
| 171 | + |
|
| 172 | + return $this; |
|
| 173 | + } |
|
| 174 | + |
|
| 175 | + /** |
|
| 176 | + * @return int|int[] |
|
| 177 | + */ |
|
| 178 | + public function getLineWidth() |
|
| 179 | + { |
|
| 180 | + return $this->lineWidth; |
|
| 181 | + } |
|
| 182 | + |
|
| 183 | + /** |
|
| 184 | + * @param int|int[] $lineWidth |
|
| 185 | + * |
|
| 186 | + * @return $this |
|
| 187 | + */ |
|
| 188 | + public function setLineWidth($lineWidth) |
|
| 189 | + { |
|
| 190 | + if (is_array($lineWidth)) { |
|
| 191 | + array_walk_recursive( |
|
| 192 | + $lineWidth, |
|
| 193 | + function (&$value) { |
|
| 194 | + $value = intval($value); |
|
| 195 | + } |
|
| 196 | + ); |
|
| 197 | + $this->lineWidth = $lineWidth; |
|
| 198 | + } else { |
|
| 199 | + $this->lineWidth = is_null($lineWidth) ? null : intval($lineWidth); |
|
| 200 | + } |
|
| 201 | + |
|
| 202 | + return $this; |
|
| 203 | + } |
|
| 204 | + |
|
| 205 | + /** |
|
| 206 | + * @return boolean |
|
| 207 | + */ |
|
| 208 | + public function isDrawBorder() |
|
| 209 | + { |
|
| 210 | + return $this->drawBorder; |
|
| 211 | + } |
|
| 212 | + |
|
| 213 | + /** |
|
| 214 | + * @param boolean $drawBorder |
|
| 215 | + * |
|
| 216 | + * @return $this |
|
| 217 | + */ |
|
| 218 | + public function setDrawBorder($drawBorder) |
|
| 219 | + { |
|
| 220 | + $this->drawBorder = boolval($drawBorder); |
|
| 221 | + |
|
| 222 | + return $this; |
|
| 223 | + } |
|
| 224 | + |
|
| 225 | + /** |
|
| 226 | + * @return boolean |
|
| 227 | + */ |
|
| 228 | + public function isDrawOnChartArea() |
|
| 229 | + { |
|
| 230 | + return $this->drawOnChartArea; |
|
| 231 | + } |
|
| 232 | + |
|
| 233 | + /** |
|
| 234 | + * @param boolean $drawOnChartArea |
|
| 235 | + * |
|
| 236 | + * @return $this |
|
| 237 | + */ |
|
| 238 | + public function setDrawOnChartArea($drawOnChartArea) |
|
| 239 | + { |
|
| 240 | + $this->drawOnChartArea = boolval($drawOnChartArea); |
|
| 241 | + |
|
| 242 | + return $this; |
|
| 243 | + } |
|
| 244 | + |
|
| 245 | + /** |
|
| 246 | + * @return boolean |
|
| 247 | + */ |
|
| 248 | + public function isDrawTicks() |
|
| 249 | + { |
|
| 250 | + return $this->drawTicks; |
|
| 251 | + } |
|
| 252 | + |
|
| 253 | + /** |
|
| 254 | + * @param boolean $drawTicks |
|
| 255 | + * |
|
| 256 | + * @return $this |
|
| 257 | + */ |
|
| 258 | + public function setDrawTicks($drawTicks) |
|
| 259 | + { |
|
| 260 | + $this->drawTicks = boolval($drawTicks); |
|
| 261 | + |
|
| 262 | + return $this; |
|
| 263 | + } |
|
| 264 | + |
|
| 265 | + /** |
|
| 266 | + * @return int |
|
| 267 | + */ |
|
| 268 | + public function getTickMarkLength() |
|
| 269 | + { |
|
| 270 | + return $this->tickMarkLength; |
|
| 271 | + } |
|
| 272 | + |
|
| 273 | + /** |
|
| 274 | + * @param int $tickMarkLength |
|
| 275 | + * |
|
| 276 | + * @return $this |
|
| 277 | + */ |
|
| 278 | + public function setTickMarkLength($tickMarkLength) |
|
| 279 | + { |
|
| 280 | + $this->tickMarkLength = intval($tickMarkLength); |
|
| 281 | + |
|
| 282 | + return $this; |
|
| 283 | + } |
|
| 284 | + |
|
| 285 | + /** |
|
| 286 | + * @return int |
|
| 287 | + */ |
|
| 288 | + public function getZeroLineWidth() |
|
| 289 | + { |
|
| 290 | + return $this->zeroLineWidth; |
|
| 291 | + } |
|
| 292 | + |
|
| 293 | + /** |
|
| 294 | + * @param int $zeroLineWidth |
|
| 295 | + * |
|
| 296 | + * @return $this |
|
| 297 | + */ |
|
| 298 | + public function setZeroLineWidth($zeroLineWidth) |
|
| 299 | + { |
|
| 300 | + $this->zeroLineWidth = intval($zeroLineWidth); |
|
| 301 | + |
|
| 302 | + return $this; |
|
| 303 | + } |
|
| 304 | + |
|
| 305 | + /** |
|
| 306 | + * @return string |
|
| 307 | + */ |
|
| 308 | + public function getZeroLineColor() |
|
| 309 | + { |
|
| 310 | + return $this->zeroLineColor; |
|
| 311 | + } |
|
| 312 | + |
|
| 313 | + /** |
|
| 314 | + * @param string $zeroLineColor |
|
| 315 | + * |
|
| 316 | + * @return $this |
|
| 317 | + */ |
|
| 318 | + public function setZeroLineColor($zeroLineColor) |
|
| 319 | + { |
|
| 320 | + $this->zeroLineColor = is_null($zeroLineColor) ? null : strval($zeroLineColor); |
|
| 321 | + |
|
| 322 | + return $this; |
|
| 323 | + } |
|
| 324 | + |
|
| 325 | + /** |
|
| 326 | + * @return boolean |
|
| 327 | + */ |
|
| 328 | + public function isOffsetGridLines() |
|
| 329 | + { |
|
| 330 | + return $this->offsetGridLines; |
|
| 331 | + } |
|
| 332 | + |
|
| 333 | + /** |
|
| 334 | + * @param boolean $offsetGridLines |
|
| 335 | + * |
|
| 336 | + * @return $this |
|
| 337 | + */ |
|
| 338 | + public function setOffsetGridLines($offsetGridLines) |
|
| 339 | + { |
|
| 340 | + $this->offsetGridLines = boolval($offsetGridLines); |
|
| 341 | + |
|
| 342 | + return $this; |
|
| 343 | + } |
|
| 344 | + |
|
| 345 | + /** |
|
| 346 | + * @return string |
|
| 347 | + */ |
|
| 348 | + public function jsonSerialize() |
|
| 349 | + { |
|
| 350 | + return Json::encode($this->getArrayCopy()); |
|
| 351 | + } |
|
| 352 | 352 | } |