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