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