HighchartsAreasplinerange::jsonSerialize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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 areasplinerange.
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 HighchartsAreasplinerange implements JsonSerializable {
26
27
    /**
28
     * Allow point select.
29
     *
30
     * @var boolean
31
     * @since 1.2.0
32
     */
33
    private $allowPointSelect = false;
34
35
    /**
36
     * Animation.
37
     *
38
     * @var boolean
39
     */
40
    private $animation = true;
41
42
    /**
43
     * Animation limit.
44
     *
45
     * @var integer
46
     */
47
    private $animationLimit;
48
49
    /**
50
     * Class name.
51
     *
52
     * @var string
53
     * @since 5.0.0
54
     */
55
    private $className;
56
57
    /**
58
     * Color.
59
     *
60
     * @var string
61
     */
62
    private $color;
63
64
    /**
65
     * Color index.
66
     *
67
     * @var integer
68
     * @since 5.0.0
69
     */
70
    private $colorIndex;
71
72
    /**
73
     * Connect nulls.
74
     *
75
     * @var boolean
76
     */
77
    private $connectNulls = false;
78
79
    /**
80
     * Crop threshold.
81
     *
82
     * @var integer
83
     * @since 2.2
84
     */
85
    private $cropThreshold = 300;
86
87
    /**
88
     * Cursor.
89
     *
90
     * @var string
91
     */
92
    private $cursor;
93
94
    /**
95
     * Dash style.
96
     *
97
     * @var string
98
     * @since 2.1
99
     */
100
    private $dashStyle = "Solid";
101
102
    /**
103
     * Data labels.
104
     *
105
     * @var array
106
     * @since 2.3.0
107
     */
108
    private $dataLabels;
109
110
    /**
111
     * Description.
112
     *
113
     * @var string
114
     * @since 5.0.0
115
     */
116
    private $description;
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\Areasplinerange\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
     * Fill color.
142
     *
143
     * @var string
144
     */
145
    private $fillColor;
146
147
    /**
148
     * Fill opacity.
149
     *
150
     * @var integer
151
     */
152
    private $fillOpacity = 0.75;
153
154
    /**
155
     * Find nearest point by.
156
     *
157
     * @var string
158
     * @since 5.0.10
159
     */
160
    private $findNearestPointBy;
161
162
    /**
163
     * Get extremes from all.
164
     *
165
     * @var boolean
166
     * @since 4.1.6
167
     */
168
    private $getExtremesFromAll = false;
169
170
    /**
171
     * Keys.
172
     *
173
     * @var array
174
     * @since 4.1.6
175
     */
176
    private $keys;
177
178
    /**
179
     * Line color.
180
     *
181
     * @var string
182
     */
183
    private $lineColor;
184
185
    /**
186
     * Line width.
187
     *
188
     * @var integer
189
     * @since 2.3.0
190
     */
191
    private $lineWidth = 1;
192
193
    /**
194
     * Linecap.
195
     *
196
     * @var string
197
     */
198
    private $linecap = "round";
199
200
    /**
201
     * Linked to.
202
     *
203
     * @var string
204
     * @since 3.0
205
     */
206
    private $linkedTo;
207
208
    /**
209
     * Negative color.
210
     *
211
     * @var string
212
     * @since 3.0
213
     */
214
    private $negativeColor;
215
216
    /**
217
     * Negative fill color.
218
     *
219
     * @var string
220
     * @since 3.0
221
     */
222
    private $negativeFillColor;
223
224
    /**
225
     * Point.
226
     *
227
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Areasplinerange\HighchartsPoint
228
     */
229
    private $point;
230
231
    /**
232
     * Point description formatter.
233
     *
234
     * @var string
235
     * @since 5.0.12
236
     */
237
    private $pointDescriptionFormatter;
238
239
    /**
240
     * Point interval.
241
     *
242
     * @var integer
243
     */
244
    private $pointInterval = 1;
245
246
    /**
247
     * Point interval unit.
248
     *
249
     * @var string
250
     * @since 4.1.0
251
     */
252
    private $pointIntervalUnit;
253
254
    /**
255
     * Point placement.
256
     *
257
     * @var string|integer
258
     * @since 2.3.0
259
     */
260
    private $pointPlacement;
261
262
    /**
263
     * Point start.
264
     *
265
     * @var integer
266
     */
267
    private $pointStart = 0;
268
269
    /**
270
     * Selected.
271
     *
272
     * @var boolean
273
     * @since 1.2.0
274
     */
275
    private $selected = false;
276
277
    /**
278
     * Shadow.
279
     *
280
     * @var boolean|array
281
     */
282
    private $shadow = false;
283
284
    /**
285
     * Show checkbox.
286
     *
287
     * @var boolean
288
     * @since 1.2.0
289
     */
290
    private $showCheckbox = false;
291
292
    /**
293
     * Show in legend.
294
     *
295
     * @var boolean
296
     */
297
    private $showInLegend = true;
298
299
    /**
300
     * Skip keyboard navigation.
301
     *
302
     * @var boolean
303
     * @since 5.0.12
304
     */
305
    private $skipKeyboardNavigation;
306
307
    /**
308
     * States.
309
     *
310
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Areasplinerange\HighchartsStates
311
     */
312
    private $states;
313
314
    /**
315
     * Sticky tracking.
316
     *
317
     * @var boolean
318
     * @since 2.0
319
     */
320
    private $stickyTracking = true;
321
322
    /**
323
     * Tooltip.
324
     *
325
     * @var array
326
     * @since 2.3
327
     */
328
    private $tooltip;
329
330
    /**
331
     * Track by area.
332
     *
333
     * @var boolean
334
     * @since 2.3.0
335
     */
336
    private $trackByArea = true;
337
338
    /**
339
     * Turbo threshold.
340
     *
341
     * @var integer
342
     * @since 2.2
343
     */
344
    private $turboThreshold = 1000;
345
346
    /**
347
     * Visible.
348
     *
349
     * @var boolean
350
     */
351
    private $visible = true;
352
353
    /**
354
     * Zone axis.
355
     *
356
     * @var string
357
     * @since 4.1.0
358
     */
359
    private $zoneAxis = "y";
360
361
    /**
362
     * Zones.
363
     *
364
     * @var array
365
     * @since 4.1.0
366
     */
367
    private $zones;
368
369
    /**
370
     * Constructor.
371
     *
372
     * @param boolean $ignoreDefaultValues Ignore the default values.
373
     */
374
    public function __construct($ignoreDefaultValues = true) {
375
        if (true === $ignoreDefaultValues) {
376
            $this->clear();
377
        }
378
    }
379
380
    /**
381
     * Clear.
382
     *
383
     * @return void
384
     */
385
    public function clear() {
386
387
        // Clear the allow point select.
388
        $this->allowPointSelect = null;
389
390
        // Clear the animation.
391
        $this->animation = null;
392
393
        // Clear the animation limit.
394
        $this->animationLimit = null;
395
396
        // Clear the class name.
397
        $this->className = null;
398
399
        // Clear the color.
400
        $this->color = null;
401
402
        // Clear the color index.
403
        $this->colorIndex = null;
404
405
        // Clear the connect nulls.
406
        $this->connectNulls = null;
407
408
        // Clear the crop threshold.
409
        $this->cropThreshold = null;
410
411
        // Clear the cursor.
412
        $this->cursor = null;
413
414
        // Clear the dash style.
415
        $this->dashStyle = null;
416
417
        // Clear the data labels.
418
        $this->dataLabels = 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 $dataLabels.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
419
420
        // Clear the description.
421
        $this->description = null;
422
423
        // Clear the enable mouse tracking.
424
        $this->enableMouseTracking = null;
425
426
        // Clear the events.
427
        if (null !== $this->events) {
428
            $this->events->clear();
429
        }
430
431
        // Clear the expose element to a11y.
432
        $this->exposeElementToA11y = null;
433
434
        // Clear the fill color.
435
        $this->fillColor = null;
436
437
        // Clear the fill opacity.
438
        $this->fillOpacity = null;
439
440
        // Clear the find nearest point by.
441
        $this->findNearestPointBy = null;
442
443
        // Clear the get extremes from all.
444
        $this->getExtremesFromAll = null;
445
446
        // Clear the keys.
447
        $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...
448
449
        // Clear the line color.
450
        $this->lineColor = null;
451
452
        // Clear the line width.
453
        $this->lineWidth = null;
454
455
        // Clear the linecap.
456
        $this->linecap = null;
457
458
        // Clear the linked to.
459
        $this->linkedTo = null;
460
461
        // Clear the negative color.
462
        $this->negativeColor = null;
463
464
        // Clear the negative fill color.
465
        $this->negativeFillColor = null;
466
467
        // Clear the point.
468
        if (null !== $this->point) {
469
            $this->point->clear();
470
        }
471
472
        // Clear the point description formatter.
473
        $this->pointDescriptionFormatter = null;
474
475
        // Clear the point interval.
476
        $this->pointInterval = null;
477
478
        // Clear the point interval unit.
479
        $this->pointIntervalUnit = null;
480
481
        // Clear the point placement.
482
        $this->pointPlacement = null;
483
484
        // Clear the point start.
485
        $this->pointStart = null;
486
487
        // Clear the selected.
488
        $this->selected = null;
489
490
        // Clear the shadow.
491
        $this->shadow = null;
492
493
        // Clear the show checkbox.
494
        $this->showCheckbox = null;
495
496
        // Clear the show in legend.
497
        $this->showInLegend = null;
498
499
        // Clear the skip keyboard navigation.
500
        $this->skipKeyboardNavigation = null;
501
502
        // Clear the states.
503
        if (null !== $this->states) {
504
            $this->states->clear();
505
        }
506
507
        // Clear the sticky tracking.
508
        $this->stickyTracking = null;
509
510
        // Clear the tooltip.
511
        $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...
512
513
        // Clear the track by area.
514
        $this->trackByArea = null;
515
516
        // Clear the turbo threshold.
517
        $this->turboThreshold = null;
518
519
        // Clear the visible.
520
        $this->visible = null;
521
522
        // Clear the zone axis.
523
        $this->zoneAxis = null;
524
525
        // Clear the zones.
526
        $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...
527
    }
528
529
    /**
530
     * Get the allow point select.
531
     *
532
     * @return boolean Returns the allow point select.
533
     */
534
    public function getAllowPointSelect() {
535
        return $this->allowPointSelect;
536
    }
537
538
    /**
539
     * Get the animation.
540
     *
541
     * @return boolean Returns the animation.
542
     */
543
    public function getAnimation() {
544
        return $this->animation;
545
    }
546
547
    /**
548
     * Get the animation limit.
549
     *
550
     * @return integer Returns the animation limit.
551
     */
552
    public function getAnimationLimit() {
553
        return $this->animationLimit;
554
    }
555
556
    /**
557
     * Get the class name.
558
     *
559
     * @return string Returns the class name.
560
     */
561
    public function getClassName() {
562
        return $this->className;
563
    }
564
565
    /**
566
     * Get the color.
567
     *
568
     * @return string Returns the color.
569
     */
570
    public function getColor() {
571
        return $this->color;
572
    }
573
574
    /**
575
     * Get the color index.
576
     *
577
     * @return integer Returns the color index.
578
     */
579
    public function getColorIndex() {
580
        return $this->colorIndex;
581
    }
582
583
    /**
584
     * Get the connect nulls.
585
     *
586
     * @return boolean Returns the connect nulls.
587
     */
588
    public function getConnectNulls() {
589
        return $this->connectNulls;
590
    }
591
592
    /**
593
     * Get the crop threshold.
594
     *
595
     * @return integer Returns the crop threshold.
596
     */
597
    public function getCropThreshold() {
598
        return $this->cropThreshold;
599
    }
600
601
    /**
602
     * Get the cursor.
603
     *
604
     * @return string Returns the cursor.
605
     */
606
    public function getCursor() {
607
        return $this->cursor;
608
    }
609
610
    /**
611
     * Get the dash style.
612
     *
613
     * @return string Returns the dash style.
614
     */
615
    public function getDashStyle() {
616
        return $this->dashStyle;
617
    }
618
619
    /**
620
     * Get the data labels.
621
     *
622
     * @return array Returns the data labels.
623
     */
624
    public function getDataLabels() {
625
        return $this->dataLabels;
626
    }
627
628
    /**
629
     * Get the description.
630
     *
631
     * @return string Returns the description.
632
     */
633
    public function getDescription() {
634
        return $this->description;
635
    }
636
637
    /**
638
     * Get the enable mouse tracking.
639
     *
640
     * @return boolean Returns the enable mouse tracking.
641
     */
642
    public function getEnableMouseTracking() {
643
        return $this->enableMouseTracking;
644
    }
645
646
    /**
647
     * Get the events.
648
     *
649
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Areasplinerange\HighchartsEvents Returns the events.
650
     */
651
    public function getEvents() {
652
        return $this->events;
653
    }
654
655
    /**
656
     * Get the expose element to a11y.
657
     *
658
     * @return boolean Returns the expose element to a11y.
659
     */
660
    public function getExposeElementToA11y() {
661
        return $this->exposeElementToA11y;
662
    }
663
664
    /**
665
     * Get the fill color.
666
     *
667
     * @return string Returns the fill color.
668
     */
669
    public function getFillColor() {
670
        return $this->fillColor;
671
    }
672
673
    /**
674
     * Get the fill opacity.
675
     *
676
     * @return integer Returns the fill opacity.
677
     */
678
    public function getFillOpacity() {
679
        return $this->fillOpacity;
680
    }
681
682
    /**
683
     * Get the find nearest point by.
684
     *
685
     * @return string Returns the find nearest point by.
686
     */
687
    public function getFindNearestPointBy() {
688
        return $this->findNearestPointBy;
689
    }
690
691
    /**
692
     * Get the get extremes from all.
693
     *
694
     * @return boolean Returns the get extremes from all.
695
     */
696
    public function getGetExtremesFromAll() {
697
        return $this->getExtremesFromAll;
698
    }
699
700
    /**
701
     * Get the keys.
702
     *
703
     * @return array Returns the keys.
704
     */
705
    public function getKeys() {
706
        return $this->keys;
707
    }
708
709
    /**
710
     * Get the line color.
711
     *
712
     * @return string Returns the line color.
713
     */
714
    public function getLineColor() {
715
        return $this->lineColor;
716
    }
717
718
    /**
719
     * Get the line width.
720
     *
721
     * @return integer Returns the line width.
722
     */
723
    public function getLineWidth() {
724
        return $this->lineWidth;
725
    }
726
727
    /**
728
     * Get the linecap.
729
     *
730
     * @return string Returns the linecap.
731
     */
732
    public function getLinecap() {
733
        return $this->linecap;
734
    }
735
736
    /**
737
     * Get the linked to.
738
     *
739
     * @return string Returns the linked to.
740
     */
741
    public function getLinkedTo() {
742
        return $this->linkedTo;
743
    }
744
745
    /**
746
     * Get the negative color.
747
     *
748
     * @return string Returns the negative color.
749
     */
750
    public function getNegativeColor() {
751
        return $this->negativeColor;
752
    }
753
754
    /**
755
     * Get the negative fill color.
756
     *
757
     * @return string Returns the negative fill color.
758
     */
759
    public function getNegativeFillColor() {
760
        return $this->negativeFillColor;
761
    }
762
763
    /**
764
     * Get the point.
765
     *
766
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Areasplinerange\HighchartsPoint Returns the point.
767
     */
768
    public function getPoint() {
769
        return $this->point;
770
    }
771
772
    /**
773
     * Get the point description formatter.
774
     *
775
     * @return string Returns the point description formatter.
776
     */
777
    public function getPointDescriptionFormatter() {
778
        return $this->pointDescriptionFormatter;
779
    }
780
781
    /**
782
     * Get the point interval.
783
     *
784
     * @return integer Returns the point interval.
785
     */
786
    public function getPointInterval() {
787
        return $this->pointInterval;
788
    }
789
790
    /**
791
     * Get the point interval unit.
792
     *
793
     * @return string Returns the point interval unit.
794
     */
795
    public function getPointIntervalUnit() {
796
        return $this->pointIntervalUnit;
797
    }
798
799
    /**
800
     * Get the point placement.
801
     *
802
     * @return string|integer Returns the point placement.
803
     */
804
    public function getPointPlacement() {
805
        return $this->pointPlacement;
806
    }
807
808
    /**
809
     * Get the point start.
810
     *
811
     * @return integer Returns the point start.
812
     */
813
    public function getPointStart() {
814
        return $this->pointStart;
815
    }
816
817
    /**
818
     * Get the selected.
819
     *
820
     * @return boolean Returns the selected.
821
     */
822
    public function getSelected() {
823
        return $this->selected;
824
    }
825
826
    /**
827
     * Get the shadow.
828
     *
829
     * @return boolean|array Returns the shadow.
830
     */
831
    public function getShadow() {
832
        return $this->shadow;
833
    }
834
835
    /**
836
     * Get the show checkbox.
837
     *
838
     * @return boolean Returns the show checkbox.
839
     */
840
    public function getShowCheckbox() {
841
        return $this->showCheckbox;
842
    }
843
844
    /**
845
     * Get the show in legend.
846
     *
847
     * @return boolean Returns the show in legend.
848
     */
849
    public function getShowInLegend() {
850
        return $this->showInLegend;
851
    }
852
853
    /**
854
     * Get the skip keyboard navigation.
855
     *
856
     * @return boolean Returns the skip keyboard navigation.
857
     */
858
    public function getSkipKeyboardNavigation() {
859
        return $this->skipKeyboardNavigation;
860
    }
861
862
    /**
863
     * Get the states.
864
     *
865
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Areasplinerange\HighchartsStates Returns the states.
866
     */
867
    public function getStates() {
868
        return $this->states;
869
    }
870
871
    /**
872
     * Get the sticky tracking.
873
     *
874
     * @return boolean Returns the sticky tracking.
875
     */
876
    public function getStickyTracking() {
877
        return $this->stickyTracking;
878
    }
879
880
    /**
881
     * Get the tooltip.
882
     *
883
     * @return array Returns the tooltip.
884
     */
885
    public function getTooltip() {
886
        return $this->tooltip;
887
    }
888
889
    /**
890
     * Get the track by area.
891
     *
892
     * @return boolean Returns the track by area.
893
     */
894
    public function getTrackByArea() {
895
        return $this->trackByArea;
896
    }
897
898
    /**
899
     * Get the turbo threshold.
900
     *
901
     * @return integer Returns the turbo threshold.
902
     */
903
    public function getTurboThreshold() {
904
        return $this->turboThreshold;
905
    }
906
907
    /**
908
     * Get the visible.
909
     *
910
     * @return boolean Returns the visible.
911
     */
912
    public function getVisible() {
913
        return $this->visible;
914
    }
915
916
    /**
917
     * Get the zone axis.
918
     *
919
     * @return string Returns the zone axis.
920
     */
921
    public function getZoneAxis() {
922
        return $this->zoneAxis;
923
    }
924
925
    /**
926
     * Get the zones.
927
     *
928
     * @return array Returns the zones.
929
     */
930
    public function getZones() {
931
        return $this->zones;
932
    }
933
934
    /**
935
     * Serialize this instance.
936
     *
937
     * @return array Returns an array representing this instance.
938
     */
939
    public function jsonSerialize() {
940
        return $this->toArray();
941
    }
942
943
    /**
944
     * Create a new events.
945
     *
946
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Areasplinerange\HighchartsEvents Returns the events.
947
     */
948
    public function newEvents() {
949
        $this->events = new \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Areasplinerange\HighchartsEvents();
950
        return $this->events;
951
    }
952
953
    /**
954
     * Create a new point.
955
     *
956
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Areasplinerange\HighchartsPoint Returns the point.
957
     */
958
    public function newPoint() {
959
        $this->point = new \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Areasplinerange\HighchartsPoint();
960
        return $this->point;
961
    }
962
963
    /**
964
     * Create a new states.
965
     *
966
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Areasplinerange\HighchartsStates Returns the states.
967
     */
968
    public function newStates() {
969
        $this->states = new \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Areasplinerange\HighchartsStates();
970
        return $this->states;
971
    }
972
973
    /**
974
     * Set the allow point select.
975
     *
976
     * @param boolean $allowPointSelect The allow point select.
977
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
978
     */
979
    public function setAllowPointSelect($allowPointSelect) {
980
        $this->allowPointSelect = $allowPointSelect;
981
        return $this;
982
    }
983
984
    /**
985
     * Set the animation.
986
     *
987
     * @param boolean $animation The animation.
988
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
989
     */
990
    public function setAnimation($animation) {
991
        $this->animation = $animation;
992
        return $this;
993
    }
994
995
    /**
996
     * Set the animation limit.
997
     *
998
     * @param integer $animationLimit The animation limit.
999
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1000
     */
1001
    public function setAnimationLimit($animationLimit) {
1002
        $this->animationLimit = $animationLimit;
1003
        return $this;
1004
    }
1005
1006
    /**
1007
     * Set the class name.
1008
     *
1009
     * @param string $className The class name.
1010
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1011
     */
1012
    public function setClassName($className) {
1013
        $this->className = $className;
1014
        return $this;
1015
    }
1016
1017
    /**
1018
     * Set the color.
1019
     *
1020
     * @param string $color The color.
1021
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1022
     */
1023
    public function setColor($color) {
1024
        $this->color = $color;
1025
        return $this;
1026
    }
1027
1028
    /**
1029
     * Set the color index.
1030
     *
1031
     * @param integer $colorIndex The color index.
1032
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1033
     */
1034
    public function setColorIndex($colorIndex) {
1035
        $this->colorIndex = $colorIndex;
1036
        return $this;
1037
    }
1038
1039
    /**
1040
     * Set the connect nulls.
1041
     *
1042
     * @param boolean $connectNulls The connect nulls.
1043
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1044
     */
1045
    public function setConnectNulls($connectNulls) {
1046
        $this->connectNulls = $connectNulls;
1047
        return $this;
1048
    }
1049
1050
    /**
1051
     * Set the crop threshold.
1052
     *
1053
     * @param integer $cropThreshold The crop threshold.
1054
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1055
     */
1056
    public function setCropThreshold($cropThreshold) {
1057
        $this->cropThreshold = $cropThreshold;
1058
        return $this;
1059
    }
1060
1061
    /**
1062
     * Set the cursor.
1063
     *
1064
     * @param string $cursor The cursor.
1065
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1066
     */
1067
    public function setCursor($cursor) {
1068
        switch ($cursor) {
1069
            case null:
1070
            case "crosshair":
1071
            case "default":
1072
            case "help":
1073
            case "none":
1074
            case "pointer":
1075
            $this->cursor = $cursor;
1076
            break;
1077
        }
1078
        return $this;
1079
    }
1080
1081
    /**
1082
     * Set the dash style.
1083
     *
1084
     * @param string $dashStyle The dash style.
1085
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1086
     */
1087
    public function setDashStyle($dashStyle) {
1088
        switch ($dashStyle) {
1089
            case "Dash":
1090
            case "DashDot":
1091
            case "Dot":
1092
            case "LongDash":
1093
            case "LongDashDot":
1094
            case "LongDashDotDot":
1095
            case "ShortDash":
1096
            case "ShortDashDot":
1097
            case "ShortDashDotDot":
1098
            case "ShortDot":
1099
            case "Solid":
1100
            $this->dashStyle = $dashStyle;
1101
            break;
1102
        }
1103
        return $this;
1104
    }
1105
1106
    /**
1107
     * Set the data labels.
1108
     *
1109
     * @param array $dataLabels The data labels.
1110
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1111
     */
1112
    public function setDataLabels(array $dataLabels = null) {
1113
        $this->dataLabels = $dataLabels;
0 ignored issues
show
Documentation Bug introduced by
It seems like $dataLabels can be null. However, the property $dataLabels is declared as array. Maybe change the type of the property to array|null or add a type check?

Our type inference engine has found an assignment of a scalar value (like a string, an integer or null) to a property which is an array.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property.

To type hint that a parameter can be either an array or null, you can set a type hint of array and a default value of null. The PHP interpreter will then accept both an array or null for that parameter.

function aContainsB(array $needle = null, array  $haystack) {
    if (!$needle) {
        return false;
    }

    return array_intersect($haystack, $needle) == $haystack;
}

The function can be called with either null or an array for the parameter $needle but will only accept an array as $haystack.

Loading history...
1114
        return $this;
1115
    }
1116
1117
    /**
1118
     * Set the description.
1119
     *
1120
     * @param string $description The description.
1121
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1122
     */
1123
    public function setDescription($description) {
1124
        $this->description = $description;
1125
        return $this;
1126
    }
1127
1128
    /**
1129
     * Set the enable mouse tracking.
1130
     *
1131
     * @param boolean $enableMouseTracking The enable mouse tracking.
1132
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1133
     */
1134
    public function setEnableMouseTracking($enableMouseTracking) {
1135
        $this->enableMouseTracking = $enableMouseTracking;
1136
        return $this;
1137
    }
1138
1139
    /**
1140
     * Set the events.
1141
     *
1142
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Areasplinerange\HighchartsEvents $events The events.
1143
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1144
     */
1145
    public function setEvents(\WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Areasplinerange\HighchartsEvents $events = null) {
1146
        $this->events = $events;
1147
        return $this;
1148
    }
1149
1150
    /**
1151
     * Set the expose element to a11y.
1152
     *
1153
     * @param boolean $exposeElementToA11y The expose element to a11y.
1154
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1155
     */
1156
    public function setExposeElementToA11y($exposeElementToA11y) {
1157
        $this->exposeElementToA11y = $exposeElementToA11y;
1158
        return $this;
1159
    }
1160
1161
    /**
1162
     * Set the fill color.
1163
     *
1164
     * @param string $fillColor The fill color.
1165
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1166
     */
1167
    public function setFillColor($fillColor) {
1168
        $this->fillColor = $fillColor;
1169
        return $this;
1170
    }
1171
1172
    /**
1173
     * Set the fill opacity.
1174
     *
1175
     * @param integer $fillOpacity The fill opacity.
1176
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1177
     */
1178
    public function setFillOpacity($fillOpacity) {
1179
        $this->fillOpacity = $fillOpacity;
1180
        return $this;
1181
    }
1182
1183
    /**
1184
     * Set the find nearest point by.
1185
     *
1186
     * @param string $findNearestPointBy The find nearest point by.
1187
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1188
     */
1189
    public function setFindNearestPointBy($findNearestPointBy) {
1190
        switch ($findNearestPointBy) {
1191
            case "x":
1192
            case "xy":
1193
            $this->findNearestPointBy = $findNearestPointBy;
1194
            break;
1195
        }
1196
        return $this;
1197
    }
1198
1199
    /**
1200
     * Set the get extremes from all.
1201
     *
1202
     * @param boolean $getExtremesFromAll The get extremes from all.
1203
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1204
     */
1205
    public function setGetExtremesFromAll($getExtremesFromAll) {
1206
        $this->getExtremesFromAll = $getExtremesFromAll;
1207
        return $this;
1208
    }
1209
1210
    /**
1211
     * Set the keys.
1212
     *
1213
     * @param array $keys The keys.
1214
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1215
     */
1216
    public function setKeys(array $keys = null) {
1217
        $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...
1218
        return $this;
1219
    }
1220
1221
    /**
1222
     * Set the line color.
1223
     *
1224
     * @param string $lineColor The line color.
1225
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1226
     */
1227
    public function setLineColor($lineColor) {
1228
        $this->lineColor = $lineColor;
1229
        return $this;
1230
    }
1231
1232
    /**
1233
     * Set the line width.
1234
     *
1235
     * @param integer $lineWidth The line width.
1236
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1237
     */
1238
    public function setLineWidth($lineWidth) {
1239
        $this->lineWidth = $lineWidth;
1240
        return $this;
1241
    }
1242
1243
    /**
1244
     * Set the linecap.
1245
     *
1246
     * @param string $linecap The linecap.
1247
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1248
     */
1249
    public function setLinecap($linecap) {
1250
        switch ($linecap) {
1251
            case "round":
1252
            case "square":
1253
            $this->linecap = $linecap;
1254
            break;
1255
        }
1256
        return $this;
1257
    }
1258
1259
    /**
1260
     * Set the linked to.
1261
     *
1262
     * @param string $linkedTo The linked to.
1263
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1264
     */
1265
    public function setLinkedTo($linkedTo) {
1266
        $this->linkedTo = $linkedTo;
1267
        return $this;
1268
    }
1269
1270
    /**
1271
     * Set the negative color.
1272
     *
1273
     * @param string $negativeColor The negative color.
1274
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1275
     */
1276
    public function setNegativeColor($negativeColor) {
1277
        $this->negativeColor = $negativeColor;
1278
        return $this;
1279
    }
1280
1281
    /**
1282
     * Set the negative fill color.
1283
     *
1284
     * @param string $negativeFillColor The negative fill color.
1285
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1286
     */
1287
    public function setNegativeFillColor($negativeFillColor) {
1288
        $this->negativeFillColor = $negativeFillColor;
1289
        return $this;
1290
    }
1291
1292
    /**
1293
     * Set the point.
1294
     *
1295
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Areasplinerange\HighchartsPoint $point The point.
1296
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1297
     */
1298
    public function setPoint(\WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Areasplinerange\HighchartsPoint $point = null) {
1299
        $this->point = $point;
1300
        return $this;
1301
    }
1302
1303
    /**
1304
     * Set the point description formatter.
1305
     *
1306
     * @param string $pointDescriptionFormatter The point description formatter.
1307
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1308
     */
1309
    public function setPointDescriptionFormatter($pointDescriptionFormatter) {
1310
        $this->pointDescriptionFormatter = $pointDescriptionFormatter;
1311
        return $this;
1312
    }
1313
1314
    /**
1315
     * Set the point interval.
1316
     *
1317
     * @param integer $pointInterval The point interval.
1318
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1319
     */
1320
    public function setPointInterval($pointInterval) {
1321
        $this->pointInterval = $pointInterval;
1322
        return $this;
1323
    }
1324
1325
    /**
1326
     * Set the point interval unit.
1327
     *
1328
     * @param string $pointIntervalUnit The point interval unit.
1329
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1330
     */
1331
    public function setPointIntervalUnit($pointIntervalUnit) {
1332
        switch ($pointIntervalUnit) {
1333
            case null:
1334
            case "day":
1335
            case "month":
1336
            case "year":
1337
            $this->pointIntervalUnit = $pointIntervalUnit;
1338
            break;
1339
        }
1340
        return $this;
1341
    }
1342
1343
    /**
1344
     * Set the point placement.
1345
     *
1346
     * @param string|integer $pointPlacement The point placement.
1347
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1348
     */
1349
    public function setPointPlacement($pointPlacement) {
1350
        switch ($pointPlacement) {
1351
            case null:
1352
            case "between":
1353
            case "on":
1354
            $this->pointPlacement = $pointPlacement;
1355
            break;
1356
        }
1357
        return $this;
1358
    }
1359
1360
    /**
1361
     * Set the point start.
1362
     *
1363
     * @param integer $pointStart The point start.
1364
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1365
     */
1366
    public function setPointStart($pointStart) {
1367
        $this->pointStart = $pointStart;
1368
        return $this;
1369
    }
1370
1371
    /**
1372
     * Set the selected.
1373
     *
1374
     * @param boolean $selected The selected.
1375
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1376
     */
1377
    public function setSelected($selected) {
1378
        $this->selected = $selected;
1379
        return $this;
1380
    }
1381
1382
    /**
1383
     * Set the shadow.
1384
     *
1385
     * @param boolean|array $shadow The shadow.
1386
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1387
     */
1388
    public function setShadow($shadow) {
1389
        $this->shadow = $shadow;
1390
        return $this;
1391
    }
1392
1393
    /**
1394
     * Set the show checkbox.
1395
     *
1396
     * @param boolean $showCheckbox The show checkbox.
1397
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1398
     */
1399
    public function setShowCheckbox($showCheckbox) {
1400
        $this->showCheckbox = $showCheckbox;
1401
        return $this;
1402
    }
1403
1404
    /**
1405
     * Set the show in legend.
1406
     *
1407
     * @param boolean $showInLegend The show in legend.
1408
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1409
     */
1410
    public function setShowInLegend($showInLegend) {
1411
        $this->showInLegend = $showInLegend;
1412
        return $this;
1413
    }
1414
1415
    /**
1416
     * Set the skip keyboard navigation.
1417
     *
1418
     * @param boolean $skipKeyboardNavigation The skip keyboard navigation.
1419
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1420
     */
1421
    public function setSkipKeyboardNavigation($skipKeyboardNavigation) {
1422
        $this->skipKeyboardNavigation = $skipKeyboardNavigation;
1423
        return $this;
1424
    }
1425
1426
    /**
1427
     * Set the states.
1428
     *
1429
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Areasplinerange\HighchartsStates $states The states.
1430
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1431
     */
1432
    public function setStates(\WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Areasplinerange\HighchartsStates $states = null) {
1433
        $this->states = $states;
1434
        return $this;
1435
    }
1436
1437
    /**
1438
     * Set the sticky tracking.
1439
     *
1440
     * @param boolean $stickyTracking The sticky tracking.
1441
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1442
     */
1443
    public function setStickyTracking($stickyTracking) {
1444
        $this->stickyTracking = $stickyTracking;
1445
        return $this;
1446
    }
1447
1448
    /**
1449
     * Set the tooltip.
1450
     *
1451
     * @param array $tooltip The tooltip.
1452
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1453
     */
1454
    public function setTooltip(array $tooltip = null) {
1455
        $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...
1456
        return $this;
1457
    }
1458
1459
    /**
1460
     * Set the track by area.
1461
     *
1462
     * @param boolean $trackByArea The track by area.
1463
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1464
     */
1465
    public function setTrackByArea($trackByArea) {
1466
        $this->trackByArea = $trackByArea;
1467
        return $this;
1468
    }
1469
1470
    /**
1471
     * Set the turbo threshold.
1472
     *
1473
     * @param integer $turboThreshold The turbo threshold.
1474
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1475
     */
1476
    public function setTurboThreshold($turboThreshold) {
1477
        $this->turboThreshold = $turboThreshold;
1478
        return $this;
1479
    }
1480
1481
    /**
1482
     * Set the visible.
1483
     *
1484
     * @param boolean $visible The visible.
1485
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1486
     */
1487
    public function setVisible($visible) {
1488
        $this->visible = $visible;
1489
        return $this;
1490
    }
1491
1492
    /**
1493
     * Set the zone axis.
1494
     *
1495
     * @param string $zoneAxis The zone axis.
1496
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1497
     */
1498
    public function setZoneAxis($zoneAxis) {
1499
        $this->zoneAxis = $zoneAxis;
1500
        return $this;
1501
    }
1502
1503
    /**
1504
     * Set the zones.
1505
     *
1506
     * @param array $zones The zones.
1507
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1508
     */
1509
    public function setZones(array $zones = null) {
1510
        $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...
1511
        return $this;
1512
    }
1513
1514
    /**
1515
     * Convert into an array representing this instance.
1516
     *
1517
     * @return array Returns an array representing this instance.
1518
     */
1519
    public function toArray() {
1520
1521
        // Initialize the output.
1522
        $output = [];
1523
1524
        // Set the allow point select.
1525
        ArrayUtility::set($output, "allowPointSelect", $this->allowPointSelect, [null]);
1526
1527
        // Set the animation.
1528
        ArrayUtility::set($output, "animation", $this->animation, [null]);
1529
1530
        // Set the animation limit.
1531
        ArrayUtility::set($output, "animationLimit", $this->animationLimit, [null]);
1532
1533
        // Set the class name.
1534
        ArrayUtility::set($output, "className", $this->className, [null]);
1535
1536
        // Set the color.
1537
        ArrayUtility::set($output, "color", $this->color, [null]);
1538
1539
        // Set the color index.
1540
        ArrayUtility::set($output, "colorIndex", $this->colorIndex, [null]);
1541
1542
        // Set the connect nulls.
1543
        ArrayUtility::set($output, "connectNulls", $this->connectNulls, [null]);
1544
1545
        // Set the crop threshold.
1546
        ArrayUtility::set($output, "cropThreshold", $this->cropThreshold, [null]);
1547
1548
        // Set the cursor.
1549
        ArrayUtility::set($output, "cursor", $this->cursor, [null]);
1550
1551
        // Set the dash style.
1552
        ArrayUtility::set($output, "dashStyle", $this->dashStyle, [null]);
1553
1554
        // Set the data labels.
1555
        ArrayUtility::set($output, "dataLabels", $this->dataLabels, [null]);
1556
1557
        // Set the description.
1558
        ArrayUtility::set($output, "description", $this->description, [null]);
1559
1560
        // Set the enable mouse tracking.
1561
        ArrayUtility::set($output, "enableMouseTracking", $this->enableMouseTracking, [null]);
1562
1563
        // Set the events.
1564
        if (null !== $this->events) {
1565
            ArrayUtility::set($output, "events", $this->events->toArray(), []);
1566
        }
1567
1568
        // Set the expose element to a11y.
1569
        ArrayUtility::set($output, "exposeElementToA11y", $this->exposeElementToA11y, [null]);
1570
1571
        // Set the fill color.
1572
        ArrayUtility::set($output, "fillColor", $this->fillColor, [null]);
1573
1574
        // Set the fill opacity.
1575
        ArrayUtility::set($output, "fillOpacity", $this->fillOpacity, [null]);
1576
1577
        // Set the find nearest point by.
1578
        ArrayUtility::set($output, "findNearestPointBy", $this->findNearestPointBy, [null]);
1579
1580
        // Set the get extremes from all.
1581
        ArrayUtility::set($output, "getExtremesFromAll", $this->getExtremesFromAll, [null]);
1582
1583
        // Set the keys.
1584
        ArrayUtility::set($output, "keys", $this->keys, [null]);
1585
1586
        // Set the line color.
1587
        ArrayUtility::set($output, "lineColor", $this->lineColor, [null]);
1588
1589
        // Set the line width.
1590
        ArrayUtility::set($output, "lineWidth", $this->lineWidth, [null]);
1591
1592
        // Set the linecap.
1593
        ArrayUtility::set($output, "linecap", $this->linecap, [null]);
1594
1595
        // Set the linked to.
1596
        ArrayUtility::set($output, "linkedTo", $this->linkedTo, [null]);
1597
1598
        // Set the negative color.
1599
        ArrayUtility::set($output, "negativeColor", $this->negativeColor, [null]);
1600
1601
        // Set the negative fill color.
1602
        ArrayUtility::set($output, "negativeFillColor", $this->negativeFillColor, [null]);
1603
1604
        // Set the point.
1605
        if (null !== $this->point) {
1606
            ArrayUtility::set($output, "point", $this->point->toArray(), []);
1607
        }
1608
1609
        // Set the point description formatter.
1610
        ArrayUtility::set($output, "pointDescriptionFormatter", $this->pointDescriptionFormatter, [null]);
1611
1612
        // Set the point interval.
1613
        ArrayUtility::set($output, "pointInterval", $this->pointInterval, [null]);
1614
1615
        // Set the point interval unit.
1616
        ArrayUtility::set($output, "pointIntervalUnit", $this->pointIntervalUnit, [null]);
1617
1618
        // Set the point placement.
1619
        ArrayUtility::set($output, "pointPlacement", $this->pointPlacement, [null]);
1620
1621
        // Set the point start.
1622
        ArrayUtility::set($output, "pointStart", $this->pointStart, [null]);
1623
1624
        // Set the selected.
1625
        ArrayUtility::set($output, "selected", $this->selected, [null]);
1626
1627
        // Set the shadow.
1628
        ArrayUtility::set($output, "shadow", $this->shadow, [null]);
1629
1630
        // Set the show checkbox.
1631
        ArrayUtility::set($output, "showCheckbox", $this->showCheckbox, [null]);
1632
1633
        // Set the show in legend.
1634
        ArrayUtility::set($output, "showInLegend", $this->showInLegend, [null]);
1635
1636
        // Set the skip keyboard navigation.
1637
        ArrayUtility::set($output, "skipKeyboardNavigation", $this->skipKeyboardNavigation, [null]);
1638
1639
        // Set the states.
1640
        if (null !== $this->states) {
1641
            ArrayUtility::set($output, "states", $this->states->toArray(), []);
1642
        }
1643
1644
        // Set the sticky tracking.
1645
        ArrayUtility::set($output, "stickyTracking", $this->stickyTracking, [null]);
1646
1647
        // Set the tooltip.
1648
        ArrayUtility::set($output, "tooltip", $this->tooltip, [null]);
1649
1650
        // Set the track by area.
1651
        ArrayUtility::set($output, "trackByArea", $this->trackByArea, [null]);
1652
1653
        // Set the turbo threshold.
1654
        ArrayUtility::set($output, "turboThreshold", $this->turboThreshold, [null]);
1655
1656
        // Set the visible.
1657
        ArrayUtility::set($output, "visible", $this->visible, [null]);
1658
1659
        // Set the zone axis.
1660
        ArrayUtility::set($output, "zoneAxis", $this->zoneAxis, [null]);
1661
1662
        // Set the zones.
1663
        ArrayUtility::set($output, "zones", $this->zones, [null]);
1664
1665
        // Return the output.
1666
        return $output;
1667
    }
1668
1669
}
1670