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 pyramid. |
||
| 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 HighchartsPyramid 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 | * Border color. |
||
| 44 | * |
||
| 45 | * @var string |
||
| 46 | */ |
||
| 47 | private $borderColor = "#ffffff"; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Border width. |
||
| 51 | * |
||
| 52 | * @var integer |
||
| 53 | */ |
||
| 54 | private $borderWidth = 1; |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Center. |
||
| 58 | * |
||
| 59 | * @var array |
||
| 60 | * @since 3.0 |
||
| 61 | */ |
||
| 62 | private $center = ["50%", "50%"]; |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Class name. |
||
| 66 | * |
||
| 67 | * @var string |
||
| 68 | * @since 5.0.0 |
||
| 69 | */ |
||
| 70 | private $className; |
||
| 71 | |||
| 72 | /** |
||
| 73 | * Color index. |
||
| 74 | * |
||
| 75 | * @var integer |
||
| 76 | * @since 5.0.0 |
||
| 77 | */ |
||
| 78 | private $colorIndex; |
||
| 79 | |||
| 80 | /** |
||
| 81 | * Colors. |
||
| 82 | * |
||
| 83 | * @var array |
||
| 84 | * @since 3.0 |
||
| 85 | */ |
||
| 86 | private $colors; |
||
| 87 | |||
| 88 | /** |
||
| 89 | * Cursor. |
||
| 90 | * |
||
| 91 | * @var string |
||
| 92 | */ |
||
| 93 | private $cursor; |
||
| 94 | |||
| 95 | /** |
||
| 96 | * Data. |
||
| 97 | * |
||
| 98 | * @var array |
||
| 99 | */ |
||
| 100 | private $data; |
||
| 101 | |||
| 102 | /** |
||
| 103 | * Data labels. |
||
| 104 | * |
||
| 105 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsDataLabels |
||
| 106 | */ |
||
| 107 | private $dataLabels; |
||
| 108 | |||
| 109 | /** |
||
| 110 | * Depth. |
||
| 111 | * |
||
| 112 | * @var integer |
||
| 113 | * @since 4.0 |
||
| 114 | */ |
||
| 115 | private $depth = 0; |
||
| 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\Pyramid\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 | * Find nearest point by. |
||
| 149 | * |
||
| 150 | * @var string |
||
| 151 | * @since 5.0.10 |
||
| 152 | */ |
||
| 153 | private $findNearestPointBy; |
||
| 154 | |||
| 155 | /** |
||
| 156 | * Get extremes from all. |
||
| 157 | * |
||
| 158 | * @var boolean |
||
| 159 | * @since 4.1.6 |
||
| 160 | */ |
||
| 161 | private $getExtremesFromAll = false; |
||
| 162 | |||
| 163 | /** |
||
| 164 | * Height. |
||
| 165 | * |
||
| 166 | * @var integer|string |
||
| 167 | * @since 3.0 |
||
| 168 | */ |
||
| 169 | private $height; |
||
| 170 | |||
| 171 | /** |
||
| 172 | * Id. |
||
| 173 | * |
||
| 174 | * @var string |
||
| 175 | * @since 1.2.0 |
||
| 176 | */ |
||
| 177 | private $id; |
||
| 178 | |||
| 179 | /** |
||
| 180 | * Index. |
||
| 181 | * |
||
| 182 | * @var integer |
||
| 183 | * @since 2.3.0 |
||
| 184 | */ |
||
| 185 | private $index; |
||
| 186 | |||
| 187 | /** |
||
| 188 | * Keys. |
||
| 189 | * |
||
| 190 | * @var array |
||
| 191 | * @since 4.1.6 |
||
| 192 | */ |
||
| 193 | private $keys; |
||
| 194 | |||
| 195 | /** |
||
| 196 | * Legend index. |
||
| 197 | * |
||
| 198 | * @var integer |
||
| 199 | */ |
||
| 200 | private $legendIndex; |
||
| 201 | |||
| 202 | /** |
||
| 203 | * Linked to. |
||
| 204 | * |
||
| 205 | * @var string |
||
| 206 | * @since 3.0 |
||
| 207 | */ |
||
| 208 | private $linkedTo; |
||
| 209 | |||
| 210 | /** |
||
| 211 | * Min size. |
||
| 212 | * |
||
| 213 | * @var integer |
||
| 214 | * @since 3.0 |
||
| 215 | */ |
||
| 216 | private $minSize = 80; |
||
| 217 | |||
| 218 | /** |
||
| 219 | * Name. |
||
| 220 | * |
||
| 221 | * @var string |
||
| 222 | */ |
||
| 223 | private $name; |
||
| 224 | |||
| 225 | /** |
||
| 226 | * Point. |
||
| 227 | * |
||
| 228 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsPoint |
||
| 229 | */ |
||
| 230 | private $point; |
||
| 231 | |||
| 232 | /** |
||
| 233 | * Point description formatter. |
||
| 234 | * |
||
| 235 | * @var string |
||
| 236 | * @since 5.0.12 |
||
| 237 | */ |
||
| 238 | private $pointDescriptionFormatter; |
||
| 239 | |||
| 240 | /** |
||
| 241 | * Reversed. |
||
| 242 | * |
||
| 243 | * @var boolean |
||
| 244 | * @since 3.0.10 |
||
| 245 | */ |
||
| 246 | private $reversed = true; |
||
| 247 | |||
| 248 | /** |
||
| 249 | * Selected. |
||
| 250 | * |
||
| 251 | * @var boolean |
||
| 252 | * @since 1.2.0 |
||
| 253 | */ |
||
| 254 | private $selected = false; |
||
| 255 | |||
| 256 | /** |
||
| 257 | * Shadow. |
||
| 258 | * |
||
| 259 | * @var boolean|array |
||
| 260 | */ |
||
| 261 | private $shadow = false; |
||
| 262 | |||
| 263 | /** |
||
| 264 | * Show in legend. |
||
| 265 | * |
||
| 266 | * @var boolean |
||
| 267 | */ |
||
| 268 | private $showInLegend = false; |
||
| 269 | |||
| 270 | /** |
||
| 271 | * Skip keyboard navigation. |
||
| 272 | * |
||
| 273 | * @var boolean |
||
| 274 | * @since 5.0.12 |
||
| 275 | */ |
||
| 276 | private $skipKeyboardNavigation; |
||
| 277 | |||
| 278 | /** |
||
| 279 | * Sliced offset. |
||
| 280 | * |
||
| 281 | * @var integer |
||
| 282 | */ |
||
| 283 | private $slicedOffset = 10; |
||
| 284 | |||
| 285 | /** |
||
| 286 | * States. |
||
| 287 | * |
||
| 288 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsStates |
||
| 289 | */ |
||
| 290 | private $states; |
||
| 291 | |||
| 292 | /** |
||
| 293 | * Sticky tracking. |
||
| 294 | * |
||
| 295 | * @var boolean |
||
| 296 | */ |
||
| 297 | private $stickyTracking = false; |
||
| 298 | |||
| 299 | /** |
||
| 300 | * Tooltip. |
||
| 301 | * |
||
| 302 | * @var array |
||
| 303 | * @since 2.3 |
||
| 304 | */ |
||
| 305 | private $tooltip; |
||
| 306 | |||
| 307 | /** |
||
| 308 | * Type. |
||
| 309 | * |
||
| 310 | * @var string |
||
| 311 | */ |
||
| 312 | private $type; |
||
| 313 | |||
| 314 | /** |
||
| 315 | * Visible. |
||
| 316 | * |
||
| 317 | * @var boolean |
||
| 318 | */ |
||
| 319 | private $visible = true; |
||
| 320 | |||
| 321 | /** |
||
| 322 | * Width. |
||
| 323 | * |
||
| 324 | * @var integer|string |
||
| 325 | * @since 3.0 |
||
| 326 | */ |
||
| 327 | private $width = "90%"; |
||
| 328 | |||
| 329 | /** |
||
| 330 | * Z index. |
||
| 331 | * |
||
| 332 | * @var integer |
||
| 333 | */ |
||
| 334 | private $zIndex; |
||
| 335 | |||
| 336 | /** |
||
| 337 | * Zone axis. |
||
| 338 | * |
||
| 339 | * @var string |
||
| 340 | * @since 4.1.0 |
||
| 341 | */ |
||
| 342 | private $zoneAxis = "y"; |
||
| 343 | |||
| 344 | /** |
||
| 345 | * Zones. |
||
| 346 | * |
||
| 347 | * @var array |
||
| 348 | * @since 4.1.0 |
||
| 349 | */ |
||
| 350 | private $zones; |
||
| 351 | |||
| 352 | /** |
||
| 353 | * Constructor. |
||
| 354 | * |
||
| 355 | * @param boolean $ignoreDefaultValues Ignore the default values. |
||
| 356 | */ |
||
| 357 | public function __construct($ignoreDefaultValues = true) { |
||
| 358 | if (true === $ignoreDefaultValues) { |
||
| 359 | $this->clear(); |
||
| 360 | } |
||
| 361 | } |
||
| 362 | |||
| 363 | /** |
||
| 364 | * Clear. |
||
| 365 | * |
||
| 366 | * @return void |
||
| 367 | */ |
||
| 368 | public function clear() { |
||
| 369 | |||
| 370 | // Clear the allow point select. |
||
| 371 | $this->allowPointSelect = null; |
||
| 372 | |||
| 373 | // Clear the animation limit. |
||
| 374 | $this->animationLimit = null; |
||
| 375 | |||
| 376 | // Clear the border color. |
||
| 377 | $this->borderColor = null; |
||
| 378 | |||
| 379 | // Clear the border width. |
||
| 380 | $this->borderWidth = null; |
||
| 381 | |||
| 382 | // Clear the center. |
||
| 383 | $this->center = null; |
||
|
0 ignored issues
–
show
|
|||
| 384 | |||
| 385 | // Clear the class name. |
||
| 386 | $this->className = null; |
||
| 387 | |||
| 388 | // Clear the color index. |
||
| 389 | $this->colorIndex = null; |
||
| 390 | |||
| 391 | // Clear the colors. |
||
| 392 | $this->colors = null; |
||
|
0 ignored issues
–
show
It seems like
null of type null is incompatible with the declared type array of property $colors.
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...
|
|||
| 393 | |||
| 394 | // Clear the cursor. |
||
| 395 | $this->cursor = null; |
||
| 396 | |||
| 397 | // Clear the data. |
||
| 398 | $this->data = null; |
||
|
0 ignored issues
–
show
It seems like
null of type null is incompatible with the declared type array of property $data.
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...
|
|||
| 399 | |||
| 400 | // Clear the data labels. |
||
| 401 | if (null !== $this->dataLabels) { |
||
| 402 | $this->dataLabels->clear(); |
||
| 403 | } |
||
| 404 | |||
| 405 | // Clear the depth. |
||
| 406 | $this->depth = null; |
||
| 407 | |||
| 408 | // Clear the description. |
||
| 409 | $this->description = null; |
||
| 410 | |||
| 411 | // Clear the enable mouse tracking. |
||
| 412 | $this->enableMouseTracking = null; |
||
| 413 | |||
| 414 | // Clear the events. |
||
| 415 | if (null !== $this->events) { |
||
| 416 | $this->events->clear(); |
||
| 417 | } |
||
| 418 | |||
| 419 | // Clear the expose element to a11y. |
||
| 420 | $this->exposeElementToA11y = null; |
||
| 421 | |||
| 422 | // Clear the find nearest point by. |
||
| 423 | $this->findNearestPointBy = null; |
||
| 424 | |||
| 425 | // Clear the get extremes from all. |
||
| 426 | $this->getExtremesFromAll = null; |
||
| 427 | |||
| 428 | // Clear the height. |
||
| 429 | $this->height = null; |
||
| 430 | |||
| 431 | // Clear the id. |
||
| 432 | $this->id = null; |
||
| 433 | |||
| 434 | // Clear the index. |
||
| 435 | $this->index = null; |
||
| 436 | |||
| 437 | // Clear the keys. |
||
| 438 | $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...
|
|||
| 439 | |||
| 440 | // Clear the legend index. |
||
| 441 | $this->legendIndex = null; |
||
| 442 | |||
| 443 | // Clear the linked to. |
||
| 444 | $this->linkedTo = null; |
||
| 445 | |||
| 446 | // Clear the min size. |
||
| 447 | $this->minSize = null; |
||
| 448 | |||
| 449 | // Clear the name. |
||
| 450 | $this->name = null; |
||
| 451 | |||
| 452 | // Clear the point. |
||
| 453 | if (null !== $this->point) { |
||
| 454 | $this->point->clear(); |
||
| 455 | } |
||
| 456 | |||
| 457 | // Clear the point description formatter. |
||
| 458 | $this->pointDescriptionFormatter = null; |
||
| 459 | |||
| 460 | // Clear the reversed. |
||
| 461 | $this->reversed = null; |
||
| 462 | |||
| 463 | // Clear the selected. |
||
| 464 | $this->selected = null; |
||
| 465 | |||
| 466 | // Clear the shadow. |
||
| 467 | $this->shadow = null; |
||
| 468 | |||
| 469 | // Clear the show in legend. |
||
| 470 | $this->showInLegend = null; |
||
| 471 | |||
| 472 | // Clear the skip keyboard navigation. |
||
| 473 | $this->skipKeyboardNavigation = null; |
||
| 474 | |||
| 475 | // Clear the sliced offset. |
||
| 476 | $this->slicedOffset = null; |
||
| 477 | |||
| 478 | // Clear the states. |
||
| 479 | if (null !== $this->states) { |
||
| 480 | $this->states->clear(); |
||
| 481 | } |
||
| 482 | |||
| 483 | // Clear the sticky tracking. |
||
| 484 | $this->stickyTracking = null; |
||
| 485 | |||
| 486 | // Clear the tooltip. |
||
| 487 | $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...
|
|||
| 488 | |||
| 489 | // Clear the type. |
||
| 490 | $this->type = null; |
||
| 491 | |||
| 492 | // Clear the visible. |
||
| 493 | $this->visible = null; |
||
| 494 | |||
| 495 | // Clear the width. |
||
| 496 | $this->width = null; |
||
| 497 | |||
| 498 | // Clear the z index. |
||
| 499 | $this->zIndex = null; |
||
| 500 | |||
| 501 | // Clear the zone axis. |
||
| 502 | $this->zoneAxis = null; |
||
| 503 | |||
| 504 | // Clear the zones. |
||
| 505 | $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...
|
|||
| 506 | } |
||
| 507 | |||
| 508 | /** |
||
| 509 | * Get the allow point select. |
||
| 510 | * |
||
| 511 | * @return boolean Returns the allow point select. |
||
| 512 | */ |
||
| 513 | public function getAllowPointSelect() { |
||
| 514 | return $this->allowPointSelect; |
||
| 515 | } |
||
| 516 | |||
| 517 | /** |
||
| 518 | * Get the animation limit. |
||
| 519 | * |
||
| 520 | * @return integer Returns the animation limit. |
||
| 521 | */ |
||
| 522 | public function getAnimationLimit() { |
||
| 523 | return $this->animationLimit; |
||
| 524 | } |
||
| 525 | |||
| 526 | /** |
||
| 527 | * Get the border color. |
||
| 528 | * |
||
| 529 | * @return string Returns the border color. |
||
| 530 | */ |
||
| 531 | public function getBorderColor() { |
||
| 532 | return $this->borderColor; |
||
| 533 | } |
||
| 534 | |||
| 535 | /** |
||
| 536 | * Get the border width. |
||
| 537 | * |
||
| 538 | * @return integer Returns the border width. |
||
| 539 | */ |
||
| 540 | public function getBorderWidth() { |
||
| 541 | return $this->borderWidth; |
||
| 542 | } |
||
| 543 | |||
| 544 | /** |
||
| 545 | * Get the center. |
||
| 546 | * |
||
| 547 | * @return array Returns the center. |
||
| 548 | */ |
||
| 549 | public function getCenter() { |
||
| 550 | return $this->center; |
||
| 551 | } |
||
| 552 | |||
| 553 | /** |
||
| 554 | * Get the class name. |
||
| 555 | * |
||
| 556 | * @return string Returns the class name. |
||
| 557 | */ |
||
| 558 | public function getClassName() { |
||
| 559 | return $this->className; |
||
| 560 | } |
||
| 561 | |||
| 562 | /** |
||
| 563 | * Get the color index. |
||
| 564 | * |
||
| 565 | * @return integer Returns the color index. |
||
| 566 | */ |
||
| 567 | public function getColorIndex() { |
||
| 568 | return $this->colorIndex; |
||
| 569 | } |
||
| 570 | |||
| 571 | /** |
||
| 572 | * Get the colors. |
||
| 573 | * |
||
| 574 | * @return array Returns the colors. |
||
| 575 | */ |
||
| 576 | public function getColors() { |
||
| 577 | return $this->colors; |
||
| 578 | } |
||
| 579 | |||
| 580 | /** |
||
| 581 | * Get the cursor. |
||
| 582 | * |
||
| 583 | * @return string Returns the cursor. |
||
| 584 | */ |
||
| 585 | public function getCursor() { |
||
| 586 | return $this->cursor; |
||
| 587 | } |
||
| 588 | |||
| 589 | /** |
||
| 590 | * Get the data. |
||
| 591 | * |
||
| 592 | * @return array Returns the data. |
||
| 593 | */ |
||
| 594 | public function getData() { |
||
| 595 | return $this->data; |
||
| 596 | } |
||
| 597 | |||
| 598 | /** |
||
| 599 | * Get the data labels. |
||
| 600 | * |
||
| 601 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsDataLabels Returns the data labels. |
||
| 602 | */ |
||
| 603 | public function getDataLabels() { |
||
| 604 | return $this->dataLabels; |
||
| 605 | } |
||
| 606 | |||
| 607 | /** |
||
| 608 | * Get the depth. |
||
| 609 | * |
||
| 610 | * @return integer Returns the depth. |
||
| 611 | */ |
||
| 612 | public function getDepth() { |
||
| 613 | return $this->depth; |
||
| 614 | } |
||
| 615 | |||
| 616 | /** |
||
| 617 | * Get the description. |
||
| 618 | * |
||
| 619 | * @return string Returns the description. |
||
| 620 | */ |
||
| 621 | public function getDescription() { |
||
| 622 | return $this->description; |
||
| 623 | } |
||
| 624 | |||
| 625 | /** |
||
| 626 | * Get the enable mouse tracking. |
||
| 627 | * |
||
| 628 | * @return boolean Returns the enable mouse tracking. |
||
| 629 | */ |
||
| 630 | public function getEnableMouseTracking() { |
||
| 631 | return $this->enableMouseTracking; |
||
| 632 | } |
||
| 633 | |||
| 634 | /** |
||
| 635 | * Get the events. |
||
| 636 | * |
||
| 637 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsEvents Returns the events. |
||
| 638 | */ |
||
| 639 | public function getEvents() { |
||
| 640 | return $this->events; |
||
| 641 | } |
||
| 642 | |||
| 643 | /** |
||
| 644 | * Get the expose element to a11y. |
||
| 645 | * |
||
| 646 | * @return boolean Returns the expose element to a11y. |
||
| 647 | */ |
||
| 648 | public function getExposeElementToA11y() { |
||
| 649 | return $this->exposeElementToA11y; |
||
| 650 | } |
||
| 651 | |||
| 652 | /** |
||
| 653 | * Get the find nearest point by. |
||
| 654 | * |
||
| 655 | * @return string Returns the find nearest point by. |
||
| 656 | */ |
||
| 657 | public function getFindNearestPointBy() { |
||
| 658 | return $this->findNearestPointBy; |
||
| 659 | } |
||
| 660 | |||
| 661 | /** |
||
| 662 | * Get the get extremes from all. |
||
| 663 | * |
||
| 664 | * @return boolean Returns the get extremes from all. |
||
| 665 | */ |
||
| 666 | public function getGetExtremesFromAll() { |
||
| 667 | return $this->getExtremesFromAll; |
||
| 668 | } |
||
| 669 | |||
| 670 | /** |
||
| 671 | * Get the height. |
||
| 672 | * |
||
| 673 | * @return integer|string Returns the height. |
||
| 674 | */ |
||
| 675 | public function getHeight() { |
||
| 676 | return $this->height; |
||
| 677 | } |
||
| 678 | |||
| 679 | /** |
||
| 680 | * Get the id. |
||
| 681 | * |
||
| 682 | * @return string Returns the id. |
||
| 683 | */ |
||
| 684 | public function getId() { |
||
| 685 | return $this->id; |
||
| 686 | } |
||
| 687 | |||
| 688 | /** |
||
| 689 | * Get the index. |
||
| 690 | * |
||
| 691 | * @return integer Returns the index. |
||
| 692 | */ |
||
| 693 | public function getIndex() { |
||
| 694 | return $this->index; |
||
| 695 | } |
||
| 696 | |||
| 697 | /** |
||
| 698 | * Get the keys. |
||
| 699 | * |
||
| 700 | * @return array Returns the keys. |
||
| 701 | */ |
||
| 702 | public function getKeys() { |
||
| 703 | return $this->keys; |
||
| 704 | } |
||
| 705 | |||
| 706 | /** |
||
| 707 | * Get the legend index. |
||
| 708 | * |
||
| 709 | * @return integer Returns the legend index. |
||
| 710 | */ |
||
| 711 | public function getLegendIndex() { |
||
| 712 | return $this->legendIndex; |
||
| 713 | } |
||
| 714 | |||
| 715 | /** |
||
| 716 | * Get the linked to. |
||
| 717 | * |
||
| 718 | * @return string Returns the linked to. |
||
| 719 | */ |
||
| 720 | public function getLinkedTo() { |
||
| 721 | return $this->linkedTo; |
||
| 722 | } |
||
| 723 | |||
| 724 | /** |
||
| 725 | * Get the min size. |
||
| 726 | * |
||
| 727 | * @return integer Returns the min size. |
||
| 728 | */ |
||
| 729 | public function getMinSize() { |
||
| 730 | return $this->minSize; |
||
| 731 | } |
||
| 732 | |||
| 733 | /** |
||
| 734 | * Get the name. |
||
| 735 | * |
||
| 736 | * @return string Returns the name. |
||
| 737 | */ |
||
| 738 | public function getName() { |
||
| 739 | return $this->name; |
||
| 740 | } |
||
| 741 | |||
| 742 | /** |
||
| 743 | * Get the point. |
||
| 744 | * |
||
| 745 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsPoint Returns the point. |
||
| 746 | */ |
||
| 747 | public function getPoint() { |
||
| 748 | return $this->point; |
||
| 749 | } |
||
| 750 | |||
| 751 | /** |
||
| 752 | * Get the point description formatter. |
||
| 753 | * |
||
| 754 | * @return string Returns the point description formatter. |
||
| 755 | */ |
||
| 756 | public function getPointDescriptionFormatter() { |
||
| 757 | return $this->pointDescriptionFormatter; |
||
| 758 | } |
||
| 759 | |||
| 760 | /** |
||
| 761 | * Get the reversed. |
||
| 762 | * |
||
| 763 | * @return boolean Returns the reversed. |
||
| 764 | */ |
||
| 765 | public function getReversed() { |
||
| 766 | return $this->reversed; |
||
| 767 | } |
||
| 768 | |||
| 769 | /** |
||
| 770 | * Get the selected. |
||
| 771 | * |
||
| 772 | * @return boolean Returns the selected. |
||
| 773 | */ |
||
| 774 | public function getSelected() { |
||
| 775 | return $this->selected; |
||
| 776 | } |
||
| 777 | |||
| 778 | /** |
||
| 779 | * Get the shadow. |
||
| 780 | * |
||
| 781 | * @return boolean|array Returns the shadow. |
||
| 782 | */ |
||
| 783 | public function getShadow() { |
||
| 784 | return $this->shadow; |
||
| 785 | } |
||
| 786 | |||
| 787 | /** |
||
| 788 | * Get the show in legend. |
||
| 789 | * |
||
| 790 | * @return boolean Returns the show in legend. |
||
| 791 | */ |
||
| 792 | public function getShowInLegend() { |
||
| 793 | return $this->showInLegend; |
||
| 794 | } |
||
| 795 | |||
| 796 | /** |
||
| 797 | * Get the skip keyboard navigation. |
||
| 798 | * |
||
| 799 | * @return boolean Returns the skip keyboard navigation. |
||
| 800 | */ |
||
| 801 | public function getSkipKeyboardNavigation() { |
||
| 802 | return $this->skipKeyboardNavigation; |
||
| 803 | } |
||
| 804 | |||
| 805 | /** |
||
| 806 | * Get the sliced offset. |
||
| 807 | * |
||
| 808 | * @return integer Returns the sliced offset. |
||
| 809 | */ |
||
| 810 | public function getSlicedOffset() { |
||
| 811 | return $this->slicedOffset; |
||
| 812 | } |
||
| 813 | |||
| 814 | /** |
||
| 815 | * Get the states. |
||
| 816 | * |
||
| 817 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsStates Returns the states. |
||
| 818 | */ |
||
| 819 | public function getStates() { |
||
| 820 | return $this->states; |
||
| 821 | } |
||
| 822 | |||
| 823 | /** |
||
| 824 | * Get the sticky tracking. |
||
| 825 | * |
||
| 826 | * @return boolean Returns the sticky tracking. |
||
| 827 | */ |
||
| 828 | public function getStickyTracking() { |
||
| 829 | return $this->stickyTracking; |
||
| 830 | } |
||
| 831 | |||
| 832 | /** |
||
| 833 | * Get the tooltip. |
||
| 834 | * |
||
| 835 | * @return array Returns the tooltip. |
||
| 836 | */ |
||
| 837 | public function getTooltip() { |
||
| 838 | return $this->tooltip; |
||
| 839 | } |
||
| 840 | |||
| 841 | /** |
||
| 842 | * Get the type. |
||
| 843 | * |
||
| 844 | * @return string Returns the type. |
||
| 845 | */ |
||
| 846 | public function getType() { |
||
| 847 | return $this->type; |
||
| 848 | } |
||
| 849 | |||
| 850 | /** |
||
| 851 | * Get the visible. |
||
| 852 | * |
||
| 853 | * @return boolean Returns the visible. |
||
| 854 | */ |
||
| 855 | public function getVisible() { |
||
| 856 | return $this->visible; |
||
| 857 | } |
||
| 858 | |||
| 859 | /** |
||
| 860 | * Get the width. |
||
| 861 | * |
||
| 862 | * @return integer|string Returns the width. |
||
| 863 | */ |
||
| 864 | public function getWidth() { |
||
| 865 | return $this->width; |
||
| 866 | } |
||
| 867 | |||
| 868 | /** |
||
| 869 | * Get the z index. |
||
| 870 | * |
||
| 871 | * @return integer Returns the z index. |
||
| 872 | */ |
||
| 873 | public function getZIndex() { |
||
| 874 | return $this->zIndex; |
||
| 875 | } |
||
| 876 | |||
| 877 | /** |
||
| 878 | * Get the zone axis. |
||
| 879 | * |
||
| 880 | * @return string Returns the zone axis. |
||
| 881 | */ |
||
| 882 | public function getZoneAxis() { |
||
| 883 | return $this->zoneAxis; |
||
| 884 | } |
||
| 885 | |||
| 886 | /** |
||
| 887 | * Get the zones. |
||
| 888 | * |
||
| 889 | * @return array Returns the zones. |
||
| 890 | */ |
||
| 891 | public function getZones() { |
||
| 892 | return $this->zones; |
||
| 893 | } |
||
| 894 | |||
| 895 | /** |
||
| 896 | * Serialize this instance. |
||
| 897 | * |
||
| 898 | * @return array Returns an array representing this instance. |
||
| 899 | */ |
||
| 900 | public function jsonSerialize() { |
||
| 901 | return $this->toArray(); |
||
| 902 | } |
||
| 903 | |||
| 904 | /** |
||
| 905 | * Create a new data labels. |
||
| 906 | * |
||
| 907 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsDataLabels Returns the data labels. |
||
| 908 | */ |
||
| 909 | public function newDataLabels() { |
||
| 910 | $this->dataLabels = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsDataLabels(); |
||
| 911 | return $this->dataLabels; |
||
| 912 | } |
||
| 913 | |||
| 914 | /** |
||
| 915 | * Create a new events. |
||
| 916 | * |
||
| 917 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsEvents Returns the events. |
||
| 918 | */ |
||
| 919 | public function newEvents() { |
||
| 920 | $this->events = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsEvents(); |
||
| 921 | return $this->events; |
||
| 922 | } |
||
| 923 | |||
| 924 | /** |
||
| 925 | * Create a new point. |
||
| 926 | * |
||
| 927 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsPoint Returns the point. |
||
| 928 | */ |
||
| 929 | public function newPoint() { |
||
| 930 | $this->point = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsPoint(); |
||
| 931 | return $this->point; |
||
| 932 | } |
||
| 933 | |||
| 934 | /** |
||
| 935 | * Create a new states. |
||
| 936 | * |
||
| 937 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsStates Returns the states. |
||
| 938 | */ |
||
| 939 | public function newStates() { |
||
| 940 | $this->states = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsStates(); |
||
| 941 | return $this->states; |
||
| 942 | } |
||
| 943 | |||
| 944 | /** |
||
| 945 | * Set the allow point select. |
||
| 946 | * |
||
| 947 | * @param boolean $allowPointSelect The allow point select. |
||
| 948 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 949 | */ |
||
| 950 | public function setAllowPointSelect($allowPointSelect) { |
||
| 951 | $this->allowPointSelect = $allowPointSelect; |
||
| 952 | return $this; |
||
| 953 | } |
||
| 954 | |||
| 955 | /** |
||
| 956 | * Set the animation limit. |
||
| 957 | * |
||
| 958 | * @param integer $animationLimit The animation limit. |
||
| 959 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 960 | */ |
||
| 961 | public function setAnimationLimit($animationLimit) { |
||
| 962 | $this->animationLimit = $animationLimit; |
||
| 963 | return $this; |
||
| 964 | } |
||
| 965 | |||
| 966 | /** |
||
| 967 | * Set the border color. |
||
| 968 | * |
||
| 969 | * @param string $borderColor The border color. |
||
| 970 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 971 | */ |
||
| 972 | public function setBorderColor($borderColor) { |
||
| 973 | $this->borderColor = $borderColor; |
||
| 974 | return $this; |
||
| 975 | } |
||
| 976 | |||
| 977 | /** |
||
| 978 | * Set the border width. |
||
| 979 | * |
||
| 980 | * @param integer $borderWidth The border width. |
||
| 981 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 982 | */ |
||
| 983 | public function setBorderWidth($borderWidth) { |
||
| 984 | $this->borderWidth = $borderWidth; |
||
| 985 | return $this; |
||
| 986 | } |
||
| 987 | |||
| 988 | /** |
||
| 989 | * Set the center. |
||
| 990 | * |
||
| 991 | * @param array $center The center. |
||
| 992 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 993 | */ |
||
| 994 | public function setCenter(array $center = null) { |
||
| 995 | $this->center = $center; |
||
|
0 ignored issues
–
show
It seems like
$center can be null. However, the property $center 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...
|
|||
| 996 | return $this; |
||
| 997 | } |
||
| 998 | |||
| 999 | /** |
||
| 1000 | * Set the class name. |
||
| 1001 | * |
||
| 1002 | * @param string $className The class name. |
||
| 1003 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1004 | */ |
||
| 1005 | public function setClassName($className) { |
||
| 1006 | $this->className = $className; |
||
| 1007 | return $this; |
||
| 1008 | } |
||
| 1009 | |||
| 1010 | /** |
||
| 1011 | * Set the color index. |
||
| 1012 | * |
||
| 1013 | * @param integer $colorIndex The color index. |
||
| 1014 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1015 | */ |
||
| 1016 | public function setColorIndex($colorIndex) { |
||
| 1017 | $this->colorIndex = $colorIndex; |
||
| 1018 | return $this; |
||
| 1019 | } |
||
| 1020 | |||
| 1021 | /** |
||
| 1022 | * Set the colors. |
||
| 1023 | * |
||
| 1024 | * @param array $colors The colors. |
||
| 1025 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1026 | */ |
||
| 1027 | public function setColors(array $colors = null) { |
||
| 1028 | $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...
|
|||
| 1029 | return $this; |
||
| 1030 | } |
||
| 1031 | |||
| 1032 | /** |
||
| 1033 | * Set the cursor. |
||
| 1034 | * |
||
| 1035 | * @param string $cursor The cursor. |
||
| 1036 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1037 | */ |
||
| 1038 | public function setCursor($cursor) { |
||
| 1039 | switch ($cursor) { |
||
| 1040 | case null: |
||
| 1041 | case "crosshair": |
||
| 1042 | case "default": |
||
| 1043 | case "help": |
||
| 1044 | case "none": |
||
| 1045 | case "pointer": |
||
| 1046 | $this->cursor = $cursor; |
||
| 1047 | break; |
||
| 1048 | } |
||
| 1049 | return $this; |
||
| 1050 | } |
||
| 1051 | |||
| 1052 | /** |
||
| 1053 | * Set the data. |
||
| 1054 | * |
||
| 1055 | * @param array $data The data. |
||
| 1056 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1057 | */ |
||
| 1058 | public function setData(array $data = null) { |
||
| 1059 | $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...
|
|||
| 1060 | return $this; |
||
| 1061 | } |
||
| 1062 | |||
| 1063 | /** |
||
| 1064 | * Set the data labels. |
||
| 1065 | * |
||
| 1066 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsDataLabels $dataLabels The data labels. |
||
| 1067 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1068 | */ |
||
| 1069 | public function setDataLabels(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsDataLabels $dataLabels = null) { |
||
| 1070 | $this->dataLabels = $dataLabels; |
||
| 1071 | return $this; |
||
| 1072 | } |
||
| 1073 | |||
| 1074 | /** |
||
| 1075 | * Set the depth. |
||
| 1076 | * |
||
| 1077 | * @param integer $depth The depth. |
||
| 1078 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1079 | */ |
||
| 1080 | public function setDepth($depth) { |
||
| 1081 | $this->depth = $depth; |
||
| 1082 | return $this; |
||
| 1083 | } |
||
| 1084 | |||
| 1085 | /** |
||
| 1086 | * Set the description. |
||
| 1087 | * |
||
| 1088 | * @param string $description The description. |
||
| 1089 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1090 | */ |
||
| 1091 | public function setDescription($description) { |
||
| 1092 | $this->description = $description; |
||
| 1093 | return $this; |
||
| 1094 | } |
||
| 1095 | |||
| 1096 | /** |
||
| 1097 | * Set the enable mouse tracking. |
||
| 1098 | * |
||
| 1099 | * @param boolean $enableMouseTracking The enable mouse tracking. |
||
| 1100 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1101 | */ |
||
| 1102 | public function setEnableMouseTracking($enableMouseTracking) { |
||
| 1103 | $this->enableMouseTracking = $enableMouseTracking; |
||
| 1104 | return $this; |
||
| 1105 | } |
||
| 1106 | |||
| 1107 | /** |
||
| 1108 | * Set the events. |
||
| 1109 | * |
||
| 1110 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsEvents $events The events. |
||
| 1111 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1112 | */ |
||
| 1113 | public function setEvents(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsEvents $events = null) { |
||
| 1114 | $this->events = $events; |
||
| 1115 | return $this; |
||
| 1116 | } |
||
| 1117 | |||
| 1118 | /** |
||
| 1119 | * Set the expose element to a11y. |
||
| 1120 | * |
||
| 1121 | * @param boolean $exposeElementToA11y The expose element to a11y. |
||
| 1122 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1123 | */ |
||
| 1124 | public function setExposeElementToA11y($exposeElementToA11y) { |
||
| 1125 | $this->exposeElementToA11y = $exposeElementToA11y; |
||
| 1126 | return $this; |
||
| 1127 | } |
||
| 1128 | |||
| 1129 | /** |
||
| 1130 | * Set the find nearest point by. |
||
| 1131 | * |
||
| 1132 | * @param string $findNearestPointBy The find nearest point by. |
||
| 1133 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1134 | */ |
||
| 1135 | public function setFindNearestPointBy($findNearestPointBy) { |
||
| 1136 | switch ($findNearestPointBy) { |
||
| 1137 | case "x": |
||
| 1138 | case "xy": |
||
| 1139 | $this->findNearestPointBy = $findNearestPointBy; |
||
| 1140 | break; |
||
| 1141 | } |
||
| 1142 | return $this; |
||
| 1143 | } |
||
| 1144 | |||
| 1145 | /** |
||
| 1146 | * Set the get extremes from all. |
||
| 1147 | * |
||
| 1148 | * @param boolean $getExtremesFromAll The get extremes from all. |
||
| 1149 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1150 | */ |
||
| 1151 | public function setGetExtremesFromAll($getExtremesFromAll) { |
||
| 1152 | $this->getExtremesFromAll = $getExtremesFromAll; |
||
| 1153 | return $this; |
||
| 1154 | } |
||
| 1155 | |||
| 1156 | /** |
||
| 1157 | * Set the height. |
||
| 1158 | * |
||
| 1159 | * @param integer|string $height The height. |
||
| 1160 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1161 | */ |
||
| 1162 | public function setHeight($height) { |
||
| 1163 | $this->height = $height; |
||
| 1164 | return $this; |
||
| 1165 | } |
||
| 1166 | |||
| 1167 | /** |
||
| 1168 | * Set the id. |
||
| 1169 | * |
||
| 1170 | * @param string $id The id. |
||
| 1171 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1172 | */ |
||
| 1173 | public function setId($id) { |
||
| 1174 | $this->id = $id; |
||
| 1175 | return $this; |
||
| 1176 | } |
||
| 1177 | |||
| 1178 | /** |
||
| 1179 | * Set the index. |
||
| 1180 | * |
||
| 1181 | * @param integer $index The index. |
||
| 1182 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1183 | */ |
||
| 1184 | public function setIndex($index) { |
||
| 1185 | $this->index = $index; |
||
| 1186 | return $this; |
||
| 1187 | } |
||
| 1188 | |||
| 1189 | /** |
||
| 1190 | * Set the keys. |
||
| 1191 | * |
||
| 1192 | * @param array $keys The keys. |
||
| 1193 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1194 | */ |
||
| 1195 | public function setKeys(array $keys = null) { |
||
| 1196 | $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...
|
|||
| 1197 | return $this; |
||
| 1198 | } |
||
| 1199 | |||
| 1200 | /** |
||
| 1201 | * Set the legend index. |
||
| 1202 | * |
||
| 1203 | * @param integer $legendIndex The legend index. |
||
| 1204 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1205 | */ |
||
| 1206 | public function setLegendIndex($legendIndex) { |
||
| 1207 | $this->legendIndex = $legendIndex; |
||
| 1208 | return $this; |
||
| 1209 | } |
||
| 1210 | |||
| 1211 | /** |
||
| 1212 | * Set the linked to. |
||
| 1213 | * |
||
| 1214 | * @param string $linkedTo The linked to. |
||
| 1215 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1216 | */ |
||
| 1217 | public function setLinkedTo($linkedTo) { |
||
| 1218 | $this->linkedTo = $linkedTo; |
||
| 1219 | return $this; |
||
| 1220 | } |
||
| 1221 | |||
| 1222 | /** |
||
| 1223 | * Set the min size. |
||
| 1224 | * |
||
| 1225 | * @param integer $minSize The min size. |
||
| 1226 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1227 | */ |
||
| 1228 | public function setMinSize($minSize) { |
||
| 1229 | $this->minSize = $minSize; |
||
| 1230 | return $this; |
||
| 1231 | } |
||
| 1232 | |||
| 1233 | /** |
||
| 1234 | * Set the name. |
||
| 1235 | * |
||
| 1236 | * @param string $name The name. |
||
| 1237 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1238 | */ |
||
| 1239 | public function setName($name) { |
||
| 1240 | $this->name = $name; |
||
| 1241 | return $this; |
||
| 1242 | } |
||
| 1243 | |||
| 1244 | /** |
||
| 1245 | * Set the point. |
||
| 1246 | * |
||
| 1247 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsPoint $point The point. |
||
| 1248 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1249 | */ |
||
| 1250 | public function setPoint(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsPoint $point = null) { |
||
| 1251 | $this->point = $point; |
||
| 1252 | return $this; |
||
| 1253 | } |
||
| 1254 | |||
| 1255 | /** |
||
| 1256 | * Set the point description formatter. |
||
| 1257 | * |
||
| 1258 | * @param string $pointDescriptionFormatter The point description formatter. |
||
| 1259 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1260 | */ |
||
| 1261 | public function setPointDescriptionFormatter($pointDescriptionFormatter) { |
||
| 1262 | $this->pointDescriptionFormatter = $pointDescriptionFormatter; |
||
| 1263 | return $this; |
||
| 1264 | } |
||
| 1265 | |||
| 1266 | /** |
||
| 1267 | * Set the reversed. |
||
| 1268 | * |
||
| 1269 | * @param boolean $reversed The reversed. |
||
| 1270 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1271 | */ |
||
| 1272 | public function setReversed($reversed) { |
||
| 1273 | $this->reversed = $reversed; |
||
| 1274 | return $this; |
||
| 1275 | } |
||
| 1276 | |||
| 1277 | /** |
||
| 1278 | * Set the selected. |
||
| 1279 | * |
||
| 1280 | * @param boolean $selected The selected. |
||
| 1281 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1282 | */ |
||
| 1283 | public function setSelected($selected) { |
||
| 1284 | $this->selected = $selected; |
||
| 1285 | return $this; |
||
| 1286 | } |
||
| 1287 | |||
| 1288 | /** |
||
| 1289 | * Set the shadow. |
||
| 1290 | * |
||
| 1291 | * @param boolean|array $shadow The shadow. |
||
| 1292 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1293 | */ |
||
| 1294 | public function setShadow($shadow) { |
||
| 1295 | $this->shadow = $shadow; |
||
| 1296 | return $this; |
||
| 1297 | } |
||
| 1298 | |||
| 1299 | /** |
||
| 1300 | * Set the show in legend. |
||
| 1301 | * |
||
| 1302 | * @param boolean $showInLegend The show in legend. |
||
| 1303 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1304 | */ |
||
| 1305 | public function setShowInLegend($showInLegend) { |
||
| 1306 | $this->showInLegend = $showInLegend; |
||
| 1307 | return $this; |
||
| 1308 | } |
||
| 1309 | |||
| 1310 | /** |
||
| 1311 | * Set the skip keyboard navigation. |
||
| 1312 | * |
||
| 1313 | * @param boolean $skipKeyboardNavigation The skip keyboard navigation. |
||
| 1314 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1315 | */ |
||
| 1316 | public function setSkipKeyboardNavigation($skipKeyboardNavigation) { |
||
| 1317 | $this->skipKeyboardNavigation = $skipKeyboardNavigation; |
||
| 1318 | return $this; |
||
| 1319 | } |
||
| 1320 | |||
| 1321 | /** |
||
| 1322 | * Set the sliced offset. |
||
| 1323 | * |
||
| 1324 | * @param integer $slicedOffset The sliced offset. |
||
| 1325 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1326 | */ |
||
| 1327 | public function setSlicedOffset($slicedOffset) { |
||
| 1328 | $this->slicedOffset = $slicedOffset; |
||
| 1329 | return $this; |
||
| 1330 | } |
||
| 1331 | |||
| 1332 | /** |
||
| 1333 | * Set the states. |
||
| 1334 | * |
||
| 1335 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsStates $states The states. |
||
| 1336 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1337 | */ |
||
| 1338 | public function setStates(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Pyramid\HighchartsStates $states = null) { |
||
| 1339 | $this->states = $states; |
||
| 1340 | return $this; |
||
| 1341 | } |
||
| 1342 | |||
| 1343 | /** |
||
| 1344 | * Set the sticky tracking. |
||
| 1345 | * |
||
| 1346 | * @param boolean $stickyTracking The sticky tracking. |
||
| 1347 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1348 | */ |
||
| 1349 | public function setStickyTracking($stickyTracking) { |
||
| 1350 | $this->stickyTracking = $stickyTracking; |
||
| 1351 | return $this; |
||
| 1352 | } |
||
| 1353 | |||
| 1354 | /** |
||
| 1355 | * Set the tooltip. |
||
| 1356 | * |
||
| 1357 | * @param array $tooltip The tooltip. |
||
| 1358 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1359 | */ |
||
| 1360 | public function setTooltip(array $tooltip = null) { |
||
| 1361 | $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...
|
|||
| 1362 | return $this; |
||
| 1363 | } |
||
| 1364 | |||
| 1365 | /** |
||
| 1366 | * Set the type. |
||
| 1367 | * |
||
| 1368 | * @param string $type The type. |
||
| 1369 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1370 | */ |
||
| 1371 | public function setType($type) { |
||
| 1372 | switch ($type) { |
||
| 1373 | case null: |
||
| 1374 | case "area": |
||
| 1375 | case "arearange": |
||
| 1376 | case "areaspline": |
||
| 1377 | case "areasplinerange": |
||
| 1378 | case "boxplot": |
||
| 1379 | case "bubble": |
||
| 1380 | case "column": |
||
| 1381 | case "columnrange": |
||
| 1382 | case "errorbar": |
||
| 1383 | case "funnel": |
||
| 1384 | case "gauge": |
||
| 1385 | case "line": |
||
| 1386 | case "pie": |
||
| 1387 | case "scatter": |
||
| 1388 | case "spline": |
||
| 1389 | case "waterfall": |
||
| 1390 | $this->type = $type; |
||
| 1391 | break; |
||
| 1392 | } |
||
| 1393 | return $this; |
||
| 1394 | } |
||
| 1395 | |||
| 1396 | /** |
||
| 1397 | * Set the visible. |
||
| 1398 | * |
||
| 1399 | * @param boolean $visible The visible. |
||
| 1400 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1401 | */ |
||
| 1402 | public function setVisible($visible) { |
||
| 1403 | $this->visible = $visible; |
||
| 1404 | return $this; |
||
| 1405 | } |
||
| 1406 | |||
| 1407 | /** |
||
| 1408 | * Set the width. |
||
| 1409 | * |
||
| 1410 | * @param integer|string $width The width. |
||
| 1411 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1412 | */ |
||
| 1413 | public function setWidth($width) { |
||
| 1414 | $this->width = $width; |
||
| 1415 | return $this; |
||
| 1416 | } |
||
| 1417 | |||
| 1418 | /** |
||
| 1419 | * Set the z index. |
||
| 1420 | * |
||
| 1421 | * @param integer $zIndex The z index. |
||
| 1422 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1423 | */ |
||
| 1424 | public function setZIndex($zIndex) { |
||
| 1425 | $this->zIndex = $zIndex; |
||
| 1426 | return $this; |
||
| 1427 | } |
||
| 1428 | |||
| 1429 | /** |
||
| 1430 | * Set the zone axis. |
||
| 1431 | * |
||
| 1432 | * @param string $zoneAxis The zone axis. |
||
| 1433 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1434 | */ |
||
| 1435 | public function setZoneAxis($zoneAxis) { |
||
| 1436 | $this->zoneAxis = $zoneAxis; |
||
| 1437 | return $this; |
||
| 1438 | } |
||
| 1439 | |||
| 1440 | /** |
||
| 1441 | * Set the zones. |
||
| 1442 | * |
||
| 1443 | * @param array $zones The zones. |
||
| 1444 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPyramid Returns the highcharts pyramid. |
||
| 1445 | */ |
||
| 1446 | public function setZones(array $zones = null) { |
||
| 1447 | $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...
|
|||
| 1448 | return $this; |
||
| 1449 | } |
||
| 1450 | |||
| 1451 | /** |
||
| 1452 | * Convert into an array representing this instance. |
||
| 1453 | * |
||
| 1454 | * @return array Returns an array representing this instance. |
||
| 1455 | */ |
||
| 1456 | public function toArray() { |
||
| 1457 | |||
| 1458 | // Initialize the output. |
||
| 1459 | $output = []; |
||
| 1460 | |||
| 1461 | // Set the allow point select. |
||
| 1462 | ArrayUtility::set($output, "allowPointSelect", $this->allowPointSelect, [null]); |
||
| 1463 | |||
| 1464 | // Set the animation limit. |
||
| 1465 | ArrayUtility::set($output, "animationLimit", $this->animationLimit, [null]); |
||
| 1466 | |||
| 1467 | // Set the border color. |
||
| 1468 | ArrayUtility::set($output, "borderColor", $this->borderColor, [null]); |
||
| 1469 | |||
| 1470 | // Set the border width. |
||
| 1471 | ArrayUtility::set($output, "borderWidth", $this->borderWidth, [null]); |
||
| 1472 | |||
| 1473 | // Set the center. |
||
| 1474 | ArrayUtility::set($output, "center", $this->center, [null]); |
||
| 1475 | |||
| 1476 | // Set the class name. |
||
| 1477 | ArrayUtility::set($output, "className", $this->className, [null]); |
||
| 1478 | |||
| 1479 | // Set the color index. |
||
| 1480 | ArrayUtility::set($output, "colorIndex", $this->colorIndex, [null]); |
||
| 1481 | |||
| 1482 | // Set the colors. |
||
| 1483 | ArrayUtility::set($output, "colors", $this->colors, [null]); |
||
| 1484 | |||
| 1485 | // Set the cursor. |
||
| 1486 | ArrayUtility::set($output, "cursor", $this->cursor, [null]); |
||
| 1487 | |||
| 1488 | // Set the data. |
||
| 1489 | ArrayUtility::set($output, "data", $this->data, [null]); |
||
| 1490 | |||
| 1491 | // Set the data labels. |
||
| 1492 | if (null !== $this->dataLabels) { |
||
| 1493 | ArrayUtility::set($output, "dataLabels", $this->dataLabels->toArray(), []); |
||
| 1494 | } |
||
| 1495 | |||
| 1496 | // Set the depth. |
||
| 1497 | ArrayUtility::set($output, "depth", $this->depth, [null]); |
||
| 1498 | |||
| 1499 | // Set the description. |
||
| 1500 | ArrayUtility::set($output, "description", $this->description, [null]); |
||
| 1501 | |||
| 1502 | // Set the enable mouse tracking. |
||
| 1503 | ArrayUtility::set($output, "enableMouseTracking", $this->enableMouseTracking, [null]); |
||
| 1504 | |||
| 1505 | // Set the events. |
||
| 1506 | if (null !== $this->events) { |
||
| 1507 | ArrayUtility::set($output, "events", $this->events->toArray(), []); |
||
| 1508 | } |
||
| 1509 | |||
| 1510 | // Set the expose element to a11y. |
||
| 1511 | ArrayUtility::set($output, "exposeElementToA11y", $this->exposeElementToA11y, [null]); |
||
| 1512 | |||
| 1513 | // Set the find nearest point by. |
||
| 1514 | ArrayUtility::set($output, "findNearestPointBy", $this->findNearestPointBy, [null]); |
||
| 1515 | |||
| 1516 | // Set the get extremes from all. |
||
| 1517 | ArrayUtility::set($output, "getExtremesFromAll", $this->getExtremesFromAll, [null]); |
||
| 1518 | |||
| 1519 | // Set the height. |
||
| 1520 | ArrayUtility::set($output, "height", $this->height, [null]); |
||
| 1521 | |||
| 1522 | // Set the id. |
||
| 1523 | ArrayUtility::set($output, "id", $this->id, [null]); |
||
| 1524 | |||
| 1525 | // Set the index. |
||
| 1526 | ArrayUtility::set($output, "index", $this->index, [null]); |
||
| 1527 | |||
| 1528 | // Set the keys. |
||
| 1529 | ArrayUtility::set($output, "keys", $this->keys, [null]); |
||
| 1530 | |||
| 1531 | // Set the legend index. |
||
| 1532 | ArrayUtility::set($output, "legendIndex", $this->legendIndex, [null]); |
||
| 1533 | |||
| 1534 | // Set the linked to. |
||
| 1535 | ArrayUtility::set($output, "linkedTo", $this->linkedTo, [null]); |
||
| 1536 | |||
| 1537 | // Set the min size. |
||
| 1538 | ArrayUtility::set($output, "minSize", $this->minSize, [null]); |
||
| 1539 | |||
| 1540 | // Set the name. |
||
| 1541 | ArrayUtility::set($output, "name", $this->name, [null]); |
||
| 1542 | |||
| 1543 | // Set the point. |
||
| 1544 | if (null !== $this->point) { |
||
| 1545 | ArrayUtility::set($output, "point", $this->point->toArray(), []); |
||
| 1546 | } |
||
| 1547 | |||
| 1548 | // Set the point description formatter. |
||
| 1549 | ArrayUtility::set($output, "pointDescriptionFormatter", $this->pointDescriptionFormatter, [null]); |
||
| 1550 | |||
| 1551 | // Set the reversed. |
||
| 1552 | ArrayUtility::set($output, "reversed", $this->reversed, [null]); |
||
| 1553 | |||
| 1554 | // Set the selected. |
||
| 1555 | ArrayUtility::set($output, "selected", $this->selected, [null]); |
||
| 1556 | |||
| 1557 | // Set the shadow. |
||
| 1558 | ArrayUtility::set($output, "shadow", $this->shadow, [null]); |
||
| 1559 | |||
| 1560 | // Set the show in legend. |
||
| 1561 | ArrayUtility::set($output, "showInLegend", $this->showInLegend, [null]); |
||
| 1562 | |||
| 1563 | // Set the skip keyboard navigation. |
||
| 1564 | ArrayUtility::set($output, "skipKeyboardNavigation", $this->skipKeyboardNavigation, [null]); |
||
| 1565 | |||
| 1566 | // Set the sliced offset. |
||
| 1567 | ArrayUtility::set($output, "slicedOffset", $this->slicedOffset, [null]); |
||
| 1568 | |||
| 1569 | // Set the states. |
||
| 1570 | if (null !== $this->states) { |
||
| 1571 | ArrayUtility::set($output, "states", $this->states->toArray(), []); |
||
| 1572 | } |
||
| 1573 | |||
| 1574 | // Set the sticky tracking. |
||
| 1575 | ArrayUtility::set($output, "stickyTracking", $this->stickyTracking, [null]); |
||
| 1576 | |||
| 1577 | // Set the tooltip. |
||
| 1578 | ArrayUtility::set($output, "tooltip", $this->tooltip, [null]); |
||
| 1579 | |||
| 1580 | // Set the type. |
||
| 1581 | ArrayUtility::set($output, "type", $this->type, [null]); |
||
| 1582 | |||
| 1583 | // Set the visible. |
||
| 1584 | ArrayUtility::set($output, "visible", $this->visible, [null]); |
||
| 1585 | |||
| 1586 | // Set the width. |
||
| 1587 | ArrayUtility::set($output, "width", $this->width, [null]); |
||
| 1588 | |||
| 1589 | // Set the z index. |
||
| 1590 | ArrayUtility::set($output, "zIndex", $this->zIndex, [null]); |
||
| 1591 | |||
| 1592 | // Set the zone axis. |
||
| 1593 | ArrayUtility::set($output, "zoneAxis", $this->zoneAxis, [null]); |
||
| 1594 | |||
| 1595 | // Set the zones. |
||
| 1596 | ArrayUtility::set($output, "zones", $this->zones, [null]); |
||
| 1597 | |||
| 1598 | // Return the output. |
||
| 1599 | return $output; |
||
| 1600 | } |
||
| 1601 | |||
| 1602 | } |
||
| 1603 |
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..