@@ -8,8 +8,8 @@ |
||
| 8 | 8 | */ |
| 9 | 9 | class HorizontalBar extends Bar |
| 10 | 10 | { |
| 11 | - /** |
|
| 12 | - * The internal type of chart. |
|
| 13 | - */ |
|
| 14 | - const TYPE = 'horizontalBar'; |
|
| 11 | + /** |
|
| 12 | + * The internal type of chart. |
|
| 13 | + */ |
|
| 14 | + const TYPE = 'horizontalBar'; |
|
| 15 | 15 | } |
@@ -16,16 +16,16 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | class Pie extends Chart implements ChartInterface |
| 18 | 18 | { |
| 19 | - /** |
|
| 20 | - * The internal type of chart. |
|
| 21 | - */ |
|
| 22 | - const TYPE = 'pie'; |
|
| 19 | + /** |
|
| 20 | + * The internal type of chart. |
|
| 21 | + */ |
|
| 22 | + const TYPE = 'pie'; |
|
| 23 | 23 | |
| 24 | - /** |
|
| 25 | - * The list of models that should be used for this chart type. |
|
| 26 | - */ |
|
| 27 | - const MODEL = [ |
|
| 28 | - 'dataset' => PieDataSet::class, |
|
| 29 | - 'options' => PieOptions::class, |
|
| 30 | - ]; |
|
| 24 | + /** |
|
| 25 | + * The list of models that should be used for this chart type. |
|
| 26 | + */ |
|
| 27 | + const MODEL = [ |
|
| 28 | + 'dataset' => PieDataSet::class, |
|
| 29 | + 'options' => PieOptions::class, |
|
| 30 | + ]; |
|
| 31 | 31 | } |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | if (is_array($backgroundColor)) { |
| 187 | 187 | $backgroundColor = array_map('strval', $backgroundColor); |
| 188 | 188 | } |
| 189 | - if (! is_array($backgroundColor)) { |
|
| 189 | + if (!is_array($backgroundColor)) { |
|
| 190 | 190 | $backgroundColor = strval($backgroundColor); |
| 191 | 191 | } |
| 192 | 192 | |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | if (is_array($borderColor)) { |
| 214 | 214 | $borderColor = array_map('strval', $borderColor); |
| 215 | 215 | } |
| 216 | - if (! is_array($borderColor)) { |
|
| 216 | + if (!is_array($borderColor)) { |
|
| 217 | 217 | $borderColor = strval($borderColor); |
| 218 | 218 | } |
| 219 | 219 | |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | if (is_array($borderWidth)) { |
| 241 | 241 | $borderWidth = array_map('intval', $borderWidth); |
| 242 | 242 | } |
| 243 | - if (! is_array($borderWidth)) { |
|
| 243 | + if (!is_array($borderWidth)) { |
|
| 244 | 244 | $borderWidth = intval($borderWidth); |
| 245 | 245 | } |
| 246 | 246 | |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | if (is_array($hoverBackgroundColor)) { |
| 288 | 288 | $hoverBackgroundColor = array_map('strval', $hoverBackgroundColor); |
| 289 | 289 | } |
| 290 | - if (! is_array($hoverBackgroundColor)) { |
|
| 290 | + if (!is_array($hoverBackgroundColor)) { |
|
| 291 | 291 | $hoverBackgroundColor = strval($hoverBackgroundColor); |
| 292 | 292 | } |
| 293 | 293 | |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | if (is_array($hoverBorderColor)) { |
| 315 | 315 | $hoverBorderColor = array_map('strval', $hoverBorderColor); |
| 316 | 316 | } |
| 317 | - if (! is_array($hoverBorderColor)) { |
|
| 317 | + if (!is_array($hoverBorderColor)) { |
|
| 318 | 318 | $hoverBorderColor = strval($hoverBorderColor); |
| 319 | 319 | } |
| 320 | 320 | |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | if (is_array($hoverBorderWidth)) { |
| 342 | 342 | $hoverBorderWidth = array_map('intval', $hoverBorderWidth); |
| 343 | 343 | } |
| 344 | - if (! is_array($hoverBorderWidth)) { |
|
| 344 | + if (!is_array($hoverBorderWidth)) { |
|
| 345 | 345 | $hoverBorderWidth = intval($hoverBorderWidth); |
| 346 | 346 | } |
| 347 | 347 | |
@@ -13,370 +13,370 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | class DataSet implements ChartOwnedInterface, ArraySerializableInterface, JsonSerializableInterface |
| 15 | 15 | { |
| 16 | - use ChartOwned; |
|
| 17 | - use Delegate\ArraySerializable; |
|
| 18 | - use Delegate\JsonSerializable; |
|
| 19 | - |
|
| 20 | - /** |
|
| 21 | - * @var string |
|
| 22 | - */ |
|
| 23 | - protected $type; |
|
| 24 | - |
|
| 25 | - /** |
|
| 26 | - * @var Data |
|
| 27 | - */ |
|
| 28 | - protected $data; |
|
| 29 | - |
|
| 30 | - /** |
|
| 31 | - * @var string |
|
| 32 | - */ |
|
| 33 | - protected $label; |
|
| 34 | - |
|
| 35 | - /** |
|
| 36 | - * @var string |
|
| 37 | - */ |
|
| 38 | - protected $xAxisID; |
|
| 39 | - |
|
| 40 | - /** |
|
| 41 | - * @var string |
|
| 42 | - */ |
|
| 43 | - protected $yAxisID; |
|
| 44 | - |
|
| 45 | - /** |
|
| 46 | - * @var string|string[] |
|
| 47 | - */ |
|
| 48 | - protected $backgroundColor; |
|
| 49 | - |
|
| 50 | - /** |
|
| 51 | - * @var string|string[] |
|
| 52 | - */ |
|
| 53 | - protected $borderColor; |
|
| 54 | - |
|
| 55 | - /** |
|
| 56 | - * @var int|int[] |
|
| 57 | - */ |
|
| 58 | - protected $borderWidth; |
|
| 59 | - |
|
| 60 | - /** |
|
| 61 | - * @var string |
|
| 62 | - */ |
|
| 63 | - protected $borderSkipped; |
|
| 64 | - |
|
| 65 | - /** |
|
| 66 | - * @var string|string[] |
|
| 67 | - */ |
|
| 68 | - protected $hoverBackgroundColor; |
|
| 69 | - |
|
| 70 | - /** |
|
| 71 | - * @var string|string[] |
|
| 72 | - */ |
|
| 73 | - protected $hoverBorderColor; |
|
| 74 | - |
|
| 75 | - /** |
|
| 76 | - * @var int|int[] |
|
| 77 | - */ |
|
| 78 | - protected $hoverBorderWidth; |
|
| 79 | - |
|
| 80 | - /** |
|
| 81 | - * @var bool|null |
|
| 82 | - */ |
|
| 83 | - protected $hidden; |
|
| 84 | - |
|
| 85 | - /** |
|
| 86 | - * @return string |
|
| 87 | - */ |
|
| 88 | - public function getType() |
|
| 89 | - { |
|
| 90 | - return $this->type; |
|
| 91 | - } |
|
| 92 | - |
|
| 93 | - /** |
|
| 94 | - * @param string $type |
|
| 95 | - * |
|
| 96 | - * @return $this |
|
| 97 | - */ |
|
| 98 | - public function setType($type) |
|
| 99 | - { |
|
| 100 | - $this->type = $type; |
|
| 101 | - |
|
| 102 | - return $this; |
|
| 103 | - } |
|
| 104 | - |
|
| 105 | - /** |
|
| 106 | - * @return Data |
|
| 107 | - */ |
|
| 108 | - public function data() |
|
| 109 | - { |
|
| 110 | - if (is_null($this->data)) { |
|
| 111 | - $this->data = new Data(); |
|
| 112 | - } |
|
| 113 | - |
|
| 114 | - return $this->data; |
|
| 115 | - } |
|
| 116 | - |
|
| 117 | - /** |
|
| 118 | - * @return string |
|
| 119 | - */ |
|
| 120 | - public function getLabel() |
|
| 121 | - { |
|
| 122 | - return $this->label; |
|
| 123 | - } |
|
| 124 | - |
|
| 125 | - /** |
|
| 126 | - * @param string $label |
|
| 127 | - * |
|
| 128 | - * @return $this |
|
| 129 | - */ |
|
| 130 | - public function setLabel($label) |
|
| 131 | - { |
|
| 132 | - $this->label = strval($label); |
|
| 133 | - |
|
| 134 | - return $this; |
|
| 135 | - } |
|
| 136 | - |
|
| 137 | - /** |
|
| 138 | - * @return string |
|
| 139 | - */ |
|
| 140 | - public function getXAxisID() |
|
| 141 | - { |
|
| 142 | - return $this->xAxisID; |
|
| 143 | - } |
|
| 144 | - |
|
| 145 | - /** |
|
| 146 | - * @param string $xAxisID |
|
| 147 | - * |
|
| 148 | - * @return $this |
|
| 149 | - */ |
|
| 150 | - public function setXAxisID($xAxisID) |
|
| 151 | - { |
|
| 152 | - $this->xAxisID = strval($xAxisID); |
|
| 153 | - |
|
| 154 | - return $this; |
|
| 155 | - } |
|
| 156 | - |
|
| 157 | - /** |
|
| 158 | - * @return string |
|
| 159 | - */ |
|
| 160 | - public function getYAxisID() |
|
| 161 | - { |
|
| 162 | - return $this->yAxisID; |
|
| 163 | - } |
|
| 164 | - |
|
| 165 | - /** |
|
| 166 | - * @param string $yAxisID |
|
| 167 | - * |
|
| 168 | - * @return $this |
|
| 169 | - */ |
|
| 170 | - public function setYAxisID($yAxisID) |
|
| 171 | - { |
|
| 172 | - $this->yAxisID = strval($yAxisID); |
|
| 173 | - |
|
| 174 | - return $this; |
|
| 175 | - } |
|
| 176 | - |
|
| 177 | - /** |
|
| 178 | - * @return string|string[] |
|
| 179 | - */ |
|
| 180 | - public function getBackgroundColor() |
|
| 181 | - { |
|
| 182 | - return $this->backgroundColor; |
|
| 183 | - } |
|
| 184 | - |
|
| 185 | - /** |
|
| 186 | - * @param string|string[] $backgroundColor |
|
| 187 | - * |
|
| 188 | - * @return $this |
|
| 189 | - */ |
|
| 190 | - public function setBackgroundColor($backgroundColor) |
|
| 191 | - { |
|
| 192 | - if (is_array($backgroundColor)) { |
|
| 193 | - $backgroundColor = array_map('strval', $backgroundColor); |
|
| 194 | - } |
|
| 195 | - if (! is_array($backgroundColor)) { |
|
| 196 | - $backgroundColor = strval($backgroundColor); |
|
| 197 | - } |
|
| 198 | - |
|
| 199 | - $this->backgroundColor = $backgroundColor; |
|
| 200 | - |
|
| 201 | - return $this; |
|
| 202 | - } |
|
| 203 | - |
|
| 204 | - /** |
|
| 205 | - * @return string|string[] |
|
| 206 | - */ |
|
| 207 | - public function getBorderColor() |
|
| 208 | - { |
|
| 209 | - return $this->borderColor; |
|
| 210 | - } |
|
| 211 | - |
|
| 212 | - /** |
|
| 213 | - * @param string|string[] $borderColor |
|
| 214 | - * |
|
| 215 | - * @return $this |
|
| 216 | - */ |
|
| 217 | - public function setBorderColor($borderColor) |
|
| 218 | - { |
|
| 219 | - if (is_array($borderColor)) { |
|
| 220 | - $borderColor = array_map('strval', $borderColor); |
|
| 221 | - } |
|
| 222 | - if (! is_array($borderColor)) { |
|
| 223 | - $borderColor = strval($borderColor); |
|
| 224 | - } |
|
| 225 | - |
|
| 226 | - $this->borderColor = $borderColor; |
|
| 227 | - |
|
| 228 | - return $this; |
|
| 229 | - } |
|
| 230 | - |
|
| 231 | - /** |
|
| 232 | - * @return int|int[] |
|
| 233 | - */ |
|
| 234 | - public function getBorderWidth() |
|
| 235 | - { |
|
| 236 | - return $this->borderWidth; |
|
| 237 | - } |
|
| 238 | - |
|
| 239 | - /** |
|
| 240 | - * @param int|int[] $borderWidth |
|
| 241 | - * |
|
| 242 | - * @return $this |
|
| 243 | - */ |
|
| 244 | - public function setBorderWidth($borderWidth) |
|
| 245 | - { |
|
| 246 | - if (is_array($borderWidth)) { |
|
| 247 | - $borderWidth = array_map('intval', $borderWidth); |
|
| 248 | - } |
|
| 249 | - if (! is_array($borderWidth)) { |
|
| 250 | - $borderWidth = intval($borderWidth); |
|
| 251 | - } |
|
| 252 | - |
|
| 253 | - $this->borderWidth = $borderWidth; |
|
| 254 | - |
|
| 255 | - return $this; |
|
| 256 | - } |
|
| 257 | - |
|
| 258 | - /** |
|
| 259 | - * @return string |
|
| 260 | - */ |
|
| 261 | - public function getBorderSkipped() |
|
| 262 | - { |
|
| 263 | - return $this->borderSkipped; |
|
| 264 | - } |
|
| 265 | - |
|
| 266 | - /** |
|
| 267 | - * @param string $borderSkipped |
|
| 268 | - * |
|
| 269 | - * @return $this |
|
| 270 | - */ |
|
| 271 | - public function setBorderSkipped($borderSkipped) |
|
| 272 | - { |
|
| 273 | - $this->borderSkipped = strval($borderSkipped); |
|
| 274 | - |
|
| 275 | - return $this; |
|
| 276 | - } |
|
| 277 | - |
|
| 278 | - /** |
|
| 279 | - * @return string|string[] |
|
| 280 | - */ |
|
| 281 | - public function getHoverBackgroundColor() |
|
| 282 | - { |
|
| 283 | - return $this->hoverBackgroundColor; |
|
| 284 | - } |
|
| 285 | - |
|
| 286 | - /** |
|
| 287 | - * @param string|string[] $hoverBackgroundColor |
|
| 288 | - * |
|
| 289 | - * @return $this |
|
| 290 | - */ |
|
| 291 | - public function setHoverBackgroundColor($hoverBackgroundColor) |
|
| 292 | - { |
|
| 293 | - if (is_array($hoverBackgroundColor)) { |
|
| 294 | - $hoverBackgroundColor = array_map('strval', $hoverBackgroundColor); |
|
| 295 | - } |
|
| 296 | - if (! is_array($hoverBackgroundColor)) { |
|
| 297 | - $hoverBackgroundColor = strval($hoverBackgroundColor); |
|
| 298 | - } |
|
| 299 | - |
|
| 300 | - $this->hoverBackgroundColor = $hoverBackgroundColor; |
|
| 301 | - |
|
| 302 | - return $this; |
|
| 303 | - } |
|
| 304 | - |
|
| 305 | - /** |
|
| 306 | - * @return string|string[] |
|
| 307 | - */ |
|
| 308 | - public function getHoverBorderColor() |
|
| 309 | - { |
|
| 310 | - return $this->hoverBorderColor; |
|
| 311 | - } |
|
| 312 | - |
|
| 313 | - /** |
|
| 314 | - * @param string|string[] $hoverBorderColor |
|
| 315 | - * |
|
| 316 | - * @return $this |
|
| 317 | - */ |
|
| 318 | - public function setHoverBorderColor($hoverBorderColor) |
|
| 319 | - { |
|
| 320 | - if (is_array($hoverBorderColor)) { |
|
| 321 | - $hoverBorderColor = array_map('strval', $hoverBorderColor); |
|
| 322 | - } |
|
| 323 | - if (! is_array($hoverBorderColor)) { |
|
| 324 | - $hoverBorderColor = strval($hoverBorderColor); |
|
| 325 | - } |
|
| 326 | - |
|
| 327 | - $this->hoverBorderColor = $hoverBorderColor; |
|
| 328 | - |
|
| 329 | - return $this; |
|
| 330 | - } |
|
| 331 | - |
|
| 332 | - /** |
|
| 333 | - * @return int|int[] |
|
| 334 | - */ |
|
| 335 | - public function getHoverBorderWidth() |
|
| 336 | - { |
|
| 337 | - return $this->hoverBorderWidth; |
|
| 338 | - } |
|
| 339 | - |
|
| 340 | - /** |
|
| 341 | - * @param int|int[] $hoverBorderWidth |
|
| 342 | - * |
|
| 343 | - * @return $this |
|
| 344 | - */ |
|
| 345 | - public function setHoverBorderWidth($hoverBorderWidth) |
|
| 346 | - { |
|
| 347 | - if (is_array($hoverBorderWidth)) { |
|
| 348 | - $hoverBorderWidth = array_map('intval', $hoverBorderWidth); |
|
| 349 | - } |
|
| 350 | - if (! is_array($hoverBorderWidth)) { |
|
| 351 | - $hoverBorderWidth = intval($hoverBorderWidth); |
|
| 352 | - } |
|
| 353 | - |
|
| 354 | - $this->hoverBorderWidth = $hoverBorderWidth; |
|
| 355 | - |
|
| 356 | - return $this; |
|
| 357 | - } |
|
| 358 | - |
|
| 359 | - /** |
|
| 360 | - * @return bool|null |
|
| 361 | - */ |
|
| 362 | - public function isHidden() |
|
| 363 | - { |
|
| 364 | - if (is_null($this->hidden)) { |
|
| 365 | - $this->hidden = false; |
|
| 366 | - } |
|
| 367 | - |
|
| 368 | - return $this->hidden; |
|
| 369 | - } |
|
| 370 | - |
|
| 371 | - /** |
|
| 372 | - * @param bool|null $hidden |
|
| 373 | - * |
|
| 374 | - * @return $this |
|
| 375 | - */ |
|
| 376 | - public function setHidden($hidden) |
|
| 377 | - { |
|
| 378 | - $this->hidden = is_null($hidden) ? null : boolval($hidden); |
|
| 379 | - |
|
| 380 | - return $this; |
|
| 381 | - } |
|
| 16 | + use ChartOwned; |
|
| 17 | + use Delegate\ArraySerializable; |
|
| 18 | + use Delegate\JsonSerializable; |
|
| 19 | + |
|
| 20 | + /** |
|
| 21 | + * @var string |
|
| 22 | + */ |
|
| 23 | + protected $type; |
|
| 24 | + |
|
| 25 | + /** |
|
| 26 | + * @var Data |
|
| 27 | + */ |
|
| 28 | + protected $data; |
|
| 29 | + |
|
| 30 | + /** |
|
| 31 | + * @var string |
|
| 32 | + */ |
|
| 33 | + protected $label; |
|
| 34 | + |
|
| 35 | + /** |
|
| 36 | + * @var string |
|
| 37 | + */ |
|
| 38 | + protected $xAxisID; |
|
| 39 | + |
|
| 40 | + /** |
|
| 41 | + * @var string |
|
| 42 | + */ |
|
| 43 | + protected $yAxisID; |
|
| 44 | + |
|
| 45 | + /** |
|
| 46 | + * @var string|string[] |
|
| 47 | + */ |
|
| 48 | + protected $backgroundColor; |
|
| 49 | + |
|
| 50 | + /** |
|
| 51 | + * @var string|string[] |
|
| 52 | + */ |
|
| 53 | + protected $borderColor; |
|
| 54 | + |
|
| 55 | + /** |
|
| 56 | + * @var int|int[] |
|
| 57 | + */ |
|
| 58 | + protected $borderWidth; |
|
| 59 | + |
|
| 60 | + /** |
|
| 61 | + * @var string |
|
| 62 | + */ |
|
| 63 | + protected $borderSkipped; |
|
| 64 | + |
|
| 65 | + /** |
|
| 66 | + * @var string|string[] |
|
| 67 | + */ |
|
| 68 | + protected $hoverBackgroundColor; |
|
| 69 | + |
|
| 70 | + /** |
|
| 71 | + * @var string|string[] |
|
| 72 | + */ |
|
| 73 | + protected $hoverBorderColor; |
|
| 74 | + |
|
| 75 | + /** |
|
| 76 | + * @var int|int[] |
|
| 77 | + */ |
|
| 78 | + protected $hoverBorderWidth; |
|
| 79 | + |
|
| 80 | + /** |
|
| 81 | + * @var bool|null |
|
| 82 | + */ |
|
| 83 | + protected $hidden; |
|
| 84 | + |
|
| 85 | + /** |
|
| 86 | + * @return string |
|
| 87 | + */ |
|
| 88 | + public function getType() |
|
| 89 | + { |
|
| 90 | + return $this->type; |
|
| 91 | + } |
|
| 92 | + |
|
| 93 | + /** |
|
| 94 | + * @param string $type |
|
| 95 | + * |
|
| 96 | + * @return $this |
|
| 97 | + */ |
|
| 98 | + public function setType($type) |
|
| 99 | + { |
|
| 100 | + $this->type = $type; |
|
| 101 | + |
|
| 102 | + return $this; |
|
| 103 | + } |
|
| 104 | + |
|
| 105 | + /** |
|
| 106 | + * @return Data |
|
| 107 | + */ |
|
| 108 | + public function data() |
|
| 109 | + { |
|
| 110 | + if (is_null($this->data)) { |
|
| 111 | + $this->data = new Data(); |
|
| 112 | + } |
|
| 113 | + |
|
| 114 | + return $this->data; |
|
| 115 | + } |
|
| 116 | + |
|
| 117 | + /** |
|
| 118 | + * @return string |
|
| 119 | + */ |
|
| 120 | + public function getLabel() |
|
| 121 | + { |
|
| 122 | + return $this->label; |
|
| 123 | + } |
|
| 124 | + |
|
| 125 | + /** |
|
| 126 | + * @param string $label |
|
| 127 | + * |
|
| 128 | + * @return $this |
|
| 129 | + */ |
|
| 130 | + public function setLabel($label) |
|
| 131 | + { |
|
| 132 | + $this->label = strval($label); |
|
| 133 | + |
|
| 134 | + return $this; |
|
| 135 | + } |
|
| 136 | + |
|
| 137 | + /** |
|
| 138 | + * @return string |
|
| 139 | + */ |
|
| 140 | + public function getXAxisID() |
|
| 141 | + { |
|
| 142 | + return $this->xAxisID; |
|
| 143 | + } |
|
| 144 | + |
|
| 145 | + /** |
|
| 146 | + * @param string $xAxisID |
|
| 147 | + * |
|
| 148 | + * @return $this |
|
| 149 | + */ |
|
| 150 | + public function setXAxisID($xAxisID) |
|
| 151 | + { |
|
| 152 | + $this->xAxisID = strval($xAxisID); |
|
| 153 | + |
|
| 154 | + return $this; |
|
| 155 | + } |
|
| 156 | + |
|
| 157 | + /** |
|
| 158 | + * @return string |
|
| 159 | + */ |
|
| 160 | + public function getYAxisID() |
|
| 161 | + { |
|
| 162 | + return $this->yAxisID; |
|
| 163 | + } |
|
| 164 | + |
|
| 165 | + /** |
|
| 166 | + * @param string $yAxisID |
|
| 167 | + * |
|
| 168 | + * @return $this |
|
| 169 | + */ |
|
| 170 | + public function setYAxisID($yAxisID) |
|
| 171 | + { |
|
| 172 | + $this->yAxisID = strval($yAxisID); |
|
| 173 | + |
|
| 174 | + return $this; |
|
| 175 | + } |
|
| 176 | + |
|
| 177 | + /** |
|
| 178 | + * @return string|string[] |
|
| 179 | + */ |
|
| 180 | + public function getBackgroundColor() |
|
| 181 | + { |
|
| 182 | + return $this->backgroundColor; |
|
| 183 | + } |
|
| 184 | + |
|
| 185 | + /** |
|
| 186 | + * @param string|string[] $backgroundColor |
|
| 187 | + * |
|
| 188 | + * @return $this |
|
| 189 | + */ |
|
| 190 | + public function setBackgroundColor($backgroundColor) |
|
| 191 | + { |
|
| 192 | + if (is_array($backgroundColor)) { |
|
| 193 | + $backgroundColor = array_map('strval', $backgroundColor); |
|
| 194 | + } |
|
| 195 | + if (! is_array($backgroundColor)) { |
|
| 196 | + $backgroundColor = strval($backgroundColor); |
|
| 197 | + } |
|
| 198 | + |
|
| 199 | + $this->backgroundColor = $backgroundColor; |
|
| 200 | + |
|
| 201 | + return $this; |
|
| 202 | + } |
|
| 203 | + |
|
| 204 | + /** |
|
| 205 | + * @return string|string[] |
|
| 206 | + */ |
|
| 207 | + public function getBorderColor() |
|
| 208 | + { |
|
| 209 | + return $this->borderColor; |
|
| 210 | + } |
|
| 211 | + |
|
| 212 | + /** |
|
| 213 | + * @param string|string[] $borderColor |
|
| 214 | + * |
|
| 215 | + * @return $this |
|
| 216 | + */ |
|
| 217 | + public function setBorderColor($borderColor) |
|
| 218 | + { |
|
| 219 | + if (is_array($borderColor)) { |
|
| 220 | + $borderColor = array_map('strval', $borderColor); |
|
| 221 | + } |
|
| 222 | + if (! is_array($borderColor)) { |
|
| 223 | + $borderColor = strval($borderColor); |
|
| 224 | + } |
|
| 225 | + |
|
| 226 | + $this->borderColor = $borderColor; |
|
| 227 | + |
|
| 228 | + return $this; |
|
| 229 | + } |
|
| 230 | + |
|
| 231 | + /** |
|
| 232 | + * @return int|int[] |
|
| 233 | + */ |
|
| 234 | + public function getBorderWidth() |
|
| 235 | + { |
|
| 236 | + return $this->borderWidth; |
|
| 237 | + } |
|
| 238 | + |
|
| 239 | + /** |
|
| 240 | + * @param int|int[] $borderWidth |
|
| 241 | + * |
|
| 242 | + * @return $this |
|
| 243 | + */ |
|
| 244 | + public function setBorderWidth($borderWidth) |
|
| 245 | + { |
|
| 246 | + if (is_array($borderWidth)) { |
|
| 247 | + $borderWidth = array_map('intval', $borderWidth); |
|
| 248 | + } |
|
| 249 | + if (! is_array($borderWidth)) { |
|
| 250 | + $borderWidth = intval($borderWidth); |
|
| 251 | + } |
|
| 252 | + |
|
| 253 | + $this->borderWidth = $borderWidth; |
|
| 254 | + |
|
| 255 | + return $this; |
|
| 256 | + } |
|
| 257 | + |
|
| 258 | + /** |
|
| 259 | + * @return string |
|
| 260 | + */ |
|
| 261 | + public function getBorderSkipped() |
|
| 262 | + { |
|
| 263 | + return $this->borderSkipped; |
|
| 264 | + } |
|
| 265 | + |
|
| 266 | + /** |
|
| 267 | + * @param string $borderSkipped |
|
| 268 | + * |
|
| 269 | + * @return $this |
|
| 270 | + */ |
|
| 271 | + public function setBorderSkipped($borderSkipped) |
|
| 272 | + { |
|
| 273 | + $this->borderSkipped = strval($borderSkipped); |
|
| 274 | + |
|
| 275 | + return $this; |
|
| 276 | + } |
|
| 277 | + |
|
| 278 | + /** |
|
| 279 | + * @return string|string[] |
|
| 280 | + */ |
|
| 281 | + public function getHoverBackgroundColor() |
|
| 282 | + { |
|
| 283 | + return $this->hoverBackgroundColor; |
|
| 284 | + } |
|
| 285 | + |
|
| 286 | + /** |
|
| 287 | + * @param string|string[] $hoverBackgroundColor |
|
| 288 | + * |
|
| 289 | + * @return $this |
|
| 290 | + */ |
|
| 291 | + public function setHoverBackgroundColor($hoverBackgroundColor) |
|
| 292 | + { |
|
| 293 | + if (is_array($hoverBackgroundColor)) { |
|
| 294 | + $hoverBackgroundColor = array_map('strval', $hoverBackgroundColor); |
|
| 295 | + } |
|
| 296 | + if (! is_array($hoverBackgroundColor)) { |
|
| 297 | + $hoverBackgroundColor = strval($hoverBackgroundColor); |
|
| 298 | + } |
|
| 299 | + |
|
| 300 | + $this->hoverBackgroundColor = $hoverBackgroundColor; |
|
| 301 | + |
|
| 302 | + return $this; |
|
| 303 | + } |
|
| 304 | + |
|
| 305 | + /** |
|
| 306 | + * @return string|string[] |
|
| 307 | + */ |
|
| 308 | + public function getHoverBorderColor() |
|
| 309 | + { |
|
| 310 | + return $this->hoverBorderColor; |
|
| 311 | + } |
|
| 312 | + |
|
| 313 | + /** |
|
| 314 | + * @param string|string[] $hoverBorderColor |
|
| 315 | + * |
|
| 316 | + * @return $this |
|
| 317 | + */ |
|
| 318 | + public function setHoverBorderColor($hoverBorderColor) |
|
| 319 | + { |
|
| 320 | + if (is_array($hoverBorderColor)) { |
|
| 321 | + $hoverBorderColor = array_map('strval', $hoverBorderColor); |
|
| 322 | + } |
|
| 323 | + if (! is_array($hoverBorderColor)) { |
|
| 324 | + $hoverBorderColor = strval($hoverBorderColor); |
|
| 325 | + } |
|
| 326 | + |
|
| 327 | + $this->hoverBorderColor = $hoverBorderColor; |
|
| 328 | + |
|
| 329 | + return $this; |
|
| 330 | + } |
|
| 331 | + |
|
| 332 | + /** |
|
| 333 | + * @return int|int[] |
|
| 334 | + */ |
|
| 335 | + public function getHoverBorderWidth() |
|
| 336 | + { |
|
| 337 | + return $this->hoverBorderWidth; |
|
| 338 | + } |
|
| 339 | + |
|
| 340 | + /** |
|
| 341 | + * @param int|int[] $hoverBorderWidth |
|
| 342 | + * |
|
| 343 | + * @return $this |
|
| 344 | + */ |
|
| 345 | + public function setHoverBorderWidth($hoverBorderWidth) |
|
| 346 | + { |
|
| 347 | + if (is_array($hoverBorderWidth)) { |
|
| 348 | + $hoverBorderWidth = array_map('intval', $hoverBorderWidth); |
|
| 349 | + } |
|
| 350 | + if (! is_array($hoverBorderWidth)) { |
|
| 351 | + $hoverBorderWidth = intval($hoverBorderWidth); |
|
| 352 | + } |
|
| 353 | + |
|
| 354 | + $this->hoverBorderWidth = $hoverBorderWidth; |
|
| 355 | + |
|
| 356 | + return $this; |
|
| 357 | + } |
|
| 358 | + |
|
| 359 | + /** |
|
| 360 | + * @return bool|null |
|
| 361 | + */ |
|
| 362 | + public function isHidden() |
|
| 363 | + { |
|
| 364 | + if (is_null($this->hidden)) { |
|
| 365 | + $this->hidden = false; |
|
| 366 | + } |
|
| 367 | + |
|
| 368 | + return $this->hidden; |
|
| 369 | + } |
|
| 370 | + |
|
| 371 | + /** |
|
| 372 | + * @param bool|null $hidden |
|
| 373 | + * |
|
| 374 | + * @return $this |
|
| 375 | + */ |
|
| 376 | + public function setHidden($hidden) |
|
| 377 | + { |
|
| 378 | + $this->hidden = is_null($hidden) ? null : boolval($hidden); |
|
| 379 | + |
|
| 380 | + return $this; |
|
| 381 | + } |
|
| 382 | 382 | } |
@@ -11,53 +11,53 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | class BubbleDataSet extends DataSet |
| 13 | 13 | { |
| 14 | - /** |
|
| 15 | - * @var string |
|
| 16 | - */ |
|
| 17 | - protected $pointStyle; |
|
| 18 | - |
|
| 19 | - /** |
|
| 20 | - * @var int |
|
| 21 | - */ |
|
| 22 | - protected $radius; |
|
| 23 | - |
|
| 24 | - /** |
|
| 25 | - * @return string |
|
| 26 | - */ |
|
| 27 | - public function getPointStyle() |
|
| 28 | - { |
|
| 29 | - return $this->pointStyle; |
|
| 30 | - } |
|
| 31 | - |
|
| 32 | - /** |
|
| 33 | - * @param string $pointStyle |
|
| 34 | - * |
|
| 35 | - * @return \Halfpastfour\PHPChartJS\DataSet\BubbleDataSet |
|
| 36 | - */ |
|
| 37 | - public function setPointStyle($pointStyle) |
|
| 38 | - { |
|
| 39 | - $this->pointStyle = $pointStyle; |
|
| 40 | - |
|
| 41 | - return $this; |
|
| 42 | - } |
|
| 43 | - |
|
| 44 | - /** |
|
| 45 | - * @return int|null |
|
| 46 | - */ |
|
| 47 | - public function getRadius() |
|
| 48 | - { |
|
| 49 | - return $this->radius; |
|
| 50 | - } |
|
| 51 | - |
|
| 52 | - /** |
|
| 53 | - * @param int $radius |
|
| 54 | - * |
|
| 55 | - * @return \Halfpastfour\PHPChartJS\DataSet\BubbleDataSet |
|
| 56 | - */ |
|
| 57 | - public function setRadius($radius) |
|
| 58 | - { |
|
| 59 | - $this->radius = $radius; |
|
| 60 | - |
|
| 61 | - return $this; |
|
| 62 | - } |
|
| 14 | + /** |
|
| 15 | + * @var string |
|
| 16 | + */ |
|
| 17 | + protected $pointStyle; |
|
| 18 | + |
|
| 19 | + /** |
|
| 20 | + * @var int |
|
| 21 | + */ |
|
| 22 | + protected $radius; |
|
| 23 | + |
|
| 24 | + /** |
|
| 25 | + * @return string |
|
| 26 | + */ |
|
| 27 | + public function getPointStyle() |
|
| 28 | + { |
|
| 29 | + return $this->pointStyle; |
|
| 30 | + } |
|
| 31 | + |
|
| 32 | + /** |
|
| 33 | + * @param string $pointStyle |
|
| 34 | + * |
|
| 35 | + * @return \Halfpastfour\PHPChartJS\DataSet\BubbleDataSet |
|
| 36 | + */ |
|
| 37 | + public function setPointStyle($pointStyle) |
|
| 38 | + { |
|
| 39 | + $this->pointStyle = $pointStyle; |
|
| 40 | + |
|
| 41 | + return $this; |
|
| 42 | + } |
|
| 43 | + |
|
| 44 | + /** |
|
| 45 | + * @return int|null |
|
| 46 | + */ |
|
| 47 | + public function getRadius() |
|
| 48 | + { |
|
| 49 | + return $this->radius; |
|
| 50 | + } |
|
| 51 | + |
|
| 52 | + /** |
|
| 53 | + * @param int $radius |
|
| 54 | + * |
|
| 55 | + * @return \Halfpastfour\PHPChartJS\DataSet\BubbleDataSet |
|
| 56 | + */ |
|
| 57 | + public function setRadius($radius) |
|
| 58 | + { |
|
| 59 | + $this->radius = $radius; |
|
| 60 | + |
|
| 61 | + return $this; |
|
| 62 | + } |
|
| 63 | 63 | } |
@@ -8,10 +8,10 @@ |
||
| 8 | 8 | */ |
| 9 | 9 | interface ArraySerializableInterface |
| 10 | 10 | { |
| 11 | - /** |
|
| 12 | - * Should return an array containing all values. |
|
| 13 | - * |
|
| 14 | - * @return array |
|
| 15 | - */ |
|
| 16 | - public function getArrayCopy(); |
|
| 11 | + /** |
|
| 12 | + * Should return an array containing all values. |
|
| 13 | + * |
|
| 14 | + * @return array |
|
| 15 | + */ |
|
| 16 | + public function getArrayCopy(); |
|
| 17 | 17 | } |
@@ -10,53 +10,53 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | class PieAnimation extends Animation |
| 12 | 12 | { |
| 13 | - /** |
|
| 14 | - * @var bool |
|
| 15 | - */ |
|
| 16 | - private $animateRotate; |
|
| 17 | - |
|
| 18 | - /** |
|
| 19 | - * @var bool |
|
| 20 | - */ |
|
| 21 | - private $animateScale; |
|
| 22 | - |
|
| 23 | - /** |
|
| 24 | - * @return bool |
|
| 25 | - */ |
|
| 26 | - public function isAnimateRotate() |
|
| 27 | - { |
|
| 28 | - return $this->animateRotate; |
|
| 29 | - } |
|
| 30 | - |
|
| 31 | - /** |
|
| 32 | - * @param bool $animateRotate |
|
| 33 | - * |
|
| 34 | - * @return PieAnimation |
|
| 35 | - */ |
|
| 36 | - public function setAnimateRotate($animateRotate) |
|
| 37 | - { |
|
| 38 | - $this->animateRotate = $animateRotate; |
|
| 39 | - |
|
| 40 | - return $this; |
|
| 41 | - } |
|
| 42 | - |
|
| 43 | - /** |
|
| 44 | - * @return bool |
|
| 45 | - */ |
|
| 46 | - public function isAnimateScale() |
|
| 47 | - { |
|
| 48 | - return $this->animateScale; |
|
| 49 | - } |
|
| 50 | - |
|
| 51 | - /** |
|
| 52 | - * @param bool $animateScale |
|
| 53 | - * |
|
| 54 | - * @return PieAnimation |
|
| 55 | - */ |
|
| 56 | - public function setAnimateScale($animateScale) |
|
| 57 | - { |
|
| 58 | - $this->animateScale = $animateScale; |
|
| 59 | - |
|
| 60 | - return $this; |
|
| 61 | - } |
|
| 13 | + /** |
|
| 14 | + * @var bool |
|
| 15 | + */ |
|
| 16 | + private $animateRotate; |
|
| 17 | + |
|
| 18 | + /** |
|
| 19 | + * @var bool |
|
| 20 | + */ |
|
| 21 | + private $animateScale; |
|
| 22 | + |
|
| 23 | + /** |
|
| 24 | + * @return bool |
|
| 25 | + */ |
|
| 26 | + public function isAnimateRotate() |
|
| 27 | + { |
|
| 28 | + return $this->animateRotate; |
|
| 29 | + } |
|
| 30 | + |
|
| 31 | + /** |
|
| 32 | + * @param bool $animateRotate |
|
| 33 | + * |
|
| 34 | + * @return PieAnimation |
|
| 35 | + */ |
|
| 36 | + public function setAnimateRotate($animateRotate) |
|
| 37 | + { |
|
| 38 | + $this->animateRotate = $animateRotate; |
|
| 39 | + |
|
| 40 | + return $this; |
|
| 41 | + } |
|
| 42 | + |
|
| 43 | + /** |
|
| 44 | + * @return bool |
|
| 45 | + */ |
|
| 46 | + public function isAnimateScale() |
|
| 47 | + { |
|
| 48 | + return $this->animateScale; |
|
| 49 | + } |
|
| 50 | + |
|
| 51 | + /** |
|
| 52 | + * @param bool $animateScale |
|
| 53 | + * |
|
| 54 | + * @return PieAnimation |
|
| 55 | + */ |
|
| 56 | + public function setAnimateScale($animateScale) |
|
| 57 | + { |
|
| 58 | + $this->animateScale = $animateScale; |
|
| 59 | + |
|
| 60 | + return $this; |
|
| 61 | + } |
|
| 62 | 62 | } |
@@ -10,403 +10,403 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | class RadarDataSet extends DataSet |
| 12 | 12 | { |
| 13 | - /** |
|
| 14 | - * @var bool |
|
| 15 | - */ |
|
| 16 | - protected $fill; |
|
| 17 | - |
|
| 18 | - /** |
|
| 19 | - * @var float |
|
| 20 | - */ |
|
| 21 | - protected $lineTension; |
|
| 22 | - |
|
| 23 | - /** |
|
| 24 | - * @var string |
|
| 25 | - */ |
|
| 26 | - protected $borderCapStyle; |
|
| 27 | - |
|
| 28 | - /** |
|
| 29 | - * @var int[] |
|
| 30 | - */ |
|
| 31 | - protected $borderDash; |
|
| 32 | - |
|
| 33 | - /** |
|
| 34 | - * @var int |
|
| 35 | - */ |
|
| 36 | - protected $borderDashOffset; |
|
| 37 | - |
|
| 38 | - /** |
|
| 39 | - * @var string |
|
| 40 | - */ |
|
| 41 | - protected $borderJoinStyle; |
|
| 42 | - |
|
| 43 | - /** |
|
| 44 | - * @var string|string[] |
|
| 45 | - */ |
|
| 46 | - protected $pointBorderColor; |
|
| 47 | - |
|
| 48 | - /** |
|
| 49 | - * @var string|string[] |
|
| 50 | - */ |
|
| 51 | - protected $pointBackgroundColor; |
|
| 52 | - |
|
| 53 | - /** |
|
| 54 | - * @var int|int[] |
|
| 55 | - */ |
|
| 56 | - protected $pointBorderWidth; |
|
| 57 | - |
|
| 58 | - /** |
|
| 59 | - * @var int|int[] |
|
| 60 | - */ |
|
| 61 | - protected $pointRadius; |
|
| 62 | - |
|
| 63 | - /** |
|
| 64 | - * @var int|int[] |
|
| 65 | - */ |
|
| 66 | - protected $pointHoverRadius; |
|
| 67 | - |
|
| 68 | - /** |
|
| 69 | - * @var int|int[] |
|
| 70 | - */ |
|
| 71 | - protected $hitRadius; |
|
| 72 | - |
|
| 73 | - /** |
|
| 74 | - * @var string|string[] |
|
| 75 | - */ |
|
| 76 | - protected $pointHoverBackgroundColor; |
|
| 77 | - |
|
| 78 | - /** |
|
| 79 | - * @var string|string[] |
|
| 80 | - */ |
|
| 81 | - protected $pointHoverBorderColor; |
|
| 82 | - |
|
| 83 | - /** |
|
| 84 | - * @var int|int[] |
|
| 85 | - */ |
|
| 86 | - protected $pointHoverBorderWidth; |
|
| 87 | - |
|
| 88 | - /** |
|
| 89 | - * @var string|string[] |
|
| 90 | - */ |
|
| 91 | - protected $pointStyle; |
|
| 92 | - |
|
| 93 | - /** |
|
| 94 | - * @return bool |
|
| 95 | - */ |
|
| 96 | - public function isFill() |
|
| 97 | - { |
|
| 98 | - return $this->fill; |
|
| 99 | - } |
|
| 100 | - |
|
| 101 | - /** |
|
| 102 | - * @param bool $fill |
|
| 103 | - * |
|
| 104 | - * @return $this |
|
| 105 | - */ |
|
| 106 | - public function setFill($fill) |
|
| 107 | - { |
|
| 108 | - $this->fill = $fill; |
|
| 109 | - |
|
| 110 | - return $this; |
|
| 111 | - } |
|
| 112 | - |
|
| 113 | - /** |
|
| 114 | - * @return int |
|
| 115 | - */ |
|
| 116 | - public function getLineTension() |
|
| 117 | - { |
|
| 118 | - return $this->lineTension; |
|
| 119 | - } |
|
| 120 | - |
|
| 121 | - /** |
|
| 122 | - * @param float $lineTension |
|
| 123 | - * |
|
| 124 | - * @return $this |
|
| 125 | - */ |
|
| 126 | - public function setLineTension($lineTension) |
|
| 127 | - { |
|
| 128 | - $this->lineTension = $lineTension; |
|
| 129 | - |
|
| 130 | - return $this; |
|
| 131 | - } |
|
| 132 | - |
|
| 133 | - /** |
|
| 134 | - * @return string |
|
| 135 | - */ |
|
| 136 | - public function getBorderCapStyle() |
|
| 137 | - { |
|
| 138 | - return $this->borderCapStyle; |
|
| 139 | - } |
|
| 140 | - |
|
| 141 | - /** |
|
| 142 | - * @param string $borderCapStyle |
|
| 143 | - * |
|
| 144 | - * @return $this |
|
| 145 | - */ |
|
| 146 | - public function setBorderCapStyle($borderCapStyle) |
|
| 147 | - { |
|
| 148 | - $this->borderCapStyle = $borderCapStyle; |
|
| 149 | - |
|
| 150 | - return $this; |
|
| 151 | - } |
|
| 152 | - |
|
| 153 | - /** |
|
| 154 | - * @return int[] |
|
| 155 | - */ |
|
| 156 | - public function getBorderDash() |
|
| 157 | - { |
|
| 158 | - return $this->borderDash; |
|
| 159 | - } |
|
| 160 | - |
|
| 161 | - /** |
|
| 162 | - * @param int[] $borderDash |
|
| 163 | - * |
|
| 164 | - * @return $this |
|
| 165 | - */ |
|
| 166 | - public function setBorderDash($borderDash) |
|
| 167 | - { |
|
| 168 | - $this->borderDash = $borderDash; |
|
| 169 | - |
|
| 170 | - return $this; |
|
| 171 | - } |
|
| 172 | - |
|
| 173 | - /** |
|
| 174 | - * @return int |
|
| 175 | - */ |
|
| 176 | - public function getBorderDashOffset() |
|
| 177 | - { |
|
| 178 | - return $this->borderDashOffset; |
|
| 179 | - } |
|
| 180 | - |
|
| 181 | - /** |
|
| 182 | - * @param int $borderDashOffset |
|
| 183 | - * |
|
| 184 | - * @return $this |
|
| 185 | - */ |
|
| 186 | - public function setBorderDashOffset($borderDashOffset) |
|
| 187 | - { |
|
| 188 | - $this->borderDashOffset = $borderDashOffset; |
|
| 189 | - |
|
| 190 | - return $this; |
|
| 191 | - } |
|
| 192 | - |
|
| 193 | - /** |
|
| 194 | - * @return string |
|
| 195 | - */ |
|
| 196 | - public function getBorderJoinStyle() |
|
| 197 | - { |
|
| 198 | - return $this->borderJoinStyle; |
|
| 199 | - } |
|
| 200 | - |
|
| 201 | - /** |
|
| 202 | - * @param string $borderJoinStyle |
|
| 203 | - * |
|
| 204 | - * @return $this |
|
| 205 | - */ |
|
| 206 | - public function setBorderJoinStyle($borderJoinStyle) |
|
| 207 | - { |
|
| 208 | - $this->borderJoinStyle = $borderJoinStyle; |
|
| 209 | - |
|
| 210 | - return $this; |
|
| 211 | - } |
|
| 212 | - |
|
| 213 | - /** |
|
| 214 | - * @return string|string[] |
|
| 215 | - */ |
|
| 216 | - public function getPointBorderColor() |
|
| 217 | - { |
|
| 218 | - return $this->pointBorderColor; |
|
| 219 | - } |
|
| 220 | - |
|
| 221 | - /** |
|
| 222 | - * @param string|string[] $pointBorderColor |
|
| 223 | - * |
|
| 224 | - * @return $this |
|
| 225 | - */ |
|
| 226 | - public function setPointBorderColor($pointBorderColor) |
|
| 227 | - { |
|
| 228 | - $this->pointBorderColor = $pointBorderColor; |
|
| 229 | - |
|
| 230 | - return $this; |
|
| 231 | - } |
|
| 232 | - |
|
| 233 | - /** |
|
| 234 | - * @return string|string[] |
|
| 235 | - */ |
|
| 236 | - public function getPointBackgroundColor() |
|
| 237 | - { |
|
| 238 | - return $this->pointBackgroundColor; |
|
| 239 | - } |
|
| 240 | - |
|
| 241 | - /** |
|
| 242 | - * @param string|string[] $pointBackgroundColor |
|
| 243 | - * |
|
| 244 | - * @return $this |
|
| 245 | - */ |
|
| 246 | - public function setPointBackgroundColor($pointBackgroundColor) |
|
| 247 | - { |
|
| 248 | - $this->pointBackgroundColor = $pointBackgroundColor; |
|
| 249 | - |
|
| 250 | - return $this; |
|
| 251 | - } |
|
| 252 | - |
|
| 253 | - /** |
|
| 254 | - * @return int|int[] |
|
| 255 | - */ |
|
| 256 | - public function getPointBorderWidth() |
|
| 257 | - { |
|
| 258 | - return $this->pointBorderWidth; |
|
| 259 | - } |
|
| 260 | - |
|
| 261 | - /** |
|
| 262 | - * @param int|int[] $pointBorderWidth |
|
| 263 | - * |
|
| 264 | - * @return $this |
|
| 265 | - */ |
|
| 266 | - public function setPointBorderWidth($pointBorderWidth) |
|
| 267 | - { |
|
| 268 | - $this->pointBorderWidth = $pointBorderWidth; |
|
| 269 | - |
|
| 270 | - return $this; |
|
| 271 | - } |
|
| 272 | - |
|
| 273 | - /** |
|
| 274 | - * @return int|int[] |
|
| 275 | - */ |
|
| 276 | - public function getPointRadius() |
|
| 277 | - { |
|
| 278 | - return $this->pointRadius; |
|
| 279 | - } |
|
| 280 | - |
|
| 281 | - /** |
|
| 282 | - * @param int|int[] $pointRadius |
|
| 283 | - * |
|
| 284 | - * @return $this |
|
| 285 | - */ |
|
| 286 | - public function setPointRadius($pointRadius) |
|
| 287 | - { |
|
| 288 | - $this->pointRadius = $pointRadius; |
|
| 289 | - |
|
| 290 | - return $this; |
|
| 291 | - } |
|
| 292 | - |
|
| 293 | - /** |
|
| 294 | - * @return int|int[] |
|
| 295 | - */ |
|
| 296 | - public function getPointHoverRadius() |
|
| 297 | - { |
|
| 298 | - return $this->pointHoverRadius; |
|
| 299 | - } |
|
| 300 | - |
|
| 301 | - /** |
|
| 302 | - * @param int|int[] $pointHoverRadius |
|
| 303 | - * |
|
| 304 | - * @return $this |
|
| 305 | - */ |
|
| 306 | - public function setPointHoverRadius($pointHoverRadius) |
|
| 307 | - { |
|
| 308 | - $this->pointHoverRadius = $pointHoverRadius; |
|
| 309 | - |
|
| 310 | - return $this; |
|
| 311 | - } |
|
| 312 | - |
|
| 313 | - /** |
|
| 314 | - * @return int|int[] |
|
| 315 | - */ |
|
| 316 | - public function getHitRadius() |
|
| 317 | - { |
|
| 318 | - return $this->hitRadius; |
|
| 319 | - } |
|
| 320 | - |
|
| 321 | - /** |
|
| 322 | - * @param int|int[] $hitRadius |
|
| 323 | - * |
|
| 324 | - * @return $this |
|
| 325 | - */ |
|
| 326 | - public function setHitRadius($hitRadius) |
|
| 327 | - { |
|
| 328 | - $this->hitRadius = $hitRadius; |
|
| 329 | - |
|
| 330 | - return $this; |
|
| 331 | - } |
|
| 332 | - |
|
| 333 | - /** |
|
| 334 | - * @return string|string[] |
|
| 335 | - */ |
|
| 336 | - public function getPointHoverBackgroundColor() |
|
| 337 | - { |
|
| 338 | - return $this->pointHoverBackgroundColor; |
|
| 339 | - } |
|
| 340 | - |
|
| 341 | - /** |
|
| 342 | - * @param string|string[] $pointHoverBackgroundColor |
|
| 343 | - * |
|
| 344 | - * @return $this |
|
| 345 | - */ |
|
| 346 | - public function setPointHoverBackgroundColor($pointHoverBackgroundColor) |
|
| 347 | - { |
|
| 348 | - $this->pointHoverBackgroundColor = $pointHoverBackgroundColor; |
|
| 349 | - |
|
| 350 | - return $this; |
|
| 351 | - } |
|
| 352 | - |
|
| 353 | - /** |
|
| 354 | - * @return string|string[] |
|
| 355 | - */ |
|
| 356 | - public function getPointHoverBorderColor() |
|
| 357 | - { |
|
| 358 | - return $this->pointHoverBorderColor; |
|
| 359 | - } |
|
| 360 | - |
|
| 361 | - /** |
|
| 362 | - * @param string|string[] $pointHoverBorderColor |
|
| 363 | - * |
|
| 364 | - * @return $this |
|
| 365 | - */ |
|
| 366 | - public function setPointHoverBorderColor($pointHoverBorderColor) |
|
| 367 | - { |
|
| 368 | - $this->pointHoverBorderColor = $pointHoverBorderColor; |
|
| 369 | - |
|
| 370 | - return $this; |
|
| 371 | - } |
|
| 372 | - |
|
| 373 | - /** |
|
| 374 | - * @return int|int[] |
|
| 375 | - */ |
|
| 376 | - public function getPointHoverBorderWidth() |
|
| 377 | - { |
|
| 378 | - return $this->pointHoverBorderWidth; |
|
| 379 | - } |
|
| 380 | - |
|
| 381 | - /** |
|
| 382 | - * @param int|int[] $pointHoverBorderWidth |
|
| 383 | - * |
|
| 384 | - * @return $this |
|
| 385 | - */ |
|
| 386 | - public function setPointHoverBorderWidth($pointHoverBorderWidth) |
|
| 387 | - { |
|
| 388 | - $this->pointHoverBorderWidth = $pointHoverBorderWidth; |
|
| 389 | - |
|
| 390 | - return $this; |
|
| 391 | - } |
|
| 392 | - |
|
| 393 | - /** |
|
| 394 | - * @return string|string[] |
|
| 395 | - */ |
|
| 396 | - public function getPointStyle() |
|
| 397 | - { |
|
| 398 | - return $this->pointStyle; |
|
| 399 | - } |
|
| 400 | - |
|
| 401 | - /** |
|
| 402 | - * @param string|string[] $pointStyle |
|
| 403 | - * |
|
| 404 | - * @return $this |
|
| 405 | - */ |
|
| 406 | - public function setPointStyle($pointStyle) |
|
| 407 | - { |
|
| 408 | - $this->pointStyle = $pointStyle; |
|
| 409 | - |
|
| 410 | - return $this; |
|
| 411 | - } |
|
| 13 | + /** |
|
| 14 | + * @var bool |
|
| 15 | + */ |
|
| 16 | + protected $fill; |
|
| 17 | + |
|
| 18 | + /** |
|
| 19 | + * @var float |
|
| 20 | + */ |
|
| 21 | + protected $lineTension; |
|
| 22 | + |
|
| 23 | + /** |
|
| 24 | + * @var string |
|
| 25 | + */ |
|
| 26 | + protected $borderCapStyle; |
|
| 27 | + |
|
| 28 | + /** |
|
| 29 | + * @var int[] |
|
| 30 | + */ |
|
| 31 | + protected $borderDash; |
|
| 32 | + |
|
| 33 | + /** |
|
| 34 | + * @var int |
|
| 35 | + */ |
|
| 36 | + protected $borderDashOffset; |
|
| 37 | + |
|
| 38 | + /** |
|
| 39 | + * @var string |
|
| 40 | + */ |
|
| 41 | + protected $borderJoinStyle; |
|
| 42 | + |
|
| 43 | + /** |
|
| 44 | + * @var string|string[] |
|
| 45 | + */ |
|
| 46 | + protected $pointBorderColor; |
|
| 47 | + |
|
| 48 | + /** |
|
| 49 | + * @var string|string[] |
|
| 50 | + */ |
|
| 51 | + protected $pointBackgroundColor; |
|
| 52 | + |
|
| 53 | + /** |
|
| 54 | + * @var int|int[] |
|
| 55 | + */ |
|
| 56 | + protected $pointBorderWidth; |
|
| 57 | + |
|
| 58 | + /** |
|
| 59 | + * @var int|int[] |
|
| 60 | + */ |
|
| 61 | + protected $pointRadius; |
|
| 62 | + |
|
| 63 | + /** |
|
| 64 | + * @var int|int[] |
|
| 65 | + */ |
|
| 66 | + protected $pointHoverRadius; |
|
| 67 | + |
|
| 68 | + /** |
|
| 69 | + * @var int|int[] |
|
| 70 | + */ |
|
| 71 | + protected $hitRadius; |
|
| 72 | + |
|
| 73 | + /** |
|
| 74 | + * @var string|string[] |
|
| 75 | + */ |
|
| 76 | + protected $pointHoverBackgroundColor; |
|
| 77 | + |
|
| 78 | + /** |
|
| 79 | + * @var string|string[] |
|
| 80 | + */ |
|
| 81 | + protected $pointHoverBorderColor; |
|
| 82 | + |
|
| 83 | + /** |
|
| 84 | + * @var int|int[] |
|
| 85 | + */ |
|
| 86 | + protected $pointHoverBorderWidth; |
|
| 87 | + |
|
| 88 | + /** |
|
| 89 | + * @var string|string[] |
|
| 90 | + */ |
|
| 91 | + protected $pointStyle; |
|
| 92 | + |
|
| 93 | + /** |
|
| 94 | + * @return bool |
|
| 95 | + */ |
|
| 96 | + public function isFill() |
|
| 97 | + { |
|
| 98 | + return $this->fill; |
|
| 99 | + } |
|
| 100 | + |
|
| 101 | + /** |
|
| 102 | + * @param bool $fill |
|
| 103 | + * |
|
| 104 | + * @return $this |
|
| 105 | + */ |
|
| 106 | + public function setFill($fill) |
|
| 107 | + { |
|
| 108 | + $this->fill = $fill; |
|
| 109 | + |
|
| 110 | + return $this; |
|
| 111 | + } |
|
| 112 | + |
|
| 113 | + /** |
|
| 114 | + * @return int |
|
| 115 | + */ |
|
| 116 | + public function getLineTension() |
|
| 117 | + { |
|
| 118 | + return $this->lineTension; |
|
| 119 | + } |
|
| 120 | + |
|
| 121 | + /** |
|
| 122 | + * @param float $lineTension |
|
| 123 | + * |
|
| 124 | + * @return $this |
|
| 125 | + */ |
|
| 126 | + public function setLineTension($lineTension) |
|
| 127 | + { |
|
| 128 | + $this->lineTension = $lineTension; |
|
| 129 | + |
|
| 130 | + return $this; |
|
| 131 | + } |
|
| 132 | + |
|
| 133 | + /** |
|
| 134 | + * @return string |
|
| 135 | + */ |
|
| 136 | + public function getBorderCapStyle() |
|
| 137 | + { |
|
| 138 | + return $this->borderCapStyle; |
|
| 139 | + } |
|
| 140 | + |
|
| 141 | + /** |
|
| 142 | + * @param string $borderCapStyle |
|
| 143 | + * |
|
| 144 | + * @return $this |
|
| 145 | + */ |
|
| 146 | + public function setBorderCapStyle($borderCapStyle) |
|
| 147 | + { |
|
| 148 | + $this->borderCapStyle = $borderCapStyle; |
|
| 149 | + |
|
| 150 | + return $this; |
|
| 151 | + } |
|
| 152 | + |
|
| 153 | + /** |
|
| 154 | + * @return int[] |
|
| 155 | + */ |
|
| 156 | + public function getBorderDash() |
|
| 157 | + { |
|
| 158 | + return $this->borderDash; |
|
| 159 | + } |
|
| 160 | + |
|
| 161 | + /** |
|
| 162 | + * @param int[] $borderDash |
|
| 163 | + * |
|
| 164 | + * @return $this |
|
| 165 | + */ |
|
| 166 | + public function setBorderDash($borderDash) |
|
| 167 | + { |
|
| 168 | + $this->borderDash = $borderDash; |
|
| 169 | + |
|
| 170 | + return $this; |
|
| 171 | + } |
|
| 172 | + |
|
| 173 | + /** |
|
| 174 | + * @return int |
|
| 175 | + */ |
|
| 176 | + public function getBorderDashOffset() |
|
| 177 | + { |
|
| 178 | + return $this->borderDashOffset; |
|
| 179 | + } |
|
| 180 | + |
|
| 181 | + /** |
|
| 182 | + * @param int $borderDashOffset |
|
| 183 | + * |
|
| 184 | + * @return $this |
|
| 185 | + */ |
|
| 186 | + public function setBorderDashOffset($borderDashOffset) |
|
| 187 | + { |
|
| 188 | + $this->borderDashOffset = $borderDashOffset; |
|
| 189 | + |
|
| 190 | + return $this; |
|
| 191 | + } |
|
| 192 | + |
|
| 193 | + /** |
|
| 194 | + * @return string |
|
| 195 | + */ |
|
| 196 | + public function getBorderJoinStyle() |
|
| 197 | + { |
|
| 198 | + return $this->borderJoinStyle; |
|
| 199 | + } |
|
| 200 | + |
|
| 201 | + /** |
|
| 202 | + * @param string $borderJoinStyle |
|
| 203 | + * |
|
| 204 | + * @return $this |
|
| 205 | + */ |
|
| 206 | + public function setBorderJoinStyle($borderJoinStyle) |
|
| 207 | + { |
|
| 208 | + $this->borderJoinStyle = $borderJoinStyle; |
|
| 209 | + |
|
| 210 | + return $this; |
|
| 211 | + } |
|
| 212 | + |
|
| 213 | + /** |
|
| 214 | + * @return string|string[] |
|
| 215 | + */ |
|
| 216 | + public function getPointBorderColor() |
|
| 217 | + { |
|
| 218 | + return $this->pointBorderColor; |
|
| 219 | + } |
|
| 220 | + |
|
| 221 | + /** |
|
| 222 | + * @param string|string[] $pointBorderColor |
|
| 223 | + * |
|
| 224 | + * @return $this |
|
| 225 | + */ |
|
| 226 | + public function setPointBorderColor($pointBorderColor) |
|
| 227 | + { |
|
| 228 | + $this->pointBorderColor = $pointBorderColor; |
|
| 229 | + |
|
| 230 | + return $this; |
|
| 231 | + } |
|
| 232 | + |
|
| 233 | + /** |
|
| 234 | + * @return string|string[] |
|
| 235 | + */ |
|
| 236 | + public function getPointBackgroundColor() |
|
| 237 | + { |
|
| 238 | + return $this->pointBackgroundColor; |
|
| 239 | + } |
|
| 240 | + |
|
| 241 | + /** |
|
| 242 | + * @param string|string[] $pointBackgroundColor |
|
| 243 | + * |
|
| 244 | + * @return $this |
|
| 245 | + */ |
|
| 246 | + public function setPointBackgroundColor($pointBackgroundColor) |
|
| 247 | + { |
|
| 248 | + $this->pointBackgroundColor = $pointBackgroundColor; |
|
| 249 | + |
|
| 250 | + return $this; |
|
| 251 | + } |
|
| 252 | + |
|
| 253 | + /** |
|
| 254 | + * @return int|int[] |
|
| 255 | + */ |
|
| 256 | + public function getPointBorderWidth() |
|
| 257 | + { |
|
| 258 | + return $this->pointBorderWidth; |
|
| 259 | + } |
|
| 260 | + |
|
| 261 | + /** |
|
| 262 | + * @param int|int[] $pointBorderWidth |
|
| 263 | + * |
|
| 264 | + * @return $this |
|
| 265 | + */ |
|
| 266 | + public function setPointBorderWidth($pointBorderWidth) |
|
| 267 | + { |
|
| 268 | + $this->pointBorderWidth = $pointBorderWidth; |
|
| 269 | + |
|
| 270 | + return $this; |
|
| 271 | + } |
|
| 272 | + |
|
| 273 | + /** |
|
| 274 | + * @return int|int[] |
|
| 275 | + */ |
|
| 276 | + public function getPointRadius() |
|
| 277 | + { |
|
| 278 | + return $this->pointRadius; |
|
| 279 | + } |
|
| 280 | + |
|
| 281 | + /** |
|
| 282 | + * @param int|int[] $pointRadius |
|
| 283 | + * |
|
| 284 | + * @return $this |
|
| 285 | + */ |
|
| 286 | + public function setPointRadius($pointRadius) |
|
| 287 | + { |
|
| 288 | + $this->pointRadius = $pointRadius; |
|
| 289 | + |
|
| 290 | + return $this; |
|
| 291 | + } |
|
| 292 | + |
|
| 293 | + /** |
|
| 294 | + * @return int|int[] |
|
| 295 | + */ |
|
| 296 | + public function getPointHoverRadius() |
|
| 297 | + { |
|
| 298 | + return $this->pointHoverRadius; |
|
| 299 | + } |
|
| 300 | + |
|
| 301 | + /** |
|
| 302 | + * @param int|int[] $pointHoverRadius |
|
| 303 | + * |
|
| 304 | + * @return $this |
|
| 305 | + */ |
|
| 306 | + public function setPointHoverRadius($pointHoverRadius) |
|
| 307 | + { |
|
| 308 | + $this->pointHoverRadius = $pointHoverRadius; |
|
| 309 | + |
|
| 310 | + return $this; |
|
| 311 | + } |
|
| 312 | + |
|
| 313 | + /** |
|
| 314 | + * @return int|int[] |
|
| 315 | + */ |
|
| 316 | + public function getHitRadius() |
|
| 317 | + { |
|
| 318 | + return $this->hitRadius; |
|
| 319 | + } |
|
| 320 | + |
|
| 321 | + /** |
|
| 322 | + * @param int|int[] $hitRadius |
|
| 323 | + * |
|
| 324 | + * @return $this |
|
| 325 | + */ |
|
| 326 | + public function setHitRadius($hitRadius) |
|
| 327 | + { |
|
| 328 | + $this->hitRadius = $hitRadius; |
|
| 329 | + |
|
| 330 | + return $this; |
|
| 331 | + } |
|
| 332 | + |
|
| 333 | + /** |
|
| 334 | + * @return string|string[] |
|
| 335 | + */ |
|
| 336 | + public function getPointHoverBackgroundColor() |
|
| 337 | + { |
|
| 338 | + return $this->pointHoverBackgroundColor; |
|
| 339 | + } |
|
| 340 | + |
|
| 341 | + /** |
|
| 342 | + * @param string|string[] $pointHoverBackgroundColor |
|
| 343 | + * |
|
| 344 | + * @return $this |
|
| 345 | + */ |
|
| 346 | + public function setPointHoverBackgroundColor($pointHoverBackgroundColor) |
|
| 347 | + { |
|
| 348 | + $this->pointHoverBackgroundColor = $pointHoverBackgroundColor; |
|
| 349 | + |
|
| 350 | + return $this; |
|
| 351 | + } |
|
| 352 | + |
|
| 353 | + /** |
|
| 354 | + * @return string|string[] |
|
| 355 | + */ |
|
| 356 | + public function getPointHoverBorderColor() |
|
| 357 | + { |
|
| 358 | + return $this->pointHoverBorderColor; |
|
| 359 | + } |
|
| 360 | + |
|
| 361 | + /** |
|
| 362 | + * @param string|string[] $pointHoverBorderColor |
|
| 363 | + * |
|
| 364 | + * @return $this |
|
| 365 | + */ |
|
| 366 | + public function setPointHoverBorderColor($pointHoverBorderColor) |
|
| 367 | + { |
|
| 368 | + $this->pointHoverBorderColor = $pointHoverBorderColor; |
|
| 369 | + |
|
| 370 | + return $this; |
|
| 371 | + } |
|
| 372 | + |
|
| 373 | + /** |
|
| 374 | + * @return int|int[] |
|
| 375 | + */ |
|
| 376 | + public function getPointHoverBorderWidth() |
|
| 377 | + { |
|
| 378 | + return $this->pointHoverBorderWidth; |
|
| 379 | + } |
|
| 380 | + |
|
| 381 | + /** |
|
| 382 | + * @param int|int[] $pointHoverBorderWidth |
|
| 383 | + * |
|
| 384 | + * @return $this |
|
| 385 | + */ |
|
| 386 | + public function setPointHoverBorderWidth($pointHoverBorderWidth) |
|
| 387 | + { |
|
| 388 | + $this->pointHoverBorderWidth = $pointHoverBorderWidth; |
|
| 389 | + |
|
| 390 | + return $this; |
|
| 391 | + } |
|
| 392 | + |
|
| 393 | + /** |
|
| 394 | + * @return string|string[] |
|
| 395 | + */ |
|
| 396 | + public function getPointStyle() |
|
| 397 | + { |
|
| 398 | + return $this->pointStyle; |
|
| 399 | + } |
|
| 400 | + |
|
| 401 | + /** |
|
| 402 | + * @param string|string[] $pointStyle |
|
| 403 | + * |
|
| 404 | + * @return $this |
|
| 405 | + */ |
|
| 406 | + public function setPointStyle($pointStyle) |
|
| 407 | + { |
|
| 408 | + $this->pointStyle = $pointStyle; |
|
| 409 | + |
|
| 410 | + return $this; |
|
| 411 | + } |
|
| 412 | 412 | } |
@@ -10,503 +10,503 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | class LineDataSet extends DataSet |
| 12 | 12 | { |
| 13 | - /** |
|
| 14 | - * @var bool|string |
|
| 15 | - */ |
|
| 16 | - protected $fill; |
|
| 17 | - |
|
| 18 | - /** |
|
| 19 | - * @var string |
|
| 20 | - */ |
|
| 21 | - protected $cubicInterpolationMode; |
|
| 22 | - |
|
| 23 | - /** |
|
| 24 | - * @var int |
|
| 25 | - */ |
|
| 26 | - protected $lineTension; |
|
| 27 | - |
|
| 28 | - /** |
|
| 29 | - * @var string |
|
| 30 | - */ |
|
| 31 | - protected $borderCapStyle; |
|
| 32 | - |
|
| 33 | - /** |
|
| 34 | - * @var array |
|
| 35 | - */ |
|
| 36 | - protected $borderDash; |
|
| 37 | - |
|
| 38 | - /** |
|
| 39 | - * @var float |
|
| 40 | - */ |
|
| 41 | - protected $borderDashOffset; |
|
| 42 | - |
|
| 43 | - /** |
|
| 44 | - * @var string |
|
| 45 | - */ |
|
| 46 | - protected $borderJoinStyle; |
|
| 47 | - |
|
| 48 | - /** |
|
| 49 | - * @var string|string[] |
|
| 50 | - */ |
|
| 51 | - protected $pointBorderColor; |
|
| 52 | - |
|
| 53 | - /** |
|
| 54 | - * @var string|string[] |
|
| 55 | - */ |
|
| 56 | - protected $pointBackgroundColor; |
|
| 57 | - |
|
| 58 | - /** |
|
| 59 | - * @var int|int[] |
|
| 60 | - */ |
|
| 61 | - protected $pointBorderWidth; |
|
| 62 | - |
|
| 63 | - /** |
|
| 64 | - * @var int|int[] |
|
| 65 | - */ |
|
| 66 | - protected $pointRadius; |
|
| 67 | - |
|
| 68 | - /** |
|
| 69 | - * @var int|int[] |
|
| 70 | - */ |
|
| 71 | - protected $pointHoverRadius; |
|
| 72 | - |
|
| 73 | - /** |
|
| 74 | - * @var int|int[] |
|
| 75 | - */ |
|
| 76 | - protected $pointHitRadius; |
|
| 77 | - |
|
| 78 | - /** |
|
| 79 | - * @var string|string[] |
|
| 80 | - */ |
|
| 81 | - protected $pointHoverBackgroundColor; |
|
| 82 | - |
|
| 83 | - /** |
|
| 84 | - * @var string|string[] |
|
| 85 | - */ |
|
| 86 | - protected $pointHoverBorderColor; |
|
| 87 | - |
|
| 88 | - /** |
|
| 89 | - * @var int|int[] |
|
| 90 | - */ |
|
| 91 | - protected $pointHoverBorderWidth; |
|
| 92 | - |
|
| 93 | - /** |
|
| 94 | - * @var mixed |
|
| 95 | - */ |
|
| 96 | - protected $pointStyle; |
|
| 97 | - |
|
| 98 | - /** |
|
| 99 | - * @var bool |
|
| 100 | - */ |
|
| 101 | - protected $showLine; |
|
| 102 | - |
|
| 103 | - /** |
|
| 104 | - * @var bool |
|
| 105 | - */ |
|
| 106 | - protected $spanGaps; |
|
| 107 | - |
|
| 108 | - /** |
|
| 109 | - * @var bool |
|
| 110 | - */ |
|
| 111 | - protected $steppedLine; |
|
| 112 | - |
|
| 113 | - /** |
|
| 114 | - * @return bool|string |
|
| 115 | - */ |
|
| 116 | - public function getFill() |
|
| 117 | - { |
|
| 118 | - return $this->fill; |
|
| 119 | - } |
|
| 120 | - |
|
| 121 | - /** |
|
| 122 | - * @param bool|string $fill |
|
| 123 | - * |
|
| 124 | - * @return $this |
|
| 125 | - */ |
|
| 126 | - public function setFill($fill) |
|
| 127 | - { |
|
| 128 | - $this->fill = $fill; |
|
| 129 | - |
|
| 130 | - return $this; |
|
| 131 | - } |
|
| 132 | - |
|
| 133 | - /** |
|
| 134 | - * @return string |
|
| 135 | - */ |
|
| 136 | - public function getCubicInterpolationMode() |
|
| 137 | - { |
|
| 138 | - return $this->cubicInterpolationMode; |
|
| 139 | - } |
|
| 140 | - |
|
| 141 | - /** |
|
| 142 | - * @param string $cubicInterpolationMode |
|
| 143 | - * |
|
| 144 | - * @return $this |
|
| 145 | - */ |
|
| 146 | - public function setCubicInterpolationMode($cubicInterpolationMode) |
|
| 147 | - { |
|
| 148 | - $this->cubicInterpolationMode = $cubicInterpolationMode; |
|
| 149 | - |
|
| 150 | - return $this; |
|
| 151 | - } |
|
| 152 | - |
|
| 153 | - /** |
|
| 154 | - * @return int |
|
| 155 | - */ |
|
| 156 | - public function getLineTension() |
|
| 157 | - { |
|
| 158 | - return $this->lineTension; |
|
| 159 | - } |
|
| 160 | - |
|
| 161 | - /** |
|
| 162 | - * @param float $lineTension |
|
| 163 | - * |
|
| 164 | - * @return $this |
|
| 165 | - */ |
|
| 166 | - public function setLineTension($lineTension) |
|
| 167 | - { |
|
| 168 | - $this->lineTension = floatval($lineTension); |
|
| 169 | - |
|
| 170 | - return $this; |
|
| 171 | - } |
|
| 172 | - |
|
| 173 | - /** |
|
| 174 | - * @return string |
|
| 175 | - */ |
|
| 176 | - public function getBorderCapStyle() |
|
| 177 | - { |
|
| 178 | - return $this->borderCapStyle; |
|
| 179 | - } |
|
| 180 | - |
|
| 181 | - /** |
|
| 182 | - * @param string $borderCapStyle |
|
| 183 | - * |
|
| 184 | - * @return $this |
|
| 185 | - */ |
|
| 186 | - public function setBorderCapStyle($borderCapStyle) |
|
| 187 | - { |
|
| 188 | - $this->borderCapStyle = $borderCapStyle; |
|
| 189 | - |
|
| 190 | - return $this; |
|
| 191 | - } |
|
| 192 | - |
|
| 193 | - /** |
|
| 194 | - * @return array |
|
| 195 | - */ |
|
| 196 | - public function getBorderDash() |
|
| 197 | - { |
|
| 198 | - return $this->borderDash; |
|
| 199 | - } |
|
| 200 | - |
|
| 201 | - /** |
|
| 202 | - * @param array $borderDash |
|
| 203 | - * |
|
| 204 | - * @return $this |
|
| 205 | - */ |
|
| 206 | - public function setBorderDash($borderDash) |
|
| 207 | - { |
|
| 208 | - $this->borderDash = $borderDash; |
|
| 209 | - |
|
| 210 | - return $this; |
|
| 211 | - } |
|
| 212 | - |
|
| 213 | - /** |
|
| 214 | - * @return int |
|
| 215 | - */ |
|
| 216 | - public function getBorderDashOffset() |
|
| 217 | - { |
|
| 218 | - return $this->borderDashOffset; |
|
| 219 | - } |
|
| 220 | - |
|
| 221 | - /** |
|
| 222 | - * @param float $borderDashOffset |
|
| 223 | - * |
|
| 224 | - * @return $this |
|
| 225 | - */ |
|
| 226 | - public function setBorderDashOffset($borderDashOffset) |
|
| 227 | - { |
|
| 228 | - $this->borderDashOffset = floatval($borderDashOffset); |
|
| 229 | - |
|
| 230 | - return $this; |
|
| 231 | - } |
|
| 232 | - |
|
| 233 | - /** |
|
| 234 | - * @return string |
|
| 235 | - */ |
|
| 236 | - public function getBorderJoinStyle() |
|
| 237 | - { |
|
| 238 | - return $this->borderJoinStyle; |
|
| 239 | - } |
|
| 240 | - |
|
| 241 | - /** |
|
| 242 | - * @param string $borderJoinStyle |
|
| 243 | - * |
|
| 244 | - * @return $this |
|
| 245 | - */ |
|
| 246 | - public function setBorderJoinStyle($borderJoinStyle) |
|
| 247 | - { |
|
| 248 | - $this->borderJoinStyle = $borderJoinStyle; |
|
| 249 | - |
|
| 250 | - return $this; |
|
| 251 | - } |
|
| 252 | - |
|
| 253 | - /** |
|
| 254 | - * @return string|string[] |
|
| 255 | - */ |
|
| 256 | - public function getPointBorderColor() |
|
| 257 | - { |
|
| 258 | - return $this->pointBorderColor; |
|
| 259 | - } |
|
| 260 | - |
|
| 261 | - /** |
|
| 262 | - * @param string|string[] $pointBorderColor |
|
| 263 | - * |
|
| 264 | - * @return $this |
|
| 265 | - */ |
|
| 266 | - public function setPointBorderColor($pointBorderColor) |
|
| 267 | - { |
|
| 268 | - $this->pointBorderColor = $pointBorderColor; |
|
| 269 | - |
|
| 270 | - return $this; |
|
| 271 | - } |
|
| 272 | - |
|
| 273 | - /** |
|
| 274 | - * @return string|string[] |
|
| 275 | - */ |
|
| 276 | - public function getPointBackgroundColor() |
|
| 277 | - { |
|
| 278 | - return $this->pointBackgroundColor; |
|
| 279 | - } |
|
| 280 | - |
|
| 281 | - /** |
|
| 282 | - * @param string|string[] $pointBackgroundColor |
|
| 283 | - * |
|
| 284 | - * @return $this |
|
| 285 | - */ |
|
| 286 | - public function setPointBackgroundColor($pointBackgroundColor) |
|
| 287 | - { |
|
| 288 | - $this->pointBackgroundColor = $pointBackgroundColor; |
|
| 289 | - |
|
| 290 | - return $this; |
|
| 291 | - } |
|
| 292 | - |
|
| 293 | - /** |
|
| 294 | - * @return int|int[] |
|
| 295 | - */ |
|
| 296 | - public function getPointBorderWidth() |
|
| 297 | - { |
|
| 298 | - return $this->pointBorderWidth; |
|
| 299 | - } |
|
| 300 | - |
|
| 301 | - /** |
|
| 302 | - * @param int|int[] $pointBorderWidth |
|
| 303 | - * |
|
| 304 | - * @return $this |
|
| 305 | - */ |
|
| 306 | - public function setPointBorderWidth($pointBorderWidth) |
|
| 307 | - { |
|
| 308 | - $this->pointBorderWidth = $pointBorderWidth; |
|
| 309 | - |
|
| 310 | - return $this; |
|
| 311 | - } |
|
| 312 | - |
|
| 313 | - /** |
|
| 314 | - * @return int|int[] |
|
| 315 | - */ |
|
| 316 | - public function getPointRadius() |
|
| 317 | - { |
|
| 318 | - return $this->pointRadius; |
|
| 319 | - } |
|
| 320 | - |
|
| 321 | - /** |
|
| 322 | - * @param int|int[] $pointRadius |
|
| 323 | - * |
|
| 324 | - * @return $this |
|
| 325 | - */ |
|
| 326 | - public function setPointRadius($pointRadius) |
|
| 327 | - { |
|
| 328 | - $this->pointRadius = $pointRadius; |
|
| 329 | - |
|
| 330 | - return $this; |
|
| 331 | - } |
|
| 332 | - |
|
| 333 | - /** |
|
| 334 | - * @return int|int[] |
|
| 335 | - */ |
|
| 336 | - public function getPointHoverRadius() |
|
| 337 | - { |
|
| 338 | - return $this->pointHoverRadius; |
|
| 339 | - } |
|
| 340 | - |
|
| 341 | - /** |
|
| 342 | - * @param int|int[] $pointHoverRadius |
|
| 343 | - * |
|
| 344 | - * @return $this |
|
| 345 | - */ |
|
| 346 | - public function setPointHoverRadius($pointHoverRadius) |
|
| 347 | - { |
|
| 348 | - $this->pointHoverRadius = $pointHoverRadius; |
|
| 349 | - |
|
| 350 | - return $this; |
|
| 351 | - } |
|
| 352 | - |
|
| 353 | - /** |
|
| 354 | - * @return int|int[] |
|
| 355 | - */ |
|
| 356 | - public function getPointHitRadius() |
|
| 357 | - { |
|
| 358 | - return $this->pointHitRadius; |
|
| 359 | - } |
|
| 360 | - |
|
| 361 | - /** |
|
| 362 | - * @param int|int[] $pointHitRadius |
|
| 363 | - * |
|
| 364 | - * @return $this |
|
| 365 | - */ |
|
| 366 | - public function setPointHitRadius($pointHitRadius) |
|
| 367 | - { |
|
| 368 | - $this->pointHitRadius = $pointHitRadius; |
|
| 369 | - |
|
| 370 | - return $this; |
|
| 371 | - } |
|
| 372 | - |
|
| 373 | - /** |
|
| 374 | - * @return string|string[] |
|
| 375 | - */ |
|
| 376 | - public function getPointHoverBackgroundColor() |
|
| 377 | - { |
|
| 378 | - return $this->pointHoverBackgroundColor; |
|
| 379 | - } |
|
| 380 | - |
|
| 381 | - /** |
|
| 382 | - * @param string|string[] $pointHoverBackgroundColor |
|
| 383 | - * |
|
| 384 | - * @return $this |
|
| 385 | - */ |
|
| 386 | - public function setPointHoverBackgroundColor($pointHoverBackgroundColor) |
|
| 387 | - { |
|
| 388 | - $this->pointHoverBackgroundColor = $pointHoverBackgroundColor; |
|
| 389 | - |
|
| 390 | - return $this; |
|
| 391 | - } |
|
| 392 | - |
|
| 393 | - /** |
|
| 394 | - * @return string|string[] |
|
| 395 | - */ |
|
| 396 | - public function getPointHoverBorderColor() |
|
| 397 | - { |
|
| 398 | - return $this->pointHoverBorderColor; |
|
| 399 | - } |
|
| 400 | - |
|
| 401 | - /** |
|
| 402 | - * @param string|string[] $pointHoverBorderColor |
|
| 403 | - * |
|
| 404 | - * @return $this |
|
| 405 | - */ |
|
| 406 | - public function setPointHoverBorderColor($pointHoverBorderColor) |
|
| 407 | - { |
|
| 408 | - $this->pointHoverBorderColor = $pointHoverBorderColor; |
|
| 409 | - |
|
| 410 | - return $this; |
|
| 411 | - } |
|
| 412 | - |
|
| 413 | - /** |
|
| 414 | - * @return int|int[] |
|
| 415 | - */ |
|
| 416 | - public function getPointHoverBorderWidth() |
|
| 417 | - { |
|
| 418 | - return $this->pointHoverBorderWidth; |
|
| 419 | - } |
|
| 420 | - |
|
| 421 | - /** |
|
| 422 | - * @param int|int[] $pointHoverBorderWidth |
|
| 423 | - * |
|
| 424 | - * @return $this |
|
| 425 | - */ |
|
| 426 | - public function setPointHoverBorderWidth($pointHoverBorderWidth) |
|
| 427 | - { |
|
| 428 | - $this->pointHoverBorderWidth = $pointHoverBorderWidth; |
|
| 429 | - |
|
| 430 | - return $this; |
|
| 431 | - } |
|
| 432 | - |
|
| 433 | - /** |
|
| 434 | - * @return mixed |
|
| 435 | - */ |
|
| 436 | - public function getPointStyle() |
|
| 437 | - { |
|
| 438 | - return $this->pointStyle; |
|
| 439 | - } |
|
| 440 | - |
|
| 441 | - /** |
|
| 442 | - * @param mixed $pointStyle |
|
| 443 | - * |
|
| 444 | - * @return $this |
|
| 445 | - */ |
|
| 446 | - public function setPointStyle($pointStyle) |
|
| 447 | - { |
|
| 448 | - $this->pointStyle = $pointStyle; |
|
| 449 | - |
|
| 450 | - return $this; |
|
| 451 | - } |
|
| 452 | - |
|
| 453 | - /** |
|
| 454 | - * @return bool |
|
| 455 | - */ |
|
| 456 | - public function isShowLine() |
|
| 457 | - { |
|
| 458 | - return $this->showLine; |
|
| 459 | - } |
|
| 460 | - |
|
| 461 | - /** |
|
| 462 | - * @param bool $showLine |
|
| 463 | - * |
|
| 464 | - * @return $this |
|
| 465 | - */ |
|
| 466 | - public function setShowLine($showLine) |
|
| 467 | - { |
|
| 468 | - $this->showLine = $showLine; |
|
| 469 | - |
|
| 470 | - return $this; |
|
| 471 | - } |
|
| 472 | - |
|
| 473 | - /** |
|
| 474 | - * @return bool |
|
| 475 | - */ |
|
| 476 | - public function isSpanGaps() |
|
| 477 | - { |
|
| 478 | - return $this->spanGaps; |
|
| 479 | - } |
|
| 480 | - |
|
| 481 | - /** |
|
| 482 | - * @param bool $spanGaps |
|
| 483 | - * |
|
| 484 | - * @return $this |
|
| 485 | - */ |
|
| 486 | - public function setSpanGaps($spanGaps) |
|
| 487 | - { |
|
| 488 | - $this->spanGaps = $spanGaps; |
|
| 489 | - |
|
| 490 | - return $this; |
|
| 491 | - } |
|
| 492 | - |
|
| 493 | - /** |
|
| 494 | - * @return bool |
|
| 495 | - */ |
|
| 496 | - public function isSteppedLine() |
|
| 497 | - { |
|
| 498 | - return $this->steppedLine; |
|
| 499 | - } |
|
| 500 | - |
|
| 501 | - /** |
|
| 502 | - * @param bool $steppedLine |
|
| 503 | - * |
|
| 504 | - * @return $this |
|
| 505 | - */ |
|
| 506 | - public function setSteppedLine($steppedLine) |
|
| 507 | - { |
|
| 508 | - $this->steppedLine = $steppedLine; |
|
| 509 | - |
|
| 510 | - return $this; |
|
| 511 | - } |
|
| 13 | + /** |
|
| 14 | + * @var bool|string |
|
| 15 | + */ |
|
| 16 | + protected $fill; |
|
| 17 | + |
|
| 18 | + /** |
|
| 19 | + * @var string |
|
| 20 | + */ |
|
| 21 | + protected $cubicInterpolationMode; |
|
| 22 | + |
|
| 23 | + /** |
|
| 24 | + * @var int |
|
| 25 | + */ |
|
| 26 | + protected $lineTension; |
|
| 27 | + |
|
| 28 | + /** |
|
| 29 | + * @var string |
|
| 30 | + */ |
|
| 31 | + protected $borderCapStyle; |
|
| 32 | + |
|
| 33 | + /** |
|
| 34 | + * @var array |
|
| 35 | + */ |
|
| 36 | + protected $borderDash; |
|
| 37 | + |
|
| 38 | + /** |
|
| 39 | + * @var float |
|
| 40 | + */ |
|
| 41 | + protected $borderDashOffset; |
|
| 42 | + |
|
| 43 | + /** |
|
| 44 | + * @var string |
|
| 45 | + */ |
|
| 46 | + protected $borderJoinStyle; |
|
| 47 | + |
|
| 48 | + /** |
|
| 49 | + * @var string|string[] |
|
| 50 | + */ |
|
| 51 | + protected $pointBorderColor; |
|
| 52 | + |
|
| 53 | + /** |
|
| 54 | + * @var string|string[] |
|
| 55 | + */ |
|
| 56 | + protected $pointBackgroundColor; |
|
| 57 | + |
|
| 58 | + /** |
|
| 59 | + * @var int|int[] |
|
| 60 | + */ |
|
| 61 | + protected $pointBorderWidth; |
|
| 62 | + |
|
| 63 | + /** |
|
| 64 | + * @var int|int[] |
|
| 65 | + */ |
|
| 66 | + protected $pointRadius; |
|
| 67 | + |
|
| 68 | + /** |
|
| 69 | + * @var int|int[] |
|
| 70 | + */ |
|
| 71 | + protected $pointHoverRadius; |
|
| 72 | + |
|
| 73 | + /** |
|
| 74 | + * @var int|int[] |
|
| 75 | + */ |
|
| 76 | + protected $pointHitRadius; |
|
| 77 | + |
|
| 78 | + /** |
|
| 79 | + * @var string|string[] |
|
| 80 | + */ |
|
| 81 | + protected $pointHoverBackgroundColor; |
|
| 82 | + |
|
| 83 | + /** |
|
| 84 | + * @var string|string[] |
|
| 85 | + */ |
|
| 86 | + protected $pointHoverBorderColor; |
|
| 87 | + |
|
| 88 | + /** |
|
| 89 | + * @var int|int[] |
|
| 90 | + */ |
|
| 91 | + protected $pointHoverBorderWidth; |
|
| 92 | + |
|
| 93 | + /** |
|
| 94 | + * @var mixed |
|
| 95 | + */ |
|
| 96 | + protected $pointStyle; |
|
| 97 | + |
|
| 98 | + /** |
|
| 99 | + * @var bool |
|
| 100 | + */ |
|
| 101 | + protected $showLine; |
|
| 102 | + |
|
| 103 | + /** |
|
| 104 | + * @var bool |
|
| 105 | + */ |
|
| 106 | + protected $spanGaps; |
|
| 107 | + |
|
| 108 | + /** |
|
| 109 | + * @var bool |
|
| 110 | + */ |
|
| 111 | + protected $steppedLine; |
|
| 112 | + |
|
| 113 | + /** |
|
| 114 | + * @return bool|string |
|
| 115 | + */ |
|
| 116 | + public function getFill() |
|
| 117 | + { |
|
| 118 | + return $this->fill; |
|
| 119 | + } |
|
| 120 | + |
|
| 121 | + /** |
|
| 122 | + * @param bool|string $fill |
|
| 123 | + * |
|
| 124 | + * @return $this |
|
| 125 | + */ |
|
| 126 | + public function setFill($fill) |
|
| 127 | + { |
|
| 128 | + $this->fill = $fill; |
|
| 129 | + |
|
| 130 | + return $this; |
|
| 131 | + } |
|
| 132 | + |
|
| 133 | + /** |
|
| 134 | + * @return string |
|
| 135 | + */ |
|
| 136 | + public function getCubicInterpolationMode() |
|
| 137 | + { |
|
| 138 | + return $this->cubicInterpolationMode; |
|
| 139 | + } |
|
| 140 | + |
|
| 141 | + /** |
|
| 142 | + * @param string $cubicInterpolationMode |
|
| 143 | + * |
|
| 144 | + * @return $this |
|
| 145 | + */ |
|
| 146 | + public function setCubicInterpolationMode($cubicInterpolationMode) |
|
| 147 | + { |
|
| 148 | + $this->cubicInterpolationMode = $cubicInterpolationMode; |
|
| 149 | + |
|
| 150 | + return $this; |
|
| 151 | + } |
|
| 152 | + |
|
| 153 | + /** |
|
| 154 | + * @return int |
|
| 155 | + */ |
|
| 156 | + public function getLineTension() |
|
| 157 | + { |
|
| 158 | + return $this->lineTension; |
|
| 159 | + } |
|
| 160 | + |
|
| 161 | + /** |
|
| 162 | + * @param float $lineTension |
|
| 163 | + * |
|
| 164 | + * @return $this |
|
| 165 | + */ |
|
| 166 | + public function setLineTension($lineTension) |
|
| 167 | + { |
|
| 168 | + $this->lineTension = floatval($lineTension); |
|
| 169 | + |
|
| 170 | + return $this; |
|
| 171 | + } |
|
| 172 | + |
|
| 173 | + /** |
|
| 174 | + * @return string |
|
| 175 | + */ |
|
| 176 | + public function getBorderCapStyle() |
|
| 177 | + { |
|
| 178 | + return $this->borderCapStyle; |
|
| 179 | + } |
|
| 180 | + |
|
| 181 | + /** |
|
| 182 | + * @param string $borderCapStyle |
|
| 183 | + * |
|
| 184 | + * @return $this |
|
| 185 | + */ |
|
| 186 | + public function setBorderCapStyle($borderCapStyle) |
|
| 187 | + { |
|
| 188 | + $this->borderCapStyle = $borderCapStyle; |
|
| 189 | + |
|
| 190 | + return $this; |
|
| 191 | + } |
|
| 192 | + |
|
| 193 | + /** |
|
| 194 | + * @return array |
|
| 195 | + */ |
|
| 196 | + public function getBorderDash() |
|
| 197 | + { |
|
| 198 | + return $this->borderDash; |
|
| 199 | + } |
|
| 200 | + |
|
| 201 | + /** |
|
| 202 | + * @param array $borderDash |
|
| 203 | + * |
|
| 204 | + * @return $this |
|
| 205 | + */ |
|
| 206 | + public function setBorderDash($borderDash) |
|
| 207 | + { |
|
| 208 | + $this->borderDash = $borderDash; |
|
| 209 | + |
|
| 210 | + return $this; |
|
| 211 | + } |
|
| 212 | + |
|
| 213 | + /** |
|
| 214 | + * @return int |
|
| 215 | + */ |
|
| 216 | + public function getBorderDashOffset() |
|
| 217 | + { |
|
| 218 | + return $this->borderDashOffset; |
|
| 219 | + } |
|
| 220 | + |
|
| 221 | + /** |
|
| 222 | + * @param float $borderDashOffset |
|
| 223 | + * |
|
| 224 | + * @return $this |
|
| 225 | + */ |
|
| 226 | + public function setBorderDashOffset($borderDashOffset) |
|
| 227 | + { |
|
| 228 | + $this->borderDashOffset = floatval($borderDashOffset); |
|
| 229 | + |
|
| 230 | + return $this; |
|
| 231 | + } |
|
| 232 | + |
|
| 233 | + /** |
|
| 234 | + * @return string |
|
| 235 | + */ |
|
| 236 | + public function getBorderJoinStyle() |
|
| 237 | + { |
|
| 238 | + return $this->borderJoinStyle; |
|
| 239 | + } |
|
| 240 | + |
|
| 241 | + /** |
|
| 242 | + * @param string $borderJoinStyle |
|
| 243 | + * |
|
| 244 | + * @return $this |
|
| 245 | + */ |
|
| 246 | + public function setBorderJoinStyle($borderJoinStyle) |
|
| 247 | + { |
|
| 248 | + $this->borderJoinStyle = $borderJoinStyle; |
|
| 249 | + |
|
| 250 | + return $this; |
|
| 251 | + } |
|
| 252 | + |
|
| 253 | + /** |
|
| 254 | + * @return string|string[] |
|
| 255 | + */ |
|
| 256 | + public function getPointBorderColor() |
|
| 257 | + { |
|
| 258 | + return $this->pointBorderColor; |
|
| 259 | + } |
|
| 260 | + |
|
| 261 | + /** |
|
| 262 | + * @param string|string[] $pointBorderColor |
|
| 263 | + * |
|
| 264 | + * @return $this |
|
| 265 | + */ |
|
| 266 | + public function setPointBorderColor($pointBorderColor) |
|
| 267 | + { |
|
| 268 | + $this->pointBorderColor = $pointBorderColor; |
|
| 269 | + |
|
| 270 | + return $this; |
|
| 271 | + } |
|
| 272 | + |
|
| 273 | + /** |
|
| 274 | + * @return string|string[] |
|
| 275 | + */ |
|
| 276 | + public function getPointBackgroundColor() |
|
| 277 | + { |
|
| 278 | + return $this->pointBackgroundColor; |
|
| 279 | + } |
|
| 280 | + |
|
| 281 | + /** |
|
| 282 | + * @param string|string[] $pointBackgroundColor |
|
| 283 | + * |
|
| 284 | + * @return $this |
|
| 285 | + */ |
|
| 286 | + public function setPointBackgroundColor($pointBackgroundColor) |
|
| 287 | + { |
|
| 288 | + $this->pointBackgroundColor = $pointBackgroundColor; |
|
| 289 | + |
|
| 290 | + return $this; |
|
| 291 | + } |
|
| 292 | + |
|
| 293 | + /** |
|
| 294 | + * @return int|int[] |
|
| 295 | + */ |
|
| 296 | + public function getPointBorderWidth() |
|
| 297 | + { |
|
| 298 | + return $this->pointBorderWidth; |
|
| 299 | + } |
|
| 300 | + |
|
| 301 | + /** |
|
| 302 | + * @param int|int[] $pointBorderWidth |
|
| 303 | + * |
|
| 304 | + * @return $this |
|
| 305 | + */ |
|
| 306 | + public function setPointBorderWidth($pointBorderWidth) |
|
| 307 | + { |
|
| 308 | + $this->pointBorderWidth = $pointBorderWidth; |
|
| 309 | + |
|
| 310 | + return $this; |
|
| 311 | + } |
|
| 312 | + |
|
| 313 | + /** |
|
| 314 | + * @return int|int[] |
|
| 315 | + */ |
|
| 316 | + public function getPointRadius() |
|
| 317 | + { |
|
| 318 | + return $this->pointRadius; |
|
| 319 | + } |
|
| 320 | + |
|
| 321 | + /** |
|
| 322 | + * @param int|int[] $pointRadius |
|
| 323 | + * |
|
| 324 | + * @return $this |
|
| 325 | + */ |
|
| 326 | + public function setPointRadius($pointRadius) |
|
| 327 | + { |
|
| 328 | + $this->pointRadius = $pointRadius; |
|
| 329 | + |
|
| 330 | + return $this; |
|
| 331 | + } |
|
| 332 | + |
|
| 333 | + /** |
|
| 334 | + * @return int|int[] |
|
| 335 | + */ |
|
| 336 | + public function getPointHoverRadius() |
|
| 337 | + { |
|
| 338 | + return $this->pointHoverRadius; |
|
| 339 | + } |
|
| 340 | + |
|
| 341 | + /** |
|
| 342 | + * @param int|int[] $pointHoverRadius |
|
| 343 | + * |
|
| 344 | + * @return $this |
|
| 345 | + */ |
|
| 346 | + public function setPointHoverRadius($pointHoverRadius) |
|
| 347 | + { |
|
| 348 | + $this->pointHoverRadius = $pointHoverRadius; |
|
| 349 | + |
|
| 350 | + return $this; |
|
| 351 | + } |
|
| 352 | + |
|
| 353 | + /** |
|
| 354 | + * @return int|int[] |
|
| 355 | + */ |
|
| 356 | + public function getPointHitRadius() |
|
| 357 | + { |
|
| 358 | + return $this->pointHitRadius; |
|
| 359 | + } |
|
| 360 | + |
|
| 361 | + /** |
|
| 362 | + * @param int|int[] $pointHitRadius |
|
| 363 | + * |
|
| 364 | + * @return $this |
|
| 365 | + */ |
|
| 366 | + public function setPointHitRadius($pointHitRadius) |
|
| 367 | + { |
|
| 368 | + $this->pointHitRadius = $pointHitRadius; |
|
| 369 | + |
|
| 370 | + return $this; |
|
| 371 | + } |
|
| 372 | + |
|
| 373 | + /** |
|
| 374 | + * @return string|string[] |
|
| 375 | + */ |
|
| 376 | + public function getPointHoverBackgroundColor() |
|
| 377 | + { |
|
| 378 | + return $this->pointHoverBackgroundColor; |
|
| 379 | + } |
|
| 380 | + |
|
| 381 | + /** |
|
| 382 | + * @param string|string[] $pointHoverBackgroundColor |
|
| 383 | + * |
|
| 384 | + * @return $this |
|
| 385 | + */ |
|
| 386 | + public function setPointHoverBackgroundColor($pointHoverBackgroundColor) |
|
| 387 | + { |
|
| 388 | + $this->pointHoverBackgroundColor = $pointHoverBackgroundColor; |
|
| 389 | + |
|
| 390 | + return $this; |
|
| 391 | + } |
|
| 392 | + |
|
| 393 | + /** |
|
| 394 | + * @return string|string[] |
|
| 395 | + */ |
|
| 396 | + public function getPointHoverBorderColor() |
|
| 397 | + { |
|
| 398 | + return $this->pointHoverBorderColor; |
|
| 399 | + } |
|
| 400 | + |
|
| 401 | + /** |
|
| 402 | + * @param string|string[] $pointHoverBorderColor |
|
| 403 | + * |
|
| 404 | + * @return $this |
|
| 405 | + */ |
|
| 406 | + public function setPointHoverBorderColor($pointHoverBorderColor) |
|
| 407 | + { |
|
| 408 | + $this->pointHoverBorderColor = $pointHoverBorderColor; |
|
| 409 | + |
|
| 410 | + return $this; |
|
| 411 | + } |
|
| 412 | + |
|
| 413 | + /** |
|
| 414 | + * @return int|int[] |
|
| 415 | + */ |
|
| 416 | + public function getPointHoverBorderWidth() |
|
| 417 | + { |
|
| 418 | + return $this->pointHoverBorderWidth; |
|
| 419 | + } |
|
| 420 | + |
|
| 421 | + /** |
|
| 422 | + * @param int|int[] $pointHoverBorderWidth |
|
| 423 | + * |
|
| 424 | + * @return $this |
|
| 425 | + */ |
|
| 426 | + public function setPointHoverBorderWidth($pointHoverBorderWidth) |
|
| 427 | + { |
|
| 428 | + $this->pointHoverBorderWidth = $pointHoverBorderWidth; |
|
| 429 | + |
|
| 430 | + return $this; |
|
| 431 | + } |
|
| 432 | + |
|
| 433 | + /** |
|
| 434 | + * @return mixed |
|
| 435 | + */ |
|
| 436 | + public function getPointStyle() |
|
| 437 | + { |
|
| 438 | + return $this->pointStyle; |
|
| 439 | + } |
|
| 440 | + |
|
| 441 | + /** |
|
| 442 | + * @param mixed $pointStyle |
|
| 443 | + * |
|
| 444 | + * @return $this |
|
| 445 | + */ |
|
| 446 | + public function setPointStyle($pointStyle) |
|
| 447 | + { |
|
| 448 | + $this->pointStyle = $pointStyle; |
|
| 449 | + |
|
| 450 | + return $this; |
|
| 451 | + } |
|
| 452 | + |
|
| 453 | + /** |
|
| 454 | + * @return bool |
|
| 455 | + */ |
|
| 456 | + public function isShowLine() |
|
| 457 | + { |
|
| 458 | + return $this->showLine; |
|
| 459 | + } |
|
| 460 | + |
|
| 461 | + /** |
|
| 462 | + * @param bool $showLine |
|
| 463 | + * |
|
| 464 | + * @return $this |
|
| 465 | + */ |
|
| 466 | + public function setShowLine($showLine) |
|
| 467 | + { |
|
| 468 | + $this->showLine = $showLine; |
|
| 469 | + |
|
| 470 | + return $this; |
|
| 471 | + } |
|
| 472 | + |
|
| 473 | + /** |
|
| 474 | + * @return bool |
|
| 475 | + */ |
|
| 476 | + public function isSpanGaps() |
|
| 477 | + { |
|
| 478 | + return $this->spanGaps; |
|
| 479 | + } |
|
| 480 | + |
|
| 481 | + /** |
|
| 482 | + * @param bool $spanGaps |
|
| 483 | + * |
|
| 484 | + * @return $this |
|
| 485 | + */ |
|
| 486 | + public function setSpanGaps($spanGaps) |
|
| 487 | + { |
|
| 488 | + $this->spanGaps = $spanGaps; |
|
| 489 | + |
|
| 490 | + return $this; |
|
| 491 | + } |
|
| 492 | + |
|
| 493 | + /** |
|
| 494 | + * @return bool |
|
| 495 | + */ |
|
| 496 | + public function isSteppedLine() |
|
| 497 | + { |
|
| 498 | + return $this->steppedLine; |
|
| 499 | + } |
|
| 500 | + |
|
| 501 | + /** |
|
| 502 | + * @param bool $steppedLine |
|
| 503 | + * |
|
| 504 | + * @return $this |
|
| 505 | + */ |
|
| 506 | + public function setSteppedLine($steppedLine) |
|
| 507 | + { |
|
| 508 | + $this->steppedLine = $steppedLine; |
|
| 509 | + |
|
| 510 | + return $this; |
|
| 511 | + } |
|
| 512 | 512 | } |
@@ -215,7 +215,7 @@ |
||
| 215 | 215 | if (is_array($borderDash)) { |
| 216 | 216 | array_walk_recursive( |
| 217 | 217 | $borderDash, |
| 218 | - function (&$value) { |
|
| 218 | + function(&$value) { |
|
| 219 | 219 | $value = intval($value); |
| 220 | 220 | } |
| 221 | 221 | ); |
@@ -12,312 +12,312 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | class Line implements ArraySerializableInterface, JsonSerializable |
| 14 | 14 | { |
| 15 | - use ArraySerializable; |
|
| 16 | - |
|
| 17 | - /** https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap */ |
|
| 18 | - const CAP_STYLE_BUTT = 'butt'; |
|
| 19 | - const CAP_STYLE_ROUND = 'round'; |
|
| 20 | - const CAP_STYLE_SQUARE = 'square'; |
|
| 21 | - |
|
| 22 | - /** https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin */ |
|
| 23 | - const JOIN_STYLE_ROUND = 'round'; |
|
| 24 | - const JOIN_STYLE_BEVEL = 'bevel'; |
|
| 25 | - const JOIN_STYLE_MITER = 'miter'; |
|
| 26 | - |
|
| 27 | - const FILL_LOCATION_ZERO = 'zero'; |
|
| 28 | - const FILL_LOCATION_TOP = 'top'; |
|
| 29 | - const FILL_LOCATION_BOTTOM = 'bottom'; |
|
| 30 | - const FILL_LOCATION_TRUE = true; |
|
| 31 | - const FILL_LOCATION_FALSE = false; |
|
| 32 | - |
|
| 33 | - /** |
|
| 34 | - * Bézier curve tension (0 for no Bézier curves). |
|
| 35 | - * @default 0.4 |
|
| 36 | - * @var float |
|
| 37 | - */ |
|
| 38 | - private $tension; |
|
| 39 | - |
|
| 40 | - /** |
|
| 41 | - * Line fill color. |
|
| 42 | - * @default 'rgba(0,0,0,0.1)' |
|
| 43 | - * @var string |
|
| 44 | - */ |
|
| 45 | - private $backgroundColor; |
|
| 46 | - |
|
| 47 | - /** |
|
| 48 | - * Line stroke width. |
|
| 49 | - * @default 3 |
|
| 50 | - * @var int |
|
| 51 | - */ |
|
| 52 | - private $borderWidth; |
|
| 53 | - |
|
| 54 | - /** |
|
| 55 | - * Line stroke color. |
|
| 56 | - * @default 'rgba(0,0,0,0.1)' |
|
| 57 | - * @var string |
|
| 58 | - */ |
|
| 59 | - private $borderColor; |
|
| 60 | - |
|
| 61 | - /** |
|
| 62 | - * Line cap style. |
|
| 63 | - * @default self::CAP_STYLE_BUTT |
|
| 64 | - * @var string |
|
| 65 | - */ |
|
| 66 | - private $borderCapStyle; |
|
| 67 | - |
|
| 68 | - /** |
|
| 69 | - * Line dash. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash |
|
| 70 | - * @default [] |
|
| 71 | - * @var int[] |
|
| 72 | - */ |
|
| 73 | - private $borderDash; |
|
| 74 | - |
|
| 75 | - /** |
|
| 76 | - * Line dash offset. |
|
| 77 | - * @default 0 |
|
| 78 | - * @var float |
|
| 79 | - */ |
|
| 80 | - private $borderDashOffset; |
|
| 81 | - |
|
| 82 | - /** |
|
| 83 | - * Line join style. |
|
| 84 | - * @default self::JOIN_STYLE_MITER |
|
| 85 | - * @var string |
|
| 86 | - */ |
|
| 87 | - private $borderJoinStyle; |
|
| 88 | - |
|
| 89 | - /** |
|
| 90 | - * true to keep Bézier control inside the chart, false for no restriction. |
|
| 91 | - * @default true |
|
| 92 | - * @var bool |
|
| 93 | - */ |
|
| 94 | - private $capBezierPoints; |
|
| 95 | - |
|
| 96 | - /** |
|
| 97 | - * Fill location: 'zero', 'top', 'bottom', true (eq. 'zero') or false (no fill). |
|
| 98 | - * @default self::FILL_LOCATION_TRUE |
|
| 99 | - * @var bool|string |
|
| 100 | - */ |
|
| 101 | - private $fill; |
|
| 102 | - |
|
| 103 | - /** |
|
| 104 | - * true to show the line as a stepped line (tension will be ignored). |
|
| 105 | - * @default false |
|
| 106 | - * @var bool |
|
| 107 | - */ |
|
| 108 | - private $stepped; |
|
| 109 | - |
|
| 110 | - /** |
|
| 111 | - * @return float |
|
| 112 | - */ |
|
| 113 | - public function getTension() |
|
| 114 | - { |
|
| 115 | - return $this->tension; |
|
| 116 | - } |
|
| 117 | - |
|
| 118 | - /** |
|
| 119 | - * @param float $tension |
|
| 120 | - * @return Line |
|
| 121 | - */ |
|
| 122 | - public function setTension($tension) |
|
| 123 | - { |
|
| 124 | - $this->tension = floatval($tension); |
|
| 125 | - return $this; |
|
| 126 | - } |
|
| 127 | - |
|
| 128 | - /** |
|
| 129 | - * @return string |
|
| 130 | - */ |
|
| 131 | - public function getBackgroundColor() |
|
| 132 | - { |
|
| 133 | - return $this->backgroundColor; |
|
| 134 | - } |
|
| 135 | - |
|
| 136 | - /** |
|
| 137 | - * @param string $backgroundColor |
|
| 138 | - * @return Line |
|
| 139 | - */ |
|
| 140 | - public function setBackgroundColor($backgroundColor) |
|
| 141 | - { |
|
| 142 | - $this->backgroundColor = is_null($backgroundColor) ? null : strval($backgroundColor); |
|
| 143 | - return $this; |
|
| 144 | - } |
|
| 145 | - |
|
| 146 | - /** |
|
| 147 | - * @return int |
|
| 148 | - */ |
|
| 149 | - public function getBorderWidth() |
|
| 150 | - { |
|
| 151 | - return $this->borderWidth; |
|
| 152 | - } |
|
| 153 | - |
|
| 154 | - /** |
|
| 155 | - * @param int $borderWidth |
|
| 156 | - * @return Line |
|
| 157 | - */ |
|
| 158 | - public function setBorderWidth($borderWidth) |
|
| 159 | - { |
|
| 160 | - $this->borderWidth = intval($borderWidth); |
|
| 161 | - return $this; |
|
| 162 | - } |
|
| 163 | - |
|
| 164 | - /** |
|
| 165 | - * @return string |
|
| 166 | - */ |
|
| 167 | - public function getBorderColor() |
|
| 168 | - { |
|
| 169 | - return $this->borderColor; |
|
| 170 | - } |
|
| 171 | - |
|
| 172 | - /** |
|
| 173 | - * @param string $borderColor |
|
| 174 | - * @return Line |
|
| 175 | - */ |
|
| 176 | - public function setBorderColor($borderColor) |
|
| 177 | - { |
|
| 178 | - $this->borderColor = is_null($borderColor) ? null : strval($borderColor); |
|
| 179 | - return $this; |
|
| 180 | - } |
|
| 181 | - |
|
| 182 | - /** |
|
| 183 | - * @return string |
|
| 184 | - */ |
|
| 185 | - public function getBorderCapStyle() |
|
| 186 | - { |
|
| 187 | - return $this->borderCapStyle; |
|
| 188 | - } |
|
| 189 | - |
|
| 190 | - /** |
|
| 191 | - * @param string $borderCapStyle |
|
| 192 | - * @return Line |
|
| 193 | - */ |
|
| 194 | - public function setBorderCapStyle($borderCapStyle) |
|
| 195 | - { |
|
| 196 | - $this->borderCapStyle = is_null($borderCapStyle) ? null : strval($borderCapStyle); |
|
| 197 | - return $this; |
|
| 198 | - } |
|
| 199 | - |
|
| 200 | - /** |
|
| 201 | - * @return int[] |
|
| 202 | - */ |
|
| 203 | - public function getBorderDash() |
|
| 204 | - { |
|
| 205 | - return $this->borderDash; |
|
| 206 | - } |
|
| 207 | - |
|
| 208 | - /** |
|
| 209 | - * @param int[] $borderDash |
|
| 210 | - * @return Line |
|
| 211 | - */ |
|
| 212 | - public function setBorderDash($borderDash) |
|
| 213 | - { |
|
| 214 | - if (is_array($borderDash)) { |
|
| 215 | - array_walk_recursive( |
|
| 216 | - $borderDash, |
|
| 217 | - function (&$value) { |
|
| 218 | - $value = intval($value); |
|
| 219 | - } |
|
| 220 | - ); |
|
| 221 | - $this->borderDash = $borderDash; |
|
| 222 | - } |
|
| 223 | - return $this; |
|
| 224 | - } |
|
| 225 | - |
|
| 226 | - /** |
|
| 227 | - * @return float |
|
| 228 | - */ |
|
| 229 | - public function getBorderDashOffset() |
|
| 230 | - { |
|
| 231 | - return $this->borderDashOffset; |
|
| 232 | - } |
|
| 233 | - |
|
| 234 | - /** |
|
| 235 | - * @param float $borderDashOffset |
|
| 236 | - * @return Line |
|
| 237 | - */ |
|
| 238 | - public function setBorderDashOffset($borderDashOffset) |
|
| 239 | - { |
|
| 240 | - $this->borderDashOffset = floatval($borderDashOffset); |
|
| 241 | - return $this; |
|
| 242 | - } |
|
| 243 | - |
|
| 244 | - /** |
|
| 245 | - * @return string |
|
| 246 | - */ |
|
| 247 | - public function getBorderJoinStyle() |
|
| 248 | - { |
|
| 249 | - return $this->borderJoinStyle; |
|
| 250 | - } |
|
| 251 | - |
|
| 252 | - /** |
|
| 253 | - * @param string $borderJoinStyle |
|
| 254 | - * @return Line |
|
| 255 | - */ |
|
| 256 | - public function setBorderJoinStyle($borderJoinStyle) |
|
| 257 | - { |
|
| 258 | - $this->borderJoinStyle = is_null($borderJoinStyle) ? null : strval($borderJoinStyle); |
|
| 259 | - return $this; |
|
| 260 | - } |
|
| 261 | - |
|
| 262 | - /** |
|
| 263 | - * @return bool |
|
| 264 | - */ |
|
| 265 | - public function isCapBezierPoints() |
|
| 266 | - { |
|
| 267 | - return $this->capBezierPoints; |
|
| 268 | - } |
|
| 269 | - |
|
| 270 | - /** |
|
| 271 | - * @param bool $capBezierPoints |
|
| 272 | - * @return Line |
|
| 273 | - */ |
|
| 274 | - public function setCapBezierPoints($capBezierPoints) |
|
| 275 | - { |
|
| 276 | - $this->capBezierPoints = boolval($capBezierPoints); |
|
| 277 | - return $this; |
|
| 278 | - } |
|
| 279 | - |
|
| 280 | - /** |
|
| 281 | - * @return bool|string |
|
| 282 | - */ |
|
| 283 | - public function getFill() |
|
| 284 | - { |
|
| 285 | - return $this->fill; |
|
| 286 | - } |
|
| 287 | - |
|
| 288 | - /** |
|
| 289 | - * @param bool|string $fill |
|
| 290 | - * @return Line |
|
| 291 | - */ |
|
| 292 | - public function setFill($fill) |
|
| 293 | - { |
|
| 294 | - $this->fill = is_null($fill) ? null : (is_bool($fill) ? $fill : strval($fill)); |
|
| 295 | - return $this; |
|
| 296 | - } |
|
| 297 | - |
|
| 298 | - /** |
|
| 299 | - * @return bool |
|
| 300 | - */ |
|
| 301 | - public function isStepped() |
|
| 302 | - { |
|
| 303 | - return $this->stepped; |
|
| 304 | - } |
|
| 305 | - |
|
| 306 | - /** |
|
| 307 | - * @param bool $stepped |
|
| 308 | - * @return Line |
|
| 309 | - */ |
|
| 310 | - public function setStepped($stepped) |
|
| 311 | - { |
|
| 312 | - $this->stepped = boolval($stepped); |
|
| 313 | - return $this; |
|
| 314 | - } |
|
| 315 | - |
|
| 316 | - /** |
|
| 317 | - * @return array |
|
| 318 | - */ |
|
| 319 | - public function jsonSerialize() |
|
| 320 | - { |
|
| 321 | - return $this->getArrayCopy(); |
|
| 322 | - } |
|
| 15 | + use ArraySerializable; |
|
| 16 | + |
|
| 17 | + /** https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap */ |
|
| 18 | + const CAP_STYLE_BUTT = 'butt'; |
|
| 19 | + const CAP_STYLE_ROUND = 'round'; |
|
| 20 | + const CAP_STYLE_SQUARE = 'square'; |
|
| 21 | + |
|
| 22 | + /** https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin */ |
|
| 23 | + const JOIN_STYLE_ROUND = 'round'; |
|
| 24 | + const JOIN_STYLE_BEVEL = 'bevel'; |
|
| 25 | + const JOIN_STYLE_MITER = 'miter'; |
|
| 26 | + |
|
| 27 | + const FILL_LOCATION_ZERO = 'zero'; |
|
| 28 | + const FILL_LOCATION_TOP = 'top'; |
|
| 29 | + const FILL_LOCATION_BOTTOM = 'bottom'; |
|
| 30 | + const FILL_LOCATION_TRUE = true; |
|
| 31 | + const FILL_LOCATION_FALSE = false; |
|
| 32 | + |
|
| 33 | + /** |
|
| 34 | + * Bézier curve tension (0 for no Bézier curves). |
|
| 35 | + * @default 0.4 |
|
| 36 | + * @var float |
|
| 37 | + */ |
|
| 38 | + private $tension; |
|
| 39 | + |
|
| 40 | + /** |
|
| 41 | + * Line fill color. |
|
| 42 | + * @default 'rgba(0,0,0,0.1)' |
|
| 43 | + * @var string |
|
| 44 | + */ |
|
| 45 | + private $backgroundColor; |
|
| 46 | + |
|
| 47 | + /** |
|
| 48 | + * Line stroke width. |
|
| 49 | + * @default 3 |
|
| 50 | + * @var int |
|
| 51 | + */ |
|
| 52 | + private $borderWidth; |
|
| 53 | + |
|
| 54 | + /** |
|
| 55 | + * Line stroke color. |
|
| 56 | + * @default 'rgba(0,0,0,0.1)' |
|
| 57 | + * @var string |
|
| 58 | + */ |
|
| 59 | + private $borderColor; |
|
| 60 | + |
|
| 61 | + /** |
|
| 62 | + * Line cap style. |
|
| 63 | + * @default self::CAP_STYLE_BUTT |
|
| 64 | + * @var string |
|
| 65 | + */ |
|
| 66 | + private $borderCapStyle; |
|
| 67 | + |
|
| 68 | + /** |
|
| 69 | + * Line dash. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash |
|
| 70 | + * @default [] |
|
| 71 | + * @var int[] |
|
| 72 | + */ |
|
| 73 | + private $borderDash; |
|
| 74 | + |
|
| 75 | + /** |
|
| 76 | + * Line dash offset. |
|
| 77 | + * @default 0 |
|
| 78 | + * @var float |
|
| 79 | + */ |
|
| 80 | + private $borderDashOffset; |
|
| 81 | + |
|
| 82 | + /** |
|
| 83 | + * Line join style. |
|
| 84 | + * @default self::JOIN_STYLE_MITER |
|
| 85 | + * @var string |
|
| 86 | + */ |
|
| 87 | + private $borderJoinStyle; |
|
| 88 | + |
|
| 89 | + /** |
|
| 90 | + * true to keep Bézier control inside the chart, false for no restriction. |
|
| 91 | + * @default true |
|
| 92 | + * @var bool |
|
| 93 | + */ |
|
| 94 | + private $capBezierPoints; |
|
| 95 | + |
|
| 96 | + /** |
|
| 97 | + * Fill location: 'zero', 'top', 'bottom', true (eq. 'zero') or false (no fill). |
|
| 98 | + * @default self::FILL_LOCATION_TRUE |
|
| 99 | + * @var bool|string |
|
| 100 | + */ |
|
| 101 | + private $fill; |
|
| 102 | + |
|
| 103 | + /** |
|
| 104 | + * true to show the line as a stepped line (tension will be ignored). |
|
| 105 | + * @default false |
|
| 106 | + * @var bool |
|
| 107 | + */ |
|
| 108 | + private $stepped; |
|
| 109 | + |
|
| 110 | + /** |
|
| 111 | + * @return float |
|
| 112 | + */ |
|
| 113 | + public function getTension() |
|
| 114 | + { |
|
| 115 | + return $this->tension; |
|
| 116 | + } |
|
| 117 | + |
|
| 118 | + /** |
|
| 119 | + * @param float $tension |
|
| 120 | + * @return Line |
|
| 121 | + */ |
|
| 122 | + public function setTension($tension) |
|
| 123 | + { |
|
| 124 | + $this->tension = floatval($tension); |
|
| 125 | + return $this; |
|
| 126 | + } |
|
| 127 | + |
|
| 128 | + /** |
|
| 129 | + * @return string |
|
| 130 | + */ |
|
| 131 | + public function getBackgroundColor() |
|
| 132 | + { |
|
| 133 | + return $this->backgroundColor; |
|
| 134 | + } |
|
| 135 | + |
|
| 136 | + /** |
|
| 137 | + * @param string $backgroundColor |
|
| 138 | + * @return Line |
|
| 139 | + */ |
|
| 140 | + public function setBackgroundColor($backgroundColor) |
|
| 141 | + { |
|
| 142 | + $this->backgroundColor = is_null($backgroundColor) ? null : strval($backgroundColor); |
|
| 143 | + return $this; |
|
| 144 | + } |
|
| 145 | + |
|
| 146 | + /** |
|
| 147 | + * @return int |
|
| 148 | + */ |
|
| 149 | + public function getBorderWidth() |
|
| 150 | + { |
|
| 151 | + return $this->borderWidth; |
|
| 152 | + } |
|
| 153 | + |
|
| 154 | + /** |
|
| 155 | + * @param int $borderWidth |
|
| 156 | + * @return Line |
|
| 157 | + */ |
|
| 158 | + public function setBorderWidth($borderWidth) |
|
| 159 | + { |
|
| 160 | + $this->borderWidth = intval($borderWidth); |
|
| 161 | + return $this; |
|
| 162 | + } |
|
| 163 | + |
|
| 164 | + /** |
|
| 165 | + * @return string |
|
| 166 | + */ |
|
| 167 | + public function getBorderColor() |
|
| 168 | + { |
|
| 169 | + return $this->borderColor; |
|
| 170 | + } |
|
| 171 | + |
|
| 172 | + /** |
|
| 173 | + * @param string $borderColor |
|
| 174 | + * @return Line |
|
| 175 | + */ |
|
| 176 | + public function setBorderColor($borderColor) |
|
| 177 | + { |
|
| 178 | + $this->borderColor = is_null($borderColor) ? null : strval($borderColor); |
|
| 179 | + return $this; |
|
| 180 | + } |
|
| 181 | + |
|
| 182 | + /** |
|
| 183 | + * @return string |
|
| 184 | + */ |
|
| 185 | + public function getBorderCapStyle() |
|
| 186 | + { |
|
| 187 | + return $this->borderCapStyle; |
|
| 188 | + } |
|
| 189 | + |
|
| 190 | + /** |
|
| 191 | + * @param string $borderCapStyle |
|
| 192 | + * @return Line |
|
| 193 | + */ |
|
| 194 | + public function setBorderCapStyle($borderCapStyle) |
|
| 195 | + { |
|
| 196 | + $this->borderCapStyle = is_null($borderCapStyle) ? null : strval($borderCapStyle); |
|
| 197 | + return $this; |
|
| 198 | + } |
|
| 199 | + |
|
| 200 | + /** |
|
| 201 | + * @return int[] |
|
| 202 | + */ |
|
| 203 | + public function getBorderDash() |
|
| 204 | + { |
|
| 205 | + return $this->borderDash; |
|
| 206 | + } |
|
| 207 | + |
|
| 208 | + /** |
|
| 209 | + * @param int[] $borderDash |
|
| 210 | + * @return Line |
|
| 211 | + */ |
|
| 212 | + public function setBorderDash($borderDash) |
|
| 213 | + { |
|
| 214 | + if (is_array($borderDash)) { |
|
| 215 | + array_walk_recursive( |
|
| 216 | + $borderDash, |
|
| 217 | + function (&$value) { |
|
| 218 | + $value = intval($value); |
|
| 219 | + } |
|
| 220 | + ); |
|
| 221 | + $this->borderDash = $borderDash; |
|
| 222 | + } |
|
| 223 | + return $this; |
|
| 224 | + } |
|
| 225 | + |
|
| 226 | + /** |
|
| 227 | + * @return float |
|
| 228 | + */ |
|
| 229 | + public function getBorderDashOffset() |
|
| 230 | + { |
|
| 231 | + return $this->borderDashOffset; |
|
| 232 | + } |
|
| 233 | + |
|
| 234 | + /** |
|
| 235 | + * @param float $borderDashOffset |
|
| 236 | + * @return Line |
|
| 237 | + */ |
|
| 238 | + public function setBorderDashOffset($borderDashOffset) |
|
| 239 | + { |
|
| 240 | + $this->borderDashOffset = floatval($borderDashOffset); |
|
| 241 | + return $this; |
|
| 242 | + } |
|
| 243 | + |
|
| 244 | + /** |
|
| 245 | + * @return string |
|
| 246 | + */ |
|
| 247 | + public function getBorderJoinStyle() |
|
| 248 | + { |
|
| 249 | + return $this->borderJoinStyle; |
|
| 250 | + } |
|
| 251 | + |
|
| 252 | + /** |
|
| 253 | + * @param string $borderJoinStyle |
|
| 254 | + * @return Line |
|
| 255 | + */ |
|
| 256 | + public function setBorderJoinStyle($borderJoinStyle) |
|
| 257 | + { |
|
| 258 | + $this->borderJoinStyle = is_null($borderJoinStyle) ? null : strval($borderJoinStyle); |
|
| 259 | + return $this; |
|
| 260 | + } |
|
| 261 | + |
|
| 262 | + /** |
|
| 263 | + * @return bool |
|
| 264 | + */ |
|
| 265 | + public function isCapBezierPoints() |
|
| 266 | + { |
|
| 267 | + return $this->capBezierPoints; |
|
| 268 | + } |
|
| 269 | + |
|
| 270 | + /** |
|
| 271 | + * @param bool $capBezierPoints |
|
| 272 | + * @return Line |
|
| 273 | + */ |
|
| 274 | + public function setCapBezierPoints($capBezierPoints) |
|
| 275 | + { |
|
| 276 | + $this->capBezierPoints = boolval($capBezierPoints); |
|
| 277 | + return $this; |
|
| 278 | + } |
|
| 279 | + |
|
| 280 | + /** |
|
| 281 | + * @return bool|string |
|
| 282 | + */ |
|
| 283 | + public function getFill() |
|
| 284 | + { |
|
| 285 | + return $this->fill; |
|
| 286 | + } |
|
| 287 | + |
|
| 288 | + /** |
|
| 289 | + * @param bool|string $fill |
|
| 290 | + * @return Line |
|
| 291 | + */ |
|
| 292 | + public function setFill($fill) |
|
| 293 | + { |
|
| 294 | + $this->fill = is_null($fill) ? null : (is_bool($fill) ? $fill : strval($fill)); |
|
| 295 | + return $this; |
|
| 296 | + } |
|
| 297 | + |
|
| 298 | + /** |
|
| 299 | + * @return bool |
|
| 300 | + */ |
|
| 301 | + public function isStepped() |
|
| 302 | + { |
|
| 303 | + return $this->stepped; |
|
| 304 | + } |
|
| 305 | + |
|
| 306 | + /** |
|
| 307 | + * @param bool $stepped |
|
| 308 | + * @return Line |
|
| 309 | + */ |
|
| 310 | + public function setStepped($stepped) |
|
| 311 | + { |
|
| 312 | + $this->stepped = boolval($stepped); |
|
| 313 | + return $this; |
|
| 314 | + } |
|
| 315 | + |
|
| 316 | + /** |
|
| 317 | + * @return array |
|
| 318 | + */ |
|
| 319 | + public function jsonSerialize() |
|
| 320 | + { |
|
| 321 | + return $this->getArrayCopy(); |
|
| 322 | + } |
|
| 323 | 323 | } |