Issues (1377)

Security Analysis    no request data  

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

API/Chart/Series/HighchartsWaterfall.php (10 issues)

Upgrade to new PHP Analysis Engine

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

Loading history...
1511
        return $this;
1512
    }
1513
1514
    /**
1515
     * Set the crisp.
1516
     *
1517
     * @param boolean $crisp The crisp.
1518
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1519
     */
1520
    public function setCrisp($crisp) {
1521
        $this->crisp = $crisp;
1522
        return $this;
1523
    }
1524
1525
    /**
1526
     * Set the cursor.
1527
     *
1528
     * @param string $cursor The cursor.
1529
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1530
     */
1531
    public function setCursor($cursor) {
1532
        switch ($cursor) {
1533
            case null:
1534
            case "crosshair":
1535
            case "default":
1536
            case "help":
1537
            case "none":
1538
            case "pointer":
1539
            $this->cursor = $cursor;
1540
            break;
1541
        }
1542
        return $this;
1543
    }
1544
1545
    /**
1546
     * Set the dash style.
1547
     *
1548
     * @param string $dashStyle The dash style.
1549
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1550
     */
1551
    public function setDashStyle($dashStyle) {
1552
        $this->dashStyle = $dashStyle;
1553
        return $this;
1554
    }
1555
1556
    /**
1557
     * Set the data.
1558
     *
1559
     * @param array $data The data.
1560
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1561
     */
1562
    public function setData(array $data = null) {
1563
        $this->data = $data;
0 ignored issues
show
Documentation Bug introduced by
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 $needle but will only accept an array as $haystack.

Loading history...
1564
        return $this;
1565
    }
1566
1567
    /**
1568
     * Set the data labels.
1569
     *
1570
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Waterfall\HighchartsDataLabels $dataLabels The data labels.
1571
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1572
     */
1573
    public function setDataLabels(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Waterfall\HighchartsDataLabels $dataLabels = null) {
1574
        $this->dataLabels = $dataLabels;
1575
        return $this;
1576
    }
1577
1578
    /**
1579
     * Set the depth.
1580
     *
1581
     * @param integer $depth The depth.
1582
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1583
     */
1584
    public function setDepth($depth) {
1585
        $this->depth = $depth;
1586
        return $this;
1587
    }
1588
1589
    /**
1590
     * Set the description.
1591
     *
1592
     * @param string $description The description.
1593
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1594
     */
1595
    public function setDescription($description) {
1596
        $this->description = $description;
1597
        return $this;
1598
    }
1599
1600
    /**
1601
     * Set the edge color.
1602
     *
1603
     * @param string $edgeColor The edge color.
1604
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1605
     */
1606
    public function setEdgeColor($edgeColor) {
1607
        $this->edgeColor = $edgeColor;
1608
        return $this;
1609
    }
1610
1611
    /**
1612
     * Set the edge width.
1613
     *
1614
     * @param integer $edgeWidth The edge width.
1615
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1616
     */
1617
    public function setEdgeWidth($edgeWidth) {
1618
        $this->edgeWidth = $edgeWidth;
1619
        return $this;
1620
    }
1621
1622
    /**
1623
     * Set the enable mouse tracking.
1624
     *
1625
     * @param boolean $enableMouseTracking The enable mouse tracking.
1626
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1627
     */
1628
    public function setEnableMouseTracking($enableMouseTracking) {
1629
        $this->enableMouseTracking = $enableMouseTracking;
1630
        return $this;
1631
    }
1632
1633
    /**
1634
     * Set the events.
1635
     *
1636
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Waterfall\HighchartsEvents $events The events.
1637
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1638
     */
1639
    public function setEvents(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Waterfall\HighchartsEvents $events = null) {
1640
        $this->events = $events;
1641
        return $this;
1642
    }
1643
1644
    /**
1645
     * Set the expose element to a11y.
1646
     *
1647
     * @param boolean $exposeElementToA11y The expose element to a11y.
1648
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1649
     */
1650
    public function setExposeElementToA11y($exposeElementToA11y) {
1651
        $this->exposeElementToA11y = $exposeElementToA11y;
1652
        return $this;
1653
    }
1654
1655
    /**
1656
     * Set the find nearest point by.
1657
     *
1658
     * @param string $findNearestPointBy The find nearest point by.
1659
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1660
     */
1661
    public function setFindNearestPointBy($findNearestPointBy) {
1662
        switch ($findNearestPointBy) {
1663
            case "x":
1664
            case "xy":
1665
            $this->findNearestPointBy = $findNearestPointBy;
1666
            break;
1667
        }
1668
        return $this;
1669
    }
1670
1671
    /**
1672
     * Set the get extremes from all.
1673
     *
1674
     * @param boolean $getExtremesFromAll The get extremes from all.
1675
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1676
     */
1677
    public function setGetExtremesFromAll($getExtremesFromAll) {
1678
        $this->getExtremesFromAll = $getExtremesFromAll;
1679
        return $this;
1680
    }
1681
1682
    /**
1683
     * Set the group padding.
1684
     *
1685
     * @param integer $groupPadding The group padding.
1686
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1687
     */
1688
    public function setGroupPadding($groupPadding) {
1689
        $this->groupPadding = $groupPadding;
1690
        return $this;
1691
    }
1692
1693
    /**
1694
     * Set the group z padding.
1695
     *
1696
     * @param integer $groupZPadding The group z padding.
1697
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1698
     */
1699
    public function setGroupZPadding($groupZPadding) {
1700
        $this->groupZPadding = $groupZPadding;
1701
        return $this;
1702
    }
1703
1704
    /**
1705
     * Set the grouping.
1706
     *
1707
     * @param boolean $grouping The grouping.
1708
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1709
     */
1710
    public function setGrouping($grouping) {
1711
        $this->grouping = $grouping;
1712
        return $this;
1713
    }
1714
1715
    /**
1716
     * Set the id.
1717
     *
1718
     * @param string $id The id.
1719
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1720
     */
1721
    public function setId($id) {
1722
        $this->id = $id;
1723
        return $this;
1724
    }
1725
1726
    /**
1727
     * Set the index.
1728
     *
1729
     * @param integer $index The index.
1730
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1731
     */
1732
    public function setIndex($index) {
1733
        $this->index = $index;
1734
        return $this;
1735
    }
1736
1737
    /**
1738
     * Set the keys.
1739
     *
1740
     * @param array $keys The keys.
1741
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1742
     */
1743
    public function setKeys(array $keys = null) {
1744
        $this->keys = $keys;
0 ignored issues
show
Documentation Bug introduced by
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 $needle but will only accept an array as $haystack.

Loading history...
1745
        return $this;
1746
    }
1747
1748
    /**
1749
     * Set the legend index.
1750
     *
1751
     * @param integer $legendIndex The legend index.
1752
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1753
     */
1754
    public function setLegendIndex($legendIndex) {
1755
        $this->legendIndex = $legendIndex;
1756
        return $this;
1757
    }
1758
1759
    /**
1760
     * Set the line color.
1761
     *
1762
     * @param string $lineColor The line color.
1763
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1764
     */
1765
    public function setLineColor($lineColor) {
1766
        $this->lineColor = $lineColor;
1767
        return $this;
1768
    }
1769
1770
    /**
1771
     * Set the line width.
1772
     *
1773
     * @param integer $lineWidth The line width.
1774
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1775
     */
1776
    public function setLineWidth($lineWidth) {
1777
        $this->lineWidth = $lineWidth;
1778
        return $this;
1779
    }
1780
1781
    /**
1782
     * Set the linked to.
1783
     *
1784
     * @param string $linkedTo The linked to.
1785
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1786
     */
1787
    public function setLinkedTo($linkedTo) {
1788
        $this->linkedTo = $linkedTo;
1789
        return $this;
1790
    }
1791
1792
    /**
1793
     * Set the max point width.
1794
     *
1795
     * @param integer $maxPointWidth The max point width.
1796
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1797
     */
1798
    public function setMaxPointWidth($maxPointWidth) {
1799
        $this->maxPointWidth = $maxPointWidth;
1800
        return $this;
1801
    }
1802
1803
    /**
1804
     * Set the min point length.
1805
     *
1806
     * @param integer $minPointLength The min point length.
1807
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1808
     */
1809
    public function setMinPointLength($minPointLength) {
1810
        $this->minPointLength = $minPointLength;
1811
        return $this;
1812
    }
1813
1814
    /**
1815
     * Set the name.
1816
     *
1817
     * @param string $name The name.
1818
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1819
     */
1820
    public function setName($name) {
1821
        $this->name = $name;
1822
        return $this;
1823
    }
1824
1825
    /**
1826
     * Set the point.
1827
     *
1828
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Waterfall\HighchartsPoint $point The point.
1829
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1830
     */
1831
    public function setPoint(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Waterfall\HighchartsPoint $point = null) {
1832
        $this->point = $point;
1833
        return $this;
1834
    }
1835
1836
    /**
1837
     * Set the point description formatter.
1838
     *
1839
     * @param string $pointDescriptionFormatter The point description formatter.
1840
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1841
     */
1842
    public function setPointDescriptionFormatter($pointDescriptionFormatter) {
1843
        $this->pointDescriptionFormatter = $pointDescriptionFormatter;
1844
        return $this;
1845
    }
1846
1847
    /**
1848
     * Set the point interval.
1849
     *
1850
     * @param integer $pointInterval The point interval.
1851
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1852
     */
1853
    public function setPointInterval($pointInterval) {
1854
        $this->pointInterval = $pointInterval;
1855
        return $this;
1856
    }
1857
1858
    /**
1859
     * Set the point interval unit.
1860
     *
1861
     * @param string $pointIntervalUnit The point interval unit.
1862
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1863
     */
1864
    public function setPointIntervalUnit($pointIntervalUnit) {
1865
        switch ($pointIntervalUnit) {
1866
            case null:
1867
            case "day":
1868
            case "month":
1869
            case "year":
1870
            $this->pointIntervalUnit = $pointIntervalUnit;
1871
            break;
1872
        }
1873
        return $this;
1874
    }
1875
1876
    /**
1877
     * Set the point padding.
1878
     *
1879
     * @param integer $pointPadding The point padding.
1880
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1881
     */
1882
    public function setPointPadding($pointPadding) {
1883
        $this->pointPadding = $pointPadding;
1884
        return $this;
1885
    }
1886
1887
    /**
1888
     * Set the point placement.
1889
     *
1890
     * @param string|integer $pointPlacement The point placement.
1891
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1892
     */
1893
    public function setPointPlacement($pointPlacement) {
1894
        switch ($pointPlacement) {
1895
            case null:
1896
            case "between":
1897
            case "on":
1898
            $this->pointPlacement = $pointPlacement;
1899
            break;
1900
        }
1901
        return $this;
1902
    }
1903
1904
    /**
1905
     * Set the point range.
1906
     *
1907
     * @param integer $pointRange The point range.
1908
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1909
     */
1910
    public function setPointRange($pointRange) {
1911
        $this->pointRange = $pointRange;
1912
        return $this;
1913
    }
1914
1915
    /**
1916
     * Set the point start.
1917
     *
1918
     * @param integer $pointStart The point start.
1919
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1920
     */
1921
    public function setPointStart($pointStart) {
1922
        $this->pointStart = $pointStart;
1923
        return $this;
1924
    }
1925
1926
    /**
1927
     * Set the point width.
1928
     *
1929
     * @param integer $pointWidth The point width.
1930
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1931
     */
1932
    public function setPointWidth($pointWidth) {
1933
        $this->pointWidth = $pointWidth;
1934
        return $this;
1935
    }
1936
1937
    /**
1938
     * Set the selected.
1939
     *
1940
     * @param boolean $selected The selected.
1941
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1942
     */
1943
    public function setSelected($selected) {
1944
        $this->selected = $selected;
1945
        return $this;
1946
    }
1947
1948
    /**
1949
     * Set the shadow.
1950
     *
1951
     * @param boolean|array $shadow The shadow.
1952
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1953
     */
1954
    public function setShadow($shadow) {
1955
        $this->shadow = $shadow;
1956
        return $this;
1957
    }
1958
1959
    /**
1960
     * Set the show checkbox.
1961
     *
1962
     * @param boolean $showCheckbox The show checkbox.
1963
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1964
     */
1965
    public function setShowCheckbox($showCheckbox) {
1966
        $this->showCheckbox = $showCheckbox;
1967
        return $this;
1968
    }
1969
1970
    /**
1971
     * Set the show in legend.
1972
     *
1973
     * @param boolean $showInLegend The show in legend.
1974
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1975
     */
1976
    public function setShowInLegend($showInLegend) {
1977
        $this->showInLegend = $showInLegend;
1978
        return $this;
1979
    }
1980
1981
    /**
1982
     * Set the skip keyboard navigation.
1983
     *
1984
     * @param boolean $skipKeyboardNavigation The skip keyboard navigation.
1985
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1986
     */
1987
    public function setSkipKeyboardNavigation($skipKeyboardNavigation) {
1988
        $this->skipKeyboardNavigation = $skipKeyboardNavigation;
1989
        return $this;
1990
    }
1991
1992
    /**
1993
     * Set the soft threshold.
1994
     *
1995
     * @param boolean $softThreshold The soft threshold.
1996
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
1997
     */
1998
    public function setSoftThreshold($softThreshold) {
1999
        $this->softThreshold = $softThreshold;
2000
        return $this;
2001
    }
2002
2003
    /**
2004
     * Set the stack.
2005
     *
2006
     * @param string $stack The stack.
2007
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
2008
     */
2009
    public function setStack($stack) {
2010
        $this->stack = $stack;
2011
        return $this;
2012
    }
2013
2014
    /**
2015
     * Set the states.
2016
     *
2017
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Waterfall\HighchartsStates $states The states.
2018
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
2019
     */
2020
    public function setStates(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Waterfall\HighchartsStates $states = null) {
2021
        $this->states = $states;
2022
        return $this;
2023
    }
2024
2025
    /**
2026
     * Set the sticky tracking.
2027
     *
2028
     * @param boolean $stickyTracking The sticky tracking.
2029
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
2030
     */
2031
    public function setStickyTracking($stickyTracking) {
2032
        $this->stickyTracking = $stickyTracking;
2033
        return $this;
2034
    }
2035
2036
    /**
2037
     * Set the threshold.
2038
     *
2039
     * @param integer $threshold The threshold.
2040
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
2041
     */
2042
    public function setThreshold($threshold) {
2043
        $this->threshold = $threshold;
2044
        return $this;
2045
    }
2046
2047
    /**
2048
     * Set the tooltip.
2049
     *
2050
     * @param array $tooltip The tooltip.
2051
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
2052
     */
2053
    public function setTooltip(array $tooltip = null) {
2054
        $this->tooltip = $tooltip;
0 ignored issues
show
Documentation Bug introduced by
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 $needle but will only accept an array as $haystack.

Loading history...
2055
        return $this;
2056
    }
2057
2058
    /**
2059
     * Set the type.
2060
     *
2061
     * @param string $type The type.
2062
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
2063
     */
2064
    public function setType($type) {
2065
        switch ($type) {
2066
            case null:
2067
            case "area":
2068
            case "arearange":
2069
            case "areaspline":
2070
            case "areasplinerange":
2071
            case "boxplot":
2072
            case "bubble":
2073
            case "column":
2074
            case "columnrange":
2075
            case "errorbar":
2076
            case "funnel":
2077
            case "gauge":
2078
            case "line":
2079
            case "pie":
2080
            case "scatter":
2081
            case "spline":
2082
            case "waterfall":
2083
            $this->type = $type;
2084
            break;
2085
        }
2086
        return $this;
2087
    }
2088
2089
    /**
2090
     * Set the up color.
2091
     *
2092
     * @param string $upColor The up color.
2093
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
2094
     */
2095
    public function setUpColor($upColor) {
2096
        $this->upColor = $upColor;
2097
        return $this;
2098
    }
2099
2100
    /**
2101
     * Set the visible.
2102
     *
2103
     * @param boolean $visible The visible.
2104
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
2105
     */
2106
    public function setVisible($visible) {
2107
        $this->visible = $visible;
2108
        return $this;
2109
    }
2110
2111
    /**
2112
     * Set the x axis.
2113
     *
2114
     * @param integer|string $xAxis The x axis.
2115
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
2116
     */
2117
    public function setXAxis($xAxis) {
2118
        $this->xAxis = $xAxis;
2119
        return $this;
2120
    }
2121
2122
    /**
2123
     * Set the y axis.
2124
     *
2125
     * @param integer|string $yAxis The y axis.
2126
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
2127
     */
2128
    public function setYAxis($yAxis) {
2129
        $this->yAxis = $yAxis;
2130
        return $this;
2131
    }
2132
2133
    /**
2134
     * Set the z index.
2135
     *
2136
     * @param integer $zIndex The z index.
2137
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
2138
     */
2139
    public function setZIndex($zIndex) {
2140
        $this->zIndex = $zIndex;
2141
        return $this;
2142
    }
2143
2144
    /**
2145
     * Set the zone axis.
2146
     *
2147
     * @param string $zoneAxis The zone axis.
2148
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
2149
     */
2150
    public function setZoneAxis($zoneAxis) {
2151
        $this->zoneAxis = $zoneAxis;
2152
        return $this;
2153
    }
2154
2155
    /**
2156
     * Set the zones.
2157
     *
2158
     * @param array $zones The zones.
2159
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsWaterfall Returns the highcharts waterfall.
2160
     */
2161
    public function setZones(array $zones = null) {
2162
        $this->zones = $zones;
0 ignored issues
show
Documentation Bug introduced by
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 $needle but will only accept an array as $haystack.

Loading history...
2163
        return $this;
2164
    }
2165
2166
    /**
2167
     * Convert into an array representing this instance.
2168
     *
2169
     * @return array Returns an array representing this instance.
2170
     */
2171
    public function toArray() {
2172
2173
        // Initialize the output.
2174
        $output = [];
2175
2176
        // Set the allow point select.
2177
        ArrayUtility::set($output, "allowPointSelect", $this->allowPointSelect, [null]);
2178
2179
        // Set the animation.
2180
        ArrayUtility::set($output, "animation", $this->animation, [null]);
2181
2182
        // Set the animation limit.
2183
        ArrayUtility::set($output, "animationLimit", $this->animationLimit, [null]);
2184
2185
        // Set the border color.
2186
        ArrayUtility::set($output, "borderColor", $this->borderColor, [null]);
2187
2188
        // Set the border radius.
2189
        ArrayUtility::set($output, "borderRadius", $this->borderRadius, [null]);
2190
2191
        // Set the border width.
2192
        ArrayUtility::set($output, "borderWidth", $this->borderWidth, [null]);
2193
2194
        // Set the class name.
2195
        ArrayUtility::set($output, "className", $this->className, [null]);
2196
2197
        // Set the color.
2198
        ArrayUtility::set($output, "color", $this->color, [null]);
2199
2200
        // Set the color by point.
2201
        ArrayUtility::set($output, "colorByPoint", $this->colorByPoint, [null]);
2202
2203
        // Set the color index.
2204
        ArrayUtility::set($output, "colorIndex", $this->colorIndex, [null]);
2205
2206
        // Set the colors.
2207
        ArrayUtility::set($output, "colors", $this->colors, [null]);
2208
2209
        // Set the crisp.
2210
        ArrayUtility::set($output, "crisp", $this->crisp, [null]);
2211
2212
        // Set the cursor.
2213
        ArrayUtility::set($output, "cursor", $this->cursor, [null]);
2214
2215
        // Set the dash style.
2216
        ArrayUtility::set($output, "dashStyle", $this->dashStyle, [null]);
2217
2218
        // Set the data.
2219
        ArrayUtility::set($output, "data", $this->data, [null]);
2220
2221
        // Set the data labels.
2222
        if (null !== $this->dataLabels) {
2223
            ArrayUtility::set($output, "dataLabels", $this->dataLabels->toArray(), []);
2224
        }
2225
2226
        // Set the depth.
2227
        ArrayUtility::set($output, "depth", $this->depth, [null]);
2228
2229
        // Set the description.
2230
        ArrayUtility::set($output, "description", $this->description, [null]);
2231
2232
        // Set the edge color.
2233
        ArrayUtility::set($output, "edgeColor", $this->edgeColor, [null]);
2234
2235
        // Set the edge width.
2236
        ArrayUtility::set($output, "edgeWidth", $this->edgeWidth, [null]);
2237
2238
        // Set the enable mouse tracking.
2239
        ArrayUtility::set($output, "enableMouseTracking", $this->enableMouseTracking, [null]);
2240
2241
        // Set the events.
2242
        if (null !== $this->events) {
2243
            ArrayUtility::set($output, "events", $this->events->toArray(), []);
2244
        }
2245
2246
        // Set the expose element to a11y.
2247
        ArrayUtility::set($output, "exposeElementToA11y", $this->exposeElementToA11y, [null]);
2248
2249
        // Set the find nearest point by.
2250
        ArrayUtility::set($output, "findNearestPointBy", $this->findNearestPointBy, [null]);
2251
2252
        // Set the get extremes from all.
2253
        ArrayUtility::set($output, "getExtremesFromAll", $this->getExtremesFromAll, [null]);
2254
2255
        // Set the group padding.
2256
        ArrayUtility::set($output, "groupPadding", $this->groupPadding, [null]);
2257
2258
        // Set the group z padding.
2259
        ArrayUtility::set($output, "groupZPadding", $this->groupZPadding, [null]);
2260
2261
        // Set the grouping.
2262
        ArrayUtility::set($output, "grouping", $this->grouping, [null]);
2263
2264
        // Set the id.
2265
        ArrayUtility::set($output, "id", $this->id, [null]);
2266
2267
        // Set the index.
2268
        ArrayUtility::set($output, "index", $this->index, [null]);
2269
2270
        // Set the keys.
2271
        ArrayUtility::set($output, "keys", $this->keys, [null]);
2272
2273
        // Set the legend index.
2274
        ArrayUtility::set($output, "legendIndex", $this->legendIndex, [null]);
2275
2276
        // Set the line color.
2277
        ArrayUtility::set($output, "lineColor", $this->lineColor, [null]);
2278
2279
        // Set the line width.
2280
        ArrayUtility::set($output, "lineWidth", $this->lineWidth, [null]);
2281
2282
        // Set the linked to.
2283
        ArrayUtility::set($output, "linkedTo", $this->linkedTo, [null]);
2284
2285
        // Set the max point width.
2286
        ArrayUtility::set($output, "maxPointWidth", $this->maxPointWidth, [null]);
2287
2288
        // Set the min point length.
2289
        ArrayUtility::set($output, "minPointLength", $this->minPointLength, [null]);
2290
2291
        // Set the name.
2292
        ArrayUtility::set($output, "name", $this->name, [null]);
2293
2294
        // Set the point.
2295
        if (null !== $this->point) {
2296
            ArrayUtility::set($output, "point", $this->point->toArray(), []);
2297
        }
2298
2299
        // Set the point description formatter.
2300
        ArrayUtility::set($output, "pointDescriptionFormatter", $this->pointDescriptionFormatter, [null]);
2301
2302
        // Set the point interval.
2303
        ArrayUtility::set($output, "pointInterval", $this->pointInterval, [null]);
2304
2305
        // Set the point interval unit.
2306
        ArrayUtility::set($output, "pointIntervalUnit", $this->pointIntervalUnit, [null]);
2307
2308
        // Set the point padding.
2309
        ArrayUtility::set($output, "pointPadding", $this->pointPadding, [null]);
2310
2311
        // Set the point placement.
2312
        ArrayUtility::set($output, "pointPlacement", $this->pointPlacement, [null]);
2313
2314
        // Set the point range.
2315
        ArrayUtility::set($output, "pointRange", $this->pointRange, [null]);
2316
2317
        // Set the point start.
2318
        ArrayUtility::set($output, "pointStart", $this->pointStart, [null]);
2319
2320
        // Set the point width.
2321
        ArrayUtility::set($output, "pointWidth", $this->pointWidth, [null]);
2322
2323
        // Set the selected.
2324
        ArrayUtility::set($output, "selected", $this->selected, [null]);
2325
2326
        // Set the shadow.
2327
        ArrayUtility::set($output, "shadow", $this->shadow, [null]);
2328
2329
        // Set the show checkbox.
2330
        ArrayUtility::set($output, "showCheckbox", $this->showCheckbox, [null]);
2331
2332
        // Set the show in legend.
2333
        ArrayUtility::set($output, "showInLegend", $this->showInLegend, [null]);
2334
2335
        // Set the skip keyboard navigation.
2336
        ArrayUtility::set($output, "skipKeyboardNavigation", $this->skipKeyboardNavigation, [null]);
2337
2338
        // Set the soft threshold.
2339
        ArrayUtility::set($output, "softThreshold", $this->softThreshold, [null]);
2340
2341
        // Set the stack.
2342
        ArrayUtility::set($output, "stack", $this->stack, [null]);
2343
2344
        // Set the states.
2345
        if (null !== $this->states) {
2346
            ArrayUtility::set($output, "states", $this->states->toArray(), []);
2347
        }
2348
2349
        // Set the sticky tracking.
2350
        ArrayUtility::set($output, "stickyTracking", $this->stickyTracking, [null]);
2351
2352
        // Set the threshold.
2353
        ArrayUtility::set($output, "threshold", $this->threshold, [null]);
2354
2355
        // Set the tooltip.
2356
        ArrayUtility::set($output, "tooltip", $this->tooltip, [null]);
2357
2358
        // Set the type.
2359
        ArrayUtility::set($output, "type", $this->type, [null]);
2360
2361
        // Set the up color.
2362
        ArrayUtility::set($output, "upColor", $this->upColor, [null]);
2363
2364
        // Set the visible.
2365
        ArrayUtility::set($output, "visible", $this->visible, [null]);
2366
2367
        // Set the x axis.
2368
        ArrayUtility::set($output, "xAxis", $this->xAxis, [null]);
2369
2370
        // Set the y axis.
2371
        ArrayUtility::set($output, "yAxis", $this->yAxis, [null]);
2372
2373
        // Set the z index.
2374
        ArrayUtility::set($output, "zIndex", $this->zIndex, [null]);
2375
2376
        // Set the zone axis.
2377
        ArrayUtility::set($output, "zoneAxis", $this->zoneAxis, [null]);
2378
2379
        // Set the zones.
2380
        ArrayUtility::set($output, "zones", $this->zones, [null]);
2381
2382
        // Return the output.
2383
        return $output;
2384
    }
2385
2386
}
2387