HighchartsPolygon::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 polygon.
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 HighchartsPolygon implements JsonSerializable {
26
27
    /**
28
     * Allow point select.
29
     *
30
     * @var boolean
31
     * @since 1.2.0
32
     */
33
    private $allowPointSelect = false;
34
35
    /**
36
     * Animation.
37
     *
38
     * @var boolean
39
     */
40
    private $animation = true;
41
42
    /**
43
     * Animation limit.
44
     *
45
     * @var integer
46
     */
47
    private $animationLimit;
48
49
    /**
50
     * Class name.
51
     *
52
     * @var string
53
     * @since 5.0.0
54
     */
55
    private $className;
56
57
    /**
58
     * Color.
59
     *
60
     * @var string
61
     */
62
    private $color;
63
64
    /**
65
     * Color index.
66
     *
67
     * @var integer
68
     * @since 5.0.0
69
     */
70
    private $colorIndex;
71
72
    /**
73
     * Crop threshold.
74
     *
75
     * @var integer
76
     * @since 2.2
77
     */
78
    private $cropThreshold = 300;
79
80
    /**
81
     * Cursor.
82
     *
83
     * @var string
84
     */
85
    private $cursor;
86
87
    /**
88
     * Dash style.
89
     *
90
     * @var string
91
     * @since 2.1
92
     */
93
    private $dashStyle = "Solid";
94
95
    /**
96
     * Data.
97
     *
98
     * @var array
99
     */
100
    private $data;
101
102
    /**
103
     * Data labels.
104
     *
105
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsDataLabels
106
     */
107
    private $dataLabels;
108
109
    /**
110
     * Description.
111
     *
112
     * @var string
113
     * @since 5.0.0
114
     */
115
    private $description;
116
117
    /**
118
     * Enable mouse tracking.
119
     *
120
     * @var boolean
121
     */
122
    private $enableMouseTracking = true;
123
124
    /**
125
     * Events.
126
     *
127
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsEvents
128
     */
129
    private $events;
130
131
    /**
132
     * Expose element to a11y.
133
     *
134
     * @var boolean
135
     * @since 5.0.12
136
     */
137
    private $exposeElementToA11y;
138
139
    /**
140
     * Find nearest point by.
141
     *
142
     * @var string
143
     * @since 5.0.10
144
     */
145
    private $findNearestPointBy;
146
147
    /**
148
     * Get extremes from all.
149
     *
150
     * @var boolean
151
     * @since 4.1.6
152
     */
153
    private $getExtremesFromAll = false;
154
155
    /**
156
     * Id.
157
     *
158
     * @var string
159
     * @since 1.2.0
160
     */
161
    private $id;
162
163
    /**
164
     * Index.
165
     *
166
     * @var integer
167
     * @since 2.3.0
168
     */
169
    private $index;
170
171
    /**
172
     * Keys.
173
     *
174
     * @var array
175
     * @since 4.1.6
176
     */
177
    private $keys;
178
179
    /**
180
     * Legend index.
181
     *
182
     * @var integer
183
     */
184
    private $legendIndex;
185
186
    /**
187
     * Line width.
188
     *
189
     * @var integer
190
     */
191
    private $lineWidth = 0;
192
193
    /**
194
     * Linked to.
195
     *
196
     * @var string
197
     * @since 3.0
198
     */
199
    private $linkedTo;
200
201
    /**
202
     * Marker.
203
     *
204
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsMarker
205
     */
206
    private $marker;
207
208
    /**
209
     * Name.
210
     *
211
     * @var string
212
     */
213
    private $name;
214
215
    /**
216
     * Negative color.
217
     *
218
     * @var string
219
     * @since 3.0
220
     */
221
    private $negativeColor;
222
223
    /**
224
     * Point.
225
     *
226
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsPoint
227
     */
228
    private $point;
229
230
    /**
231
     * Point description formatter.
232
     *
233
     * @var string
234
     * @since 5.0.12
235
     */
236
    private $pointDescriptionFormatter;
237
238
    /**
239
     * Point interval.
240
     *
241
     * @var integer
242
     */
243
    private $pointInterval = 1;
244
245
    /**
246
     * Point interval unit.
247
     *
248
     * @var string
249
     * @since 4.1.0
250
     */
251
    private $pointIntervalUnit;
252
253
    /**
254
     * Point start.
255
     *
256
     * @var integer
257
     */
258
    private $pointStart = 0;
259
260
    /**
261
     * Selected.
262
     *
263
     * @var boolean
264
     * @since 1.2.0
265
     */
266
    private $selected = false;
267
268
    /**
269
     * Shadow.
270
     *
271
     * @var boolean|array
272
     */
273
    private $shadow = false;
274
275
    /**
276
     * Show checkbox.
277
     *
278
     * @var boolean
279
     * @since 1.2.0
280
     */
281
    private $showCheckbox = false;
282
283
    /**
284
     * Show in legend.
285
     *
286
     * @var boolean
287
     */
288
    private $showInLegend = true;
289
290
    /**
291
     * Skip keyboard navigation.
292
     *
293
     * @var boolean
294
     * @since 5.0.12
295
     */
296
    private $skipKeyboardNavigation;
297
298
    /**
299
     * States.
300
     *
301
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsStates
302
     */
303
    private $states;
304
305
    /**
306
     * Sticky tracking.
307
     *
308
     * @var boolean
309
     */
310
    private $stickyTracking = false;
311
312
    /**
313
     * Tooltip.
314
     *
315
     * @var array
316
     * @since 2.3
317
     */
318
    private $tooltip;
319
320
    /**
321
     * Turbo threshold.
322
     *
323
     * @var integer
324
     * @since 2.2
325
     */
326
    private $turboThreshold = 1000;
327
328
    /**
329
     * Type.
330
     *
331
     * @var string
332
     */
333
    private $type;
334
335
    /**
336
     * Visible.
337
     *
338
     * @var boolean
339
     */
340
    private $visible = true;
341
342
    /**
343
     * X axis.
344
     *
345
     * @var integer|string
346
     */
347
    private $xAxis = "0";
348
349
    /**
350
     * Y axis.
351
     *
352
     * @var integer|string
353
     */
354
    private $yAxis = "0";
355
356
    /**
357
     * Z index.
358
     *
359
     * @var integer
360
     */
361
    private $zIndex;
362
363
    /**
364
     * Zone axis.
365
     *
366
     * @var string
367
     * @since 4.1.0
368
     */
369
    private $zoneAxis = "y";
370
371
    /**
372
     * Zones.
373
     *
374
     * @var array
375
     * @since 4.1.0
376
     */
377
    private $zones;
378
379
    /**
380
     * Constructor.
381
     *
382
     * @param boolean $ignoreDefaultValues Ignore the default values.
383
     */
384
    public function __construct($ignoreDefaultValues = true) {
385
        if (true === $ignoreDefaultValues) {
386
            $this->clear();
387
        }
388
    }
389
390
    /**
391
     * Clear.
392
     *
393
     * @return void
394
     */
395
    public function clear() {
396
397
        // Clear the allow point select.
398
        $this->allowPointSelect = null;
399
400
        // Clear the animation.
401
        $this->animation = null;
402
403
        // Clear the animation limit.
404
        $this->animationLimit = null;
405
406
        // Clear the class name.
407
        $this->className = null;
408
409
        // Clear the color.
410
        $this->color = null;
411
412
        // Clear the color index.
413
        $this->colorIndex = null;
414
415
        // Clear the crop threshold.
416
        $this->cropThreshold = null;
417
418
        // Clear the cursor.
419
        $this->cursor = null;
420
421
        // Clear the dash style.
422
        $this->dashStyle = null;
423
424
        // Clear the data.
425
        $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...
426
427
        // Clear the data labels.
428
        if (null !== $this->dataLabels) {
429
            $this->dataLabels->clear();
430
        }
431
432
        // Clear the description.
433
        $this->description = null;
434
435
        // Clear the enable mouse tracking.
436
        $this->enableMouseTracking = null;
437
438
        // Clear the events.
439
        if (null !== $this->events) {
440
            $this->events->clear();
441
        }
442
443
        // Clear the expose element to a11y.
444
        $this->exposeElementToA11y = null;
445
446
        // Clear the find nearest point by.
447
        $this->findNearestPointBy = null;
448
449
        // Clear the get extremes from all.
450
        $this->getExtremesFromAll = null;
451
452
        // Clear the id.
453
        $this->id = null;
454
455
        // Clear the index.
456
        $this->index = null;
457
458
        // Clear the keys.
459
        $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...
460
461
        // Clear the legend index.
462
        $this->legendIndex = null;
463
464
        // Clear the line width.
465
        $this->lineWidth = null;
466
467
        // Clear the linked to.
468
        $this->linkedTo = null;
469
470
        // Clear the marker.
471
        if (null !== $this->marker) {
472
            $this->marker->clear();
473
        }
474
475
        // Clear the name.
476
        $this->name = null;
477
478
        // Clear the negative color.
479
        $this->negativeColor = null;
480
481
        // Clear the point.
482
        if (null !== $this->point) {
483
            $this->point->clear();
484
        }
485
486
        // Clear the point description formatter.
487
        $this->pointDescriptionFormatter = null;
488
489
        // Clear the point interval.
490
        $this->pointInterval = null;
491
492
        // Clear the point interval unit.
493
        $this->pointIntervalUnit = null;
494
495
        // Clear the point start.
496
        $this->pointStart = null;
497
498
        // Clear the selected.
499
        $this->selected = null;
500
501
        // Clear the shadow.
502
        $this->shadow = null;
503
504
        // Clear the show checkbox.
505
        $this->showCheckbox = null;
506
507
        // Clear the show in legend.
508
        $this->showInLegend = null;
509
510
        // Clear the skip keyboard navigation.
511
        $this->skipKeyboardNavigation = null;
512
513
        // Clear the states.
514
        if (null !== $this->states) {
515
            $this->states->clear();
516
        }
517
518
        // Clear the sticky tracking.
519
        $this->stickyTracking = null;
520
521
        // Clear the tooltip.
522
        $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...
523
524
        // Clear the turbo threshold.
525
        $this->turboThreshold = null;
526
527
        // Clear the type.
528
        $this->type = null;
529
530
        // Clear the visible.
531
        $this->visible = null;
532
533
        // Clear the x axis.
534
        $this->xAxis = null;
535
536
        // Clear the y axis.
537
        $this->yAxis = null;
538
539
        // Clear the z index.
540
        $this->zIndex = null;
541
542
        // Clear the zone axis.
543
        $this->zoneAxis = null;
544
545
        // Clear the zones.
546
        $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...
547
    }
548
549
    /**
550
     * Get the allow point select.
551
     *
552
     * @return boolean Returns the allow point select.
553
     */
554
    public function getAllowPointSelect() {
555
        return $this->allowPointSelect;
556
    }
557
558
    /**
559
     * Get the animation.
560
     *
561
     * @return boolean Returns the animation.
562
     */
563
    public function getAnimation() {
564
        return $this->animation;
565
    }
566
567
    /**
568
     * Get the animation limit.
569
     *
570
     * @return integer Returns the animation limit.
571
     */
572
    public function getAnimationLimit() {
573
        return $this->animationLimit;
574
    }
575
576
    /**
577
     * Get the class name.
578
     *
579
     * @return string Returns the class name.
580
     */
581
    public function getClassName() {
582
        return $this->className;
583
    }
584
585
    /**
586
     * Get the color.
587
     *
588
     * @return string Returns the color.
589
     */
590
    public function getColor() {
591
        return $this->color;
592
    }
593
594
    /**
595
     * Get the color index.
596
     *
597
     * @return integer Returns the color index.
598
     */
599
    public function getColorIndex() {
600
        return $this->colorIndex;
601
    }
602
603
    /**
604
     * Get the crop threshold.
605
     *
606
     * @return integer Returns the crop threshold.
607
     */
608
    public function getCropThreshold() {
609
        return $this->cropThreshold;
610
    }
611
612
    /**
613
     * Get the cursor.
614
     *
615
     * @return string Returns the cursor.
616
     */
617
    public function getCursor() {
618
        return $this->cursor;
619
    }
620
621
    /**
622
     * Get the dash style.
623
     *
624
     * @return string Returns the dash style.
625
     */
626
    public function getDashStyle() {
627
        return $this->dashStyle;
628
    }
629
630
    /**
631
     * Get the data.
632
     *
633
     * @return array Returns the data.
634
     */
635
    public function getData() {
636
        return $this->data;
637
    }
638
639
    /**
640
     * Get the data labels.
641
     *
642
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsDataLabels Returns the data labels.
643
     */
644
    public function getDataLabels() {
645
        return $this->dataLabels;
646
    }
647
648
    /**
649
     * Get the description.
650
     *
651
     * @return string Returns the description.
652
     */
653
    public function getDescription() {
654
        return $this->description;
655
    }
656
657
    /**
658
     * Get the enable mouse tracking.
659
     *
660
     * @return boolean Returns the enable mouse tracking.
661
     */
662
    public function getEnableMouseTracking() {
663
        return $this->enableMouseTracking;
664
    }
665
666
    /**
667
     * Get the events.
668
     *
669
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsEvents Returns the events.
670
     */
671
    public function getEvents() {
672
        return $this->events;
673
    }
674
675
    /**
676
     * Get the expose element to a11y.
677
     *
678
     * @return boolean Returns the expose element to a11y.
679
     */
680
    public function getExposeElementToA11y() {
681
        return $this->exposeElementToA11y;
682
    }
683
684
    /**
685
     * Get the find nearest point by.
686
     *
687
     * @return string Returns the find nearest point by.
688
     */
689
    public function getFindNearestPointBy() {
690
        return $this->findNearestPointBy;
691
    }
692
693
    /**
694
     * Get the get extremes from all.
695
     *
696
     * @return boolean Returns the get extremes from all.
697
     */
698
    public function getGetExtremesFromAll() {
699
        return $this->getExtremesFromAll;
700
    }
701
702
    /**
703
     * Get the id.
704
     *
705
     * @return string Returns the id.
706
     */
707
    public function getId() {
708
        return $this->id;
709
    }
710
711
    /**
712
     * Get the index.
713
     *
714
     * @return integer Returns the index.
715
     */
716
    public function getIndex() {
717
        return $this->index;
718
    }
719
720
    /**
721
     * Get the keys.
722
     *
723
     * @return array Returns the keys.
724
     */
725
    public function getKeys() {
726
        return $this->keys;
727
    }
728
729
    /**
730
     * Get the legend index.
731
     *
732
     * @return integer Returns the legend index.
733
     */
734
    public function getLegendIndex() {
735
        return $this->legendIndex;
736
    }
737
738
    /**
739
     * Get the line width.
740
     *
741
     * @return integer Returns the line width.
742
     */
743
    public function getLineWidth() {
744
        return $this->lineWidth;
745
    }
746
747
    /**
748
     * Get the linked to.
749
     *
750
     * @return string Returns the linked to.
751
     */
752
    public function getLinkedTo() {
753
        return $this->linkedTo;
754
    }
755
756
    /**
757
     * Get the marker.
758
     *
759
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsMarker Returns the marker.
760
     */
761
    public function getMarker() {
762
        return $this->marker;
763
    }
764
765
    /**
766
     * Get the name.
767
     *
768
     * @return string Returns the name.
769
     */
770
    public function getName() {
771
        return $this->name;
772
    }
773
774
    /**
775
     * Get the negative color.
776
     *
777
     * @return string Returns the negative color.
778
     */
779
    public function getNegativeColor() {
780
        return $this->negativeColor;
781
    }
782
783
    /**
784
     * Get the point.
785
     *
786
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsPoint Returns the point.
787
     */
788
    public function getPoint() {
789
        return $this->point;
790
    }
791
792
    /**
793
     * Get the point description formatter.
794
     *
795
     * @return string Returns the point description formatter.
796
     */
797
    public function getPointDescriptionFormatter() {
798
        return $this->pointDescriptionFormatter;
799
    }
800
801
    /**
802
     * Get the point interval.
803
     *
804
     * @return integer Returns the point interval.
805
     */
806
    public function getPointInterval() {
807
        return $this->pointInterval;
808
    }
809
810
    /**
811
     * Get the point interval unit.
812
     *
813
     * @return string Returns the point interval unit.
814
     */
815
    public function getPointIntervalUnit() {
816
        return $this->pointIntervalUnit;
817
    }
818
819
    /**
820
     * Get the point start.
821
     *
822
     * @return integer Returns the point start.
823
     */
824
    public function getPointStart() {
825
        return $this->pointStart;
826
    }
827
828
    /**
829
     * Get the selected.
830
     *
831
     * @return boolean Returns the selected.
832
     */
833
    public function getSelected() {
834
        return $this->selected;
835
    }
836
837
    /**
838
     * Get the shadow.
839
     *
840
     * @return boolean|array Returns the shadow.
841
     */
842
    public function getShadow() {
843
        return $this->shadow;
844
    }
845
846
    /**
847
     * Get the show checkbox.
848
     *
849
     * @return boolean Returns the show checkbox.
850
     */
851
    public function getShowCheckbox() {
852
        return $this->showCheckbox;
853
    }
854
855
    /**
856
     * Get the show in legend.
857
     *
858
     * @return boolean Returns the show in legend.
859
     */
860
    public function getShowInLegend() {
861
        return $this->showInLegend;
862
    }
863
864
    /**
865
     * Get the skip keyboard navigation.
866
     *
867
     * @return boolean Returns the skip keyboard navigation.
868
     */
869
    public function getSkipKeyboardNavigation() {
870
        return $this->skipKeyboardNavigation;
871
    }
872
873
    /**
874
     * Get the states.
875
     *
876
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsStates Returns the states.
877
     */
878
    public function getStates() {
879
        return $this->states;
880
    }
881
882
    /**
883
     * Get the sticky tracking.
884
     *
885
     * @return boolean Returns the sticky tracking.
886
     */
887
    public function getStickyTracking() {
888
        return $this->stickyTracking;
889
    }
890
891
    /**
892
     * Get the tooltip.
893
     *
894
     * @return array Returns the tooltip.
895
     */
896
    public function getTooltip() {
897
        return $this->tooltip;
898
    }
899
900
    /**
901
     * Get the turbo threshold.
902
     *
903
     * @return integer Returns the turbo threshold.
904
     */
905
    public function getTurboThreshold() {
906
        return $this->turboThreshold;
907
    }
908
909
    /**
910
     * Get the type.
911
     *
912
     * @return string Returns the type.
913
     */
914
    public function getType() {
915
        return $this->type;
916
    }
917
918
    /**
919
     * Get the visible.
920
     *
921
     * @return boolean Returns the visible.
922
     */
923
    public function getVisible() {
924
        return $this->visible;
925
    }
926
927
    /**
928
     * Get the x axis.
929
     *
930
     * @return integer|string Returns the x axis.
931
     */
932
    public function getXAxis() {
933
        return $this->xAxis;
934
    }
935
936
    /**
937
     * Get the y axis.
938
     *
939
     * @return integer|string Returns the y axis.
940
     */
941
    public function getYAxis() {
942
        return $this->yAxis;
943
    }
944
945
    /**
946
     * Get the z index.
947
     *
948
     * @return integer Returns the z index.
949
     */
950
    public function getZIndex() {
951
        return $this->zIndex;
952
    }
953
954
    /**
955
     * Get the zone axis.
956
     *
957
     * @return string Returns the zone axis.
958
     */
959
    public function getZoneAxis() {
960
        return $this->zoneAxis;
961
    }
962
963
    /**
964
     * Get the zones.
965
     *
966
     * @return array Returns the zones.
967
     */
968
    public function getZones() {
969
        return $this->zones;
970
    }
971
972
    /**
973
     * Serialize this instance.
974
     *
975
     * @return array Returns an array representing this instance.
976
     */
977
    public function jsonSerialize() {
978
        return $this->toArray();
979
    }
980
981
    /**
982
     * Create a new data labels.
983
     *
984
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsDataLabels Returns the data labels.
985
     */
986
    public function newDataLabels() {
987
        $this->dataLabels = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsDataLabels();
988
        return $this->dataLabels;
989
    }
990
991
    /**
992
     * Create a new events.
993
     *
994
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsEvents Returns the events.
995
     */
996
    public function newEvents() {
997
        $this->events = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsEvents();
998
        return $this->events;
999
    }
1000
1001
    /**
1002
     * Create a new marker.
1003
     *
1004
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsMarker Returns the marker.
1005
     */
1006
    public function newMarker() {
1007
        $this->marker = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsMarker();
1008
        return $this->marker;
1009
    }
1010
1011
    /**
1012
     * Create a new point.
1013
     *
1014
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsPoint Returns the point.
1015
     */
1016
    public function newPoint() {
1017
        $this->point = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsPoint();
1018
        return $this->point;
1019
    }
1020
1021
    /**
1022
     * Create a new states.
1023
     *
1024
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsStates Returns the states.
1025
     */
1026
    public function newStates() {
1027
        $this->states = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsStates();
1028
        return $this->states;
1029
    }
1030
1031
    /**
1032
     * Set the allow point select.
1033
     *
1034
     * @param boolean $allowPointSelect The allow point select.
1035
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1036
     */
1037
    public function setAllowPointSelect($allowPointSelect) {
1038
        $this->allowPointSelect = $allowPointSelect;
1039
        return $this;
1040
    }
1041
1042
    /**
1043
     * Set the animation.
1044
     *
1045
     * @param boolean $animation The animation.
1046
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1047
     */
1048
    public function setAnimation($animation) {
1049
        $this->animation = $animation;
1050
        return $this;
1051
    }
1052
1053
    /**
1054
     * Set the animation limit.
1055
     *
1056
     * @param integer $animationLimit The animation limit.
1057
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1058
     */
1059
    public function setAnimationLimit($animationLimit) {
1060
        $this->animationLimit = $animationLimit;
1061
        return $this;
1062
    }
1063
1064
    /**
1065
     * Set the class name.
1066
     *
1067
     * @param string $className The class name.
1068
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1069
     */
1070
    public function setClassName($className) {
1071
        $this->className = $className;
1072
        return $this;
1073
    }
1074
1075
    /**
1076
     * Set the color.
1077
     *
1078
     * @param string $color The color.
1079
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1080
     */
1081
    public function setColor($color) {
1082
        $this->color = $color;
1083
        return $this;
1084
    }
1085
1086
    /**
1087
     * Set the color index.
1088
     *
1089
     * @param integer $colorIndex The color index.
1090
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1091
     */
1092
    public function setColorIndex($colorIndex) {
1093
        $this->colorIndex = $colorIndex;
1094
        return $this;
1095
    }
1096
1097
    /**
1098
     * Set the crop threshold.
1099
     *
1100
     * @param integer $cropThreshold The crop threshold.
1101
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1102
     */
1103
    public function setCropThreshold($cropThreshold) {
1104
        $this->cropThreshold = $cropThreshold;
1105
        return $this;
1106
    }
1107
1108
    /**
1109
     * Set the cursor.
1110
     *
1111
     * @param string $cursor The cursor.
1112
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1113
     */
1114
    public function setCursor($cursor) {
1115
        switch ($cursor) {
1116
            case null:
1117
            case "crosshair":
1118
            case "default":
1119
            case "help":
1120
            case "none":
1121
            case "pointer":
1122
            $this->cursor = $cursor;
1123
            break;
1124
        }
1125
        return $this;
1126
    }
1127
1128
    /**
1129
     * Set the dash style.
1130
     *
1131
     * @param string $dashStyle The dash style.
1132
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1133
     */
1134
    public function setDashStyle($dashStyle) {
1135
        switch ($dashStyle) {
1136
            case "Dash":
1137
            case "DashDot":
1138
            case "Dot":
1139
            case "LongDash":
1140
            case "LongDashDot":
1141
            case "LongDashDotDot":
1142
            case "ShortDash":
1143
            case "ShortDashDot":
1144
            case "ShortDashDotDot":
1145
            case "ShortDot":
1146
            case "Solid":
1147
            $this->dashStyle = $dashStyle;
1148
            break;
1149
        }
1150
        return $this;
1151
    }
1152
1153
    /**
1154
     * Set the data.
1155
     *
1156
     * @param array $data The data.
1157
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1158
     */
1159
    public function setData(array $data = null) {
1160
        $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...
1161
        return $this;
1162
    }
1163
1164
    /**
1165
     * Set the data labels.
1166
     *
1167
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsDataLabels $dataLabels The data labels.
1168
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1169
     */
1170
    public function setDataLabels(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsDataLabels $dataLabels = null) {
1171
        $this->dataLabels = $dataLabels;
1172
        return $this;
1173
    }
1174
1175
    /**
1176
     * Set the description.
1177
     *
1178
     * @param string $description The description.
1179
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1180
     */
1181
    public function setDescription($description) {
1182
        $this->description = $description;
1183
        return $this;
1184
    }
1185
1186
    /**
1187
     * Set the enable mouse tracking.
1188
     *
1189
     * @param boolean $enableMouseTracking The enable mouse tracking.
1190
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1191
     */
1192
    public function setEnableMouseTracking($enableMouseTracking) {
1193
        $this->enableMouseTracking = $enableMouseTracking;
1194
        return $this;
1195
    }
1196
1197
    /**
1198
     * Set the events.
1199
     *
1200
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsEvents $events The events.
1201
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1202
     */
1203
    public function setEvents(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsEvents $events = null) {
1204
        $this->events = $events;
1205
        return $this;
1206
    }
1207
1208
    /**
1209
     * Set the expose element to a11y.
1210
     *
1211
     * @param boolean $exposeElementToA11y The expose element to a11y.
1212
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1213
     */
1214
    public function setExposeElementToA11y($exposeElementToA11y) {
1215
        $this->exposeElementToA11y = $exposeElementToA11y;
1216
        return $this;
1217
    }
1218
1219
    /**
1220
     * Set the find nearest point by.
1221
     *
1222
     * @param string $findNearestPointBy The find nearest point by.
1223
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1224
     */
1225
    public function setFindNearestPointBy($findNearestPointBy) {
1226
        switch ($findNearestPointBy) {
1227
            case "x":
1228
            case "xy":
1229
            $this->findNearestPointBy = $findNearestPointBy;
1230
            break;
1231
        }
1232
        return $this;
1233
    }
1234
1235
    /**
1236
     * Set the get extremes from all.
1237
     *
1238
     * @param boolean $getExtremesFromAll The get extremes from all.
1239
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1240
     */
1241
    public function setGetExtremesFromAll($getExtremesFromAll) {
1242
        $this->getExtremesFromAll = $getExtremesFromAll;
1243
        return $this;
1244
    }
1245
1246
    /**
1247
     * Set the id.
1248
     *
1249
     * @param string $id The id.
1250
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1251
     */
1252
    public function setId($id) {
1253
        $this->id = $id;
1254
        return $this;
1255
    }
1256
1257
    /**
1258
     * Set the index.
1259
     *
1260
     * @param integer $index The index.
1261
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1262
     */
1263
    public function setIndex($index) {
1264
        $this->index = $index;
1265
        return $this;
1266
    }
1267
1268
    /**
1269
     * Set the keys.
1270
     *
1271
     * @param array $keys The keys.
1272
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1273
     */
1274
    public function setKeys(array $keys = null) {
1275
        $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...
1276
        return $this;
1277
    }
1278
1279
    /**
1280
     * Set the legend index.
1281
     *
1282
     * @param integer $legendIndex The legend index.
1283
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1284
     */
1285
    public function setLegendIndex($legendIndex) {
1286
        $this->legendIndex = $legendIndex;
1287
        return $this;
1288
    }
1289
1290
    /**
1291
     * Set the line width.
1292
     *
1293
     * @param integer $lineWidth The line width.
1294
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1295
     */
1296
    public function setLineWidth($lineWidth) {
1297
        $this->lineWidth = $lineWidth;
1298
        return $this;
1299
    }
1300
1301
    /**
1302
     * Set the linked to.
1303
     *
1304
     * @param string $linkedTo The linked to.
1305
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1306
     */
1307
    public function setLinkedTo($linkedTo) {
1308
        $this->linkedTo = $linkedTo;
1309
        return $this;
1310
    }
1311
1312
    /**
1313
     * Set the marker.
1314
     *
1315
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsMarker $marker The marker.
1316
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1317
     */
1318
    public function setMarker(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsMarker $marker = null) {
1319
        $this->marker = $marker;
1320
        return $this;
1321
    }
1322
1323
    /**
1324
     * Set the name.
1325
     *
1326
     * @param string $name The name.
1327
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1328
     */
1329
    public function setName($name) {
1330
        $this->name = $name;
1331
        return $this;
1332
    }
1333
1334
    /**
1335
     * Set the negative color.
1336
     *
1337
     * @param string $negativeColor The negative color.
1338
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1339
     */
1340
    public function setNegativeColor($negativeColor) {
1341
        $this->negativeColor = $negativeColor;
1342
        return $this;
1343
    }
1344
1345
    /**
1346
     * Set the point.
1347
     *
1348
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsPoint $point The point.
1349
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1350
     */
1351
    public function setPoint(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsPoint $point = null) {
1352
        $this->point = $point;
1353
        return $this;
1354
    }
1355
1356
    /**
1357
     * Set the point description formatter.
1358
     *
1359
     * @param string $pointDescriptionFormatter The point description formatter.
1360
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1361
     */
1362
    public function setPointDescriptionFormatter($pointDescriptionFormatter) {
1363
        $this->pointDescriptionFormatter = $pointDescriptionFormatter;
1364
        return $this;
1365
    }
1366
1367
    /**
1368
     * Set the point interval.
1369
     *
1370
     * @param integer $pointInterval The point interval.
1371
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1372
     */
1373
    public function setPointInterval($pointInterval) {
1374
        $this->pointInterval = $pointInterval;
1375
        return $this;
1376
    }
1377
1378
    /**
1379
     * Set the point interval unit.
1380
     *
1381
     * @param string $pointIntervalUnit The point interval unit.
1382
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1383
     */
1384
    public function setPointIntervalUnit($pointIntervalUnit) {
1385
        switch ($pointIntervalUnit) {
1386
            case null:
1387
            case "day":
1388
            case "month":
1389
            case "year":
1390
            $this->pointIntervalUnit = $pointIntervalUnit;
1391
            break;
1392
        }
1393
        return $this;
1394
    }
1395
1396
    /**
1397
     * Set the point start.
1398
     *
1399
     * @param integer $pointStart The point start.
1400
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1401
     */
1402
    public function setPointStart($pointStart) {
1403
        $this->pointStart = $pointStart;
1404
        return $this;
1405
    }
1406
1407
    /**
1408
     * Set the selected.
1409
     *
1410
     * @param boolean $selected The selected.
1411
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1412
     */
1413
    public function setSelected($selected) {
1414
        $this->selected = $selected;
1415
        return $this;
1416
    }
1417
1418
    /**
1419
     * Set the shadow.
1420
     *
1421
     * @param boolean|array $shadow The shadow.
1422
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1423
     */
1424
    public function setShadow($shadow) {
1425
        $this->shadow = $shadow;
1426
        return $this;
1427
    }
1428
1429
    /**
1430
     * Set the show checkbox.
1431
     *
1432
     * @param boolean $showCheckbox The show checkbox.
1433
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1434
     */
1435
    public function setShowCheckbox($showCheckbox) {
1436
        $this->showCheckbox = $showCheckbox;
1437
        return $this;
1438
    }
1439
1440
    /**
1441
     * Set the show in legend.
1442
     *
1443
     * @param boolean $showInLegend The show in legend.
1444
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1445
     */
1446
    public function setShowInLegend($showInLegend) {
1447
        $this->showInLegend = $showInLegend;
1448
        return $this;
1449
    }
1450
1451
    /**
1452
     * Set the skip keyboard navigation.
1453
     *
1454
     * @param boolean $skipKeyboardNavigation The skip keyboard navigation.
1455
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1456
     */
1457
    public function setSkipKeyboardNavigation($skipKeyboardNavigation) {
1458
        $this->skipKeyboardNavigation = $skipKeyboardNavigation;
1459
        return $this;
1460
    }
1461
1462
    /**
1463
     * Set the states.
1464
     *
1465
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsStates $states The states.
1466
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1467
     */
1468
    public function setStates(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsStates $states = null) {
1469
        $this->states = $states;
1470
        return $this;
1471
    }
1472
1473
    /**
1474
     * Set the sticky tracking.
1475
     *
1476
     * @param boolean $stickyTracking The sticky tracking.
1477
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1478
     */
1479
    public function setStickyTracking($stickyTracking) {
1480
        $this->stickyTracking = $stickyTracking;
1481
        return $this;
1482
    }
1483
1484
    /**
1485
     * Set the tooltip.
1486
     *
1487
     * @param array $tooltip The tooltip.
1488
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1489
     */
1490
    public function setTooltip(array $tooltip = null) {
1491
        $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...
1492
        return $this;
1493
    }
1494
1495
    /**
1496
     * Set the turbo threshold.
1497
     *
1498
     * @param integer $turboThreshold The turbo threshold.
1499
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1500
     */
1501
    public function setTurboThreshold($turboThreshold) {
1502
        $this->turboThreshold = $turboThreshold;
1503
        return $this;
1504
    }
1505
1506
    /**
1507
     * Set the type.
1508
     *
1509
     * @param string $type The type.
1510
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1511
     */
1512
    public function setType($type) {
1513
        switch ($type) {
1514
            case null:
1515
            case "area":
1516
            case "arearange":
1517
            case "areaspline":
1518
            case "areasplinerange":
1519
            case "boxplot":
1520
            case "bubble":
1521
            case "column":
1522
            case "columnrange":
1523
            case "errorbar":
1524
            case "funnel":
1525
            case "gauge":
1526
            case "line":
1527
            case "pie":
1528
            case "scatter":
1529
            case "spline":
1530
            case "waterfall":
1531
            $this->type = $type;
1532
            break;
1533
        }
1534
        return $this;
1535
    }
1536
1537
    /**
1538
     * Set the visible.
1539
     *
1540
     * @param boolean $visible The visible.
1541
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1542
     */
1543
    public function setVisible($visible) {
1544
        $this->visible = $visible;
1545
        return $this;
1546
    }
1547
1548
    /**
1549
     * Set the x axis.
1550
     *
1551
     * @param integer|string $xAxis The x axis.
1552
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1553
     */
1554
    public function setXAxis($xAxis) {
1555
        $this->xAxis = $xAxis;
1556
        return $this;
1557
    }
1558
1559
    /**
1560
     * Set the y axis.
1561
     *
1562
     * @param integer|string $yAxis The y axis.
1563
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1564
     */
1565
    public function setYAxis($yAxis) {
1566
        $this->yAxis = $yAxis;
1567
        return $this;
1568
    }
1569
1570
    /**
1571
     * Set the z index.
1572
     *
1573
     * @param integer $zIndex The z index.
1574
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1575
     */
1576
    public function setZIndex($zIndex) {
1577
        $this->zIndex = $zIndex;
1578
        return $this;
1579
    }
1580
1581
    /**
1582
     * Set the zone axis.
1583
     *
1584
     * @param string $zoneAxis The zone axis.
1585
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1586
     */
1587
    public function setZoneAxis($zoneAxis) {
1588
        $this->zoneAxis = $zoneAxis;
1589
        return $this;
1590
    }
1591
1592
    /**
1593
     * Set the zones.
1594
     *
1595
     * @param array $zones The zones.
1596
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon.
1597
     */
1598
    public function setZones(array $zones = null) {
1599
        $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...
1600
        return $this;
1601
    }
1602
1603
    /**
1604
     * Convert into an array representing this instance.
1605
     *
1606
     * @return array Returns an array representing this instance.
1607
     */
1608
    public function toArray() {
1609
1610
        // Initialize the output.
1611
        $output = [];
1612
1613
        // Set the allow point select.
1614
        ArrayUtility::set($output, "allowPointSelect", $this->allowPointSelect, [null]);
1615
1616
        // Set the animation.
1617
        ArrayUtility::set($output, "animation", $this->animation, [null]);
1618
1619
        // Set the animation limit.
1620
        ArrayUtility::set($output, "animationLimit", $this->animationLimit, [null]);
1621
1622
        // Set the class name.
1623
        ArrayUtility::set($output, "className", $this->className, [null]);
1624
1625
        // Set the color.
1626
        ArrayUtility::set($output, "color", $this->color, [null]);
1627
1628
        // Set the color index.
1629
        ArrayUtility::set($output, "colorIndex", $this->colorIndex, [null]);
1630
1631
        // Set the crop threshold.
1632
        ArrayUtility::set($output, "cropThreshold", $this->cropThreshold, [null]);
1633
1634
        // Set the cursor.
1635
        ArrayUtility::set($output, "cursor", $this->cursor, [null]);
1636
1637
        // Set the dash style.
1638
        ArrayUtility::set($output, "dashStyle", $this->dashStyle, [null]);
1639
1640
        // Set the data.
1641
        ArrayUtility::set($output, "data", $this->data, [null]);
1642
1643
        // Set the data labels.
1644
        if (null !== $this->dataLabels) {
1645
            ArrayUtility::set($output, "dataLabels", $this->dataLabels->toArray(), []);
1646
        }
1647
1648
        // Set the description.
1649
        ArrayUtility::set($output, "description", $this->description, [null]);
1650
1651
        // Set the enable mouse tracking.
1652
        ArrayUtility::set($output, "enableMouseTracking", $this->enableMouseTracking, [null]);
1653
1654
        // Set the events.
1655
        if (null !== $this->events) {
1656
            ArrayUtility::set($output, "events", $this->events->toArray(), []);
1657
        }
1658
1659
        // Set the expose element to a11y.
1660
        ArrayUtility::set($output, "exposeElementToA11y", $this->exposeElementToA11y, [null]);
1661
1662
        // Set the find nearest point by.
1663
        ArrayUtility::set($output, "findNearestPointBy", $this->findNearestPointBy, [null]);
1664
1665
        // Set the get extremes from all.
1666
        ArrayUtility::set($output, "getExtremesFromAll", $this->getExtremesFromAll, [null]);
1667
1668
        // Set the id.
1669
        ArrayUtility::set($output, "id", $this->id, [null]);
1670
1671
        // Set the index.
1672
        ArrayUtility::set($output, "index", $this->index, [null]);
1673
1674
        // Set the keys.
1675
        ArrayUtility::set($output, "keys", $this->keys, [null]);
1676
1677
        // Set the legend index.
1678
        ArrayUtility::set($output, "legendIndex", $this->legendIndex, [null]);
1679
1680
        // Set the line width.
1681
        ArrayUtility::set($output, "lineWidth", $this->lineWidth, [null]);
1682
1683
        // Set the linked to.
1684
        ArrayUtility::set($output, "linkedTo", $this->linkedTo, [null]);
1685
1686
        // Set the marker.
1687
        if (null !== $this->marker) {
1688
            ArrayUtility::set($output, "marker", $this->marker->toArray(), []);
1689
        }
1690
1691
        // Set the name.
1692
        ArrayUtility::set($output, "name", $this->name, [null]);
1693
1694
        // Set the negative color.
1695
        ArrayUtility::set($output, "negativeColor", $this->negativeColor, [null]);
1696
1697
        // Set the point.
1698
        if (null !== $this->point) {
1699
            ArrayUtility::set($output, "point", $this->point->toArray(), []);
1700
        }
1701
1702
        // Set the point description formatter.
1703
        ArrayUtility::set($output, "pointDescriptionFormatter", $this->pointDescriptionFormatter, [null]);
1704
1705
        // Set the point interval.
1706
        ArrayUtility::set($output, "pointInterval", $this->pointInterval, [null]);
1707
1708
        // Set the point interval unit.
1709
        ArrayUtility::set($output, "pointIntervalUnit", $this->pointIntervalUnit, [null]);
1710
1711
        // Set the point start.
1712
        ArrayUtility::set($output, "pointStart", $this->pointStart, [null]);
1713
1714
        // Set the selected.
1715
        ArrayUtility::set($output, "selected", $this->selected, [null]);
1716
1717
        // Set the shadow.
1718
        ArrayUtility::set($output, "shadow", $this->shadow, [null]);
1719
1720
        // Set the show checkbox.
1721
        ArrayUtility::set($output, "showCheckbox", $this->showCheckbox, [null]);
1722
1723
        // Set the show in legend.
1724
        ArrayUtility::set($output, "showInLegend", $this->showInLegend, [null]);
1725
1726
        // Set the skip keyboard navigation.
1727
        ArrayUtility::set($output, "skipKeyboardNavigation", $this->skipKeyboardNavigation, [null]);
1728
1729
        // Set the states.
1730
        if (null !== $this->states) {
1731
            ArrayUtility::set($output, "states", $this->states->toArray(), []);
1732
        }
1733
1734
        // Set the sticky tracking.
1735
        ArrayUtility::set($output, "stickyTracking", $this->stickyTracking, [null]);
1736
1737
        // Set the tooltip.
1738
        ArrayUtility::set($output, "tooltip", $this->tooltip, [null]);
1739
1740
        // Set the turbo threshold.
1741
        ArrayUtility::set($output, "turboThreshold", $this->turboThreshold, [null]);
1742
1743
        // Set the type.
1744
        ArrayUtility::set($output, "type", $this->type, [null]);
1745
1746
        // Set the visible.
1747
        ArrayUtility::set($output, "visible", $this->visible, [null]);
1748
1749
        // Set the x axis.
1750
        ArrayUtility::set($output, "xAxis", $this->xAxis, [null]);
1751
1752
        // Set the y axis.
1753
        ArrayUtility::set($output, "yAxis", $this->yAxis, [null]);
1754
1755
        // Set the z index.
1756
        ArrayUtility::set($output, "zIndex", $this->zIndex, [null]);
1757
1758
        // Set the zone axis.
1759
        ArrayUtility::set($output, "zoneAxis", $this->zoneAxis, [null]);
1760
1761
        // Set the zones.
1762
        ArrayUtility::set($output, "zones", $this->zones, [null]);
1763
1764
        // Return the output.
1765
        return $output;
1766
    }
1767
1768
}
1769