HighchartsBubble::setStates()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/**
4
 * This file is part of the highcharts-bundle package.
5
 *
6
 * (c) 2017 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions;
13
14
use JsonSerializable;
15
use WBW\Library\Core\Utility\Argument\ArrayUtility;
16
17
/**
18
 * Highcharts bubble.
19
 *
20
 * @author webeweb <https://github.com/webeweb/>
21
 * @package WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions
22
 * @version 5.0.14
23
 * @final
24
 */
25
final class HighchartsBubble implements JsonSerializable {
26
27
    /**
28
     * Allow point select.
29
     *
30
     * @var boolean
31
     * @since 1.2.0
32
     */
33
    private $allowPointSelect = false;
34
35
    /**
36
     * Animation.
37
     *
38
     * @var boolean
39
     */
40
    private $animation = true;
41
42
    /**
43
     * Animation limit.
44
     *
45
     * @var integer
46
     */
47
    private $animationLimit;
48
49
    /**
50
     * Class name.
51
     *
52
     * @var string
53
     * @since 5.0.0
54
     */
55
    private $className;
56
57
    /**
58
     * Color.
59
     *
60
     * @var string
61
     */
62
    private $color;
63
64
    /**
65
     * Color index.
66
     *
67
     * @var integer
68
     * @since 5.0.0
69
     */
70
    private $colorIndex;
71
72
    /**
73
     * Crop threshold.
74
     *
75
     * @var integer
76
     * @since 2.2
77
     */
78
    private $cropThreshold = 300;
79
80
    /**
81
     * Cursor.
82
     *
83
     * @var string
84
     */
85
    private $cursor;
86
87
    /**
88
     * Dash style.
89
     *
90
     * @var string
91
     * @since 2.1
92
     */
93
    private $dashStyle = "Solid";
94
95
    /**
96
     * Data labels.
97
     *
98
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels
99
     */
100
    private $dataLabels;
101
102
    /**
103
     * Description.
104
     *
105
     * @var string
106
     * @since 5.0.0
107
     */
108
    private $description;
109
110
    /**
111
     * Display negative.
112
     *
113
     * @var boolean
114
     * @since 3.0
115
     */
116
    private $displayNegative = true;
117
118
    /**
119
     * Enable mouse tracking.
120
     *
121
     * @var boolean
122
     */
123
    private $enableMouseTracking = true;
124
125
    /**
126
     * Events.
127
     *
128
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsEvents
129
     */
130
    private $events;
131
132
    /**
133
     * Expose element to a11y.
134
     *
135
     * @var boolean
136
     * @since 5.0.12
137
     */
138
    private $exposeElementToA11y;
139
140
    /**
141
     * Find nearest point by.
142
     *
143
     * @var string
144
     * @since 5.0.10
145
     */
146
    private $findNearestPointBy;
147
148
    /**
149
     * Get extremes from all.
150
     *
151
     * @var boolean
152
     * @since 4.1.6
153
     */
154
    private $getExtremesFromAll = false;
155
156
    /**
157
     * Keys.
158
     *
159
     * @var array
160
     * @since 4.1.6
161
     */
162
    private $keys;
163
164
    /**
165
     * Line width.
166
     *
167
     * @var integer
168
     */
169
    private $lineWidth = 0;
170
171
    /**
172
     * Linked to.
173
     *
174
     * @var string
175
     * @since 3.0
176
     */
177
    private $linkedTo;
178
179
    /**
180
     * Marker.
181
     *
182
     * @var array
183
     */
184
    private $marker;
185
186
    /**
187
     * Max size.
188
     *
189
     * @var string
190
     * @since 3.0
191
     */
192
    private $maxSize = "20%";
193
194
    /**
195
     * Min size.
196
     *
197
     * @var string
198
     * @since 3.0
199
     */
200
    private $minSize = "8";
201
202
    /**
203
     * Negative color.
204
     *
205
     * @var string
206
     * @since 3.0
207
     */
208
    private $negativeColor;
209
210
    /**
211
     * Point.
212
     *
213
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsPoint
214
     */
215
    private $point;
216
217
    /**
218
     * Point description formatter.
219
     *
220
     * @var string
221
     * @since 5.0.12
222
     */
223
    private $pointDescriptionFormatter;
224
225
    /**
226
     * Point interval.
227
     *
228
     * @var integer
229
     */
230
    private $pointInterval = 1;
231
232
    /**
233
     * Point interval unit.
234
     *
235
     * @var string
236
     * @since 4.1.0
237
     */
238
    private $pointIntervalUnit;
239
240
    /**
241
     * Point start.
242
     *
243
     * @var integer
244
     */
245
    private $pointStart = 0;
246
247
    /**
248
     * Selected.
249
     *
250
     * @var boolean
251
     * @since 1.2.0
252
     */
253
    private $selected = false;
254
255
    /**
256
     * Shadow.
257
     *
258
     * @var boolean|array
259
     */
260
    private $shadow = false;
261
262
    /**
263
     * Show checkbox.
264
     *
265
     * @var boolean
266
     * @since 1.2.0
267
     */
268
    private $showCheckbox = false;
269
270
    /**
271
     * Show in legend.
272
     *
273
     * @var boolean
274
     */
275
    private $showInLegend = true;
276
277
    /**
278
     * Size by.
279
     *
280
     * @var string
281
     * @since 3.0.7
282
     */
283
    private $sizeBy = "area";
284
285
    /**
286
     * Size by absolute value.
287
     *
288
     * @var boolean
289
     * @since 4.1.9
290
     */
291
    private $sizeByAbsoluteValue = false;
292
293
    /**
294
     * Skip keyboard navigation.
295
     *
296
     * @var boolean
297
     * @since 5.0.12
298
     */
299
    private $skipKeyboardNavigation;
300
301
    /**
302
     * Soft threshold.
303
     *
304
     * @var boolean
305
     * @since 4.1.9
306
     */
307
    private $softThreshold = false;
308
309
    /**
310
     * States.
311
     *
312
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsStates
313
     */
314
    private $states;
315
316
    /**
317
     * Sticky tracking.
318
     *
319
     * @var boolean
320
     */
321
    private $stickyTracking = false;
322
323
    /**
324
     * Threshold.
325
     *
326
     * @var integer
327
     * @since 3.0
328
     */
329
    private $threshold = 0;
330
331
    /**
332
     * Tooltip.
333
     *
334
     * @var array
335
     * @since 2.3
336
     */
337
    private $tooltip;
338
339
    /**
340
     * Visible.
341
     *
342
     * @var boolean
343
     */
344
    private $visible = true;
345
346
    /**
347
     * Z max.
348
     *
349
     * @var integer
350
     * @since 4.0.3
351
     */
352
    private $zMax;
353
354
    /**
355
     * Z min.
356
     *
357
     * @var integer
358
     * @since 4.0.3
359
     */
360
    private $zMin;
361
362
    /**
363
     * Z threshold.
364
     *
365
     * @var integer
366
     * @since 3.0
367
     */
368
    private $zThreshold = 0;
369
370
    /**
371
     * Zone axis.
372
     *
373
     * @var string
374
     * @since 4.1.0
375
     */
376
    private $zoneAxis = "y";
377
378
    /**
379
     * Zones.
380
     *
381
     * @var array
382
     * @since 4.1.0
383
     */
384
    private $zones;
385
386
    /**
387
     * Constructor.
388
     *
389
     * @param boolean $ignoreDefaultValues Ignore the default values.
390
     */
391
    public function __construct($ignoreDefaultValues = true) {
392
        if (true === $ignoreDefaultValues) {
393
            $this->clear();
394
        }
395
    }
396
397
    /**
398
     * Clear.
399
     *
400
     * @return void
401
     */
402
    public function clear() {
403
404
        // Clear the allow point select.
405
        $this->allowPointSelect = null;
406
407
        // Clear the animation.
408
        $this->animation = null;
409
410
        // Clear the animation limit.
411
        $this->animationLimit = null;
412
413
        // Clear the class name.
414
        $this->className = null;
415
416
        // Clear the color.
417
        $this->color = null;
418
419
        // Clear the color index.
420
        $this->colorIndex = null;
421
422
        // Clear the crop threshold.
423
        $this->cropThreshold = null;
424
425
        // Clear the cursor.
426
        $this->cursor = null;
427
428
        // Clear the dash style.
429
        $this->dashStyle = null;
430
431
        // Clear the data labels.
432
        if (null !== $this->dataLabels) {
433
            $this->dataLabels->clear();
434
        }
435
436
        // Clear the description.
437
        $this->description = null;
438
439
        // Clear the display negative.
440
        $this->displayNegative = null;
441
442
        // Clear the enable mouse tracking.
443
        $this->enableMouseTracking = null;
444
445
        // Clear the events.
446
        if (null !== $this->events) {
447
            $this->events->clear();
448
        }
449
450
        // Clear the expose element to a11y.
451
        $this->exposeElementToA11y = null;
452
453
        // Clear the find nearest point by.
454
        $this->findNearestPointBy = null;
455
456
        // Clear the get extremes from all.
457
        $this->getExtremesFromAll = null;
458
459
        // Clear the keys.
460
        $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...
461
462
        // Clear the line width.
463
        $this->lineWidth = null;
464
465
        // Clear the linked to.
466
        $this->linkedTo = null;
467
468
        // Clear the marker.
469
        $this->marker = 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 $marker.

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...
470
471
        // Clear the max size.
472
        $this->maxSize = null;
473
474
        // Clear the min size.
475
        $this->minSize = null;
476
477
        // Clear the negative color.
478
        $this->negativeColor = null;
479
480
        // Clear the point.
481
        if (null !== $this->point) {
482
            $this->point->clear();
483
        }
484
485
        // Clear the point description formatter.
486
        $this->pointDescriptionFormatter = null;
487
488
        // Clear the point interval.
489
        $this->pointInterval = null;
490
491
        // Clear the point interval unit.
492
        $this->pointIntervalUnit = null;
493
494
        // Clear the point start.
495
        $this->pointStart = null;
496
497
        // Clear the selected.
498
        $this->selected = null;
499
500
        // Clear the shadow.
501
        $this->shadow = null;
502
503
        // Clear the show checkbox.
504
        $this->showCheckbox = null;
505
506
        // Clear the show in legend.
507
        $this->showInLegend = null;
508
509
        // Clear the size by.
510
        $this->sizeBy = null;
511
512
        // Clear the size by absolute value.
513
        $this->sizeByAbsoluteValue = null;
514
515
        // Clear the skip keyboard navigation.
516
        $this->skipKeyboardNavigation = null;
517
518
        // Clear the soft threshold.
519
        $this->softThreshold = null;
520
521
        // Clear the states.
522
        if (null !== $this->states) {
523
            $this->states->clear();
524
        }
525
526
        // Clear the sticky tracking.
527
        $this->stickyTracking = null;
528
529
        // Clear the threshold.
530
        $this->threshold = null;
531
532
        // Clear the tooltip.
533
        $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...
534
535
        // Clear the visible.
536
        $this->visible = null;
537
538
        // Clear the z max.
539
        $this->zMax = null;
540
541
        // Clear the z min.
542
        $this->zMin = null;
543
544
        // Clear the z threshold.
545
        $this->zThreshold = null;
546
547
        // Clear the zone axis.
548
        $this->zoneAxis = null;
549
550
        // Clear the zones.
551
        $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...
552
    }
553
554
    /**
555
     * Get the allow point select.
556
     *
557
     * @return boolean Returns the allow point select.
558
     */
559
    public function getAllowPointSelect() {
560
        return $this->allowPointSelect;
561
    }
562
563
    /**
564
     * Get the animation.
565
     *
566
     * @return boolean Returns the animation.
567
     */
568
    public function getAnimation() {
569
        return $this->animation;
570
    }
571
572
    /**
573
     * Get the animation limit.
574
     *
575
     * @return integer Returns the animation limit.
576
     */
577
    public function getAnimationLimit() {
578
        return $this->animationLimit;
579
    }
580
581
    /**
582
     * Get the class name.
583
     *
584
     * @return string Returns the class name.
585
     */
586
    public function getClassName() {
587
        return $this->className;
588
    }
589
590
    /**
591
     * Get the color.
592
     *
593
     * @return string Returns the color.
594
     */
595
    public function getColor() {
596
        return $this->color;
597
    }
598
599
    /**
600
     * Get the color index.
601
     *
602
     * @return integer Returns the color index.
603
     */
604
    public function getColorIndex() {
605
        return $this->colorIndex;
606
    }
607
608
    /**
609
     * Get the crop threshold.
610
     *
611
     * @return integer Returns the crop threshold.
612
     */
613
    public function getCropThreshold() {
614
        return $this->cropThreshold;
615
    }
616
617
    /**
618
     * Get the cursor.
619
     *
620
     * @return string Returns the cursor.
621
     */
622
    public function getCursor() {
623
        return $this->cursor;
624
    }
625
626
    /**
627
     * Get the dash style.
628
     *
629
     * @return string Returns the dash style.
630
     */
631
    public function getDashStyle() {
632
        return $this->dashStyle;
633
    }
634
635
    /**
636
     * Get the data labels.
637
     *
638
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the data labels.
639
     */
640
    public function getDataLabels() {
641
        return $this->dataLabels;
642
    }
643
644
    /**
645
     * Get the description.
646
     *
647
     * @return string Returns the description.
648
     */
649
    public function getDescription() {
650
        return $this->description;
651
    }
652
653
    /**
654
     * Get the display negative.
655
     *
656
     * @return boolean Returns the display negative.
657
     */
658
    public function getDisplayNegative() {
659
        return $this->displayNegative;
660
    }
661
662
    /**
663
     * Get the enable mouse tracking.
664
     *
665
     * @return boolean Returns the enable mouse tracking.
666
     */
667
    public function getEnableMouseTracking() {
668
        return $this->enableMouseTracking;
669
    }
670
671
    /**
672
     * Get the events.
673
     *
674
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsEvents Returns the events.
675
     */
676
    public function getEvents() {
677
        return $this->events;
678
    }
679
680
    /**
681
     * Get the expose element to a11y.
682
     *
683
     * @return boolean Returns the expose element to a11y.
684
     */
685
    public function getExposeElementToA11y() {
686
        return $this->exposeElementToA11y;
687
    }
688
689
    /**
690
     * Get the find nearest point by.
691
     *
692
     * @return string Returns the find nearest point by.
693
     */
694
    public function getFindNearestPointBy() {
695
        return $this->findNearestPointBy;
696
    }
697
698
    /**
699
     * Get the get extremes from all.
700
     *
701
     * @return boolean Returns the get extremes from all.
702
     */
703
    public function getGetExtremesFromAll() {
704
        return $this->getExtremesFromAll;
705
    }
706
707
    /**
708
     * Get the keys.
709
     *
710
     * @return array Returns the keys.
711
     */
712
    public function getKeys() {
713
        return $this->keys;
714
    }
715
716
    /**
717
     * Get the line width.
718
     *
719
     * @return integer Returns the line width.
720
     */
721
    public function getLineWidth() {
722
        return $this->lineWidth;
723
    }
724
725
    /**
726
     * Get the linked to.
727
     *
728
     * @return string Returns the linked to.
729
     */
730
    public function getLinkedTo() {
731
        return $this->linkedTo;
732
    }
733
734
    /**
735
     * Get the marker.
736
     *
737
     * @return array Returns the marker.
738
     */
739
    public function getMarker() {
740
        return $this->marker;
741
    }
742
743
    /**
744
     * Get the max size.
745
     *
746
     * @return string Returns the max size.
747
     */
748
    public function getMaxSize() {
749
        return $this->maxSize;
750
    }
751
752
    /**
753
     * Get the min size.
754
     *
755
     * @return string Returns the min size.
756
     */
757
    public function getMinSize() {
758
        return $this->minSize;
759
    }
760
761
    /**
762
     * Get the negative color.
763
     *
764
     * @return string Returns the negative color.
765
     */
766
    public function getNegativeColor() {
767
        return $this->negativeColor;
768
    }
769
770
    /**
771
     * Get the point.
772
     *
773
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsPoint Returns the point.
774
     */
775
    public function getPoint() {
776
        return $this->point;
777
    }
778
779
    /**
780
     * Get the point description formatter.
781
     *
782
     * @return string Returns the point description formatter.
783
     */
784
    public function getPointDescriptionFormatter() {
785
        return $this->pointDescriptionFormatter;
786
    }
787
788
    /**
789
     * Get the point interval.
790
     *
791
     * @return integer Returns the point interval.
792
     */
793
    public function getPointInterval() {
794
        return $this->pointInterval;
795
    }
796
797
    /**
798
     * Get the point interval unit.
799
     *
800
     * @return string Returns the point interval unit.
801
     */
802
    public function getPointIntervalUnit() {
803
        return $this->pointIntervalUnit;
804
    }
805
806
    /**
807
     * Get the point start.
808
     *
809
     * @return integer Returns the point start.
810
     */
811
    public function getPointStart() {
812
        return $this->pointStart;
813
    }
814
815
    /**
816
     * Get the selected.
817
     *
818
     * @return boolean Returns the selected.
819
     */
820
    public function getSelected() {
821
        return $this->selected;
822
    }
823
824
    /**
825
     * Get the shadow.
826
     *
827
     * @return boolean|array Returns the shadow.
828
     */
829
    public function getShadow() {
830
        return $this->shadow;
831
    }
832
833
    /**
834
     * Get the show checkbox.
835
     *
836
     * @return boolean Returns the show checkbox.
837
     */
838
    public function getShowCheckbox() {
839
        return $this->showCheckbox;
840
    }
841
842
    /**
843
     * Get the show in legend.
844
     *
845
     * @return boolean Returns the show in legend.
846
     */
847
    public function getShowInLegend() {
848
        return $this->showInLegend;
849
    }
850
851
    /**
852
     * Get the size by.
853
     *
854
     * @return string Returns the size by.
855
     */
856
    public function getSizeBy() {
857
        return $this->sizeBy;
858
    }
859
860
    /**
861
     * Get the size by absolute value.
862
     *
863
     * @return boolean Returns the size by absolute value.
864
     */
865
    public function getSizeByAbsoluteValue() {
866
        return $this->sizeByAbsoluteValue;
867
    }
868
869
    /**
870
     * Get the skip keyboard navigation.
871
     *
872
     * @return boolean Returns the skip keyboard navigation.
873
     */
874
    public function getSkipKeyboardNavigation() {
875
        return $this->skipKeyboardNavigation;
876
    }
877
878
    /**
879
     * Get the soft threshold.
880
     *
881
     * @return boolean Returns the soft threshold.
882
     */
883
    public function getSoftThreshold() {
884
        return $this->softThreshold;
885
    }
886
887
    /**
888
     * Get the states.
889
     *
890
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsStates Returns the states.
891
     */
892
    public function getStates() {
893
        return $this->states;
894
    }
895
896
    /**
897
     * Get the sticky tracking.
898
     *
899
     * @return boolean Returns the sticky tracking.
900
     */
901
    public function getStickyTracking() {
902
        return $this->stickyTracking;
903
    }
904
905
    /**
906
     * Get the threshold.
907
     *
908
     * @return integer Returns the threshold.
909
     */
910
    public function getThreshold() {
911
        return $this->threshold;
912
    }
913
914
    /**
915
     * Get the tooltip.
916
     *
917
     * @return array Returns the tooltip.
918
     */
919
    public function getTooltip() {
920
        return $this->tooltip;
921
    }
922
923
    /**
924
     * Get the visible.
925
     *
926
     * @return boolean Returns the visible.
927
     */
928
    public function getVisible() {
929
        return $this->visible;
930
    }
931
932
    /**
933
     * Get the z max.
934
     *
935
     * @return integer Returns the z max.
936
     */
937
    public function getZMax() {
938
        return $this->zMax;
939
    }
940
941
    /**
942
     * Get the z min.
943
     *
944
     * @return integer Returns the z min.
945
     */
946
    public function getZMin() {
947
        return $this->zMin;
948
    }
949
950
    /**
951
     * Get the z threshold.
952
     *
953
     * @return integer Returns the z threshold.
954
     */
955
    public function getZThreshold() {
956
        return $this->zThreshold;
957
    }
958
959
    /**
960
     * Get the zone axis.
961
     *
962
     * @return string Returns the zone axis.
963
     */
964
    public function getZoneAxis() {
965
        return $this->zoneAxis;
966
    }
967
968
    /**
969
     * Get the zones.
970
     *
971
     * @return array Returns the zones.
972
     */
973
    public function getZones() {
974
        return $this->zones;
975
    }
976
977
    /**
978
     * Serialize this instance.
979
     *
980
     * @return array Returns an array representing this instance.
981
     */
982
    public function jsonSerialize() {
983
        return $this->toArray();
984
    }
985
986
    /**
987
     * Create a new data labels.
988
     *
989
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the data labels.
990
     */
991
    public function newDataLabels() {
992
        $this->dataLabels = new \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels();
993
        return $this->dataLabels;
994
    }
995
996
    /**
997
     * Create a new events.
998
     *
999
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsEvents Returns the events.
1000
     */
1001
    public function newEvents() {
1002
        $this->events = new \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsEvents();
1003
        return $this->events;
1004
    }
1005
1006
    /**
1007
     * Create a new point.
1008
     *
1009
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsPoint Returns the point.
1010
     */
1011
    public function newPoint() {
1012
        $this->point = new \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsPoint();
1013
        return $this->point;
1014
    }
1015
1016
    /**
1017
     * Create a new states.
1018
     *
1019
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsStates Returns the states.
1020
     */
1021
    public function newStates() {
1022
        $this->states = new \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsStates();
1023
        return $this->states;
1024
    }
1025
1026
    /**
1027
     * Set the allow point select.
1028
     *
1029
     * @param boolean $allowPointSelect The allow point select.
1030
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1031
     */
1032
    public function setAllowPointSelect($allowPointSelect) {
1033
        $this->allowPointSelect = $allowPointSelect;
1034
        return $this;
1035
    }
1036
1037
    /**
1038
     * Set the animation.
1039
     *
1040
     * @param boolean $animation The animation.
1041
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1042
     */
1043
    public function setAnimation($animation) {
1044
        $this->animation = $animation;
1045
        return $this;
1046
    }
1047
1048
    /**
1049
     * Set the animation limit.
1050
     *
1051
     * @param integer $animationLimit The animation limit.
1052
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1053
     */
1054
    public function setAnimationLimit($animationLimit) {
1055
        $this->animationLimit = $animationLimit;
1056
        return $this;
1057
    }
1058
1059
    /**
1060
     * Set the class name.
1061
     *
1062
     * @param string $className The class name.
1063
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1064
     */
1065
    public function setClassName($className) {
1066
        $this->className = $className;
1067
        return $this;
1068
    }
1069
1070
    /**
1071
     * Set the color.
1072
     *
1073
     * @param string $color The color.
1074
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1075
     */
1076
    public function setColor($color) {
1077
        $this->color = $color;
1078
        return $this;
1079
    }
1080
1081
    /**
1082
     * Set the color index.
1083
     *
1084
     * @param integer $colorIndex The color index.
1085
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1086
     */
1087
    public function setColorIndex($colorIndex) {
1088
        $this->colorIndex = $colorIndex;
1089
        return $this;
1090
    }
1091
1092
    /**
1093
     * Set the crop threshold.
1094
     *
1095
     * @param integer $cropThreshold The crop threshold.
1096
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1097
     */
1098
    public function setCropThreshold($cropThreshold) {
1099
        $this->cropThreshold = $cropThreshold;
1100
        return $this;
1101
    }
1102
1103
    /**
1104
     * Set the cursor.
1105
     *
1106
     * @param string $cursor The cursor.
1107
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1108
     */
1109
    public function setCursor($cursor) {
1110
        switch ($cursor) {
1111
            case null:
1112
            case "crosshair":
1113
            case "default":
1114
            case "help":
1115
            case "none":
1116
            case "pointer":
1117
            $this->cursor = $cursor;
1118
            break;
1119
        }
1120
        return $this;
1121
    }
1122
1123
    /**
1124
     * Set the dash style.
1125
     *
1126
     * @param string $dashStyle The dash style.
1127
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1128
     */
1129
    public function setDashStyle($dashStyle) {
1130
        switch ($dashStyle) {
1131
            case "Dash":
1132
            case "DashDot":
1133
            case "Dot":
1134
            case "LongDash":
1135
            case "LongDashDot":
1136
            case "LongDashDotDot":
1137
            case "ShortDash":
1138
            case "ShortDashDot":
1139
            case "ShortDashDotDot":
1140
            case "ShortDot":
1141
            case "Solid":
1142
            $this->dashStyle = $dashStyle;
1143
            break;
1144
        }
1145
        return $this;
1146
    }
1147
1148
    /**
1149
     * Set the data labels.
1150
     *
1151
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels $dataLabels The data labels.
1152
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1153
     */
1154
    public function setDataLabels(\WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels $dataLabels = null) {
1155
        $this->dataLabels = $dataLabels;
1156
        return $this;
1157
    }
1158
1159
    /**
1160
     * Set the description.
1161
     *
1162
     * @param string $description The description.
1163
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1164
     */
1165
    public function setDescription($description) {
1166
        $this->description = $description;
1167
        return $this;
1168
    }
1169
1170
    /**
1171
     * Set the display negative.
1172
     *
1173
     * @param boolean $displayNegative The display negative.
1174
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1175
     */
1176
    public function setDisplayNegative($displayNegative) {
1177
        $this->displayNegative = $displayNegative;
1178
        return $this;
1179
    }
1180
1181
    /**
1182
     * Set the enable mouse tracking.
1183
     *
1184
     * @param boolean $enableMouseTracking The enable mouse tracking.
1185
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1186
     */
1187
    public function setEnableMouseTracking($enableMouseTracking) {
1188
        $this->enableMouseTracking = $enableMouseTracking;
1189
        return $this;
1190
    }
1191
1192
    /**
1193
     * Set the events.
1194
     *
1195
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsEvents $events The events.
1196
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1197
     */
1198
    public function setEvents(\WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsEvents $events = null) {
1199
        $this->events = $events;
1200
        return $this;
1201
    }
1202
1203
    /**
1204
     * Set the expose element to a11y.
1205
     *
1206
     * @param boolean $exposeElementToA11y The expose element to a11y.
1207
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1208
     */
1209
    public function setExposeElementToA11y($exposeElementToA11y) {
1210
        $this->exposeElementToA11y = $exposeElementToA11y;
1211
        return $this;
1212
    }
1213
1214
    /**
1215
     * Set the find nearest point by.
1216
     *
1217
     * @param string $findNearestPointBy The find nearest point by.
1218
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1219
     */
1220
    public function setFindNearestPointBy($findNearestPointBy) {
1221
        switch ($findNearestPointBy) {
1222
            case "x":
1223
            case "xy":
1224
            $this->findNearestPointBy = $findNearestPointBy;
1225
            break;
1226
        }
1227
        return $this;
1228
    }
1229
1230
    /**
1231
     * Set the get extremes from all.
1232
     *
1233
     * @param boolean $getExtremesFromAll The get extremes from all.
1234
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1235
     */
1236
    public function setGetExtremesFromAll($getExtremesFromAll) {
1237
        $this->getExtremesFromAll = $getExtremesFromAll;
1238
        return $this;
1239
    }
1240
1241
    /**
1242
     * Set the keys.
1243
     *
1244
     * @param array $keys The keys.
1245
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1246
     */
1247
    public function setKeys(array $keys = null) {
1248
        $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...
1249
        return $this;
1250
    }
1251
1252
    /**
1253
     * Set the line width.
1254
     *
1255
     * @param integer $lineWidth The line width.
1256
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1257
     */
1258
    public function setLineWidth($lineWidth) {
1259
        $this->lineWidth = $lineWidth;
1260
        return $this;
1261
    }
1262
1263
    /**
1264
     * Set the linked to.
1265
     *
1266
     * @param string $linkedTo The linked to.
1267
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1268
     */
1269
    public function setLinkedTo($linkedTo) {
1270
        $this->linkedTo = $linkedTo;
1271
        return $this;
1272
    }
1273
1274
    /**
1275
     * Set the marker.
1276
     *
1277
     * @param array $marker The marker.
1278
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1279
     */
1280
    public function setMarker(array $marker = null) {
1281
        $this->marker = $marker;
0 ignored issues
show
Documentation Bug introduced by
It seems like $marker can be null. However, the property $marker 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...
1282
        return $this;
1283
    }
1284
1285
    /**
1286
     * Set the max size.
1287
     *
1288
     * @param string $maxSize The max size.
1289
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1290
     */
1291
    public function setMaxSize($maxSize) {
1292
        $this->maxSize = $maxSize;
1293
        return $this;
1294
    }
1295
1296
    /**
1297
     * Set the min size.
1298
     *
1299
     * @param string $minSize The min size.
1300
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1301
     */
1302
    public function setMinSize($minSize) {
1303
        $this->minSize = $minSize;
1304
        return $this;
1305
    }
1306
1307
    /**
1308
     * Set the negative color.
1309
     *
1310
     * @param string $negativeColor The negative color.
1311
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1312
     */
1313
    public function setNegativeColor($negativeColor) {
1314
        $this->negativeColor = $negativeColor;
1315
        return $this;
1316
    }
1317
1318
    /**
1319
     * Set the point.
1320
     *
1321
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsPoint $point The point.
1322
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1323
     */
1324
    public function setPoint(\WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsPoint $point = null) {
1325
        $this->point = $point;
1326
        return $this;
1327
    }
1328
1329
    /**
1330
     * Set the point description formatter.
1331
     *
1332
     * @param string $pointDescriptionFormatter The point description formatter.
1333
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1334
     */
1335
    public function setPointDescriptionFormatter($pointDescriptionFormatter) {
1336
        $this->pointDescriptionFormatter = $pointDescriptionFormatter;
1337
        return $this;
1338
    }
1339
1340
    /**
1341
     * Set the point interval.
1342
     *
1343
     * @param integer $pointInterval The point interval.
1344
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1345
     */
1346
    public function setPointInterval($pointInterval) {
1347
        $this->pointInterval = $pointInterval;
1348
        return $this;
1349
    }
1350
1351
    /**
1352
     * Set the point interval unit.
1353
     *
1354
     * @param string $pointIntervalUnit The point interval unit.
1355
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1356
     */
1357
    public function setPointIntervalUnit($pointIntervalUnit) {
1358
        switch ($pointIntervalUnit) {
1359
            case null:
1360
            case "day":
1361
            case "month":
1362
            case "year":
1363
            $this->pointIntervalUnit = $pointIntervalUnit;
1364
            break;
1365
        }
1366
        return $this;
1367
    }
1368
1369
    /**
1370
     * Set the point start.
1371
     *
1372
     * @param integer $pointStart The point start.
1373
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1374
     */
1375
    public function setPointStart($pointStart) {
1376
        $this->pointStart = $pointStart;
1377
        return $this;
1378
    }
1379
1380
    /**
1381
     * Set the selected.
1382
     *
1383
     * @param boolean $selected The selected.
1384
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1385
     */
1386
    public function setSelected($selected) {
1387
        $this->selected = $selected;
1388
        return $this;
1389
    }
1390
1391
    /**
1392
     * Set the shadow.
1393
     *
1394
     * @param boolean|array $shadow The shadow.
1395
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1396
     */
1397
    public function setShadow($shadow) {
1398
        $this->shadow = $shadow;
1399
        return $this;
1400
    }
1401
1402
    /**
1403
     * Set the show checkbox.
1404
     *
1405
     * @param boolean $showCheckbox The show checkbox.
1406
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1407
     */
1408
    public function setShowCheckbox($showCheckbox) {
1409
        $this->showCheckbox = $showCheckbox;
1410
        return $this;
1411
    }
1412
1413
    /**
1414
     * Set the show in legend.
1415
     *
1416
     * @param boolean $showInLegend The show in legend.
1417
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1418
     */
1419
    public function setShowInLegend($showInLegend) {
1420
        $this->showInLegend = $showInLegend;
1421
        return $this;
1422
    }
1423
1424
    /**
1425
     * Set the size by.
1426
     *
1427
     * @param string $sizeBy The size by.
1428
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1429
     */
1430
    public function setSizeBy($sizeBy) {
1431
        switch ($sizeBy) {
1432
            case "area":
1433
            case "width":
1434
            $this->sizeBy = $sizeBy;
1435
            break;
1436
        }
1437
        return $this;
1438
    }
1439
1440
    /**
1441
     * Set the size by absolute value.
1442
     *
1443
     * @param boolean $sizeByAbsoluteValue The size by absolute value.
1444
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1445
     */
1446
    public function setSizeByAbsoluteValue($sizeByAbsoluteValue) {
1447
        $this->sizeByAbsoluteValue = $sizeByAbsoluteValue;
1448
        return $this;
1449
    }
1450
1451
    /**
1452
     * Set the skip keyboard navigation.
1453
     *
1454
     * @param boolean $skipKeyboardNavigation The skip keyboard navigation.
1455
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1456
     */
1457
    public function setSkipKeyboardNavigation($skipKeyboardNavigation) {
1458
        $this->skipKeyboardNavigation = $skipKeyboardNavigation;
1459
        return $this;
1460
    }
1461
1462
    /**
1463
     * Set the soft threshold.
1464
     *
1465
     * @param boolean $softThreshold The soft threshold.
1466
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1467
     */
1468
    public function setSoftThreshold($softThreshold) {
1469
        $this->softThreshold = $softThreshold;
1470
        return $this;
1471
    }
1472
1473
    /**
1474
     * Set the states.
1475
     *
1476
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsStates $states The states.
1477
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1478
     */
1479
    public function setStates(\WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsStates $states = null) {
1480
        $this->states = $states;
1481
        return $this;
1482
    }
1483
1484
    /**
1485
     * Set the sticky tracking.
1486
     *
1487
     * @param boolean $stickyTracking The sticky tracking.
1488
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1489
     */
1490
    public function setStickyTracking($stickyTracking) {
1491
        $this->stickyTracking = $stickyTracking;
1492
        return $this;
1493
    }
1494
1495
    /**
1496
     * Set the threshold.
1497
     *
1498
     * @param integer $threshold The threshold.
1499
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1500
     */
1501
    public function setThreshold($threshold) {
1502
        $this->threshold = $threshold;
1503
        return $this;
1504
    }
1505
1506
    /**
1507
     * Set the tooltip.
1508
     *
1509
     * @param array $tooltip The tooltip.
1510
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1511
     */
1512
    public function setTooltip(array $tooltip = null) {
1513
        $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...
1514
        return $this;
1515
    }
1516
1517
    /**
1518
     * Set the visible.
1519
     *
1520
     * @param boolean $visible The visible.
1521
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1522
     */
1523
    public function setVisible($visible) {
1524
        $this->visible = $visible;
1525
        return $this;
1526
    }
1527
1528
    /**
1529
     * Set the z max.
1530
     *
1531
     * @param integer $zMax The z max.
1532
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1533
     */
1534
    public function setZMax($zMax) {
1535
        $this->zMax = $zMax;
1536
        return $this;
1537
    }
1538
1539
    /**
1540
     * Set the z min.
1541
     *
1542
     * @param integer $zMin The z min.
1543
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1544
     */
1545
    public function setZMin($zMin) {
1546
        $this->zMin = $zMin;
1547
        return $this;
1548
    }
1549
1550
    /**
1551
     * Set the z threshold.
1552
     *
1553
     * @param integer $zThreshold The z threshold.
1554
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1555
     */
1556
    public function setZThreshold($zThreshold) {
1557
        $this->zThreshold = $zThreshold;
1558
        return $this;
1559
    }
1560
1561
    /**
1562
     * Set the zone axis.
1563
     *
1564
     * @param string $zoneAxis The zone axis.
1565
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1566
     */
1567
    public function setZoneAxis($zoneAxis) {
1568
        $this->zoneAxis = $zoneAxis;
1569
        return $this;
1570
    }
1571
1572
    /**
1573
     * Set the zones.
1574
     *
1575
     * @param array $zones The zones.
1576
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsBubble Returns the highcharts bubble.
1577
     */
1578
    public function setZones(array $zones = null) {
1579
        $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...
1580
        return $this;
1581
    }
1582
1583
    /**
1584
     * Convert into an array representing this instance.
1585
     *
1586
     * @return array Returns an array representing this instance.
1587
     */
1588
    public function toArray() {
1589
1590
        // Initialize the output.
1591
        $output = [];
1592
1593
        // Set the allow point select.
1594
        ArrayUtility::set($output, "allowPointSelect", $this->allowPointSelect, [null]);
1595
1596
        // Set the animation.
1597
        ArrayUtility::set($output, "animation", $this->animation, [null]);
1598
1599
        // Set the animation limit.
1600
        ArrayUtility::set($output, "animationLimit", $this->animationLimit, [null]);
1601
1602
        // Set the class name.
1603
        ArrayUtility::set($output, "className", $this->className, [null]);
1604
1605
        // Set the color.
1606
        ArrayUtility::set($output, "color", $this->color, [null]);
1607
1608
        // Set the color index.
1609
        ArrayUtility::set($output, "colorIndex", $this->colorIndex, [null]);
1610
1611
        // Set the crop threshold.
1612
        ArrayUtility::set($output, "cropThreshold", $this->cropThreshold, [null]);
1613
1614
        // Set the cursor.
1615
        ArrayUtility::set($output, "cursor", $this->cursor, [null]);
1616
1617
        // Set the dash style.
1618
        ArrayUtility::set($output, "dashStyle", $this->dashStyle, [null]);
1619
1620
        // Set the data labels.
1621
        if (null !== $this->dataLabels) {
1622
            ArrayUtility::set($output, "dataLabels", $this->dataLabels->toArray(), []);
1623
        }
1624
1625
        // Set the description.
1626
        ArrayUtility::set($output, "description", $this->description, [null]);
1627
1628
        // Set the display negative.
1629
        ArrayUtility::set($output, "displayNegative", $this->displayNegative, [null]);
1630
1631
        // Set the enable mouse tracking.
1632
        ArrayUtility::set($output, "enableMouseTracking", $this->enableMouseTracking, [null]);
1633
1634
        // Set the events.
1635
        if (null !== $this->events) {
1636
            ArrayUtility::set($output, "events", $this->events->toArray(), []);
1637
        }
1638
1639
        // Set the expose element to a11y.
1640
        ArrayUtility::set($output, "exposeElementToA11y", $this->exposeElementToA11y, [null]);
1641
1642
        // Set the find nearest point by.
1643
        ArrayUtility::set($output, "findNearestPointBy", $this->findNearestPointBy, [null]);
1644
1645
        // Set the get extremes from all.
1646
        ArrayUtility::set($output, "getExtremesFromAll", $this->getExtremesFromAll, [null]);
1647
1648
        // Set the keys.
1649
        ArrayUtility::set($output, "keys", $this->keys, [null]);
1650
1651
        // Set the line width.
1652
        ArrayUtility::set($output, "lineWidth", $this->lineWidth, [null]);
1653
1654
        // Set the linked to.
1655
        ArrayUtility::set($output, "linkedTo", $this->linkedTo, [null]);
1656
1657
        // Set the marker.
1658
        ArrayUtility::set($output, "marker", $this->marker, [null]);
1659
1660
        // Set the max size.
1661
        ArrayUtility::set($output, "maxSize", $this->maxSize, [null]);
1662
1663
        // Set the min size.
1664
        ArrayUtility::set($output, "minSize", $this->minSize, [null]);
1665
1666
        // Set the negative color.
1667
        ArrayUtility::set($output, "negativeColor", $this->negativeColor, [null]);
1668
1669
        // Set the point.
1670
        if (null !== $this->point) {
1671
            ArrayUtility::set($output, "point", $this->point->toArray(), []);
1672
        }
1673
1674
        // Set the point description formatter.
1675
        ArrayUtility::set($output, "pointDescriptionFormatter", $this->pointDescriptionFormatter, [null]);
1676
1677
        // Set the point interval.
1678
        ArrayUtility::set($output, "pointInterval", $this->pointInterval, [null]);
1679
1680
        // Set the point interval unit.
1681
        ArrayUtility::set($output, "pointIntervalUnit", $this->pointIntervalUnit, [null]);
1682
1683
        // Set the point start.
1684
        ArrayUtility::set($output, "pointStart", $this->pointStart, [null]);
1685
1686
        // Set the selected.
1687
        ArrayUtility::set($output, "selected", $this->selected, [null]);
1688
1689
        // Set the shadow.
1690
        ArrayUtility::set($output, "shadow", $this->shadow, [null]);
1691
1692
        // Set the show checkbox.
1693
        ArrayUtility::set($output, "showCheckbox", $this->showCheckbox, [null]);
1694
1695
        // Set the show in legend.
1696
        ArrayUtility::set($output, "showInLegend", $this->showInLegend, [null]);
1697
1698
        // Set the size by.
1699
        ArrayUtility::set($output, "sizeBy", $this->sizeBy, [null]);
1700
1701
        // Set the size by absolute value.
1702
        ArrayUtility::set($output, "sizeByAbsoluteValue", $this->sizeByAbsoluteValue, [null]);
1703
1704
        // Set the skip keyboard navigation.
1705
        ArrayUtility::set($output, "skipKeyboardNavigation", $this->skipKeyboardNavigation, [null]);
1706
1707
        // Set the soft threshold.
1708
        ArrayUtility::set($output, "softThreshold", $this->softThreshold, [null]);
1709
1710
        // Set the states.
1711
        if (null !== $this->states) {
1712
            ArrayUtility::set($output, "states", $this->states->toArray(), []);
1713
        }
1714
1715
        // Set the sticky tracking.
1716
        ArrayUtility::set($output, "stickyTracking", $this->stickyTracking, [null]);
1717
1718
        // Set the threshold.
1719
        ArrayUtility::set($output, "threshold", $this->threshold, [null]);
1720
1721
        // Set the tooltip.
1722
        ArrayUtility::set($output, "tooltip", $this->tooltip, [null]);
1723
1724
        // Set the visible.
1725
        ArrayUtility::set($output, "visible", $this->visible, [null]);
1726
1727
        // Set the z max.
1728
        ArrayUtility::set($output, "zMax", $this->zMax, [null]);
1729
1730
        // Set the z min.
1731
        ArrayUtility::set($output, "zMin", $this->zMin, [null]);
1732
1733
        // Set the z threshold.
1734
        ArrayUtility::set($output, "zThreshold", $this->zThreshold, [null]);
1735
1736
        // Set the zone axis.
1737
        ArrayUtility::set($output, "zoneAxis", $this->zoneAxis, [null]);
1738
1739
        // Set the zones.
1740
        ArrayUtility::set($output, "zones", $this->zones, [null]);
1741
1742
        // Return the output.
1743
        return $output;
1744
    }
1745
1746
}
1747