webeweb /
highcharts-bundle
This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * This file is part of the highcharts-bundle package. |
||
| 5 | * |
||
| 6 | * (c) 2017 WEBEWEB |
||
| 7 | * |
||
| 8 | * For the full copyright and license information, please view the LICENSE |
||
| 9 | * file that was distributed with this source code. |
||
| 10 | */ |
||
| 11 | |||
| 12 | namespace WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions; |
||
| 13 | |||
| 14 | use JsonSerializable; |
||
| 15 | use WBW\Library\Core\Utility\Argument\ArrayUtility; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Highcharts boxplot. |
||
| 19 | * |
||
| 20 | * @author webeweb <https://github.com/webeweb/> |
||
| 21 | * @package WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions |
||
| 22 | * @version 5.0.14 |
||
| 23 | * @final |
||
| 24 | */ |
||
| 25 | final class HighchartsBoxplot implements JsonSerializable { |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Allow point select. |
||
| 29 | * |
||
| 30 | * @var boolean |
||
| 31 | * @since 1.2.0 |
||
| 32 | */ |
||
| 33 | private $allowPointSelect = false; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Animation limit. |
||
| 37 | * |
||
| 38 | * @var integer |
||
| 39 | */ |
||
| 40 | private $animationLimit; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Class name. |
||
| 44 | * |
||
| 45 | * @var string |
||
| 46 | * @since 5.0.0 |
||
| 47 | */ |
||
| 48 | private $className; |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Color. |
||
| 52 | * |
||
| 53 | * @var string |
||
| 54 | */ |
||
| 55 | private $color; |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Color by point. |
||
| 59 | * |
||
| 60 | * @var boolean |
||
| 61 | * @since 2.0 |
||
| 62 | */ |
||
| 63 | private $colorByPoint = false; |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Color index. |
||
| 67 | * |
||
| 68 | * @var integer |
||
| 69 | * @since 5.0.0 |
||
| 70 | */ |
||
| 71 | private $colorIndex; |
||
| 72 | |||
| 73 | /** |
||
| 74 | * Colors. |
||
| 75 | * |
||
| 76 | * @var array |
||
| 77 | * @since 3.0 |
||
| 78 | */ |
||
| 79 | private $colors; |
||
| 80 | |||
| 81 | /** |
||
| 82 | * Crisp. |
||
| 83 | * |
||
| 84 | * @var boolean |
||
| 85 | * @since 5.0.10 |
||
| 86 | */ |
||
| 87 | private $crisp = true; |
||
| 88 | |||
| 89 | /** |
||
| 90 | * Cursor. |
||
| 91 | * |
||
| 92 | * @var string |
||
| 93 | */ |
||
| 94 | private $cursor; |
||
| 95 | |||
| 96 | /** |
||
| 97 | * Depth. |
||
| 98 | * |
||
| 99 | * @var integer |
||
| 100 | * @since 4.0 |
||
| 101 | */ |
||
| 102 | private $depth = 25; |
||
| 103 | |||
| 104 | /** |
||
| 105 | * Description. |
||
| 106 | * |
||
| 107 | * @var string |
||
| 108 | * @since 5.0.0 |
||
| 109 | */ |
||
| 110 | private $description; |
||
| 111 | |||
| 112 | /** |
||
| 113 | * Edge color. |
||
| 114 | * |
||
| 115 | * @var string |
||
| 116 | */ |
||
| 117 | private $edgeColor; |
||
| 118 | |||
| 119 | /** |
||
| 120 | * Edge width. |
||
| 121 | * |
||
| 122 | * @var integer |
||
| 123 | */ |
||
| 124 | private $edgeWidth = 1; |
||
| 125 | |||
| 126 | /** |
||
| 127 | * Enable mouse tracking. |
||
| 128 | * |
||
| 129 | * @var boolean |
||
| 130 | */ |
||
| 131 | private $enableMouseTracking = true; |
||
| 132 | |||
| 133 | /** |
||
| 134 | * Events. |
||
| 135 | * |
||
| 136 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Boxplot\HighchartsEvents |
||
| 137 | */ |
||
| 138 | private $events; |
||
| 139 | |||
| 140 | /** |
||
| 141 | * Expose element to a11y. |
||
| 142 | * |
||
| 143 | * @var boolean |
||
| 144 | * @since 5.0.12 |
||
| 145 | */ |
||
| 146 | private $exposeElementToA11y; |
||
| 147 | |||
| 148 | /** |
||
| 149 | * Fill color. |
||
| 150 | * |
||
| 151 | * @var string |
||
| 152 | * @since 3.0 |
||
| 153 | */ |
||
| 154 | private $fillColor = "#ffffff"; |
||
| 155 | |||
| 156 | /** |
||
| 157 | * Find nearest point by. |
||
| 158 | * |
||
| 159 | * @var string |
||
| 160 | * @since 5.0.10 |
||
| 161 | */ |
||
| 162 | private $findNearestPointBy; |
||
| 163 | |||
| 164 | /** |
||
| 165 | * Get extremes from all. |
||
| 166 | * |
||
| 167 | * @var boolean |
||
| 168 | * @since 4.1.6 |
||
| 169 | */ |
||
| 170 | private $getExtremesFromAll = false; |
||
| 171 | |||
| 172 | /** |
||
| 173 | * Group padding. |
||
| 174 | * |
||
| 175 | * @var integer |
||
| 176 | */ |
||
| 177 | private $groupPadding = 0.2; |
||
| 178 | |||
| 179 | /** |
||
| 180 | * Group z padding. |
||
| 181 | * |
||
| 182 | * @var integer |
||
| 183 | * @since 4.0 |
||
| 184 | */ |
||
| 185 | private $groupZPadding = 1; |
||
| 186 | |||
| 187 | /** |
||
| 188 | * Grouping. |
||
| 189 | * |
||
| 190 | * @var boolean |
||
| 191 | * @since 2.3.0 |
||
| 192 | */ |
||
| 193 | private $grouping = true; |
||
| 194 | |||
| 195 | /** |
||
| 196 | * Keys. |
||
| 197 | * |
||
| 198 | * @var array |
||
| 199 | * @since 4.1.6 |
||
| 200 | */ |
||
| 201 | private $keys; |
||
| 202 | |||
| 203 | /** |
||
| 204 | * Line width. |
||
| 205 | * |
||
| 206 | * @var integer |
||
| 207 | * @since 3.0 |
||
| 208 | */ |
||
| 209 | private $lineWidth = 1; |
||
| 210 | |||
| 211 | /** |
||
| 212 | * Linked to. |
||
| 213 | * |
||
| 214 | * @var string |
||
| 215 | * @since 3.0 |
||
| 216 | */ |
||
| 217 | private $linkedTo; |
||
| 218 | |||
| 219 | /** |
||
| 220 | * Max point width. |
||
| 221 | * |
||
| 222 | * @var integer |
||
| 223 | * @since 4.1.8 |
||
| 224 | */ |
||
| 225 | private $maxPointWidth; |
||
| 226 | |||
| 227 | /** |
||
| 228 | * Median color. |
||
| 229 | * |
||
| 230 | * @var string |
||
| 231 | * @since 3.0 |
||
| 232 | */ |
||
| 233 | private $medianColor; |
||
| 234 | |||
| 235 | /** |
||
| 236 | * Median width. |
||
| 237 | * |
||
| 238 | * @var integer |
||
| 239 | * @since 3.0 |
||
| 240 | */ |
||
| 241 | private $medianWidth = 2; |
||
| 242 | |||
| 243 | /** |
||
| 244 | * Negative color. |
||
| 245 | * |
||
| 246 | * @var string |
||
| 247 | * @since 3.0 |
||
| 248 | */ |
||
| 249 | private $negativeColor; |
||
| 250 | |||
| 251 | /** |
||
| 252 | * Point. |
||
| 253 | * |
||
| 254 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Boxplot\HighchartsPoint |
||
| 255 | */ |
||
| 256 | private $point; |
||
| 257 | |||
| 258 | /** |
||
| 259 | * Point description formatter. |
||
| 260 | * |
||
| 261 | * @var string |
||
| 262 | * @since 5.0.12 |
||
| 263 | */ |
||
| 264 | private $pointDescriptionFormatter; |
||
| 265 | |||
| 266 | /** |
||
| 267 | * Point interval. |
||
| 268 | * |
||
| 269 | * @var integer |
||
| 270 | */ |
||
| 271 | private $pointInterval = 1; |
||
| 272 | |||
| 273 | /** |
||
| 274 | * Point interval unit. |
||
| 275 | * |
||
| 276 | * @var string |
||
| 277 | * @since 4.1.0 |
||
| 278 | */ |
||
| 279 | private $pointIntervalUnit; |
||
| 280 | |||
| 281 | /** |
||
| 282 | * Point padding. |
||
| 283 | * |
||
| 284 | * @var integer |
||
| 285 | */ |
||
| 286 | private $pointPadding = 0.1; |
||
| 287 | |||
| 288 | /** |
||
| 289 | * Point placement. |
||
| 290 | * |
||
| 291 | * @var string|integer |
||
| 292 | * @since 2.3.0 |
||
| 293 | */ |
||
| 294 | private $pointPlacement; |
||
| 295 | |||
| 296 | /** |
||
| 297 | * Point range. |
||
| 298 | * |
||
| 299 | * @var integer |
||
| 300 | * @since 2.3 |
||
| 301 | */ |
||
| 302 | private $pointRange; |
||
| 303 | |||
| 304 | /** |
||
| 305 | * Point start. |
||
| 306 | * |
||
| 307 | * @var integer |
||
| 308 | */ |
||
| 309 | private $pointStart = 0; |
||
| 310 | |||
| 311 | /** |
||
| 312 | * Point width. |
||
| 313 | * |
||
| 314 | * @var integer |
||
| 315 | * @since 1.2.5 |
||
| 316 | */ |
||
| 317 | private $pointWidth; |
||
| 318 | |||
| 319 | /** |
||
| 320 | * Selected. |
||
| 321 | * |
||
| 322 | * @var boolean |
||
| 323 | * @since 1.2.0 |
||
| 324 | */ |
||
| 325 | private $selected = false; |
||
| 326 | |||
| 327 | /** |
||
| 328 | * Show checkbox. |
||
| 329 | * |
||
| 330 | * @var boolean |
||
| 331 | * @since 1.2.0 |
||
| 332 | */ |
||
| 333 | private $showCheckbox = false; |
||
| 334 | |||
| 335 | /** |
||
| 336 | * Show in legend. |
||
| 337 | * |
||
| 338 | * @var boolean |
||
| 339 | */ |
||
| 340 | private $showInLegend = true; |
||
| 341 | |||
| 342 | /** |
||
| 343 | * Skip keyboard navigation. |
||
| 344 | * |
||
| 345 | * @var boolean |
||
| 346 | * @since 5.0.12 |
||
| 347 | */ |
||
| 348 | private $skipKeyboardNavigation; |
||
| 349 | |||
| 350 | /** |
||
| 351 | * States. |
||
| 352 | * |
||
| 353 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Boxplot\HighchartsStates |
||
| 354 | */ |
||
| 355 | private $states; |
||
| 356 | |||
| 357 | /** |
||
| 358 | * Stem color. |
||
| 359 | * |
||
| 360 | * @var string |
||
| 361 | * @since 3.0 |
||
| 362 | */ |
||
| 363 | private $stemColor; |
||
| 364 | |||
| 365 | /** |
||
| 366 | * Stem dash style. |
||
| 367 | * |
||
| 368 | * @var string |
||
| 369 | * @since 3.0 |
||
| 370 | */ |
||
| 371 | private $stemDashStyle = "Solid"; |
||
| 372 | |||
| 373 | /** |
||
| 374 | * Stem width. |
||
| 375 | * |
||
| 376 | * @var integer |
||
| 377 | * @since 3.0 |
||
| 378 | */ |
||
| 379 | private $stemWidth; |
||
| 380 | |||
| 381 | /** |
||
| 382 | * Sticky tracking. |
||
| 383 | * |
||
| 384 | * @var boolean |
||
| 385 | * @since 2.0 |
||
| 386 | */ |
||
| 387 | private $stickyTracking = true; |
||
| 388 | |||
| 389 | /** |
||
| 390 | * Tooltip. |
||
| 391 | * |
||
| 392 | * @var array |
||
| 393 | * @since 2.3 |
||
| 394 | */ |
||
| 395 | private $tooltip; |
||
| 396 | |||
| 397 | /** |
||
| 398 | * Turbo threshold. |
||
| 399 | * |
||
| 400 | * @var integer |
||
| 401 | * @since 2.2 |
||
| 402 | */ |
||
| 403 | private $turboThreshold = 1000; |
||
| 404 | |||
| 405 | /** |
||
| 406 | * Visible. |
||
| 407 | * |
||
| 408 | * @var boolean |
||
| 409 | */ |
||
| 410 | private $visible = true; |
||
| 411 | |||
| 412 | /** |
||
| 413 | * Whisker color. |
||
| 414 | * |
||
| 415 | * @var string |
||
| 416 | * @since 3.0 |
||
| 417 | */ |
||
| 418 | private $whiskerColor; |
||
| 419 | |||
| 420 | /** |
||
| 421 | * Whisker length. |
||
| 422 | * |
||
| 423 | * @var integer|string |
||
| 424 | * @since 3.0 |
||
| 425 | */ |
||
| 426 | private $whiskerLength = "50%"; |
||
| 427 | |||
| 428 | /** |
||
| 429 | * Whisker width. |
||
| 430 | * |
||
| 431 | * @var integer |
||
| 432 | * @since 3.0 |
||
| 433 | */ |
||
| 434 | private $whiskerWidth = 2; |
||
| 435 | |||
| 436 | /** |
||
| 437 | * Zone axis. |
||
| 438 | * |
||
| 439 | * @var string |
||
| 440 | * @since 4.1.0 |
||
| 441 | */ |
||
| 442 | private $zoneAxis = "y"; |
||
| 443 | |||
| 444 | /** |
||
| 445 | * Zones. |
||
| 446 | * |
||
| 447 | * @var array |
||
| 448 | * @since 4.1.0 |
||
| 449 | */ |
||
| 450 | private $zones; |
||
| 451 | |||
| 452 | /** |
||
| 453 | * Constructor. |
||
| 454 | * |
||
| 455 | * @param boolean $ignoreDefaultValues Ignore the default values. |
||
| 456 | */ |
||
| 457 | public function __construct($ignoreDefaultValues = true) { |
||
| 458 | if (true === $ignoreDefaultValues) { |
||
| 459 | $this->clear(); |
||
| 460 | } |
||
| 461 | } |
||
| 462 | |||
| 463 | /** |
||
| 464 | * Clear. |
||
| 465 | * |
||
| 466 | * @return void |
||
| 467 | */ |
||
| 468 | public function clear() { |
||
| 469 | |||
| 470 | // Clear the allow point select. |
||
| 471 | $this->allowPointSelect = null; |
||
| 472 | |||
| 473 | // Clear the animation limit. |
||
| 474 | $this->animationLimit = null; |
||
| 475 | |||
| 476 | // Clear the class name. |
||
| 477 | $this->className = null; |
||
| 478 | |||
| 479 | // Clear the color. |
||
| 480 | $this->color = null; |
||
| 481 | |||
| 482 | // Clear the color by point. |
||
| 483 | $this->colorByPoint = null; |
||
| 484 | |||
| 485 | // Clear the color index. |
||
| 486 | $this->colorIndex = null; |
||
| 487 | |||
| 488 | // Clear the colors. |
||
| 489 | $this->colors = null; |
||
|
0 ignored issues
–
show
|
|||
| 490 | |||
| 491 | // Clear the crisp. |
||
| 492 | $this->crisp = null; |
||
| 493 | |||
| 494 | // Clear the cursor. |
||
| 495 | $this->cursor = null; |
||
| 496 | |||
| 497 | // Clear the depth. |
||
| 498 | $this->depth = null; |
||
| 499 | |||
| 500 | // Clear the description. |
||
| 501 | $this->description = null; |
||
| 502 | |||
| 503 | // Clear the edge color. |
||
| 504 | $this->edgeColor = null; |
||
| 505 | |||
| 506 | // Clear the edge width. |
||
| 507 | $this->edgeWidth = null; |
||
| 508 | |||
| 509 | // Clear the enable mouse tracking. |
||
| 510 | $this->enableMouseTracking = null; |
||
| 511 | |||
| 512 | // Clear the events. |
||
| 513 | if (null !== $this->events) { |
||
| 514 | $this->events->clear(); |
||
| 515 | } |
||
| 516 | |||
| 517 | // Clear the expose element to a11y. |
||
| 518 | $this->exposeElementToA11y = null; |
||
| 519 | |||
| 520 | // Clear the fill color. |
||
| 521 | $this->fillColor = null; |
||
| 522 | |||
| 523 | // Clear the find nearest point by. |
||
| 524 | $this->findNearestPointBy = null; |
||
| 525 | |||
| 526 | // Clear the get extremes from all. |
||
| 527 | $this->getExtremesFromAll = null; |
||
| 528 | |||
| 529 | // Clear the group padding. |
||
| 530 | $this->groupPadding = null; |
||
| 531 | |||
| 532 | // Clear the group z padding. |
||
| 533 | $this->groupZPadding = null; |
||
| 534 | |||
| 535 | // Clear the grouping. |
||
| 536 | $this->grouping = null; |
||
| 537 | |||
| 538 | // Clear the keys. |
||
| 539 | $this->keys = null; |
||
|
0 ignored issues
–
show
It seems like
null of type null is incompatible with the declared type array of property $keys.
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property. Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property.. Loading history...
|
|||
| 540 | |||
| 541 | // Clear the line width. |
||
| 542 | $this->lineWidth = null; |
||
| 543 | |||
| 544 | // Clear the linked to. |
||
| 545 | $this->linkedTo = null; |
||
| 546 | |||
| 547 | // Clear the max point width. |
||
| 548 | $this->maxPointWidth = null; |
||
| 549 | |||
| 550 | // Clear the median color. |
||
| 551 | $this->medianColor = null; |
||
| 552 | |||
| 553 | // Clear the median width. |
||
| 554 | $this->medianWidth = null; |
||
| 555 | |||
| 556 | // Clear the negative color. |
||
| 557 | $this->negativeColor = null; |
||
| 558 | |||
| 559 | // Clear the point. |
||
| 560 | if (null !== $this->point) { |
||
| 561 | $this->point->clear(); |
||
| 562 | } |
||
| 563 | |||
| 564 | // Clear the point description formatter. |
||
| 565 | $this->pointDescriptionFormatter = null; |
||
| 566 | |||
| 567 | // Clear the point interval. |
||
| 568 | $this->pointInterval = null; |
||
| 569 | |||
| 570 | // Clear the point interval unit. |
||
| 571 | $this->pointIntervalUnit = null; |
||
| 572 | |||
| 573 | // Clear the point padding. |
||
| 574 | $this->pointPadding = null; |
||
| 575 | |||
| 576 | // Clear the point placement. |
||
| 577 | $this->pointPlacement = null; |
||
| 578 | |||
| 579 | // Clear the point range. |
||
| 580 | $this->pointRange = null; |
||
| 581 | |||
| 582 | // Clear the point start. |
||
| 583 | $this->pointStart = null; |
||
| 584 | |||
| 585 | // Clear the point width. |
||
| 586 | $this->pointWidth = null; |
||
| 587 | |||
| 588 | // Clear the selected. |
||
| 589 | $this->selected = null; |
||
| 590 | |||
| 591 | // Clear the show checkbox. |
||
| 592 | $this->showCheckbox = null; |
||
| 593 | |||
| 594 | // Clear the show in legend. |
||
| 595 | $this->showInLegend = null; |
||
| 596 | |||
| 597 | // Clear the skip keyboard navigation. |
||
| 598 | $this->skipKeyboardNavigation = null; |
||
| 599 | |||
| 600 | // Clear the states. |
||
| 601 | if (null !== $this->states) { |
||
| 602 | $this->states->clear(); |
||
| 603 | } |
||
| 604 | |||
| 605 | // Clear the stem color. |
||
| 606 | $this->stemColor = null; |
||
| 607 | |||
| 608 | // Clear the stem dash style. |
||
| 609 | $this->stemDashStyle = null; |
||
| 610 | |||
| 611 | // Clear the stem width. |
||
| 612 | $this->stemWidth = null; |
||
| 613 | |||
| 614 | // Clear the sticky tracking. |
||
| 615 | $this->stickyTracking = null; |
||
| 616 | |||
| 617 | // Clear the tooltip. |
||
| 618 | $this->tooltip = null; |
||
|
0 ignored issues
–
show
It seems like
null of type null is incompatible with the declared type array of property $tooltip.
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property. Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property.. Loading history...
|
|||
| 619 | |||
| 620 | // Clear the turbo threshold. |
||
| 621 | $this->turboThreshold = null; |
||
| 622 | |||
| 623 | // Clear the visible. |
||
| 624 | $this->visible = null; |
||
| 625 | |||
| 626 | // Clear the whisker color. |
||
| 627 | $this->whiskerColor = null; |
||
| 628 | |||
| 629 | // Clear the whisker length. |
||
| 630 | $this->whiskerLength = null; |
||
| 631 | |||
| 632 | // Clear the whisker width. |
||
| 633 | $this->whiskerWidth = null; |
||
| 634 | |||
| 635 | // Clear the zone axis. |
||
| 636 | $this->zoneAxis = null; |
||
| 637 | |||
| 638 | // Clear the zones. |
||
| 639 | $this->zones = null; |
||
|
0 ignored issues
–
show
It seems like
null of type null is incompatible with the declared type array of property $zones.
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property. Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property.. Loading history...
|
|||
| 640 | } |
||
| 641 | |||
| 642 | /** |
||
| 643 | * Get the allow point select. |
||
| 644 | * |
||
| 645 | * @return boolean Returns the allow point select. |
||
| 646 | */ |
||
| 647 | public function getAllowPointSelect() { |
||
| 648 | return $this->allowPointSelect; |
||
| 649 | } |
||
| 650 | |||
| 651 | /** |
||
| 652 | * Get the animation limit. |
||
| 653 | * |
||
| 654 | * @return integer Returns the animation limit. |
||
| 655 | */ |
||
| 656 | public function getAnimationLimit() { |
||
| 657 | return $this->animationLimit; |
||
| 658 | } |
||
| 659 | |||
| 660 | /** |
||
| 661 | * Get the class name. |
||
| 662 | * |
||
| 663 | * @return string Returns the class name. |
||
| 664 | */ |
||
| 665 | public function getClassName() { |
||
| 666 | return $this->className; |
||
| 667 | } |
||
| 668 | |||
| 669 | /** |
||
| 670 | * Get the color. |
||
| 671 | * |
||
| 672 | * @return string Returns the color. |
||
| 673 | */ |
||
| 674 | public function getColor() { |
||
| 675 | return $this->color; |
||
| 676 | } |
||
| 677 | |||
| 678 | /** |
||
| 679 | * Get the color by point. |
||
| 680 | * |
||
| 681 | * @return boolean Returns the color by point. |
||
| 682 | */ |
||
| 683 | public function getColorByPoint() { |
||
| 684 | return $this->colorByPoint; |
||
| 685 | } |
||
| 686 | |||
| 687 | /** |
||
| 688 | * Get the color index. |
||
| 689 | * |
||
| 690 | * @return integer Returns the color index. |
||
| 691 | */ |
||
| 692 | public function getColorIndex() { |
||
| 693 | return $this->colorIndex; |
||
| 694 | } |
||
| 695 | |||
| 696 | /** |
||
| 697 | * Get the colors. |
||
| 698 | * |
||
| 699 | * @return array Returns the colors. |
||
| 700 | */ |
||
| 701 | public function getColors() { |
||
| 702 | return $this->colors; |
||
| 703 | } |
||
| 704 | |||
| 705 | /** |
||
| 706 | * Get the crisp. |
||
| 707 | * |
||
| 708 | * @return boolean Returns the crisp. |
||
| 709 | */ |
||
| 710 | public function getCrisp() { |
||
| 711 | return $this->crisp; |
||
| 712 | } |
||
| 713 | |||
| 714 | /** |
||
| 715 | * Get the cursor. |
||
| 716 | * |
||
| 717 | * @return string Returns the cursor. |
||
| 718 | */ |
||
| 719 | public function getCursor() { |
||
| 720 | return $this->cursor; |
||
| 721 | } |
||
| 722 | |||
| 723 | /** |
||
| 724 | * Get the depth. |
||
| 725 | * |
||
| 726 | * @return integer Returns the depth. |
||
| 727 | */ |
||
| 728 | public function getDepth() { |
||
| 729 | return $this->depth; |
||
| 730 | } |
||
| 731 | |||
| 732 | /** |
||
| 733 | * Get the description. |
||
| 734 | * |
||
| 735 | * @return string Returns the description. |
||
| 736 | */ |
||
| 737 | public function getDescription() { |
||
| 738 | return $this->description; |
||
| 739 | } |
||
| 740 | |||
| 741 | /** |
||
| 742 | * Get the edge color. |
||
| 743 | * |
||
| 744 | * @return string Returns the edge color. |
||
| 745 | */ |
||
| 746 | public function getEdgeColor() { |
||
| 747 | return $this->edgeColor; |
||
| 748 | } |
||
| 749 | |||
| 750 | /** |
||
| 751 | * Get the edge width. |
||
| 752 | * |
||
| 753 | * @return integer Returns the edge width. |
||
| 754 | */ |
||
| 755 | public function getEdgeWidth() { |
||
| 756 | return $this->edgeWidth; |
||
| 757 | } |
||
| 758 | |||
| 759 | /** |
||
| 760 | * Get the enable mouse tracking. |
||
| 761 | * |
||
| 762 | * @return boolean Returns the enable mouse tracking. |
||
| 763 | */ |
||
| 764 | public function getEnableMouseTracking() { |
||
| 765 | return $this->enableMouseTracking; |
||
| 766 | } |
||
| 767 | |||
| 768 | /** |
||
| 769 | * Get the events. |
||
| 770 | * |
||
| 771 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Boxplot\HighchartsEvents Returns the events. |
||
| 772 | */ |
||
| 773 | public function getEvents() { |
||
| 774 | return $this->events; |
||
| 775 | } |
||
| 776 | |||
| 777 | /** |
||
| 778 | * Get the expose element to a11y. |
||
| 779 | * |
||
| 780 | * @return boolean Returns the expose element to a11y. |
||
| 781 | */ |
||
| 782 | public function getExposeElementToA11y() { |
||
| 783 | return $this->exposeElementToA11y; |
||
| 784 | } |
||
| 785 | |||
| 786 | /** |
||
| 787 | * Get the fill color. |
||
| 788 | * |
||
| 789 | * @return string Returns the fill color. |
||
| 790 | */ |
||
| 791 | public function getFillColor() { |
||
| 792 | return $this->fillColor; |
||
| 793 | } |
||
| 794 | |||
| 795 | /** |
||
| 796 | * Get the find nearest point by. |
||
| 797 | * |
||
| 798 | * @return string Returns the find nearest point by. |
||
| 799 | */ |
||
| 800 | public function getFindNearestPointBy() { |
||
| 801 | return $this->findNearestPointBy; |
||
| 802 | } |
||
| 803 | |||
| 804 | /** |
||
| 805 | * Get the get extremes from all. |
||
| 806 | * |
||
| 807 | * @return boolean Returns the get extremes from all. |
||
| 808 | */ |
||
| 809 | public function getGetExtremesFromAll() { |
||
| 810 | return $this->getExtremesFromAll; |
||
| 811 | } |
||
| 812 | |||
| 813 | /** |
||
| 814 | * Get the group padding. |
||
| 815 | * |
||
| 816 | * @return integer Returns the group padding. |
||
| 817 | */ |
||
| 818 | public function getGroupPadding() { |
||
| 819 | return $this->groupPadding; |
||
| 820 | } |
||
| 821 | |||
| 822 | /** |
||
| 823 | * Get the group z padding. |
||
| 824 | * |
||
| 825 | * @return integer Returns the group z padding. |
||
| 826 | */ |
||
| 827 | public function getGroupZPadding() { |
||
| 828 | return $this->groupZPadding; |
||
| 829 | } |
||
| 830 | |||
| 831 | /** |
||
| 832 | * Get the grouping. |
||
| 833 | * |
||
| 834 | * @return boolean Returns the grouping. |
||
| 835 | */ |
||
| 836 | public function getGrouping() { |
||
| 837 | return $this->grouping; |
||
| 838 | } |
||
| 839 | |||
| 840 | /** |
||
| 841 | * Get the keys. |
||
| 842 | * |
||
| 843 | * @return array Returns the keys. |
||
| 844 | */ |
||
| 845 | public function getKeys() { |
||
| 846 | return $this->keys; |
||
| 847 | } |
||
| 848 | |||
| 849 | /** |
||
| 850 | * Get the line width. |
||
| 851 | * |
||
| 852 | * @return integer Returns the line width. |
||
| 853 | */ |
||
| 854 | public function getLineWidth() { |
||
| 855 | return $this->lineWidth; |
||
| 856 | } |
||
| 857 | |||
| 858 | /** |
||
| 859 | * Get the linked to. |
||
| 860 | * |
||
| 861 | * @return string Returns the linked to. |
||
| 862 | */ |
||
| 863 | public function getLinkedTo() { |
||
| 864 | return $this->linkedTo; |
||
| 865 | } |
||
| 866 | |||
| 867 | /** |
||
| 868 | * Get the max point width. |
||
| 869 | * |
||
| 870 | * @return integer Returns the max point width. |
||
| 871 | */ |
||
| 872 | public function getMaxPointWidth() { |
||
| 873 | return $this->maxPointWidth; |
||
| 874 | } |
||
| 875 | |||
| 876 | /** |
||
| 877 | * Get the median color. |
||
| 878 | * |
||
| 879 | * @return string Returns the median color. |
||
| 880 | */ |
||
| 881 | public function getMedianColor() { |
||
| 882 | return $this->medianColor; |
||
| 883 | } |
||
| 884 | |||
| 885 | /** |
||
| 886 | * Get the median width. |
||
| 887 | * |
||
| 888 | * @return integer Returns the median width. |
||
| 889 | */ |
||
| 890 | public function getMedianWidth() { |
||
| 891 | return $this->medianWidth; |
||
| 892 | } |
||
| 893 | |||
| 894 | /** |
||
| 895 | * Get the negative color. |
||
| 896 | * |
||
| 897 | * @return string Returns the negative color. |
||
| 898 | */ |
||
| 899 | public function getNegativeColor() { |
||
| 900 | return $this->negativeColor; |
||
| 901 | } |
||
| 902 | |||
| 903 | /** |
||
| 904 | * Get the point. |
||
| 905 | * |
||
| 906 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Boxplot\HighchartsPoint Returns the point. |
||
| 907 | */ |
||
| 908 | public function getPoint() { |
||
| 909 | return $this->point; |
||
| 910 | } |
||
| 911 | |||
| 912 | /** |
||
| 913 | * Get the point description formatter. |
||
| 914 | * |
||
| 915 | * @return string Returns the point description formatter. |
||
| 916 | */ |
||
| 917 | public function getPointDescriptionFormatter() { |
||
| 918 | return $this->pointDescriptionFormatter; |
||
| 919 | } |
||
| 920 | |||
| 921 | /** |
||
| 922 | * Get the point interval. |
||
| 923 | * |
||
| 924 | * @return integer Returns the point interval. |
||
| 925 | */ |
||
| 926 | public function getPointInterval() { |
||
| 927 | return $this->pointInterval; |
||
| 928 | } |
||
| 929 | |||
| 930 | /** |
||
| 931 | * Get the point interval unit. |
||
| 932 | * |
||
| 933 | * @return string Returns the point interval unit. |
||
| 934 | */ |
||
| 935 | public function getPointIntervalUnit() { |
||
| 936 | return $this->pointIntervalUnit; |
||
| 937 | } |
||
| 938 | |||
| 939 | /** |
||
| 940 | * Get the point padding. |
||
| 941 | * |
||
| 942 | * @return integer Returns the point padding. |
||
| 943 | */ |
||
| 944 | public function getPointPadding() { |
||
| 945 | return $this->pointPadding; |
||
| 946 | } |
||
| 947 | |||
| 948 | /** |
||
| 949 | * Get the point placement. |
||
| 950 | * |
||
| 951 | * @return string|integer Returns the point placement. |
||
| 952 | */ |
||
| 953 | public function getPointPlacement() { |
||
| 954 | return $this->pointPlacement; |
||
| 955 | } |
||
| 956 | |||
| 957 | /** |
||
| 958 | * Get the point range. |
||
| 959 | * |
||
| 960 | * @return integer Returns the point range. |
||
| 961 | */ |
||
| 962 | public function getPointRange() { |
||
| 963 | return $this->pointRange; |
||
| 964 | } |
||
| 965 | |||
| 966 | /** |
||
| 967 | * Get the point start. |
||
| 968 | * |
||
| 969 | * @return integer Returns the point start. |
||
| 970 | */ |
||
| 971 | public function getPointStart() { |
||
| 972 | return $this->pointStart; |
||
| 973 | } |
||
| 974 | |||
| 975 | /** |
||
| 976 | * Get the point width. |
||
| 977 | * |
||
| 978 | * @return integer Returns the point width. |
||
| 979 | */ |
||
| 980 | public function getPointWidth() { |
||
| 981 | return $this->pointWidth; |
||
| 982 | } |
||
| 983 | |||
| 984 | /** |
||
| 985 | * Get the selected. |
||
| 986 | * |
||
| 987 | * @return boolean Returns the selected. |
||
| 988 | */ |
||
| 989 | public function getSelected() { |
||
| 990 | return $this->selected; |
||
| 991 | } |
||
| 992 | |||
| 993 | /** |
||
| 994 | * Get the show checkbox. |
||
| 995 | * |
||
| 996 | * @return boolean Returns the show checkbox. |
||
| 997 | */ |
||
| 998 | public function getShowCheckbox() { |
||
| 999 | return $this->showCheckbox; |
||
| 1000 | } |
||
| 1001 | |||
| 1002 | /** |
||
| 1003 | * Get the show in legend. |
||
| 1004 | * |
||
| 1005 | * @return boolean Returns the show in legend. |
||
| 1006 | */ |
||
| 1007 | public function getShowInLegend() { |
||
| 1008 | return $this->showInLegend; |
||
| 1009 | } |
||
| 1010 | |||
| 1011 | /** |
||
| 1012 | * Get the skip keyboard navigation. |
||
| 1013 | * |
||
| 1014 | * @return boolean Returns the skip keyboard navigation. |
||
| 1015 | */ |
||
| 1016 | public function getSkipKeyboardNavigation() { |
||
| 1017 | return $this->skipKeyboardNavigation; |
||
| 1018 | } |
||
| 1019 | |||
| 1020 | /** |
||
| 1021 | * Get the states. |
||
| 1022 | * |
||
| 1023 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Boxplot\HighchartsStates Returns the states. |
||
| 1024 | */ |
||
| 1025 | public function getStates() { |
||
| 1026 | return $this->states; |
||
| 1027 | } |
||
| 1028 | |||
| 1029 | /** |
||
| 1030 | * Get the stem color. |
||
| 1031 | * |
||
| 1032 | * @return string Returns the stem color. |
||
| 1033 | */ |
||
| 1034 | public function getStemColor() { |
||
| 1035 | return $this->stemColor; |
||
| 1036 | } |
||
| 1037 | |||
| 1038 | /** |
||
| 1039 | * Get the stem dash style. |
||
| 1040 | * |
||
| 1041 | * @return string Returns the stem dash style. |
||
| 1042 | */ |
||
| 1043 | public function getStemDashStyle() { |
||
| 1044 | return $this->stemDashStyle; |
||
| 1045 | } |
||
| 1046 | |||
| 1047 | /** |
||
| 1048 | * Get the stem width. |
||
| 1049 | * |
||
| 1050 | * @return integer Returns the stem width. |
||
| 1051 | */ |
||
| 1052 | public function getStemWidth() { |
||
| 1053 | return $this->stemWidth; |
||
| 1054 | } |
||
| 1055 | |||
| 1056 | /** |
||
| 1057 | * Get the sticky tracking. |
||
| 1058 | * |
||
| 1059 | * @return boolean Returns the sticky tracking. |
||
| 1060 | */ |
||
| 1061 | public function getStickyTracking() { |
||
| 1062 | return $this->stickyTracking; |
||
| 1063 | } |
||
| 1064 | |||
| 1065 | /** |
||
| 1066 | * Get the tooltip. |
||
| 1067 | * |
||
| 1068 | * @return array Returns the tooltip. |
||
| 1069 | */ |
||
| 1070 | public function getTooltip() { |
||
| 1071 | return $this->tooltip; |
||
| 1072 | } |
||
| 1073 | |||
| 1074 | /** |
||
| 1075 | * Get the turbo threshold. |
||
| 1076 | * |
||
| 1077 | * @return integer Returns the turbo threshold. |
||
| 1078 | */ |
||
| 1079 | public function getTurboThreshold() { |
||
| 1080 | return $this->turboThreshold; |
||
| 1081 | } |
||
| 1082 | |||
| 1083 | /** |
||
| 1084 | * Get the visible. |
||
| 1085 | * |
||
| 1086 | * @return boolean Returns the visible. |
||
| 1087 | */ |
||
| 1088 | public function getVisible() { |
||
| 1089 | return $this->visible; |
||
| 1090 | } |
||
| 1091 | |||
| 1092 | /** |
||
| 1093 | * Get the whisker color. |
||
| 1094 | * |
||
| 1095 | * @return string Returns the whisker color. |
||
| 1096 | */ |
||
| 1097 | public function getWhiskerColor() { |
||
| 1098 | return $this->whiskerColor; |
||
| 1099 | } |
||
| 1100 | |||
| 1101 | /** |
||
| 1102 | * Get the whisker length. |
||
| 1103 | * |
||
| 1104 | * @return integer|string Returns the whisker length. |
||
| 1105 | */ |
||
| 1106 | public function getWhiskerLength() { |
||
| 1107 | return $this->whiskerLength; |
||
| 1108 | } |
||
| 1109 | |||
| 1110 | /** |
||
| 1111 | * Get the whisker width. |
||
| 1112 | * |
||
| 1113 | * @return integer Returns the whisker width. |
||
| 1114 | */ |
||
| 1115 | public function getWhiskerWidth() { |
||
| 1116 | return $this->whiskerWidth; |
||
| 1117 | } |
||
| 1118 | |||
| 1119 | /** |
||
| 1120 | * Get the zone axis. |
||
| 1121 | * |
||
| 1122 | * @return string Returns the zone axis. |
||
| 1123 | */ |
||
| 1124 | public function getZoneAxis() { |
||
| 1125 | return $this->zoneAxis; |
||
| 1126 | } |
||
| 1127 | |||
| 1128 | /** |
||
| 1129 | * Get the zones. |
||
| 1130 | * |
||
| 1131 | * @return array Returns the zones. |
||
| 1132 | */ |
||
| 1133 | public function getZones() { |
||
| 1134 | return $this->zones; |
||
| 1135 | } |
||
| 1136 | |||
| 1137 | /** |
||
| 1138 | * Serialize this instance. |
||
| 1139 | * |
||
| 1140 | * @return array Returns an array representing this instance. |
||
| 1141 | */ |
||
| 1142 | public function jsonSerialize() { |
||
| 1143 | return $this->toArray(); |
||
| 1144 | } |
||
| 1145 | |||
| 1146 | /** |
||
| 1147 | * Create a new events. |
||
| 1148 | * |
||
| 1149 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Boxplot\HighchartsEvents Returns the events. |
||
| 1150 | */ |
||
| 1151 | public function newEvents() { |
||
| 1152 | $this->events = new \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Boxplot\HighchartsEvents(); |
||
| 1153 | return $this->events; |
||
| 1154 | } |
||
| 1155 | |||
| 1156 | /** |
||
| 1157 | * Create a new point. |
||
| 1158 | * |
||
| 1159 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Boxplot\HighchartsPoint Returns the point. |
||
| 1160 | */ |
||
| 1161 | public function newPoint() { |
||
| 1162 | $this->point = new \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Boxplot\HighchartsPoint(); |
||
| 1163 | return $this->point; |
||
| 1164 | } |
||
| 1165 | |||
| 1166 | /** |
||
| 1167 | * Create a new states. |
||
| 1168 | * |
||
| 1169 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Boxplot\HighchartsStates Returns the states. |
||
| 1170 | */ |
||
| 1171 | public function newStates() { |
||
| 1172 | $this->states = new \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Boxplot\HighchartsStates(); |
||
| 1173 | return $this->states; |
||
| 1174 | } |
||
| 1175 | |||
| 1176 | /** |
||
| 1177 | * Set the allow point select. |
||
| 1178 | * |
||
| 1179 | * @param boolean $allowPointSelect The allow point select. |
||
| 1180 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1181 | */ |
||
| 1182 | public function setAllowPointSelect($allowPointSelect) { |
||
| 1183 | $this->allowPointSelect = $allowPointSelect; |
||
| 1184 | return $this; |
||
| 1185 | } |
||
| 1186 | |||
| 1187 | /** |
||
| 1188 | * Set the animation limit. |
||
| 1189 | * |
||
| 1190 | * @param integer $animationLimit The animation limit. |
||
| 1191 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1192 | */ |
||
| 1193 | public function setAnimationLimit($animationLimit) { |
||
| 1194 | $this->animationLimit = $animationLimit; |
||
| 1195 | return $this; |
||
| 1196 | } |
||
| 1197 | |||
| 1198 | /** |
||
| 1199 | * Set the class name. |
||
| 1200 | * |
||
| 1201 | * @param string $className The class name. |
||
| 1202 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1203 | */ |
||
| 1204 | public function setClassName($className) { |
||
| 1205 | $this->className = $className; |
||
| 1206 | return $this; |
||
| 1207 | } |
||
| 1208 | |||
| 1209 | /** |
||
| 1210 | * Set the color. |
||
| 1211 | * |
||
| 1212 | * @param string $color The color. |
||
| 1213 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1214 | */ |
||
| 1215 | public function setColor($color) { |
||
| 1216 | $this->color = $color; |
||
| 1217 | return $this; |
||
| 1218 | } |
||
| 1219 | |||
| 1220 | /** |
||
| 1221 | * Set the color by point. |
||
| 1222 | * |
||
| 1223 | * @param boolean $colorByPoint The color by point. |
||
| 1224 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1225 | */ |
||
| 1226 | public function setColorByPoint($colorByPoint) { |
||
| 1227 | $this->colorByPoint = $colorByPoint; |
||
| 1228 | return $this; |
||
| 1229 | } |
||
| 1230 | |||
| 1231 | /** |
||
| 1232 | * Set the color index. |
||
| 1233 | * |
||
| 1234 | * @param integer $colorIndex The color index. |
||
| 1235 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1236 | */ |
||
| 1237 | public function setColorIndex($colorIndex) { |
||
| 1238 | $this->colorIndex = $colorIndex; |
||
| 1239 | return $this; |
||
| 1240 | } |
||
| 1241 | |||
| 1242 | /** |
||
| 1243 | * Set the colors. |
||
| 1244 | * |
||
| 1245 | * @param array $colors The colors. |
||
| 1246 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1247 | */ |
||
| 1248 | public function setColors(array $colors = null) { |
||
| 1249 | $this->colors = $colors; |
||
|
0 ignored issues
–
show
It seems like
$colors can be null. However, the property $colors is declared as array. Maybe change the type of the property to array|null or add a type check?
Our type inference engine has found an assignment of a scalar value (like a string, an integer or null) to a property which is an array. Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property. To type hint that a parameter can be either an array or null, you can set a type hint of array and a default value of null. The PHP interpreter will then accept both an array or null for that parameter. function aContainsB(array $needle = null, array $haystack) {
if (!$needle) {
return false;
}
return array_intersect($haystack, $needle) == $haystack;
}
The function can be called with either null or an array for the parameter Loading history...
|
|||
| 1250 | return $this; |
||
| 1251 | } |
||
| 1252 | |||
| 1253 | /** |
||
| 1254 | * Set the crisp. |
||
| 1255 | * |
||
| 1256 | * @param boolean $crisp The crisp. |
||
| 1257 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1258 | */ |
||
| 1259 | public function setCrisp($crisp) { |
||
| 1260 | $this->crisp = $crisp; |
||
| 1261 | return $this; |
||
| 1262 | } |
||
| 1263 | |||
| 1264 | /** |
||
| 1265 | * Set the cursor. |
||
| 1266 | * |
||
| 1267 | * @param string $cursor The cursor. |
||
| 1268 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1269 | */ |
||
| 1270 | public function setCursor($cursor) { |
||
| 1271 | switch ($cursor) { |
||
| 1272 | case null: |
||
| 1273 | case "crosshair": |
||
| 1274 | case "default": |
||
| 1275 | case "help": |
||
| 1276 | case "none": |
||
| 1277 | case "pointer": |
||
| 1278 | $this->cursor = $cursor; |
||
| 1279 | break; |
||
| 1280 | } |
||
| 1281 | return $this; |
||
| 1282 | } |
||
| 1283 | |||
| 1284 | /** |
||
| 1285 | * Set the depth. |
||
| 1286 | * |
||
| 1287 | * @param integer $depth The depth. |
||
| 1288 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1289 | */ |
||
| 1290 | public function setDepth($depth) { |
||
| 1291 | $this->depth = $depth; |
||
| 1292 | return $this; |
||
| 1293 | } |
||
| 1294 | |||
| 1295 | /** |
||
| 1296 | * Set the description. |
||
| 1297 | * |
||
| 1298 | * @param string $description The description. |
||
| 1299 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1300 | */ |
||
| 1301 | public function setDescription($description) { |
||
| 1302 | $this->description = $description; |
||
| 1303 | return $this; |
||
| 1304 | } |
||
| 1305 | |||
| 1306 | /** |
||
| 1307 | * Set the edge color. |
||
| 1308 | * |
||
| 1309 | * @param string $edgeColor The edge color. |
||
| 1310 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1311 | */ |
||
| 1312 | public function setEdgeColor($edgeColor) { |
||
| 1313 | $this->edgeColor = $edgeColor; |
||
| 1314 | return $this; |
||
| 1315 | } |
||
| 1316 | |||
| 1317 | /** |
||
| 1318 | * Set the edge width. |
||
| 1319 | * |
||
| 1320 | * @param integer $edgeWidth The edge width. |
||
| 1321 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1322 | */ |
||
| 1323 | public function setEdgeWidth($edgeWidth) { |
||
| 1324 | $this->edgeWidth = $edgeWidth; |
||
| 1325 | return $this; |
||
| 1326 | } |
||
| 1327 | |||
| 1328 | /** |
||
| 1329 | * Set the enable mouse tracking. |
||
| 1330 | * |
||
| 1331 | * @param boolean $enableMouseTracking The enable mouse tracking. |
||
| 1332 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1333 | */ |
||
| 1334 | public function setEnableMouseTracking($enableMouseTracking) { |
||
| 1335 | $this->enableMouseTracking = $enableMouseTracking; |
||
| 1336 | return $this; |
||
| 1337 | } |
||
| 1338 | |||
| 1339 | /** |
||
| 1340 | * Set the events. |
||
| 1341 | * |
||
| 1342 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Boxplot\HighchartsEvents $events The events. |
||
| 1343 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1344 | */ |
||
| 1345 | public function setEvents(\WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Boxplot\HighchartsEvents $events = null) { |
||
| 1346 | $this->events = $events; |
||
| 1347 | return $this; |
||
| 1348 | } |
||
| 1349 | |||
| 1350 | /** |
||
| 1351 | * Set the expose element to a11y. |
||
| 1352 | * |
||
| 1353 | * @param boolean $exposeElementToA11y The expose element to a11y. |
||
| 1354 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1355 | */ |
||
| 1356 | public function setExposeElementToA11y($exposeElementToA11y) { |
||
| 1357 | $this->exposeElementToA11y = $exposeElementToA11y; |
||
| 1358 | return $this; |
||
| 1359 | } |
||
| 1360 | |||
| 1361 | /** |
||
| 1362 | * Set the fill color. |
||
| 1363 | * |
||
| 1364 | * @param string $fillColor The fill color. |
||
| 1365 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1366 | */ |
||
| 1367 | public function setFillColor($fillColor) { |
||
| 1368 | $this->fillColor = $fillColor; |
||
| 1369 | return $this; |
||
| 1370 | } |
||
| 1371 | |||
| 1372 | /** |
||
| 1373 | * Set the find nearest point by. |
||
| 1374 | * |
||
| 1375 | * @param string $findNearestPointBy The find nearest point by. |
||
| 1376 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1377 | */ |
||
| 1378 | public function setFindNearestPointBy($findNearestPointBy) { |
||
| 1379 | switch ($findNearestPointBy) { |
||
| 1380 | case "x": |
||
| 1381 | case "xy": |
||
| 1382 | $this->findNearestPointBy = $findNearestPointBy; |
||
| 1383 | break; |
||
| 1384 | } |
||
| 1385 | return $this; |
||
| 1386 | } |
||
| 1387 | |||
| 1388 | /** |
||
| 1389 | * Set the get extremes from all. |
||
| 1390 | * |
||
| 1391 | * @param boolean $getExtremesFromAll The get extremes from all. |
||
| 1392 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1393 | */ |
||
| 1394 | public function setGetExtremesFromAll($getExtremesFromAll) { |
||
| 1395 | $this->getExtremesFromAll = $getExtremesFromAll; |
||
| 1396 | return $this; |
||
| 1397 | } |
||
| 1398 | |||
| 1399 | /** |
||
| 1400 | * Set the group padding. |
||
| 1401 | * |
||
| 1402 | * @param integer $groupPadding The group padding. |
||
| 1403 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1404 | */ |
||
| 1405 | public function setGroupPadding($groupPadding) { |
||
| 1406 | $this->groupPadding = $groupPadding; |
||
| 1407 | return $this; |
||
| 1408 | } |
||
| 1409 | |||
| 1410 | /** |
||
| 1411 | * Set the group z padding. |
||
| 1412 | * |
||
| 1413 | * @param integer $groupZPadding The group z padding. |
||
| 1414 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1415 | */ |
||
| 1416 | public function setGroupZPadding($groupZPadding) { |
||
| 1417 | $this->groupZPadding = $groupZPadding; |
||
| 1418 | return $this; |
||
| 1419 | } |
||
| 1420 | |||
| 1421 | /** |
||
| 1422 | * Set the grouping. |
||
| 1423 | * |
||
| 1424 | * @param boolean $grouping The grouping. |
||
| 1425 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1426 | */ |
||
| 1427 | public function setGrouping($grouping) { |
||
| 1428 | $this->grouping = $grouping; |
||
| 1429 | return $this; |
||
| 1430 | } |
||
| 1431 | |||
| 1432 | /** |
||
| 1433 | * Set the keys. |
||
| 1434 | * |
||
| 1435 | * @param array $keys The keys. |
||
| 1436 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1437 | */ |
||
| 1438 | public function setKeys(array $keys = null) { |
||
| 1439 | $this->keys = $keys; |
||
|
0 ignored issues
–
show
It seems like
$keys can be null. However, the property $keys is declared as array. Maybe change the type of the property to array|null or add a type check?
Our type inference engine has found an assignment of a scalar value (like a string, an integer or null) to a property which is an array. Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property. To type hint that a parameter can be either an array or null, you can set a type hint of array and a default value of null. The PHP interpreter will then accept both an array or null for that parameter. function aContainsB(array $needle = null, array $haystack) {
if (!$needle) {
return false;
}
return array_intersect($haystack, $needle) == $haystack;
}
The function can be called with either null or an array for the parameter Loading history...
|
|||
| 1440 | return $this; |
||
| 1441 | } |
||
| 1442 | |||
| 1443 | /** |
||
| 1444 | * Set the line width. |
||
| 1445 | * |
||
| 1446 | * @param integer $lineWidth The line width. |
||
| 1447 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1448 | */ |
||
| 1449 | public function setLineWidth($lineWidth) { |
||
| 1450 | $this->lineWidth = $lineWidth; |
||
| 1451 | return $this; |
||
| 1452 | } |
||
| 1453 | |||
| 1454 | /** |
||
| 1455 | * Set the linked to. |
||
| 1456 | * |
||
| 1457 | * @param string $linkedTo The linked to. |
||
| 1458 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1459 | */ |
||
| 1460 | public function setLinkedTo($linkedTo) { |
||
| 1461 | $this->linkedTo = $linkedTo; |
||
| 1462 | return $this; |
||
| 1463 | } |
||
| 1464 | |||
| 1465 | /** |
||
| 1466 | * Set the max point width. |
||
| 1467 | * |
||
| 1468 | * @param integer $maxPointWidth The max point width. |
||
| 1469 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1470 | */ |
||
| 1471 | public function setMaxPointWidth($maxPointWidth) { |
||
| 1472 | $this->maxPointWidth = $maxPointWidth; |
||
| 1473 | return $this; |
||
| 1474 | } |
||
| 1475 | |||
| 1476 | /** |
||
| 1477 | * Set the median color. |
||
| 1478 | * |
||
| 1479 | * @param string $medianColor The median color. |
||
| 1480 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1481 | */ |
||
| 1482 | public function setMedianColor($medianColor) { |
||
| 1483 | $this->medianColor = $medianColor; |
||
| 1484 | return $this; |
||
| 1485 | } |
||
| 1486 | |||
| 1487 | /** |
||
| 1488 | * Set the median width. |
||
| 1489 | * |
||
| 1490 | * @param integer $medianWidth The median width. |
||
| 1491 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1492 | */ |
||
| 1493 | public function setMedianWidth($medianWidth) { |
||
| 1494 | $this->medianWidth = $medianWidth; |
||
| 1495 | return $this; |
||
| 1496 | } |
||
| 1497 | |||
| 1498 | /** |
||
| 1499 | * Set the negative color. |
||
| 1500 | * |
||
| 1501 | * @param string $negativeColor The negative color. |
||
| 1502 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1503 | */ |
||
| 1504 | public function setNegativeColor($negativeColor) { |
||
| 1505 | $this->negativeColor = $negativeColor; |
||
| 1506 | return $this; |
||
| 1507 | } |
||
| 1508 | |||
| 1509 | /** |
||
| 1510 | * Set the point. |
||
| 1511 | * |
||
| 1512 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Boxplot\HighchartsPoint $point The point. |
||
| 1513 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1514 | */ |
||
| 1515 | public function setPoint(\WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Boxplot\HighchartsPoint $point = null) { |
||
| 1516 | $this->point = $point; |
||
| 1517 | return $this; |
||
| 1518 | } |
||
| 1519 | |||
| 1520 | /** |
||
| 1521 | * Set the point description formatter. |
||
| 1522 | * |
||
| 1523 | * @param string $pointDescriptionFormatter The point description formatter. |
||
| 1524 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1525 | */ |
||
| 1526 | public function setPointDescriptionFormatter($pointDescriptionFormatter) { |
||
| 1527 | $this->pointDescriptionFormatter = $pointDescriptionFormatter; |
||
| 1528 | return $this; |
||
| 1529 | } |
||
| 1530 | |||
| 1531 | /** |
||
| 1532 | * Set the point interval. |
||
| 1533 | * |
||
| 1534 | * @param integer $pointInterval The point interval. |
||
| 1535 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1536 | */ |
||
| 1537 | public function setPointInterval($pointInterval) { |
||
| 1538 | $this->pointInterval = $pointInterval; |
||
| 1539 | return $this; |
||
| 1540 | } |
||
| 1541 | |||
| 1542 | /** |
||
| 1543 | * Set the point interval unit. |
||
| 1544 | * |
||
| 1545 | * @param string $pointIntervalUnit The point interval unit. |
||
| 1546 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1547 | */ |
||
| 1548 | public function setPointIntervalUnit($pointIntervalUnit) { |
||
| 1549 | switch ($pointIntervalUnit) { |
||
| 1550 | case null: |
||
| 1551 | case "day": |
||
| 1552 | case "month": |
||
| 1553 | case "year": |
||
| 1554 | $this->pointIntervalUnit = $pointIntervalUnit; |
||
| 1555 | break; |
||
| 1556 | } |
||
| 1557 | return $this; |
||
| 1558 | } |
||
| 1559 | |||
| 1560 | /** |
||
| 1561 | * Set the point padding. |
||
| 1562 | * |
||
| 1563 | * @param integer $pointPadding The point padding. |
||
| 1564 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1565 | */ |
||
| 1566 | public function setPointPadding($pointPadding) { |
||
| 1567 | $this->pointPadding = $pointPadding; |
||
| 1568 | return $this; |
||
| 1569 | } |
||
| 1570 | |||
| 1571 | /** |
||
| 1572 | * Set the point placement. |
||
| 1573 | * |
||
| 1574 | * @param string|integer $pointPlacement The point placement. |
||
| 1575 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1576 | */ |
||
| 1577 | public function setPointPlacement($pointPlacement) { |
||
| 1578 | switch ($pointPlacement) { |
||
| 1579 | case null: |
||
| 1580 | case "between": |
||
| 1581 | case "on": |
||
| 1582 | $this->pointPlacement = $pointPlacement; |
||
| 1583 | break; |
||
| 1584 | } |
||
| 1585 | return $this; |
||
| 1586 | } |
||
| 1587 | |||
| 1588 | /** |
||
| 1589 | * Set the point range. |
||
| 1590 | * |
||
| 1591 | * @param integer $pointRange The point range. |
||
| 1592 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1593 | */ |
||
| 1594 | public function setPointRange($pointRange) { |
||
| 1595 | $this->pointRange = $pointRange; |
||
| 1596 | return $this; |
||
| 1597 | } |
||
| 1598 | |||
| 1599 | /** |
||
| 1600 | * Set the point start. |
||
| 1601 | * |
||
| 1602 | * @param integer $pointStart The point start. |
||
| 1603 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1604 | */ |
||
| 1605 | public function setPointStart($pointStart) { |
||
| 1606 | $this->pointStart = $pointStart; |
||
| 1607 | return $this; |
||
| 1608 | } |
||
| 1609 | |||
| 1610 | /** |
||
| 1611 | * Set the point width. |
||
| 1612 | * |
||
| 1613 | * @param integer $pointWidth The point width. |
||
| 1614 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1615 | */ |
||
| 1616 | public function setPointWidth($pointWidth) { |
||
| 1617 | $this->pointWidth = $pointWidth; |
||
| 1618 | return $this; |
||
| 1619 | } |
||
| 1620 | |||
| 1621 | /** |
||
| 1622 | * Set the selected. |
||
| 1623 | * |
||
| 1624 | * @param boolean $selected The selected. |
||
| 1625 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1626 | */ |
||
| 1627 | public function setSelected($selected) { |
||
| 1628 | $this->selected = $selected; |
||
| 1629 | return $this; |
||
| 1630 | } |
||
| 1631 | |||
| 1632 | /** |
||
| 1633 | * Set the show checkbox. |
||
| 1634 | * |
||
| 1635 | * @param boolean $showCheckbox The show checkbox. |
||
| 1636 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1637 | */ |
||
| 1638 | public function setShowCheckbox($showCheckbox) { |
||
| 1639 | $this->showCheckbox = $showCheckbox; |
||
| 1640 | return $this; |
||
| 1641 | } |
||
| 1642 | |||
| 1643 | /** |
||
| 1644 | * Set the show in legend. |
||
| 1645 | * |
||
| 1646 | * @param boolean $showInLegend The show in legend. |
||
| 1647 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1648 | */ |
||
| 1649 | public function setShowInLegend($showInLegend) { |
||
| 1650 | $this->showInLegend = $showInLegend; |
||
| 1651 | return $this; |
||
| 1652 | } |
||
| 1653 | |||
| 1654 | /** |
||
| 1655 | * Set the skip keyboard navigation. |
||
| 1656 | * |
||
| 1657 | * @param boolean $skipKeyboardNavigation The skip keyboard navigation. |
||
| 1658 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1659 | */ |
||
| 1660 | public function setSkipKeyboardNavigation($skipKeyboardNavigation) { |
||
| 1661 | $this->skipKeyboardNavigation = $skipKeyboardNavigation; |
||
| 1662 | return $this; |
||
| 1663 | } |
||
| 1664 | |||
| 1665 | /** |
||
| 1666 | * Set the states. |
||
| 1667 | * |
||
| 1668 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Boxplot\HighchartsStates $states The states. |
||
| 1669 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1670 | */ |
||
| 1671 | public function setStates(\WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Boxplot\HighchartsStates $states = null) { |
||
| 1672 | $this->states = $states; |
||
| 1673 | return $this; |
||
| 1674 | } |
||
| 1675 | |||
| 1676 | /** |
||
| 1677 | * Set the stem color. |
||
| 1678 | * |
||
| 1679 | * @param string $stemColor The stem color. |
||
| 1680 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1681 | */ |
||
| 1682 | public function setStemColor($stemColor) { |
||
| 1683 | $this->stemColor = $stemColor; |
||
| 1684 | return $this; |
||
| 1685 | } |
||
| 1686 | |||
| 1687 | /** |
||
| 1688 | * Set the stem dash style. |
||
| 1689 | * |
||
| 1690 | * @param string $stemDashStyle The stem dash style. |
||
| 1691 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1692 | */ |
||
| 1693 | public function setStemDashStyle($stemDashStyle) { |
||
| 1694 | switch ($stemDashStyle) { |
||
| 1695 | case "Dash": |
||
| 1696 | case "DashDot": |
||
| 1697 | case "Dot": |
||
| 1698 | case "LongDash": |
||
| 1699 | case "LongDashDot": |
||
| 1700 | case "LongDashDotDot": |
||
| 1701 | case "ShortDash": |
||
| 1702 | case "ShortDashDot": |
||
| 1703 | case "ShortDashDotDot": |
||
| 1704 | case "ShortDot": |
||
| 1705 | case "Solid": |
||
| 1706 | $this->stemDashStyle = $stemDashStyle; |
||
| 1707 | break; |
||
| 1708 | } |
||
| 1709 | return $this; |
||
| 1710 | } |
||
| 1711 | |||
| 1712 | /** |
||
| 1713 | * Set the stem width. |
||
| 1714 | * |
||
| 1715 | * @param integer $stemWidth The stem width. |
||
| 1716 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1717 | */ |
||
| 1718 | public function setStemWidth($stemWidth) { |
||
| 1719 | $this->stemWidth = $stemWidth; |
||
| 1720 | return $this; |
||
| 1721 | } |
||
| 1722 | |||
| 1723 | /** |
||
| 1724 | * Set the sticky tracking. |
||
| 1725 | * |
||
| 1726 | * @param boolean $stickyTracking The sticky tracking. |
||
| 1727 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1728 | */ |
||
| 1729 | public function setStickyTracking($stickyTracking) { |
||
| 1730 | $this->stickyTracking = $stickyTracking; |
||
| 1731 | return $this; |
||
| 1732 | } |
||
| 1733 | |||
| 1734 | /** |
||
| 1735 | * Set the tooltip. |
||
| 1736 | * |
||
| 1737 | * @param array $tooltip The tooltip. |
||
| 1738 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1739 | */ |
||
| 1740 | public function setTooltip(array $tooltip = null) { |
||
| 1741 | $this->tooltip = $tooltip; |
||
|
0 ignored issues
–
show
It seems like
$tooltip can be null. However, the property $tooltip is declared as array. Maybe change the type of the property to array|null or add a type check?
Our type inference engine has found an assignment of a scalar value (like a string, an integer or null) to a property which is an array. Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property. To type hint that a parameter can be either an array or null, you can set a type hint of array and a default value of null. The PHP interpreter will then accept both an array or null for that parameter. function aContainsB(array $needle = null, array $haystack) {
if (!$needle) {
return false;
}
return array_intersect($haystack, $needle) == $haystack;
}
The function can be called with either null or an array for the parameter Loading history...
|
|||
| 1742 | return $this; |
||
| 1743 | } |
||
| 1744 | |||
| 1745 | /** |
||
| 1746 | * Set the turbo threshold. |
||
| 1747 | * |
||
| 1748 | * @param integer $turboThreshold The turbo threshold. |
||
| 1749 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1750 | */ |
||
| 1751 | public function setTurboThreshold($turboThreshold) { |
||
| 1752 | $this->turboThreshold = $turboThreshold; |
||
| 1753 | return $this; |
||
| 1754 | } |
||
| 1755 | |||
| 1756 | /** |
||
| 1757 | * Set the visible. |
||
| 1758 | * |
||
| 1759 | * @param boolean $visible The visible. |
||
| 1760 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1761 | */ |
||
| 1762 | public function setVisible($visible) { |
||
| 1763 | $this->visible = $visible; |
||
| 1764 | return $this; |
||
| 1765 | } |
||
| 1766 | |||
| 1767 | /** |
||
| 1768 | * Set the whisker color. |
||
| 1769 | * |
||
| 1770 | * @param string $whiskerColor The whisker color. |
||
| 1771 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1772 | */ |
||
| 1773 | public function setWhiskerColor($whiskerColor) { |
||
| 1774 | $this->whiskerColor = $whiskerColor; |
||
| 1775 | return $this; |
||
| 1776 | } |
||
| 1777 | |||
| 1778 | /** |
||
| 1779 | * Set the whisker length. |
||
| 1780 | * |
||
| 1781 | * @param integer|string $whiskerLength The whisker length. |
||
| 1782 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1783 | */ |
||
| 1784 | public function setWhiskerLength($whiskerLength) { |
||
| 1785 | $this->whiskerLength = $whiskerLength; |
||
| 1786 | return $this; |
||
| 1787 | } |
||
| 1788 | |||
| 1789 | /** |
||
| 1790 | * Set the whisker width. |
||
| 1791 | * |
||
| 1792 | * @param integer $whiskerWidth The whisker width. |
||
| 1793 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1794 | */ |
||
| 1795 | public function setWhiskerWidth($whiskerWidth) { |
||
| 1796 | $this->whiskerWidth = $whiskerWidth; |
||
| 1797 | return $this; |
||
| 1798 | } |
||
| 1799 | |||
| 1800 | /** |
||
| 1801 | * Set the zone axis. |
||
| 1802 | * |
||
| 1803 | * @param string $zoneAxis The zone axis. |
||
| 1804 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1805 | */ |
||
| 1806 | public function setZoneAxis($zoneAxis) { |
||
| 1807 | $this->zoneAxis = $zoneAxis; |
||
| 1808 | return $this; |
||
| 1809 | } |
||
| 1810 | |||
| 1811 | /** |
||
| 1812 | * Set the zones. |
||
| 1813 | * |
||
| 1814 | * @param array $zones The zones. |
||
| 1815 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBoxplot Returns the highcharts boxplot. |
||
| 1816 | */ |
||
| 1817 | public function setZones(array $zones = null) { |
||
| 1818 | $this->zones = $zones; |
||
|
0 ignored issues
–
show
It seems like
$zones can be null. However, the property $zones is declared as array. Maybe change the type of the property to array|null or add a type check?
Our type inference engine has found an assignment of a scalar value (like a string, an integer or null) to a property which is an array. Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property. To type hint that a parameter can be either an array or null, you can set a type hint of array and a default value of null. The PHP interpreter will then accept both an array or null for that parameter. function aContainsB(array $needle = null, array $haystack) {
if (!$needle) {
return false;
}
return array_intersect($haystack, $needle) == $haystack;
}
The function can be called with either null or an array for the parameter Loading history...
|
|||
| 1819 | return $this; |
||
| 1820 | } |
||
| 1821 | |||
| 1822 | /** |
||
| 1823 | * Convert into an array representing this instance. |
||
| 1824 | * |
||
| 1825 | * @return array Returns an array representing this instance. |
||
| 1826 | */ |
||
| 1827 | public function toArray() { |
||
| 1828 | |||
| 1829 | // Initialize the output. |
||
| 1830 | $output = []; |
||
| 1831 | |||
| 1832 | // Set the allow point select. |
||
| 1833 | ArrayUtility::set($output, "allowPointSelect", $this->allowPointSelect, [null]); |
||
| 1834 | |||
| 1835 | // Set the animation limit. |
||
| 1836 | ArrayUtility::set($output, "animationLimit", $this->animationLimit, [null]); |
||
| 1837 | |||
| 1838 | // Set the class name. |
||
| 1839 | ArrayUtility::set($output, "className", $this->className, [null]); |
||
| 1840 | |||
| 1841 | // Set the color. |
||
| 1842 | ArrayUtility::set($output, "color", $this->color, [null]); |
||
| 1843 | |||
| 1844 | // Set the color by point. |
||
| 1845 | ArrayUtility::set($output, "colorByPoint", $this->colorByPoint, [null]); |
||
| 1846 | |||
| 1847 | // Set the color index. |
||
| 1848 | ArrayUtility::set($output, "colorIndex", $this->colorIndex, [null]); |
||
| 1849 | |||
| 1850 | // Set the colors. |
||
| 1851 | ArrayUtility::set($output, "colors", $this->colors, [null]); |
||
| 1852 | |||
| 1853 | // Set the crisp. |
||
| 1854 | ArrayUtility::set($output, "crisp", $this->crisp, [null]); |
||
| 1855 | |||
| 1856 | // Set the cursor. |
||
| 1857 | ArrayUtility::set($output, "cursor", $this->cursor, [null]); |
||
| 1858 | |||
| 1859 | // Set the depth. |
||
| 1860 | ArrayUtility::set($output, "depth", $this->depth, [null]); |
||
| 1861 | |||
| 1862 | // Set the description. |
||
| 1863 | ArrayUtility::set($output, "description", $this->description, [null]); |
||
| 1864 | |||
| 1865 | // Set the edge color. |
||
| 1866 | ArrayUtility::set($output, "edgeColor", $this->edgeColor, [null]); |
||
| 1867 | |||
| 1868 | // Set the edge width. |
||
| 1869 | ArrayUtility::set($output, "edgeWidth", $this->edgeWidth, [null]); |
||
| 1870 | |||
| 1871 | // Set the enable mouse tracking. |
||
| 1872 | ArrayUtility::set($output, "enableMouseTracking", $this->enableMouseTracking, [null]); |
||
| 1873 | |||
| 1874 | // Set the events. |
||
| 1875 | if (null !== $this->events) { |
||
| 1876 | ArrayUtility::set($output, "events", $this->events->toArray(), []); |
||
| 1877 | } |
||
| 1878 | |||
| 1879 | // Set the expose element to a11y. |
||
| 1880 | ArrayUtility::set($output, "exposeElementToA11y", $this->exposeElementToA11y, [null]); |
||
| 1881 | |||
| 1882 | // Set the fill color. |
||
| 1883 | ArrayUtility::set($output, "fillColor", $this->fillColor, [null]); |
||
| 1884 | |||
| 1885 | // Set the find nearest point by. |
||
| 1886 | ArrayUtility::set($output, "findNearestPointBy", $this->findNearestPointBy, [null]); |
||
| 1887 | |||
| 1888 | // Set the get extremes from all. |
||
| 1889 | ArrayUtility::set($output, "getExtremesFromAll", $this->getExtremesFromAll, [null]); |
||
| 1890 | |||
| 1891 | // Set the group padding. |
||
| 1892 | ArrayUtility::set($output, "groupPadding", $this->groupPadding, [null]); |
||
| 1893 | |||
| 1894 | // Set the group z padding. |
||
| 1895 | ArrayUtility::set($output, "groupZPadding", $this->groupZPadding, [null]); |
||
| 1896 | |||
| 1897 | // Set the grouping. |
||
| 1898 | ArrayUtility::set($output, "grouping", $this->grouping, [null]); |
||
| 1899 | |||
| 1900 | // Set the keys. |
||
| 1901 | ArrayUtility::set($output, "keys", $this->keys, [null]); |
||
| 1902 | |||
| 1903 | // Set the line width. |
||
| 1904 | ArrayUtility::set($output, "lineWidth", $this->lineWidth, [null]); |
||
| 1905 | |||
| 1906 | // Set the linked to. |
||
| 1907 | ArrayUtility::set($output, "linkedTo", $this->linkedTo, [null]); |
||
| 1908 | |||
| 1909 | // Set the max point width. |
||
| 1910 | ArrayUtility::set($output, "maxPointWidth", $this->maxPointWidth, [null]); |
||
| 1911 | |||
| 1912 | // Set the median color. |
||
| 1913 | ArrayUtility::set($output, "medianColor", $this->medianColor, [null]); |
||
| 1914 | |||
| 1915 | // Set the median width. |
||
| 1916 | ArrayUtility::set($output, "medianWidth", $this->medianWidth, [null]); |
||
| 1917 | |||
| 1918 | // Set the negative color. |
||
| 1919 | ArrayUtility::set($output, "negativeColor", $this->negativeColor, [null]); |
||
| 1920 | |||
| 1921 | // Set the point. |
||
| 1922 | if (null !== $this->point) { |
||
| 1923 | ArrayUtility::set($output, "point", $this->point->toArray(), []); |
||
| 1924 | } |
||
| 1925 | |||
| 1926 | // Set the point description formatter. |
||
| 1927 | ArrayUtility::set($output, "pointDescriptionFormatter", $this->pointDescriptionFormatter, [null]); |
||
| 1928 | |||
| 1929 | // Set the point interval. |
||
| 1930 | ArrayUtility::set($output, "pointInterval", $this->pointInterval, [null]); |
||
| 1931 | |||
| 1932 | // Set the point interval unit. |
||
| 1933 | ArrayUtility::set($output, "pointIntervalUnit", $this->pointIntervalUnit, [null]); |
||
| 1934 | |||
| 1935 | // Set the point padding. |
||
| 1936 | ArrayUtility::set($output, "pointPadding", $this->pointPadding, [null]); |
||
| 1937 | |||
| 1938 | // Set the point placement. |
||
| 1939 | ArrayUtility::set($output, "pointPlacement", $this->pointPlacement, [null]); |
||
| 1940 | |||
| 1941 | // Set the point range. |
||
| 1942 | ArrayUtility::set($output, "pointRange", $this->pointRange, [null]); |
||
| 1943 | |||
| 1944 | // Set the point start. |
||
| 1945 | ArrayUtility::set($output, "pointStart", $this->pointStart, [null]); |
||
| 1946 | |||
| 1947 | // Set the point width. |
||
| 1948 | ArrayUtility::set($output, "pointWidth", $this->pointWidth, [null]); |
||
| 1949 | |||
| 1950 | // Set the selected. |
||
| 1951 | ArrayUtility::set($output, "selected", $this->selected, [null]); |
||
| 1952 | |||
| 1953 | // Set the show checkbox. |
||
| 1954 | ArrayUtility::set($output, "showCheckbox", $this->showCheckbox, [null]); |
||
| 1955 | |||
| 1956 | // Set the show in legend. |
||
| 1957 | ArrayUtility::set($output, "showInLegend", $this->showInLegend, [null]); |
||
| 1958 | |||
| 1959 | // Set the skip keyboard navigation. |
||
| 1960 | ArrayUtility::set($output, "skipKeyboardNavigation", $this->skipKeyboardNavigation, [null]); |
||
| 1961 | |||
| 1962 | // Set the states. |
||
| 1963 | if (null !== $this->states) { |
||
| 1964 | ArrayUtility::set($output, "states", $this->states->toArray(), []); |
||
| 1965 | } |
||
| 1966 | |||
| 1967 | // Set the stem color. |
||
| 1968 | ArrayUtility::set($output, "stemColor", $this->stemColor, [null]); |
||
| 1969 | |||
| 1970 | // Set the stem dash style. |
||
| 1971 | ArrayUtility::set($output, "stemDashStyle", $this->stemDashStyle, [null]); |
||
| 1972 | |||
| 1973 | // Set the stem width. |
||
| 1974 | ArrayUtility::set($output, "stemWidth", $this->stemWidth, [null]); |
||
| 1975 | |||
| 1976 | // Set the sticky tracking. |
||
| 1977 | ArrayUtility::set($output, "stickyTracking", $this->stickyTracking, [null]); |
||
| 1978 | |||
| 1979 | // Set the tooltip. |
||
| 1980 | ArrayUtility::set($output, "tooltip", $this->tooltip, [null]); |
||
| 1981 | |||
| 1982 | // Set the turbo threshold. |
||
| 1983 | ArrayUtility::set($output, "turboThreshold", $this->turboThreshold, [null]); |
||
| 1984 | |||
| 1985 | // Set the visible. |
||
| 1986 | ArrayUtility::set($output, "visible", $this->visible, [null]); |
||
| 1987 | |||
| 1988 | // Set the whisker color. |
||
| 1989 | ArrayUtility::set($output, "whiskerColor", $this->whiskerColor, [null]); |
||
| 1990 | |||
| 1991 | // Set the whisker length. |
||
| 1992 | ArrayUtility::set($output, "whiskerLength", $this->whiskerLength, [null]); |
||
| 1993 | |||
| 1994 | // Set the whisker width. |
||
| 1995 | ArrayUtility::set($output, "whiskerWidth", $this->whiskerWidth, [null]); |
||
| 1996 | |||
| 1997 | // Set the zone axis. |
||
| 1998 | ArrayUtility::set($output, "zoneAxis", $this->zoneAxis, [null]); |
||
| 1999 | |||
| 2000 | // Set the zones. |
||
| 2001 | ArrayUtility::set($output, "zones", $this->zones, [null]); |
||
| 2002 | |||
| 2003 | // Return the output. |
||
| 2004 | return $output; |
||
| 2005 | } |
||
| 2006 | |||
| 2007 | } |
||
| 2008 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..