HighchartsAreasplinerange::getAnimation()   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\Series;
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\Series
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.
104
     *
105
     * @var array
106
     */
107
    private $data;
108
109
    /**
110
     * Data labels.
111
     *
112
     * @var array
113
     * @since 2.3.0
114
     */
115
    private $dataLabels;
116
117
    /**
118
     * Description.
119
     *
120
     * @var string
121
     * @since 5.0.0
122
     */
123
    private $description;
124
125
    /**
126
     * Enable mouse tracking.
127
     *
128
     * @var boolean
129
     */
130
    private $enableMouseTracking = true;
131
132
    /**
133
     * Events.
134
     *
135
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Areasplinerange\HighchartsEvents
136
     */
137
    private $events;
138
139
    /**
140
     * Expose element to a11y.
141
     *
142
     * @var boolean
143
     * @since 5.0.12
144
     */
145
    private $exposeElementToA11y;
146
147
    /**
148
     * Fill color.
149
     *
150
     * @var string
151
     */
152
    private $fillColor;
153
154
    /**
155
     * Fill opacity.
156
     *
157
     * @var integer
158
     */
159
    private $fillOpacity = 0.75;
160
161
    /**
162
     * Find nearest point by.
163
     *
164
     * @var string
165
     * @since 5.0.10
166
     */
167
    private $findNearestPointBy;
168
169
    /**
170
     * Get extremes from all.
171
     *
172
     * @var boolean
173
     * @since 4.1.6
174
     */
175
    private $getExtremesFromAll = false;
176
177
    /**
178
     * Id.
179
     *
180
     * @var string
181
     * @since 1.2.0
182
     */
183
    private $id;
184
185
    /**
186
     * Index.
187
     *
188
     * @var integer
189
     * @since 2.3.0
190
     */
191
    private $index;
192
193
    /**
194
     * Keys.
195
     *
196
     * @var array
197
     * @since 4.1.6
198
     */
199
    private $keys;
200
201
    /**
202
     * Legend index.
203
     *
204
     * @var integer
205
     */
206
    private $legendIndex;
207
208
    /**
209
     * Line color.
210
     *
211
     * @var string
212
     */
213
    private $lineColor;
214
215
    /**
216
     * Line width.
217
     *
218
     * @var integer
219
     * @since 2.3.0
220
     */
221
    private $lineWidth = 1;
222
223
    /**
224
     * Linecap.
225
     *
226
     * @var string
227
     */
228
    private $linecap = "round";
229
230
    /**
231
     * Linked to.
232
     *
233
     * @var string
234
     * @since 3.0
235
     */
236
    private $linkedTo;
237
238
    /**
239
     * Name.
240
     *
241
     * @var string
242
     */
243
    private $name;
244
245
    /**
246
     * Negative color.
247
     *
248
     * @var string
249
     * @since 3.0
250
     */
251
    private $negativeColor;
252
253
    /**
254
     * Negative fill color.
255
     *
256
     * @var string
257
     * @since 3.0
258
     */
259
    private $negativeFillColor;
260
261
    /**
262
     * Point.
263
     *
264
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Areasplinerange\HighchartsPoint
265
     */
266
    private $point;
267
268
    /**
269
     * Point description formatter.
270
     *
271
     * @var string
272
     * @since 5.0.12
273
     */
274
    private $pointDescriptionFormatter;
275
276
    /**
277
     * Point interval.
278
     *
279
     * @var integer
280
     */
281
    private $pointInterval = 1;
282
283
    /**
284
     * Point interval unit.
285
     *
286
     * @var string
287
     * @since 4.1.0
288
     */
289
    private $pointIntervalUnit;
290
291
    /**
292
     * Point placement.
293
     *
294
     * @var string|integer
295
     * @since 2.3.0
296
     */
297
    private $pointPlacement;
298
299
    /**
300
     * Point start.
301
     *
302
     * @var integer
303
     */
304
    private $pointStart = 0;
305
306
    /**
307
     * Selected.
308
     *
309
     * @var boolean
310
     * @since 1.2.0
311
     */
312
    private $selected = false;
313
314
    /**
315
     * Shadow.
316
     *
317
     * @var boolean|array
318
     */
319
    private $shadow = false;
320
321
    /**
322
     * Show checkbox.
323
     *
324
     * @var boolean
325
     * @since 1.2.0
326
     */
327
    private $showCheckbox = false;
328
329
    /**
330
     * Show in legend.
331
     *
332
     * @var boolean
333
     */
334
    private $showInLegend = true;
335
336
    /**
337
     * Skip keyboard navigation.
338
     *
339
     * @var boolean
340
     * @since 5.0.12
341
     */
342
    private $skipKeyboardNavigation;
343
344
    /**
345
     * States.
346
     *
347
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Areasplinerange\HighchartsStates
348
     */
349
    private $states;
350
351
    /**
352
     * Sticky tracking.
353
     *
354
     * @var boolean
355
     * @since 2.0
356
     */
357
    private $stickyTracking = true;
358
359
    /**
360
     * Tooltip.
361
     *
362
     * @var array
363
     * @since 2.3
364
     */
365
    private $tooltip;
366
367
    /**
368
     * Track by area.
369
     *
370
     * @var boolean
371
     * @since 2.3.0
372
     */
373
    private $trackByArea = true;
374
375
    /**
376
     * Turbo threshold.
377
     *
378
     * @var integer
379
     * @since 2.2
380
     */
381
    private $turboThreshold = 1000;
382
383
    /**
384
     * Type.
385
     *
386
     * @var string
387
     */
388
    private $type;
389
390
    /**
391
     * Visible.
392
     *
393
     * @var boolean
394
     */
395
    private $visible = true;
396
397
    /**
398
     * X axis.
399
     *
400
     * @var integer|string
401
     */
402
    private $xAxis = "0";
403
404
    /**
405
     * Y axis.
406
     *
407
     * @var integer|string
408
     */
409
    private $yAxis = "0";
410
411
    /**
412
     * Z index.
413
     *
414
     * @var integer
415
     */
416
    private $zIndex;
417
418
    /**
419
     * Zone axis.
420
     *
421
     * @var string
422
     * @since 4.1.0
423
     */
424
    private $zoneAxis = "y";
425
426
    /**
427
     * Zones.
428
     *
429
     * @var array
430
     * @since 4.1.0
431
     */
432
    private $zones;
433
434
    /**
435
     * Constructor.
436
     *
437
     * @param boolean $ignoreDefaultValues Ignore the default values.
438
     */
439
    public function __construct($ignoreDefaultValues = true) {
440
        if (true === $ignoreDefaultValues) {
441
            $this->clear();
442
        }
443
    }
444
445
    /**
446
     * Clear.
447
     *
448
     * @return void
449
     */
450
    public function clear() {
451
452
        // Clear the allow point select.
453
        $this->allowPointSelect = null;
454
455
        // Clear the animation.
456
        $this->animation = null;
457
458
        // Clear the animation limit.
459
        $this->animationLimit = null;
460
461
        // Clear the class name.
462
        $this->className = null;
463
464
        // Clear the color.
465
        $this->color = null;
466
467
        // Clear the color index.
468
        $this->colorIndex = null;
469
470
        // Clear the connect nulls.
471
        $this->connectNulls = null;
472
473
        // Clear the crop threshold.
474
        $this->cropThreshold = null;
475
476
        // Clear the cursor.
477
        $this->cursor = null;
478
479
        // Clear the dash style.
480
        $this->dashStyle = null;
481
482
        // Clear the data.
483
        $this->data = null;
0 ignored issues
show
Documentation Bug introduced by
It seems like null of type null is incompatible with the declared type array of property $data.

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

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

Loading history...
484
485
        // Clear the data labels.
486
        $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...
487
488
        // Clear the description.
489
        $this->description = null;
490
491
        // Clear the enable mouse tracking.
492
        $this->enableMouseTracking = null;
493
494
        // Clear the events.
495
        if (null !== $this->events) {
496
            $this->events->clear();
497
        }
498
499
        // Clear the expose element to a11y.
500
        $this->exposeElementToA11y = null;
501
502
        // Clear the fill color.
503
        $this->fillColor = null;
504
505
        // Clear the fill opacity.
506
        $this->fillOpacity = null;
507
508
        // Clear the find nearest point by.
509
        $this->findNearestPointBy = null;
510
511
        // Clear the get extremes from all.
512
        $this->getExtremesFromAll = null;
513
514
        // Clear the id.
515
        $this->id = null;
516
517
        // Clear the index.
518
        $this->index = null;
519
520
        // Clear the keys.
521
        $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...
522
523
        // Clear the legend index.
524
        $this->legendIndex = null;
525
526
        // Clear the line color.
527
        $this->lineColor = null;
528
529
        // Clear the line width.
530
        $this->lineWidth = null;
531
532
        // Clear the linecap.
533
        $this->linecap = null;
534
535
        // Clear the linked to.
536
        $this->linkedTo = null;
537
538
        // Clear the name.
539
        $this->name = null;
540
541
        // Clear the negative color.
542
        $this->negativeColor = null;
543
544
        // Clear the negative fill color.
545
        $this->negativeFillColor = null;
546
547
        // Clear the point.
548
        if (null !== $this->point) {
549
            $this->point->clear();
550
        }
551
552
        // Clear the point description formatter.
553
        $this->pointDescriptionFormatter = null;
554
555
        // Clear the point interval.
556
        $this->pointInterval = null;
557
558
        // Clear the point interval unit.
559
        $this->pointIntervalUnit = null;
560
561
        // Clear the point placement.
562
        $this->pointPlacement = null;
563
564
        // Clear the point start.
565
        $this->pointStart = null;
566
567
        // Clear the selected.
568
        $this->selected = null;
569
570
        // Clear the shadow.
571
        $this->shadow = null;
572
573
        // Clear the show checkbox.
574
        $this->showCheckbox = null;
575
576
        // Clear the show in legend.
577
        $this->showInLegend = null;
578
579
        // Clear the skip keyboard navigation.
580
        $this->skipKeyboardNavigation = null;
581
582
        // Clear the states.
583
        if (null !== $this->states) {
584
            $this->states->clear();
585
        }
586
587
        // Clear the sticky tracking.
588
        $this->stickyTracking = null;
589
590
        // Clear the tooltip.
591
        $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...
592
593
        // Clear the track by area.
594
        $this->trackByArea = null;
595
596
        // Clear the turbo threshold.
597
        $this->turboThreshold = null;
598
599
        // Clear the type.
600
        $this->type = null;
601
602
        // Clear the visible.
603
        $this->visible = null;
604
605
        // Clear the x axis.
606
        $this->xAxis = null;
607
608
        // Clear the y axis.
609
        $this->yAxis = null;
610
611
        // Clear the z index.
612
        $this->zIndex = null;
613
614
        // Clear the zone axis.
615
        $this->zoneAxis = null;
616
617
        // Clear the zones.
618
        $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...
619
    }
620
621
    /**
622
     * Get the allow point select.
623
     *
624
     * @return boolean Returns the allow point select.
625
     */
626
    public function getAllowPointSelect() {
627
        return $this->allowPointSelect;
628
    }
629
630
    /**
631
     * Get the animation.
632
     *
633
     * @return boolean Returns the animation.
634
     */
635
    public function getAnimation() {
636
        return $this->animation;
637
    }
638
639
    /**
640
     * Get the animation limit.
641
     *
642
     * @return integer Returns the animation limit.
643
     */
644
    public function getAnimationLimit() {
645
        return $this->animationLimit;
646
    }
647
648
    /**
649
     * Get the class name.
650
     *
651
     * @return string Returns the class name.
652
     */
653
    public function getClassName() {
654
        return $this->className;
655
    }
656
657
    /**
658
     * Get the color.
659
     *
660
     * @return string Returns the color.
661
     */
662
    public function getColor() {
663
        return $this->color;
664
    }
665
666
    /**
667
     * Get the color index.
668
     *
669
     * @return integer Returns the color index.
670
     */
671
    public function getColorIndex() {
672
        return $this->colorIndex;
673
    }
674
675
    /**
676
     * Get the connect nulls.
677
     *
678
     * @return boolean Returns the connect nulls.
679
     */
680
    public function getConnectNulls() {
681
        return $this->connectNulls;
682
    }
683
684
    /**
685
     * Get the crop threshold.
686
     *
687
     * @return integer Returns the crop threshold.
688
     */
689
    public function getCropThreshold() {
690
        return $this->cropThreshold;
691
    }
692
693
    /**
694
     * Get the cursor.
695
     *
696
     * @return string Returns the cursor.
697
     */
698
    public function getCursor() {
699
        return $this->cursor;
700
    }
701
702
    /**
703
     * Get the dash style.
704
     *
705
     * @return string Returns the dash style.
706
     */
707
    public function getDashStyle() {
708
        return $this->dashStyle;
709
    }
710
711
    /**
712
     * Get the data.
713
     *
714
     * @return array Returns the data.
715
     */
716
    public function getData() {
717
        return $this->data;
718
    }
719
720
    /**
721
     * Get the data labels.
722
     *
723
     * @return array Returns the data labels.
724
     */
725
    public function getDataLabels() {
726
        return $this->dataLabels;
727
    }
728
729
    /**
730
     * Get the description.
731
     *
732
     * @return string Returns the description.
733
     */
734
    public function getDescription() {
735
        return $this->description;
736
    }
737
738
    /**
739
     * Get the enable mouse tracking.
740
     *
741
     * @return boolean Returns the enable mouse tracking.
742
     */
743
    public function getEnableMouseTracking() {
744
        return $this->enableMouseTracking;
745
    }
746
747
    /**
748
     * Get the events.
749
     *
750
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Areasplinerange\HighchartsEvents Returns the events.
751
     */
752
    public function getEvents() {
753
        return $this->events;
754
    }
755
756
    /**
757
     * Get the expose element to a11y.
758
     *
759
     * @return boolean Returns the expose element to a11y.
760
     */
761
    public function getExposeElementToA11y() {
762
        return $this->exposeElementToA11y;
763
    }
764
765
    /**
766
     * Get the fill color.
767
     *
768
     * @return string Returns the fill color.
769
     */
770
    public function getFillColor() {
771
        return $this->fillColor;
772
    }
773
774
    /**
775
     * Get the fill opacity.
776
     *
777
     * @return integer Returns the fill opacity.
778
     */
779
    public function getFillOpacity() {
780
        return $this->fillOpacity;
781
    }
782
783
    /**
784
     * Get the find nearest point by.
785
     *
786
     * @return string Returns the find nearest point by.
787
     */
788
    public function getFindNearestPointBy() {
789
        return $this->findNearestPointBy;
790
    }
791
792
    /**
793
     * Get the get extremes from all.
794
     *
795
     * @return boolean Returns the get extremes from all.
796
     */
797
    public function getGetExtremesFromAll() {
798
        return $this->getExtremesFromAll;
799
    }
800
801
    /**
802
     * Get the id.
803
     *
804
     * @return string Returns the id.
805
     */
806
    public function getId() {
807
        return $this->id;
808
    }
809
810
    /**
811
     * Get the index.
812
     *
813
     * @return integer Returns the index.
814
     */
815
    public function getIndex() {
816
        return $this->index;
817
    }
818
819
    /**
820
     * Get the keys.
821
     *
822
     * @return array Returns the keys.
823
     */
824
    public function getKeys() {
825
        return $this->keys;
826
    }
827
828
    /**
829
     * Get the legend index.
830
     *
831
     * @return integer Returns the legend index.
832
     */
833
    public function getLegendIndex() {
834
        return $this->legendIndex;
835
    }
836
837
    /**
838
     * Get the line color.
839
     *
840
     * @return string Returns the line color.
841
     */
842
    public function getLineColor() {
843
        return $this->lineColor;
844
    }
845
846
    /**
847
     * Get the line width.
848
     *
849
     * @return integer Returns the line width.
850
     */
851
    public function getLineWidth() {
852
        return $this->lineWidth;
853
    }
854
855
    /**
856
     * Get the linecap.
857
     *
858
     * @return string Returns the linecap.
859
     */
860
    public function getLinecap() {
861
        return $this->linecap;
862
    }
863
864
    /**
865
     * Get the linked to.
866
     *
867
     * @return string Returns the linked to.
868
     */
869
    public function getLinkedTo() {
870
        return $this->linkedTo;
871
    }
872
873
    /**
874
     * Get the name.
875
     *
876
     * @return string Returns the name.
877
     */
878
    public function getName() {
879
        return $this->name;
880
    }
881
882
    /**
883
     * Get the negative color.
884
     *
885
     * @return string Returns the negative color.
886
     */
887
    public function getNegativeColor() {
888
        return $this->negativeColor;
889
    }
890
891
    /**
892
     * Get the negative fill color.
893
     *
894
     * @return string Returns the negative fill color.
895
     */
896
    public function getNegativeFillColor() {
897
        return $this->negativeFillColor;
898
    }
899
900
    /**
901
     * Get the point.
902
     *
903
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Areasplinerange\HighchartsPoint Returns the point.
904
     */
905
    public function getPoint() {
906
        return $this->point;
907
    }
908
909
    /**
910
     * Get the point description formatter.
911
     *
912
     * @return string Returns the point description formatter.
913
     */
914
    public function getPointDescriptionFormatter() {
915
        return $this->pointDescriptionFormatter;
916
    }
917
918
    /**
919
     * Get the point interval.
920
     *
921
     * @return integer Returns the point interval.
922
     */
923
    public function getPointInterval() {
924
        return $this->pointInterval;
925
    }
926
927
    /**
928
     * Get the point interval unit.
929
     *
930
     * @return string Returns the point interval unit.
931
     */
932
    public function getPointIntervalUnit() {
933
        return $this->pointIntervalUnit;
934
    }
935
936
    /**
937
     * Get the point placement.
938
     *
939
     * @return string|integer Returns the point placement.
940
     */
941
    public function getPointPlacement() {
942
        return $this->pointPlacement;
943
    }
944
945
    /**
946
     * Get the point start.
947
     *
948
     * @return integer Returns the point start.
949
     */
950
    public function getPointStart() {
951
        return $this->pointStart;
952
    }
953
954
    /**
955
     * Get the selected.
956
     *
957
     * @return boolean Returns the selected.
958
     */
959
    public function getSelected() {
960
        return $this->selected;
961
    }
962
963
    /**
964
     * Get the shadow.
965
     *
966
     * @return boolean|array Returns the shadow.
967
     */
968
    public function getShadow() {
969
        return $this->shadow;
970
    }
971
972
    /**
973
     * Get the show checkbox.
974
     *
975
     * @return boolean Returns the show checkbox.
976
     */
977
    public function getShowCheckbox() {
978
        return $this->showCheckbox;
979
    }
980
981
    /**
982
     * Get the show in legend.
983
     *
984
     * @return boolean Returns the show in legend.
985
     */
986
    public function getShowInLegend() {
987
        return $this->showInLegend;
988
    }
989
990
    /**
991
     * Get the skip keyboard navigation.
992
     *
993
     * @return boolean Returns the skip keyboard navigation.
994
     */
995
    public function getSkipKeyboardNavigation() {
996
        return $this->skipKeyboardNavigation;
997
    }
998
999
    /**
1000
     * Get the states.
1001
     *
1002
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Areasplinerange\HighchartsStates Returns the states.
1003
     */
1004
    public function getStates() {
1005
        return $this->states;
1006
    }
1007
1008
    /**
1009
     * Get the sticky tracking.
1010
     *
1011
     * @return boolean Returns the sticky tracking.
1012
     */
1013
    public function getStickyTracking() {
1014
        return $this->stickyTracking;
1015
    }
1016
1017
    /**
1018
     * Get the tooltip.
1019
     *
1020
     * @return array Returns the tooltip.
1021
     */
1022
    public function getTooltip() {
1023
        return $this->tooltip;
1024
    }
1025
1026
    /**
1027
     * Get the track by area.
1028
     *
1029
     * @return boolean Returns the track by area.
1030
     */
1031
    public function getTrackByArea() {
1032
        return $this->trackByArea;
1033
    }
1034
1035
    /**
1036
     * Get the turbo threshold.
1037
     *
1038
     * @return integer Returns the turbo threshold.
1039
     */
1040
    public function getTurboThreshold() {
1041
        return $this->turboThreshold;
1042
    }
1043
1044
    /**
1045
     * Get the type.
1046
     *
1047
     * @return string Returns the type.
1048
     */
1049
    public function getType() {
1050
        return $this->type;
1051
    }
1052
1053
    /**
1054
     * Get the visible.
1055
     *
1056
     * @return boolean Returns the visible.
1057
     */
1058
    public function getVisible() {
1059
        return $this->visible;
1060
    }
1061
1062
    /**
1063
     * Get the x axis.
1064
     *
1065
     * @return integer|string Returns the x axis.
1066
     */
1067
    public function getXAxis() {
1068
        return $this->xAxis;
1069
    }
1070
1071
    /**
1072
     * Get the y axis.
1073
     *
1074
     * @return integer|string Returns the y axis.
1075
     */
1076
    public function getYAxis() {
1077
        return $this->yAxis;
1078
    }
1079
1080
    /**
1081
     * Get the z index.
1082
     *
1083
     * @return integer Returns the z index.
1084
     */
1085
    public function getZIndex() {
1086
        return $this->zIndex;
1087
    }
1088
1089
    /**
1090
     * Get the zone axis.
1091
     *
1092
     * @return string Returns the zone axis.
1093
     */
1094
    public function getZoneAxis() {
1095
        return $this->zoneAxis;
1096
    }
1097
1098
    /**
1099
     * Get the zones.
1100
     *
1101
     * @return array Returns the zones.
1102
     */
1103
    public function getZones() {
1104
        return $this->zones;
1105
    }
1106
1107
    /**
1108
     * Serialize this instance.
1109
     *
1110
     * @return array Returns an array representing this instance.
1111
     */
1112
    public function jsonSerialize() {
1113
        return $this->toArray();
1114
    }
1115
1116
    /**
1117
     * Create a new events.
1118
     *
1119
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Areasplinerange\HighchartsEvents Returns the events.
1120
     */
1121
    public function newEvents() {
1122
        $this->events = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Areasplinerange\HighchartsEvents();
1123
        return $this->events;
1124
    }
1125
1126
    /**
1127
     * Create a new point.
1128
     *
1129
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Areasplinerange\HighchartsPoint Returns the point.
1130
     */
1131
    public function newPoint() {
1132
        $this->point = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Areasplinerange\HighchartsPoint();
1133
        return $this->point;
1134
    }
1135
1136
    /**
1137
     * Create a new states.
1138
     *
1139
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Areasplinerange\HighchartsStates Returns the states.
1140
     */
1141
    public function newStates() {
1142
        $this->states = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Areasplinerange\HighchartsStates();
1143
        return $this->states;
1144
    }
1145
1146
    /**
1147
     * Set the allow point select.
1148
     *
1149
     * @param boolean $allowPointSelect The allow point select.
1150
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1151
     */
1152
    public function setAllowPointSelect($allowPointSelect) {
1153
        $this->allowPointSelect = $allowPointSelect;
1154
        return $this;
1155
    }
1156
1157
    /**
1158
     * Set the animation.
1159
     *
1160
     * @param boolean $animation The animation.
1161
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1162
     */
1163
    public function setAnimation($animation) {
1164
        $this->animation = $animation;
1165
        return $this;
1166
    }
1167
1168
    /**
1169
     * Set the animation limit.
1170
     *
1171
     * @param integer $animationLimit The animation limit.
1172
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1173
     */
1174
    public function setAnimationLimit($animationLimit) {
1175
        $this->animationLimit = $animationLimit;
1176
        return $this;
1177
    }
1178
1179
    /**
1180
     * Set the class name.
1181
     *
1182
     * @param string $className The class name.
1183
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1184
     */
1185
    public function setClassName($className) {
1186
        $this->className = $className;
1187
        return $this;
1188
    }
1189
1190
    /**
1191
     * Set the color.
1192
     *
1193
     * @param string $color The color.
1194
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1195
     */
1196
    public function setColor($color) {
1197
        $this->color = $color;
1198
        return $this;
1199
    }
1200
1201
    /**
1202
     * Set the color index.
1203
     *
1204
     * @param integer $colorIndex The color index.
1205
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1206
     */
1207
    public function setColorIndex($colorIndex) {
1208
        $this->colorIndex = $colorIndex;
1209
        return $this;
1210
    }
1211
1212
    /**
1213
     * Set the connect nulls.
1214
     *
1215
     * @param boolean $connectNulls The connect nulls.
1216
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1217
     */
1218
    public function setConnectNulls($connectNulls) {
1219
        $this->connectNulls = $connectNulls;
1220
        return $this;
1221
    }
1222
1223
    /**
1224
     * Set the crop threshold.
1225
     *
1226
     * @param integer $cropThreshold The crop threshold.
1227
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1228
     */
1229
    public function setCropThreshold($cropThreshold) {
1230
        $this->cropThreshold = $cropThreshold;
1231
        return $this;
1232
    }
1233
1234
    /**
1235
     * Set the cursor.
1236
     *
1237
     * @param string $cursor The cursor.
1238
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1239
     */
1240
    public function setCursor($cursor) {
1241
        switch ($cursor) {
1242
            case null:
1243
            case "crosshair":
1244
            case "default":
1245
            case "help":
1246
            case "none":
1247
            case "pointer":
1248
            $this->cursor = $cursor;
1249
            break;
1250
        }
1251
        return $this;
1252
    }
1253
1254
    /**
1255
     * Set the dash style.
1256
     *
1257
     * @param string $dashStyle The dash style.
1258
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1259
     */
1260
    public function setDashStyle($dashStyle) {
1261
        switch ($dashStyle) {
1262
            case "Dash":
1263
            case "DashDot":
1264
            case "Dot":
1265
            case "LongDash":
1266
            case "LongDashDot":
1267
            case "LongDashDotDot":
1268
            case "ShortDash":
1269
            case "ShortDashDot":
1270
            case "ShortDashDotDot":
1271
            case "ShortDot":
1272
            case "Solid":
1273
            $this->dashStyle = $dashStyle;
1274
            break;
1275
        }
1276
        return $this;
1277
    }
1278
1279
    /**
1280
     * Set the data.
1281
     *
1282
     * @param array $data The data.
1283
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1284
     */
1285
    public function setData(array $data = null) {
1286
        $this->data = $data;
0 ignored issues
show
Documentation Bug introduced by
It seems like $data can be null. However, the property $data is declared as array. Maybe change the type of the property to array|null or add a type check?

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

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

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

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

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

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

Loading history...
1287
        return $this;
1288
    }
1289
1290
    /**
1291
     * Set the data labels.
1292
     *
1293
     * @param array $dataLabels The data labels.
1294
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1295
     */
1296
    public function setDataLabels(array $dataLabels = null) {
1297
        $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...
1298
        return $this;
1299
    }
1300
1301
    /**
1302
     * Set the description.
1303
     *
1304
     * @param string $description The description.
1305
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1306
     */
1307
    public function setDescription($description) {
1308
        $this->description = $description;
1309
        return $this;
1310
    }
1311
1312
    /**
1313
     * Set the enable mouse tracking.
1314
     *
1315
     * @param boolean $enableMouseTracking The enable mouse tracking.
1316
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1317
     */
1318
    public function setEnableMouseTracking($enableMouseTracking) {
1319
        $this->enableMouseTracking = $enableMouseTracking;
1320
        return $this;
1321
    }
1322
1323
    /**
1324
     * Set the events.
1325
     *
1326
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Areasplinerange\HighchartsEvents $events The events.
1327
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1328
     */
1329
    public function setEvents(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Areasplinerange\HighchartsEvents $events = null) {
1330
        $this->events = $events;
1331
        return $this;
1332
    }
1333
1334
    /**
1335
     * Set the expose element to a11y.
1336
     *
1337
     * @param boolean $exposeElementToA11y The expose element to a11y.
1338
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1339
     */
1340
    public function setExposeElementToA11y($exposeElementToA11y) {
1341
        $this->exposeElementToA11y = $exposeElementToA11y;
1342
        return $this;
1343
    }
1344
1345
    /**
1346
     * Set the fill color.
1347
     *
1348
     * @param string $fillColor The fill color.
1349
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1350
     */
1351
    public function setFillColor($fillColor) {
1352
        $this->fillColor = $fillColor;
1353
        return $this;
1354
    }
1355
1356
    /**
1357
     * Set the fill opacity.
1358
     *
1359
     * @param integer $fillOpacity The fill opacity.
1360
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1361
     */
1362
    public function setFillOpacity($fillOpacity) {
1363
        $this->fillOpacity = $fillOpacity;
1364
        return $this;
1365
    }
1366
1367
    /**
1368
     * Set the find nearest point by.
1369
     *
1370
     * @param string $findNearestPointBy The find nearest point by.
1371
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1372
     */
1373
    public function setFindNearestPointBy($findNearestPointBy) {
1374
        switch ($findNearestPointBy) {
1375
            case "x":
1376
            case "xy":
1377
            $this->findNearestPointBy = $findNearestPointBy;
1378
            break;
1379
        }
1380
        return $this;
1381
    }
1382
1383
    /**
1384
     * Set the get extremes from all.
1385
     *
1386
     * @param boolean $getExtremesFromAll The get extremes from all.
1387
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1388
     */
1389
    public function setGetExtremesFromAll($getExtremesFromAll) {
1390
        $this->getExtremesFromAll = $getExtremesFromAll;
1391
        return $this;
1392
    }
1393
1394
    /**
1395
     * Set the id.
1396
     *
1397
     * @param string $id The id.
1398
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1399
     */
1400
    public function setId($id) {
1401
        $this->id = $id;
1402
        return $this;
1403
    }
1404
1405
    /**
1406
     * Set the index.
1407
     *
1408
     * @param integer $index The index.
1409
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1410
     */
1411
    public function setIndex($index) {
1412
        $this->index = $index;
1413
        return $this;
1414
    }
1415
1416
    /**
1417
     * Set the keys.
1418
     *
1419
     * @param array $keys The keys.
1420
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1421
     */
1422
    public function setKeys(array $keys = null) {
1423
        $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...
1424
        return $this;
1425
    }
1426
1427
    /**
1428
     * Set the legend index.
1429
     *
1430
     * @param integer $legendIndex The legend index.
1431
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1432
     */
1433
    public function setLegendIndex($legendIndex) {
1434
        $this->legendIndex = $legendIndex;
1435
        return $this;
1436
    }
1437
1438
    /**
1439
     * Set the line color.
1440
     *
1441
     * @param string $lineColor The line color.
1442
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1443
     */
1444
    public function setLineColor($lineColor) {
1445
        $this->lineColor = $lineColor;
1446
        return $this;
1447
    }
1448
1449
    /**
1450
     * Set the line width.
1451
     *
1452
     * @param integer $lineWidth The line width.
1453
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1454
     */
1455
    public function setLineWidth($lineWidth) {
1456
        $this->lineWidth = $lineWidth;
1457
        return $this;
1458
    }
1459
1460
    /**
1461
     * Set the linecap.
1462
     *
1463
     * @param string $linecap The linecap.
1464
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1465
     */
1466
    public function setLinecap($linecap) {
1467
        switch ($linecap) {
1468
            case "round":
1469
            case "square":
1470
            $this->linecap = $linecap;
1471
            break;
1472
        }
1473
        return $this;
1474
    }
1475
1476
    /**
1477
     * Set the linked to.
1478
     *
1479
     * @param string $linkedTo The linked to.
1480
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1481
     */
1482
    public function setLinkedTo($linkedTo) {
1483
        $this->linkedTo = $linkedTo;
1484
        return $this;
1485
    }
1486
1487
    /**
1488
     * Set the name.
1489
     *
1490
     * @param string $name The name.
1491
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1492
     */
1493
    public function setName($name) {
1494
        $this->name = $name;
1495
        return $this;
1496
    }
1497
1498
    /**
1499
     * Set the negative color.
1500
     *
1501
     * @param string $negativeColor The negative color.
1502
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1503
     */
1504
    public function setNegativeColor($negativeColor) {
1505
        $this->negativeColor = $negativeColor;
1506
        return $this;
1507
    }
1508
1509
    /**
1510
     * Set the negative fill color.
1511
     *
1512
     * @param string $negativeFillColor The negative fill color.
1513
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1514
     */
1515
    public function setNegativeFillColor($negativeFillColor) {
1516
        $this->negativeFillColor = $negativeFillColor;
1517
        return $this;
1518
    }
1519
1520
    /**
1521
     * Set the point.
1522
     *
1523
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Areasplinerange\HighchartsPoint $point The point.
1524
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1525
     */
1526
    public function setPoint(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Areasplinerange\HighchartsPoint $point = null) {
1527
        $this->point = $point;
1528
        return $this;
1529
    }
1530
1531
    /**
1532
     * Set the point description formatter.
1533
     *
1534
     * @param string $pointDescriptionFormatter The point description formatter.
1535
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1536
     */
1537
    public function setPointDescriptionFormatter($pointDescriptionFormatter) {
1538
        $this->pointDescriptionFormatter = $pointDescriptionFormatter;
1539
        return $this;
1540
    }
1541
1542
    /**
1543
     * Set the point interval.
1544
     *
1545
     * @param integer $pointInterval The point interval.
1546
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1547
     */
1548
    public function setPointInterval($pointInterval) {
1549
        $this->pointInterval = $pointInterval;
1550
        return $this;
1551
    }
1552
1553
    /**
1554
     * Set the point interval unit.
1555
     *
1556
     * @param string $pointIntervalUnit The point interval unit.
1557
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1558
     */
1559
    public function setPointIntervalUnit($pointIntervalUnit) {
1560
        switch ($pointIntervalUnit) {
1561
            case null:
1562
            case "day":
1563
            case "month":
1564
            case "year":
1565
            $this->pointIntervalUnit = $pointIntervalUnit;
1566
            break;
1567
        }
1568
        return $this;
1569
    }
1570
1571
    /**
1572
     * Set the point placement.
1573
     *
1574
     * @param string|integer $pointPlacement The point placement.
1575
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1576
     */
1577
    public function setPointPlacement($pointPlacement) {
1578
        switch ($pointPlacement) {
1579
            case null:
1580
            case "between":
1581
            case "on":
1582
            $this->pointPlacement = $pointPlacement;
1583
            break;
1584
        }
1585
        return $this;
1586
    }
1587
1588
    /**
1589
     * Set the point start.
1590
     *
1591
     * @param integer $pointStart The point start.
1592
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1593
     */
1594
    public function setPointStart($pointStart) {
1595
        $this->pointStart = $pointStart;
1596
        return $this;
1597
    }
1598
1599
    /**
1600
     * Set the selected.
1601
     *
1602
     * @param boolean $selected The selected.
1603
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1604
     */
1605
    public function setSelected($selected) {
1606
        $this->selected = $selected;
1607
        return $this;
1608
    }
1609
1610
    /**
1611
     * Set the shadow.
1612
     *
1613
     * @param boolean|array $shadow The shadow.
1614
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1615
     */
1616
    public function setShadow($shadow) {
1617
        $this->shadow = $shadow;
1618
        return $this;
1619
    }
1620
1621
    /**
1622
     * Set the show checkbox.
1623
     *
1624
     * @param boolean $showCheckbox The show checkbox.
1625
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1626
     */
1627
    public function setShowCheckbox($showCheckbox) {
1628
        $this->showCheckbox = $showCheckbox;
1629
        return $this;
1630
    }
1631
1632
    /**
1633
     * Set the show in legend.
1634
     *
1635
     * @param boolean $showInLegend The show in legend.
1636
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1637
     */
1638
    public function setShowInLegend($showInLegend) {
1639
        $this->showInLegend = $showInLegend;
1640
        return $this;
1641
    }
1642
1643
    /**
1644
     * Set the skip keyboard navigation.
1645
     *
1646
     * @param boolean $skipKeyboardNavigation The skip keyboard navigation.
1647
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1648
     */
1649
    public function setSkipKeyboardNavigation($skipKeyboardNavigation) {
1650
        $this->skipKeyboardNavigation = $skipKeyboardNavigation;
1651
        return $this;
1652
    }
1653
1654
    /**
1655
     * Set the states.
1656
     *
1657
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Areasplinerange\HighchartsStates $states The states.
1658
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1659
     */
1660
    public function setStates(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Areasplinerange\HighchartsStates $states = null) {
1661
        $this->states = $states;
1662
        return $this;
1663
    }
1664
1665
    /**
1666
     * Set the sticky tracking.
1667
     *
1668
     * @param boolean $stickyTracking The sticky tracking.
1669
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1670
     */
1671
    public function setStickyTracking($stickyTracking) {
1672
        $this->stickyTracking = $stickyTracking;
1673
        return $this;
1674
    }
1675
1676
    /**
1677
     * Set the tooltip.
1678
     *
1679
     * @param array $tooltip The tooltip.
1680
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1681
     */
1682
    public function setTooltip(array $tooltip = null) {
1683
        $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...
1684
        return $this;
1685
    }
1686
1687
    /**
1688
     * Set the track by area.
1689
     *
1690
     * @param boolean $trackByArea The track by area.
1691
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1692
     */
1693
    public function setTrackByArea($trackByArea) {
1694
        $this->trackByArea = $trackByArea;
1695
        return $this;
1696
    }
1697
1698
    /**
1699
     * Set the turbo threshold.
1700
     *
1701
     * @param integer $turboThreshold The turbo threshold.
1702
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1703
     */
1704
    public function setTurboThreshold($turboThreshold) {
1705
        $this->turboThreshold = $turboThreshold;
1706
        return $this;
1707
    }
1708
1709
    /**
1710
     * Set the type.
1711
     *
1712
     * @param string $type The type.
1713
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1714
     */
1715
    public function setType($type) {
1716
        switch ($type) {
1717
            case null:
1718
            case "area":
1719
            case "arearange":
1720
            case "areaspline":
1721
            case "areasplinerange":
1722
            case "boxplot":
1723
            case "bubble":
1724
            case "column":
1725
            case "columnrange":
1726
            case "errorbar":
1727
            case "funnel":
1728
            case "gauge":
1729
            case "line":
1730
            case "pie":
1731
            case "scatter":
1732
            case "spline":
1733
            case "waterfall":
1734
            $this->type = $type;
1735
            break;
1736
        }
1737
        return $this;
1738
    }
1739
1740
    /**
1741
     * Set the visible.
1742
     *
1743
     * @param boolean $visible The visible.
1744
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1745
     */
1746
    public function setVisible($visible) {
1747
        $this->visible = $visible;
1748
        return $this;
1749
    }
1750
1751
    /**
1752
     * Set the x axis.
1753
     *
1754
     * @param integer|string $xAxis The x axis.
1755
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1756
     */
1757
    public function setXAxis($xAxis) {
1758
        $this->xAxis = $xAxis;
1759
        return $this;
1760
    }
1761
1762
    /**
1763
     * Set the y axis.
1764
     *
1765
     * @param integer|string $yAxis The y axis.
1766
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1767
     */
1768
    public function setYAxis($yAxis) {
1769
        $this->yAxis = $yAxis;
1770
        return $this;
1771
    }
1772
1773
    /**
1774
     * Set the z index.
1775
     *
1776
     * @param integer $zIndex The z index.
1777
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1778
     */
1779
    public function setZIndex($zIndex) {
1780
        $this->zIndex = $zIndex;
1781
        return $this;
1782
    }
1783
1784
    /**
1785
     * Set the zone axis.
1786
     *
1787
     * @param string $zoneAxis The zone axis.
1788
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1789
     */
1790
    public function setZoneAxis($zoneAxis) {
1791
        $this->zoneAxis = $zoneAxis;
1792
        return $this;
1793
    }
1794
1795
    /**
1796
     * Set the zones.
1797
     *
1798
     * @param array $zones The zones.
1799
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsAreasplinerange Returns the highcharts areasplinerange.
1800
     */
1801
    public function setZones(array $zones = null) {
1802
        $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...
1803
        return $this;
1804
    }
1805
1806
    /**
1807
     * Convert into an array representing this instance.
1808
     *
1809
     * @return array Returns an array representing this instance.
1810
     */
1811
    public function toArray() {
1812
1813
        // Initialize the output.
1814
        $output = [];
1815
1816
        // Set the allow point select.
1817
        ArrayUtility::set($output, "allowPointSelect", $this->allowPointSelect, [null]);
1818
1819
        // Set the animation.
1820
        ArrayUtility::set($output, "animation", $this->animation, [null]);
1821
1822
        // Set the animation limit.
1823
        ArrayUtility::set($output, "animationLimit", $this->animationLimit, [null]);
1824
1825
        // Set the class name.
1826
        ArrayUtility::set($output, "className", $this->className, [null]);
1827
1828
        // Set the color.
1829
        ArrayUtility::set($output, "color", $this->color, [null]);
1830
1831
        // Set the color index.
1832
        ArrayUtility::set($output, "colorIndex", $this->colorIndex, [null]);
1833
1834
        // Set the connect nulls.
1835
        ArrayUtility::set($output, "connectNulls", $this->connectNulls, [null]);
1836
1837
        // Set the crop threshold.
1838
        ArrayUtility::set($output, "cropThreshold", $this->cropThreshold, [null]);
1839
1840
        // Set the cursor.
1841
        ArrayUtility::set($output, "cursor", $this->cursor, [null]);
1842
1843
        // Set the dash style.
1844
        ArrayUtility::set($output, "dashStyle", $this->dashStyle, [null]);
1845
1846
        // Set the data.
1847
        ArrayUtility::set($output, "data", $this->data, [null]);
1848
1849
        // Set the data labels.
1850
        ArrayUtility::set($output, "dataLabels", $this->dataLabels, [null]);
1851
1852
        // Set the description.
1853
        ArrayUtility::set($output, "description", $this->description, [null]);
1854
1855
        // Set the enable mouse tracking.
1856
        ArrayUtility::set($output, "enableMouseTracking", $this->enableMouseTracking, [null]);
1857
1858
        // Set the events.
1859
        if (null !== $this->events) {
1860
            ArrayUtility::set($output, "events", $this->events->toArray(), []);
1861
        }
1862
1863
        // Set the expose element to a11y.
1864
        ArrayUtility::set($output, "exposeElementToA11y", $this->exposeElementToA11y, [null]);
1865
1866
        // Set the fill color.
1867
        ArrayUtility::set($output, "fillColor", $this->fillColor, [null]);
1868
1869
        // Set the fill opacity.
1870
        ArrayUtility::set($output, "fillOpacity", $this->fillOpacity, [null]);
1871
1872
        // Set the find nearest point by.
1873
        ArrayUtility::set($output, "findNearestPointBy", $this->findNearestPointBy, [null]);
1874
1875
        // Set the get extremes from all.
1876
        ArrayUtility::set($output, "getExtremesFromAll", $this->getExtremesFromAll, [null]);
1877
1878
        // Set the id.
1879
        ArrayUtility::set($output, "id", $this->id, [null]);
1880
1881
        // Set the index.
1882
        ArrayUtility::set($output, "index", $this->index, [null]);
1883
1884
        // Set the keys.
1885
        ArrayUtility::set($output, "keys", $this->keys, [null]);
1886
1887
        // Set the legend index.
1888
        ArrayUtility::set($output, "legendIndex", $this->legendIndex, [null]);
1889
1890
        // Set the line color.
1891
        ArrayUtility::set($output, "lineColor", $this->lineColor, [null]);
1892
1893
        // Set the line width.
1894
        ArrayUtility::set($output, "lineWidth", $this->lineWidth, [null]);
1895
1896
        // Set the linecap.
1897
        ArrayUtility::set($output, "linecap", $this->linecap, [null]);
1898
1899
        // Set the linked to.
1900
        ArrayUtility::set($output, "linkedTo", $this->linkedTo, [null]);
1901
1902
        // Set the name.
1903
        ArrayUtility::set($output, "name", $this->name, [null]);
1904
1905
        // Set the negative color.
1906
        ArrayUtility::set($output, "negativeColor", $this->negativeColor, [null]);
1907
1908
        // Set the negative fill color.
1909
        ArrayUtility::set($output, "negativeFillColor", $this->negativeFillColor, [null]);
1910
1911
        // Set the point.
1912
        if (null !== $this->point) {
1913
            ArrayUtility::set($output, "point", $this->point->toArray(), []);
1914
        }
1915
1916
        // Set the point description formatter.
1917
        ArrayUtility::set($output, "pointDescriptionFormatter", $this->pointDescriptionFormatter, [null]);
1918
1919
        // Set the point interval.
1920
        ArrayUtility::set($output, "pointInterval", $this->pointInterval, [null]);
1921
1922
        // Set the point interval unit.
1923
        ArrayUtility::set($output, "pointIntervalUnit", $this->pointIntervalUnit, [null]);
1924
1925
        // Set the point placement.
1926
        ArrayUtility::set($output, "pointPlacement", $this->pointPlacement, [null]);
1927
1928
        // Set the point start.
1929
        ArrayUtility::set($output, "pointStart", $this->pointStart, [null]);
1930
1931
        // Set the selected.
1932
        ArrayUtility::set($output, "selected", $this->selected, [null]);
1933
1934
        // Set the shadow.
1935
        ArrayUtility::set($output, "shadow", $this->shadow, [null]);
1936
1937
        // Set the show checkbox.
1938
        ArrayUtility::set($output, "showCheckbox", $this->showCheckbox, [null]);
1939
1940
        // Set the show in legend.
1941
        ArrayUtility::set($output, "showInLegend", $this->showInLegend, [null]);
1942
1943
        // Set the skip keyboard navigation.
1944
        ArrayUtility::set($output, "skipKeyboardNavigation", $this->skipKeyboardNavigation, [null]);
1945
1946
        // Set the states.
1947
        if (null !== $this->states) {
1948
            ArrayUtility::set($output, "states", $this->states->toArray(), []);
1949
        }
1950
1951
        // Set the sticky tracking.
1952
        ArrayUtility::set($output, "stickyTracking", $this->stickyTracking, [null]);
1953
1954
        // Set the tooltip.
1955
        ArrayUtility::set($output, "tooltip", $this->tooltip, [null]);
1956
1957
        // Set the track by area.
1958
        ArrayUtility::set($output, "trackByArea", $this->trackByArea, [null]);
1959
1960
        // Set the turbo threshold.
1961
        ArrayUtility::set($output, "turboThreshold", $this->turboThreshold, [null]);
1962
1963
        // Set the type.
1964
        ArrayUtility::set($output, "type", $this->type, [null]);
1965
1966
        // Set the visible.
1967
        ArrayUtility::set($output, "visible", $this->visible, [null]);
1968
1969
        // Set the x axis.
1970
        ArrayUtility::set($output, "xAxis", $this->xAxis, [null]);
1971
1972
        // Set the y axis.
1973
        ArrayUtility::set($output, "yAxis", $this->yAxis, [null]);
1974
1975
        // Set the z index.
1976
        ArrayUtility::set($output, "zIndex", $this->zIndex, [null]);
1977
1978
        // Set the zone axis.
1979
        ArrayUtility::set($output, "zoneAxis", $this->zoneAxis, [null]);
1980
1981
        // Set the zones.
1982
        ArrayUtility::set($output, "zones", $this->zones, [null]);
1983
1984
        // Return the output.
1985
        return $output;
1986
    }
1987
1988
}
1989