HighchartsErrorbar::setType()   D
last analyzed

Complexity

Conditions 18
Paths 18

Size

Total Lines 24

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 24
rs 4.8666
c 0
b 0
f 0
cc 18
nc 18
nop 1

How to fix   Complexity   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

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 errorbar.
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 HighchartsErrorbar 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 limit.
37
     *
38
     * @var integer
39
     */
40
    private $animationLimit;
41
42
    /**
43
     * Class name.
44
     *
45
     * @var string
46
     * @since 5.0.0
47
     */
48
    private $className;
49
50
    /**
51
     * Color.
52
     *
53
     * @var string
54
     * @since 3.0
55
     */
56
    private $color = "#000000";
57
58
    /**
59
     * Color by point.
60
     *
61
     * @var boolean
62
     * @since 2.0
63
     */
64
    private $colorByPoint = false;
65
66
    /**
67
     * Color index.
68
     *
69
     * @var integer
70
     * @since 5.0.0
71
     */
72
    private $colorIndex;
73
74
    /**
75
     * Colors.
76
     *
77
     * @var array
78
     * @since 3.0
79
     */
80
    private $colors;
81
82
    /**
83
     * Crisp.
84
     *
85
     * @var boolean
86
     * @since 5.0.10
87
     */
88
    private $crisp = true;
89
90
    /**
91
     * Cursor.
92
     *
93
     * @var string
94
     */
95
    private $cursor;
96
97
    /**
98
     * Data.
99
     *
100
     * @var array
101
     */
102
    private $data;
103
104
    /**
105
     * Depth.
106
     *
107
     * @var integer
108
     * @since 4.0
109
     */
110
    private $depth = 25;
111
112
    /**
113
     * Description.
114
     *
115
     * @var string
116
     * @since 5.0.0
117
     */
118
    private $description;
119
120
    /**
121
     * Edge color.
122
     *
123
     * @var string
124
     */
125
    private $edgeColor;
126
127
    /**
128
     * Edge width.
129
     *
130
     * @var integer
131
     */
132
    private $edgeWidth = 1;
133
134
    /**
135
     * Enable mouse tracking.
136
     *
137
     * @var boolean
138
     */
139
    private $enableMouseTracking = true;
140
141
    /**
142
     * Events.
143
     *
144
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Errorbar\HighchartsEvents
145
     */
146
    private $events;
147
148
    /**
149
     * Expose element to a11y.
150
     *
151
     * @var boolean
152
     * @since 5.0.12
153
     */
154
    private $exposeElementToA11y;
155
156
    /**
157
     * Find nearest point by.
158
     *
159
     * @var string
160
     * @since 5.0.10
161
     */
162
    private $findNearestPointBy;
163
164
    /**
165
     * Get extremes from all.
166
     *
167
     * @var boolean
168
     * @since 4.1.6
169
     */
170
    private $getExtremesFromAll = false;
171
172
    /**
173
     * Group z padding.
174
     *
175
     * @var integer
176
     * @since 4.0
177
     */
178
    private $groupZPadding = 1;
179
180
    /**
181
     * Id.
182
     *
183
     * @var string
184
     * @since 1.2.0
185
     */
186
    private $id;
187
188
    /**
189
     * Index.
190
     *
191
     * @var integer
192
     * @since 2.3.0
193
     */
194
    private $index;
195
196
    /**
197
     * Keys.
198
     *
199
     * @var array
200
     * @since 4.1.6
201
     */
202
    private $keys;
203
204
    /**
205
     * Legend index.
206
     *
207
     * @var integer
208
     */
209
    private $legendIndex;
210
211
    /**
212
     * Line width.
213
     *
214
     * @var integer
215
     * @since 3.0
216
     */
217
    private $lineWidth = 1;
218
219
    /**
220
     * Linked to.
221
     *
222
     * @var string
223
     * @since 3.0
224
     */
225
    private $linkedTo = ":previous";
226
227
    /**
228
     * Max point width.
229
     *
230
     * @var integer
231
     * @since 4.1.8
232
     */
233
    private $maxPointWidth;
234
235
    /**
236
     * Name.
237
     *
238
     * @var string
239
     */
240
    private $name;
241
242
    /**
243
     * Negative color.
244
     *
245
     * @var string
246
     * @since 3.0
247
     */
248
    private $negativeColor;
249
250
    /**
251
     * Point.
252
     *
253
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Errorbar\HighchartsPoint
254
     */
255
    private $point;
256
257
    /**
258
     * Point description formatter.
259
     *
260
     * @var string
261
     * @since 5.0.12
262
     */
263
    private $pointDescriptionFormatter;
264
265
    /**
266
     * Point interval.
267
     *
268
     * @var integer
269
     */
270
    private $pointInterval = 1;
271
272
    /**
273
     * Point interval unit.
274
     *
275
     * @var string
276
     * @since 4.1.0
277
     */
278
    private $pointIntervalUnit;
279
280
    /**
281
     * Point padding.
282
     *
283
     * @var integer
284
     */
285
    private $pointPadding = 0.1;
286
287
    /**
288
     * Point placement.
289
     *
290
     * @var string|integer
291
     * @since 2.3.0
292
     */
293
    private $pointPlacement;
294
295
    /**
296
     * Point range.
297
     *
298
     * @var integer
299
     * @since 2.3
300
     */
301
    private $pointRange;
302
303
    /**
304
     * Point start.
305
     *
306
     * @var integer
307
     */
308
    private $pointStart = 0;
309
310
    /**
311
     * Point width.
312
     *
313
     * @var integer
314
     * @since 1.2.5
315
     */
316
    private $pointWidth;
317
318
    /**
319
     * Selected.
320
     *
321
     * @var boolean
322
     * @since 1.2.0
323
     */
324
    private $selected = false;
325
326
    /**
327
     * Skip keyboard navigation.
328
     *
329
     * @var boolean
330
     * @since 5.0.12
331
     */
332
    private $skipKeyboardNavigation;
333
334
    /**
335
     * States.
336
     *
337
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Errorbar\HighchartsStates
338
     */
339
    private $states;
340
341
    /**
342
     * Stem color.
343
     *
344
     * @var string
345
     * @since 3.0
346
     */
347
    private $stemColor;
348
349
    /**
350
     * Stem dash style.
351
     *
352
     * @var string
353
     * @since 3.0
354
     */
355
    private $stemDashStyle = "Solid";
356
357
    /**
358
     * Stem width.
359
     *
360
     * @var integer
361
     * @since 3.0
362
     */
363
    private $stemWidth;
364
365
    /**
366
     * Sticky tracking.
367
     *
368
     * @var boolean
369
     * @since 2.0
370
     */
371
    private $stickyTracking = true;
372
373
    /**
374
     * Tooltip.
375
     *
376
     * @var array
377
     * @since 2.3
378
     */
379
    private $tooltip;
380
381
    /**
382
     * Turbo threshold.
383
     *
384
     * @var integer
385
     * @since 2.2
386
     */
387
    private $turboThreshold = 1000;
388
389
    /**
390
     * Type.
391
     *
392
     * @var string
393
     */
394
    private $type;
395
396
    /**
397
     * Visible.
398
     *
399
     * @var boolean
400
     */
401
    private $visible = true;
402
403
    /**
404
     * Whisker color.
405
     *
406
     * @var string
407
     * @since 3.0
408
     */
409
    private $whiskerColor;
410
411
    /**
412
     * Whisker length.
413
     *
414
     * @var integer|string
415
     * @since 3.0
416
     */
417
    private $whiskerLength = "50%";
418
419
    /**
420
     * Whisker width.
421
     *
422
     * @var integer
423
     * @since 3.0
424
     */
425
    private $whiskerWidth;
426
427
    /**
428
     * X axis.
429
     *
430
     * @var integer|string
431
     */
432
    private $xAxis = "0";
433
434
    /**
435
     * Y axis.
436
     *
437
     * @var integer|string
438
     */
439
    private $yAxis = "0";
440
441
    /**
442
     * Z index.
443
     *
444
     * @var integer
445
     */
446
    private $zIndex;
447
448
    /**
449
     * Zone axis.
450
     *
451
     * @var string
452
     * @since 4.1.0
453
     */
454
    private $zoneAxis = "y";
455
456
    /**
457
     * Zones.
458
     *
459
     * @var array
460
     * @since 4.1.0
461
     */
462
    private $zones;
463
464
    /**
465
     * Constructor.
466
     *
467
     * @param boolean $ignoreDefaultValues Ignore the default values.
468
     */
469
    public function __construct($ignoreDefaultValues = true) {
470
        if (true === $ignoreDefaultValues) {
471
            $this->clear();
472
        }
473
    }
474
475
    /**
476
     * Clear.
477
     *
478
     * @return void
479
     */
480
    public function clear() {
481
482
        // Clear the allow point select.
483
        $this->allowPointSelect = null;
484
485
        // Clear the animation limit.
486
        $this->animationLimit = null;
487
488
        // Clear the class name.
489
        $this->className = null;
490
491
        // Clear the color.
492
        $this->color = null;
493
494
        // Clear the color by point.
495
        $this->colorByPoint = null;
496
497
        // Clear the color index.
498
        $this->colorIndex = null;
499
500
        // Clear the colors.
501
        $this->colors = null;
0 ignored issues
show
Documentation Bug introduced by
It seems like null of type null is incompatible with the declared type array of property $colors.

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

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

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

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

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

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

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

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

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

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