HighchartsColumn   F
last analyzed

Complexity

Total Complexity 184

Size/Duplication

Total Lines 2367
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 5

Importance

Changes 0
Metric Value
wmc 184
lcom 1
cbo 5
dl 0
loc 2367
rs 0.8
c 0
b 0
f 0

140 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 2
B clear() 0 208 5
A getAllowPointSelect() 0 3 1
A getAnimation() 0 3 1
A getAnimationLimit() 0 3 1
A getBorderColor() 0 3 1
A getBorderRadius() 0 3 1
A getBorderWidth() 0 3 1
A getClassName() 0 3 1
A getColor() 0 3 1
A getColorByPoint() 0 3 1
A getColorIndex() 0 3 1
A getColors() 0 3 1
A getCrisp() 0 3 1
A getCropThreshold() 0 3 1
A getCursor() 0 3 1
A getData() 0 3 1
A getDataLabels() 0 3 1
A getDepth() 0 3 1
A getDescription() 0 3 1
A getEdgeColor() 0 3 1
A getEdgeWidth() 0 3 1
A getEnableMouseTracking() 0 3 1
A getEvents() 0 3 1
A getExposeElementToA11y() 0 3 1
A getFindNearestPointBy() 0 3 1
A getGetExtremesFromAll() 0 3 1
A getGroupPadding() 0 3 1
A getGroupZPadding() 0 3 1
A getGrouping() 0 3 1
A getId() 0 3 1
A getIndex() 0 3 1
A getKeys() 0 3 1
A getLegendIndex() 0 3 1
A getLinkedTo() 0 3 1
A getMaxPointWidth() 0 3 1
A getMinPointLength() 0 3 1
A getName() 0 3 1
A getNegativeColor() 0 3 1
A getPoint() 0 3 1
A getPointDescriptionFormatter() 0 3 1
A getPointInterval() 0 3 1
A getPointIntervalUnit() 0 3 1
A getPointPadding() 0 3 1
A getPointPlacement() 0 3 1
A getPointRange() 0 3 1
A getPointStart() 0 3 1
A getPointWidth() 0 3 1
A getSelected() 0 3 1
A getShadow() 0 3 1
A getShowCheckbox() 0 3 1
A getShowInLegend() 0 3 1
A getSkipKeyboardNavigation() 0 3 1
A getSoftThreshold() 0 3 1
A getStack() 0 3 1
A getStacking() 0 3 1
A getStates() 0 3 1
A getStickyTracking() 0 3 1
A getThreshold() 0 3 1
A getTooltip() 0 3 1
A getTurboThreshold() 0 3 1
A getType() 0 3 1
A getVisible() 0 3 1
A getXAxis() 0 3 1
A getYAxis() 0 3 1
A getZIndex() 0 3 1
A getZoneAxis() 0 3 1
A getZones() 0 3 1
A jsonSerialize() 0 3 1
A newDataLabels() 0 4 1
A newEvents() 0 4 1
A newPoint() 0 4 1
A newStates() 0 4 1
A setAllowPointSelect() 0 4 1
A setAnimation() 0 4 1
A setAnimationLimit() 0 4 1
A setBorderColor() 0 4 1
A setBorderRadius() 0 4 1
A setBorderWidth() 0 4 1
A setClassName() 0 4 1
A setColor() 0 4 1
A setColorByPoint() 0 4 1
A setColorIndex() 0 4 1
A setColors() 0 4 1
A setCrisp() 0 4 1
A setCropThreshold() 0 4 1
B setCursor() 0 13 7
A setData() 0 4 1
A setDataLabels() 0 4 1
A setDepth() 0 4 1
A setDescription() 0 4 1
A setEdgeColor() 0 4 1
A setEdgeWidth() 0 4 1
A setEnableMouseTracking() 0 4 1
A setEvents() 0 4 1
A setExposeElementToA11y() 0 4 1
A setFindNearestPointBy() 0 9 3
A setGetExtremesFromAll() 0 4 1
A setGroupPadding() 0 4 1
A setGroupZPadding() 0 4 1
A setGrouping() 0 4 1
A setId() 0 4 1
A setIndex() 0 4 1
A setKeys() 0 4 1
A setLegendIndex() 0 4 1
A setLinkedTo() 0 4 1
A setMaxPointWidth() 0 4 1
A setMinPointLength() 0 4 1
A setName() 0 4 1
A setNegativeColor() 0 4 1
A setPoint() 0 4 1
A setPointDescriptionFormatter() 0 4 1
A setPointInterval() 0 4 1
A setPointIntervalUnit() 0 11 5
A setPointPadding() 0 4 1
A setPointPlacement() 0 10 4
A setPointRange() 0 4 1
A setPointStart() 0 4 1
A setPointWidth() 0 4 1
A setSelected() 0 4 1
A setShadow() 0 4 1
A setShowCheckbox() 0 4 1
A setShowInLegend() 0 4 1
A setSkipKeyboardNavigation() 0 4 1
A setSoftThreshold() 0 4 1
A setStack() 0 4 1
A setStacking() 0 10 4
A setStates() 0 4 1
A setStickyTracking() 0 4 1
A setThreshold() 0 4 1
A setTooltip() 0 4 1
A setTurboThreshold() 0 4 1
D setType() 0 24 18
A setVisible() 0 4 1
A setXAxis() 0 4 1
A setYAxis() 0 4 1
A setZIndex() 0 4 1
A setZoneAxis() 0 4 1
A setZones() 0 4 1
B toArray() 0 214 5

How to fix   Complexity   

Complex Class

Complex classes like HighchartsColumn often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.

Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.

While breaking up the class, it is a good idea to analyze how other classes use HighchartsColumn, and based on these observations, apply Extract Interface, too.

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 column.
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 HighchartsColumn 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
     * Border color.
51
     *
52
     * @var string
53
     */
54
    private $borderColor = "#ffffff";
55
56
    /**
57
     * Border radius.
58
     *
59
     * @var integer
60
     */
61
    private $borderRadius = 0;
62
63
    /**
64
     * Border width.
65
     *
66
     * @var integer
67
     */
68
    private $borderWidth = 1;
69
70
    /**
71
     * Class name.
72
     *
73
     * @var string
74
     * @since 5.0.0
75
     */
76
    private $className;
77
78
    /**
79
     * Color.
80
     *
81
     * @var string
82
     */
83
    private $color;
84
85
    /**
86
     * Color by point.
87
     *
88
     * @var boolean
89
     * @since 2.0
90
     */
91
    private $colorByPoint = false;
92
93
    /**
94
     * Color index.
95
     *
96
     * @var integer
97
     * @since 5.0.0
98
     */
99
    private $colorIndex;
100
101
    /**
102
     * Colors.
103
     *
104
     * @var array
105
     * @since 3.0
106
     */
107
    private $colors;
108
109
    /**
110
     * Crisp.
111
     *
112
     * @var boolean
113
     * @since 5.0.10
114
     */
115
    private $crisp = true;
116
117
    /**
118
     * Crop threshold.
119
     *
120
     * @var integer
121
     */
122
    private $cropThreshold = 50;
123
124
    /**
125
     * Cursor.
126
     *
127
     * @var string
128
     */
129
    private $cursor;
130
131
    /**
132
     * Data.
133
     *
134
     * @var array
135
     */
136
    private $data;
137
138
    /**
139
     * Data labels.
140
     *
141
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsDataLabels
142
     */
143
    private $dataLabels;
144
145
    /**
146
     * Depth.
147
     *
148
     * @var integer
149
     * @since 4.0
150
     */
151
    private $depth = 25;
152
153
    /**
154
     * Description.
155
     *
156
     * @var string
157
     * @since 5.0.0
158
     */
159
    private $description;
160
161
    /**
162
     * Edge color.
163
     *
164
     * @var string
165
     */
166
    private $edgeColor;
167
168
    /**
169
     * Edge width.
170
     *
171
     * @var integer
172
     */
173
    private $edgeWidth = 1;
174
175
    /**
176
     * Enable mouse tracking.
177
     *
178
     * @var boolean
179
     */
180
    private $enableMouseTracking = true;
181
182
    /**
183
     * Events.
184
     *
185
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsEvents
186
     */
187
    private $events;
188
189
    /**
190
     * Expose element to a11y.
191
     *
192
     * @var boolean
193
     * @since 5.0.12
194
     */
195
    private $exposeElementToA11y;
196
197
    /**
198
     * Find nearest point by.
199
     *
200
     * @var string
201
     * @since 5.0.10
202
     */
203
    private $findNearestPointBy;
204
205
    /**
206
     * Get extremes from all.
207
     *
208
     * @var boolean
209
     * @since 4.1.6
210
     */
211
    private $getExtremesFromAll = false;
212
213
    /**
214
     * Group padding.
215
     *
216
     * @var integer
217
     */
218
    private $groupPadding = 0.2;
219
220
    /**
221
     * Group z padding.
222
     *
223
     * @var integer
224
     * @since 4.0
225
     */
226
    private $groupZPadding = 1;
227
228
    /**
229
     * Grouping.
230
     *
231
     * @var boolean
232
     * @since 2.3.0
233
     */
234
    private $grouping = true;
235
236
    /**
237
     * Id.
238
     *
239
     * @var string
240
     * @since 1.2.0
241
     */
242
    private $id;
243
244
    /**
245
     * Index.
246
     *
247
     * @var integer
248
     * @since 2.3.0
249
     */
250
    private $index;
251
252
    /**
253
     * Keys.
254
     *
255
     * @var array
256
     * @since 4.1.6
257
     */
258
    private $keys;
259
260
    /**
261
     * Legend index.
262
     *
263
     * @var integer
264
     */
265
    private $legendIndex;
266
267
    /**
268
     * Linked to.
269
     *
270
     * @var string
271
     * @since 3.0
272
     */
273
    private $linkedTo;
274
275
    /**
276
     * Max point width.
277
     *
278
     * @var integer
279
     * @since 4.1.8
280
     */
281
    private $maxPointWidth;
282
283
    /**
284
     * Min point length.
285
     *
286
     * @var integer
287
     */
288
    private $minPointLength = 0;
289
290
    /**
291
     * Name.
292
     *
293
     * @var string
294
     */
295
    private $name;
296
297
    /**
298
     * Negative color.
299
     *
300
     * @var string
301
     * @since 3.0
302
     */
303
    private $negativeColor;
304
305
    /**
306
     * Point.
307
     *
308
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsPoint
309
     */
310
    private $point;
311
312
    /**
313
     * Point description formatter.
314
     *
315
     * @var string
316
     * @since 5.0.12
317
     */
318
    private $pointDescriptionFormatter;
319
320
    /**
321
     * Point interval.
322
     *
323
     * @var integer
324
     */
325
    private $pointInterval = 1;
326
327
    /**
328
     * Point interval unit.
329
     *
330
     * @var string
331
     * @since 4.1.0
332
     */
333
    private $pointIntervalUnit;
334
335
    /**
336
     * Point padding.
337
     *
338
     * @var integer
339
     */
340
    private $pointPadding = 0.1;
341
342
    /**
343
     * Point placement.
344
     *
345
     * @var string|integer
346
     * @since 2.3.0
347
     */
348
    private $pointPlacement;
349
350
    /**
351
     * Point range.
352
     *
353
     * @var integer
354
     * @since 2.3
355
     */
356
    private $pointRange;
357
358
    /**
359
     * Point start.
360
     *
361
     * @var integer
362
     */
363
    private $pointStart = 0;
364
365
    /**
366
     * Point width.
367
     *
368
     * @var integer
369
     * @since 1.2.5
370
     */
371
    private $pointWidth;
372
373
    /**
374
     * Selected.
375
     *
376
     * @var boolean
377
     * @since 1.2.0
378
     */
379
    private $selected = false;
380
381
    /**
382
     * Shadow.
383
     *
384
     * @var boolean|array
385
     */
386
    private $shadow = false;
387
388
    /**
389
     * Show checkbox.
390
     *
391
     * @var boolean
392
     * @since 1.2.0
393
     */
394
    private $showCheckbox = false;
395
396
    /**
397
     * Show in legend.
398
     *
399
     * @var boolean
400
     */
401
    private $showInLegend = true;
402
403
    /**
404
     * Skip keyboard navigation.
405
     *
406
     * @var boolean
407
     * @since 5.0.12
408
     */
409
    private $skipKeyboardNavigation;
410
411
    /**
412
     * Soft threshold.
413
     *
414
     * @var boolean
415
     * @since 4.1.9
416
     */
417
    private $softThreshold = true;
418
419
    /**
420
     * Stack.
421
     *
422
     * @var string
423
     * @since 2.1
424
     */
425
    private $stack;
426
427
    /**
428
     * Stacking.
429
     *
430
     * @var string
431
     */
432
    private $stacking;
433
434
    /**
435
     * States.
436
     *
437
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsStates
438
     */
439
    private $states;
440
441
    /**
442
     * Sticky tracking.
443
     *
444
     * @var boolean
445
     * @since 2.0
446
     */
447
    private $stickyTracking = true;
448
449
    /**
450
     * Threshold.
451
     *
452
     * @var integer
453
     * @since 2.0
454
     */
455
    private $threshold = 0;
456
457
    /**
458
     * Tooltip.
459
     *
460
     * @var array
461
     * @since 2.3
462
     */
463
    private $tooltip;
464
465
    /**
466
     * Turbo threshold.
467
     *
468
     * @var integer
469
     * @since 2.2
470
     */
471
    private $turboThreshold = 1000;
472
473
    /**
474
     * Type.
475
     *
476
     * @var string
477
     */
478
    private $type;
479
480
    /**
481
     * Visible.
482
     *
483
     * @var boolean
484
     */
485
    private $visible = true;
486
487
    /**
488
     * X axis.
489
     *
490
     * @var integer|string
491
     */
492
    private $xAxis = "0";
493
494
    /**
495
     * Y axis.
496
     *
497
     * @var integer|string
498
     */
499
    private $yAxis = "0";
500
501
    /**
502
     * Z index.
503
     *
504
     * @var integer
505
     */
506
    private $zIndex;
507
508
    /**
509
     * Zone axis.
510
     *
511
     * @var string
512
     * @since 4.1.0
513
     */
514
    private $zoneAxis = "y";
515
516
    /**
517
     * Zones.
518
     *
519
     * @var array
520
     * @since 4.1.0
521
     */
522
    private $zones;
523
524
    /**
525
     * Constructor.
526
     *
527
     * @param boolean $ignoreDefaultValues Ignore the default values.
528
     */
529
    public function __construct($ignoreDefaultValues = true) {
530
        if (true === $ignoreDefaultValues) {
531
            $this->clear();
532
        }
533
    }
534
535
    /**
536
     * Clear.
537
     *
538
     * @return void
539
     */
540
    public function clear() {
541
542
        // Clear the allow point select.
543
        $this->allowPointSelect = null;
544
545
        // Clear the animation.
546
        $this->animation = null;
547
548
        // Clear the animation limit.
549
        $this->animationLimit = null;
550
551
        // Clear the border color.
552
        $this->borderColor = null;
553
554
        // Clear the border radius.
555
        $this->borderRadius = null;
556
557
        // Clear the border width.
558
        $this->borderWidth = null;
559
560
        // Clear the class name.
561
        $this->className = null;
562
563
        // Clear the color.
564
        $this->color = null;
565
566
        // Clear the color by point.
567
        $this->colorByPoint = null;
568
569
        // Clear the color index.
570
        $this->colorIndex = null;
571
572
        // Clear the colors.
573
        $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...
574
575
        // Clear the crisp.
576
        $this->crisp = null;
577
578
        // Clear the crop threshold.
579
        $this->cropThreshold = null;
580
581
        // Clear the cursor.
582
        $this->cursor = null;
583
584
        // Clear the data.
585
        $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...
586
587
        // Clear the data labels.
588
        if (null !== $this->dataLabels) {
589
            $this->dataLabels->clear();
590
        }
591
592
        // Clear the depth.
593
        $this->depth = null;
594
595
        // Clear the description.
596
        $this->description = null;
597
598
        // Clear the edge color.
599
        $this->edgeColor = null;
600
601
        // Clear the edge width.
602
        $this->edgeWidth = null;
603
604
        // Clear the enable mouse tracking.
605
        $this->enableMouseTracking = null;
606
607
        // Clear the events.
608
        if (null !== $this->events) {
609
            $this->events->clear();
610
        }
611
612
        // Clear the expose element to a11y.
613
        $this->exposeElementToA11y = null;
614
615
        // Clear the find nearest point by.
616
        $this->findNearestPointBy = null;
617
618
        // Clear the get extremes from all.
619
        $this->getExtremesFromAll = null;
620
621
        // Clear the group padding.
622
        $this->groupPadding = null;
623
624
        // Clear the group z padding.
625
        $this->groupZPadding = null;
626
627
        // Clear the grouping.
628
        $this->grouping = null;
629
630
        // Clear the id.
631
        $this->id = null;
632
633
        // Clear the index.
634
        $this->index = null;
635
636
        // Clear the keys.
637
        $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...
638
639
        // Clear the legend index.
640
        $this->legendIndex = null;
641
642
        // Clear the linked to.
643
        $this->linkedTo = null;
644
645
        // Clear the max point width.
646
        $this->maxPointWidth = null;
647
648
        // Clear the min point length.
649
        $this->minPointLength = null;
650
651
        // Clear the name.
652
        $this->name = null;
653
654
        // Clear the negative color.
655
        $this->negativeColor = null;
656
657
        // Clear the point.
658
        if (null !== $this->point) {
659
            $this->point->clear();
660
        }
661
662
        // Clear the point description formatter.
663
        $this->pointDescriptionFormatter = null;
664
665
        // Clear the point interval.
666
        $this->pointInterval = null;
667
668
        // Clear the point interval unit.
669
        $this->pointIntervalUnit = null;
670
671
        // Clear the point padding.
672
        $this->pointPadding = null;
673
674
        // Clear the point placement.
675
        $this->pointPlacement = null;
676
677
        // Clear the point range.
678
        $this->pointRange = null;
679
680
        // Clear the point start.
681
        $this->pointStart = null;
682
683
        // Clear the point width.
684
        $this->pointWidth = null;
685
686
        // Clear the selected.
687
        $this->selected = null;
688
689
        // Clear the shadow.
690
        $this->shadow = null;
691
692
        // Clear the show checkbox.
693
        $this->showCheckbox = null;
694
695
        // Clear the show in legend.
696
        $this->showInLegend = null;
697
698
        // Clear the skip keyboard navigation.
699
        $this->skipKeyboardNavigation = null;
700
701
        // Clear the soft threshold.
702
        $this->softThreshold = null;
703
704
        // Clear the stack.
705
        $this->stack = null;
706
707
        // Clear the stacking.
708
        $this->stacking = null;
709
710
        // Clear the states.
711
        if (null !== $this->states) {
712
            $this->states->clear();
713
        }
714
715
        // Clear the sticky tracking.
716
        $this->stickyTracking = null;
717
718
        // Clear the threshold.
719
        $this->threshold = null;
720
721
        // Clear the tooltip.
722
        $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...
723
724
        // Clear the turbo threshold.
725
        $this->turboThreshold = null;
726
727
        // Clear the type.
728
        $this->type = null;
729
730
        // Clear the visible.
731
        $this->visible = null;
732
733
        // Clear the x axis.
734
        $this->xAxis = null;
735
736
        // Clear the y axis.
737
        $this->yAxis = null;
738
739
        // Clear the z index.
740
        $this->zIndex = null;
741
742
        // Clear the zone axis.
743
        $this->zoneAxis = null;
744
745
        // Clear the zones.
746
        $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...
747
    }
748
749
    /**
750
     * Get the allow point select.
751
     *
752
     * @return boolean Returns the allow point select.
753
     */
754
    public function getAllowPointSelect() {
755
        return $this->allowPointSelect;
756
    }
757
758
    /**
759
     * Get the animation.
760
     *
761
     * @return boolean Returns the animation.
762
     */
763
    public function getAnimation() {
764
        return $this->animation;
765
    }
766
767
    /**
768
     * Get the animation limit.
769
     *
770
     * @return integer Returns the animation limit.
771
     */
772
    public function getAnimationLimit() {
773
        return $this->animationLimit;
774
    }
775
776
    /**
777
     * Get the border color.
778
     *
779
     * @return string Returns the border color.
780
     */
781
    public function getBorderColor() {
782
        return $this->borderColor;
783
    }
784
785
    /**
786
     * Get the border radius.
787
     *
788
     * @return integer Returns the border radius.
789
     */
790
    public function getBorderRadius() {
791
        return $this->borderRadius;
792
    }
793
794
    /**
795
     * Get the border width.
796
     *
797
     * @return integer Returns the border width.
798
     */
799
    public function getBorderWidth() {
800
        return $this->borderWidth;
801
    }
802
803
    /**
804
     * Get the class name.
805
     *
806
     * @return string Returns the class name.
807
     */
808
    public function getClassName() {
809
        return $this->className;
810
    }
811
812
    /**
813
     * Get the color.
814
     *
815
     * @return string Returns the color.
816
     */
817
    public function getColor() {
818
        return $this->color;
819
    }
820
821
    /**
822
     * Get the color by point.
823
     *
824
     * @return boolean Returns the color by point.
825
     */
826
    public function getColorByPoint() {
827
        return $this->colorByPoint;
828
    }
829
830
    /**
831
     * Get the color index.
832
     *
833
     * @return integer Returns the color index.
834
     */
835
    public function getColorIndex() {
836
        return $this->colorIndex;
837
    }
838
839
    /**
840
     * Get the colors.
841
     *
842
     * @return array Returns the colors.
843
     */
844
    public function getColors() {
845
        return $this->colors;
846
    }
847
848
    /**
849
     * Get the crisp.
850
     *
851
     * @return boolean Returns the crisp.
852
     */
853
    public function getCrisp() {
854
        return $this->crisp;
855
    }
856
857
    /**
858
     * Get the crop threshold.
859
     *
860
     * @return integer Returns the crop threshold.
861
     */
862
    public function getCropThreshold() {
863
        return $this->cropThreshold;
864
    }
865
866
    /**
867
     * Get the cursor.
868
     *
869
     * @return string Returns the cursor.
870
     */
871
    public function getCursor() {
872
        return $this->cursor;
873
    }
874
875
    /**
876
     * Get the data.
877
     *
878
     * @return array Returns the data.
879
     */
880
    public function getData() {
881
        return $this->data;
882
    }
883
884
    /**
885
     * Get the data labels.
886
     *
887
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsDataLabels Returns the data labels.
888
     */
889
    public function getDataLabels() {
890
        return $this->dataLabels;
891
    }
892
893
    /**
894
     * Get the depth.
895
     *
896
     * @return integer Returns the depth.
897
     */
898
    public function getDepth() {
899
        return $this->depth;
900
    }
901
902
    /**
903
     * Get the description.
904
     *
905
     * @return string Returns the description.
906
     */
907
    public function getDescription() {
908
        return $this->description;
909
    }
910
911
    /**
912
     * Get the edge color.
913
     *
914
     * @return string Returns the edge color.
915
     */
916
    public function getEdgeColor() {
917
        return $this->edgeColor;
918
    }
919
920
    /**
921
     * Get the edge width.
922
     *
923
     * @return integer Returns the edge width.
924
     */
925
    public function getEdgeWidth() {
926
        return $this->edgeWidth;
927
    }
928
929
    /**
930
     * Get the enable mouse tracking.
931
     *
932
     * @return boolean Returns the enable mouse tracking.
933
     */
934
    public function getEnableMouseTracking() {
935
        return $this->enableMouseTracking;
936
    }
937
938
    /**
939
     * Get the events.
940
     *
941
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsEvents Returns the events.
942
     */
943
    public function getEvents() {
944
        return $this->events;
945
    }
946
947
    /**
948
     * Get the expose element to a11y.
949
     *
950
     * @return boolean Returns the expose element to a11y.
951
     */
952
    public function getExposeElementToA11y() {
953
        return $this->exposeElementToA11y;
954
    }
955
956
    /**
957
     * Get the find nearest point by.
958
     *
959
     * @return string Returns the find nearest point by.
960
     */
961
    public function getFindNearestPointBy() {
962
        return $this->findNearestPointBy;
963
    }
964
965
    /**
966
     * Get the get extremes from all.
967
     *
968
     * @return boolean Returns the get extremes from all.
969
     */
970
    public function getGetExtremesFromAll() {
971
        return $this->getExtremesFromAll;
972
    }
973
974
    /**
975
     * Get the group padding.
976
     *
977
     * @return integer Returns the group padding.
978
     */
979
    public function getGroupPadding() {
980
        return $this->groupPadding;
981
    }
982
983
    /**
984
     * Get the group z padding.
985
     *
986
     * @return integer Returns the group z padding.
987
     */
988
    public function getGroupZPadding() {
989
        return $this->groupZPadding;
990
    }
991
992
    /**
993
     * Get the grouping.
994
     *
995
     * @return boolean Returns the grouping.
996
     */
997
    public function getGrouping() {
998
        return $this->grouping;
999
    }
1000
1001
    /**
1002
     * Get the id.
1003
     *
1004
     * @return string Returns the id.
1005
     */
1006
    public function getId() {
1007
        return $this->id;
1008
    }
1009
1010
    /**
1011
     * Get the index.
1012
     *
1013
     * @return integer Returns the index.
1014
     */
1015
    public function getIndex() {
1016
        return $this->index;
1017
    }
1018
1019
    /**
1020
     * Get the keys.
1021
     *
1022
     * @return array Returns the keys.
1023
     */
1024
    public function getKeys() {
1025
        return $this->keys;
1026
    }
1027
1028
    /**
1029
     * Get the legend index.
1030
     *
1031
     * @return integer Returns the legend index.
1032
     */
1033
    public function getLegendIndex() {
1034
        return $this->legendIndex;
1035
    }
1036
1037
    /**
1038
     * Get the linked to.
1039
     *
1040
     * @return string Returns the linked to.
1041
     */
1042
    public function getLinkedTo() {
1043
        return $this->linkedTo;
1044
    }
1045
1046
    /**
1047
     * Get the max point width.
1048
     *
1049
     * @return integer Returns the max point width.
1050
     */
1051
    public function getMaxPointWidth() {
1052
        return $this->maxPointWidth;
1053
    }
1054
1055
    /**
1056
     * Get the min point length.
1057
     *
1058
     * @return integer Returns the min point length.
1059
     */
1060
    public function getMinPointLength() {
1061
        return $this->minPointLength;
1062
    }
1063
1064
    /**
1065
     * Get the name.
1066
     *
1067
     * @return string Returns the name.
1068
     */
1069
    public function getName() {
1070
        return $this->name;
1071
    }
1072
1073
    /**
1074
     * Get the negative color.
1075
     *
1076
     * @return string Returns the negative color.
1077
     */
1078
    public function getNegativeColor() {
1079
        return $this->negativeColor;
1080
    }
1081
1082
    /**
1083
     * Get the point.
1084
     *
1085
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsPoint Returns the point.
1086
     */
1087
    public function getPoint() {
1088
        return $this->point;
1089
    }
1090
1091
    /**
1092
     * Get the point description formatter.
1093
     *
1094
     * @return string Returns the point description formatter.
1095
     */
1096
    public function getPointDescriptionFormatter() {
1097
        return $this->pointDescriptionFormatter;
1098
    }
1099
1100
    /**
1101
     * Get the point interval.
1102
     *
1103
     * @return integer Returns the point interval.
1104
     */
1105
    public function getPointInterval() {
1106
        return $this->pointInterval;
1107
    }
1108
1109
    /**
1110
     * Get the point interval unit.
1111
     *
1112
     * @return string Returns the point interval unit.
1113
     */
1114
    public function getPointIntervalUnit() {
1115
        return $this->pointIntervalUnit;
1116
    }
1117
1118
    /**
1119
     * Get the point padding.
1120
     *
1121
     * @return integer Returns the point padding.
1122
     */
1123
    public function getPointPadding() {
1124
        return $this->pointPadding;
1125
    }
1126
1127
    /**
1128
     * Get the point placement.
1129
     *
1130
     * @return string|integer Returns the point placement.
1131
     */
1132
    public function getPointPlacement() {
1133
        return $this->pointPlacement;
1134
    }
1135
1136
    /**
1137
     * Get the point range.
1138
     *
1139
     * @return integer Returns the point range.
1140
     */
1141
    public function getPointRange() {
1142
        return $this->pointRange;
1143
    }
1144
1145
    /**
1146
     * Get the point start.
1147
     *
1148
     * @return integer Returns the point start.
1149
     */
1150
    public function getPointStart() {
1151
        return $this->pointStart;
1152
    }
1153
1154
    /**
1155
     * Get the point width.
1156
     *
1157
     * @return integer Returns the point width.
1158
     */
1159
    public function getPointWidth() {
1160
        return $this->pointWidth;
1161
    }
1162
1163
    /**
1164
     * Get the selected.
1165
     *
1166
     * @return boolean Returns the selected.
1167
     */
1168
    public function getSelected() {
1169
        return $this->selected;
1170
    }
1171
1172
    /**
1173
     * Get the shadow.
1174
     *
1175
     * @return boolean|array Returns the shadow.
1176
     */
1177
    public function getShadow() {
1178
        return $this->shadow;
1179
    }
1180
1181
    /**
1182
     * Get the show checkbox.
1183
     *
1184
     * @return boolean Returns the show checkbox.
1185
     */
1186
    public function getShowCheckbox() {
1187
        return $this->showCheckbox;
1188
    }
1189
1190
    /**
1191
     * Get the show in legend.
1192
     *
1193
     * @return boolean Returns the show in legend.
1194
     */
1195
    public function getShowInLegend() {
1196
        return $this->showInLegend;
1197
    }
1198
1199
    /**
1200
     * Get the skip keyboard navigation.
1201
     *
1202
     * @return boolean Returns the skip keyboard navigation.
1203
     */
1204
    public function getSkipKeyboardNavigation() {
1205
        return $this->skipKeyboardNavigation;
1206
    }
1207
1208
    /**
1209
     * Get the soft threshold.
1210
     *
1211
     * @return boolean Returns the soft threshold.
1212
     */
1213
    public function getSoftThreshold() {
1214
        return $this->softThreshold;
1215
    }
1216
1217
    /**
1218
     * Get the stack.
1219
     *
1220
     * @return string Returns the stack.
1221
     */
1222
    public function getStack() {
1223
        return $this->stack;
1224
    }
1225
1226
    /**
1227
     * Get the stacking.
1228
     *
1229
     * @return string Returns the stacking.
1230
     */
1231
    public function getStacking() {
1232
        return $this->stacking;
1233
    }
1234
1235
    /**
1236
     * Get the states.
1237
     *
1238
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsStates Returns the states.
1239
     */
1240
    public function getStates() {
1241
        return $this->states;
1242
    }
1243
1244
    /**
1245
     * Get the sticky tracking.
1246
     *
1247
     * @return boolean Returns the sticky tracking.
1248
     */
1249
    public function getStickyTracking() {
1250
        return $this->stickyTracking;
1251
    }
1252
1253
    /**
1254
     * Get the threshold.
1255
     *
1256
     * @return integer Returns the threshold.
1257
     */
1258
    public function getThreshold() {
1259
        return $this->threshold;
1260
    }
1261
1262
    /**
1263
     * Get the tooltip.
1264
     *
1265
     * @return array Returns the tooltip.
1266
     */
1267
    public function getTooltip() {
1268
        return $this->tooltip;
1269
    }
1270
1271
    /**
1272
     * Get the turbo threshold.
1273
     *
1274
     * @return integer Returns the turbo threshold.
1275
     */
1276
    public function getTurboThreshold() {
1277
        return $this->turboThreshold;
1278
    }
1279
1280
    /**
1281
     * Get the type.
1282
     *
1283
     * @return string Returns the type.
1284
     */
1285
    public function getType() {
1286
        return $this->type;
1287
    }
1288
1289
    /**
1290
     * Get the visible.
1291
     *
1292
     * @return boolean Returns the visible.
1293
     */
1294
    public function getVisible() {
1295
        return $this->visible;
1296
    }
1297
1298
    /**
1299
     * Get the x axis.
1300
     *
1301
     * @return integer|string Returns the x axis.
1302
     */
1303
    public function getXAxis() {
1304
        return $this->xAxis;
1305
    }
1306
1307
    /**
1308
     * Get the y axis.
1309
     *
1310
     * @return integer|string Returns the y axis.
1311
     */
1312
    public function getYAxis() {
1313
        return $this->yAxis;
1314
    }
1315
1316
    /**
1317
     * Get the z index.
1318
     *
1319
     * @return integer Returns the z index.
1320
     */
1321
    public function getZIndex() {
1322
        return $this->zIndex;
1323
    }
1324
1325
    /**
1326
     * Get the zone axis.
1327
     *
1328
     * @return string Returns the zone axis.
1329
     */
1330
    public function getZoneAxis() {
1331
        return $this->zoneAxis;
1332
    }
1333
1334
    /**
1335
     * Get the zones.
1336
     *
1337
     * @return array Returns the zones.
1338
     */
1339
    public function getZones() {
1340
        return $this->zones;
1341
    }
1342
1343
    /**
1344
     * Serialize this instance.
1345
     *
1346
     * @return array Returns an array representing this instance.
1347
     */
1348
    public function jsonSerialize() {
1349
        return $this->toArray();
1350
    }
1351
1352
    /**
1353
     * Create a new data labels.
1354
     *
1355
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsDataLabels Returns the data labels.
1356
     */
1357
    public function newDataLabels() {
1358
        $this->dataLabels = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsDataLabels();
1359
        return $this->dataLabels;
1360
    }
1361
1362
    /**
1363
     * Create a new events.
1364
     *
1365
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsEvents Returns the events.
1366
     */
1367
    public function newEvents() {
1368
        $this->events = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsEvents();
1369
        return $this->events;
1370
    }
1371
1372
    /**
1373
     * Create a new point.
1374
     *
1375
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsPoint Returns the point.
1376
     */
1377
    public function newPoint() {
1378
        $this->point = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsPoint();
1379
        return $this->point;
1380
    }
1381
1382
    /**
1383
     * Create a new states.
1384
     *
1385
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsStates Returns the states.
1386
     */
1387
    public function newStates() {
1388
        $this->states = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsStates();
1389
        return $this->states;
1390
    }
1391
1392
    /**
1393
     * Set the allow point select.
1394
     *
1395
     * @param boolean $allowPointSelect The allow point select.
1396
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1397
     */
1398
    public function setAllowPointSelect($allowPointSelect) {
1399
        $this->allowPointSelect = $allowPointSelect;
1400
        return $this;
1401
    }
1402
1403
    /**
1404
     * Set the animation.
1405
     *
1406
     * @param boolean $animation The animation.
1407
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1408
     */
1409
    public function setAnimation($animation) {
1410
        $this->animation = $animation;
1411
        return $this;
1412
    }
1413
1414
    /**
1415
     * Set the animation limit.
1416
     *
1417
     * @param integer $animationLimit The animation limit.
1418
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1419
     */
1420
    public function setAnimationLimit($animationLimit) {
1421
        $this->animationLimit = $animationLimit;
1422
        return $this;
1423
    }
1424
1425
    /**
1426
     * Set the border color.
1427
     *
1428
     * @param string $borderColor The border color.
1429
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1430
     */
1431
    public function setBorderColor($borderColor) {
1432
        $this->borderColor = $borderColor;
1433
        return $this;
1434
    }
1435
1436
    /**
1437
     * Set the border radius.
1438
     *
1439
     * @param integer $borderRadius The border radius.
1440
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1441
     */
1442
    public function setBorderRadius($borderRadius) {
1443
        $this->borderRadius = $borderRadius;
1444
        return $this;
1445
    }
1446
1447
    /**
1448
     * Set the border width.
1449
     *
1450
     * @param integer $borderWidth The border width.
1451
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1452
     */
1453
    public function setBorderWidth($borderWidth) {
1454
        $this->borderWidth = $borderWidth;
1455
        return $this;
1456
    }
1457
1458
    /**
1459
     * Set the class name.
1460
     *
1461
     * @param string $className The class name.
1462
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1463
     */
1464
    public function setClassName($className) {
1465
        $this->className = $className;
1466
        return $this;
1467
    }
1468
1469
    /**
1470
     * Set the color.
1471
     *
1472
     * @param string $color The color.
1473
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1474
     */
1475
    public function setColor($color) {
1476
        $this->color = $color;
1477
        return $this;
1478
    }
1479
1480
    /**
1481
     * Set the color by point.
1482
     *
1483
     * @param boolean $colorByPoint The color by point.
1484
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1485
     */
1486
    public function setColorByPoint($colorByPoint) {
1487
        $this->colorByPoint = $colorByPoint;
1488
        return $this;
1489
    }
1490
1491
    /**
1492
     * Set the color index.
1493
     *
1494
     * @param integer $colorIndex The color index.
1495
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1496
     */
1497
    public function setColorIndex($colorIndex) {
1498
        $this->colorIndex = $colorIndex;
1499
        return $this;
1500
    }
1501
1502
    /**
1503
     * Set the colors.
1504
     *
1505
     * @param array $colors The colors.
1506
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1507
     */
1508
    public function setColors(array $colors = null) {
1509
        $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...
1510
        return $this;
1511
    }
1512
1513
    /**
1514
     * Set the crisp.
1515
     *
1516
     * @param boolean $crisp The crisp.
1517
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1518
     */
1519
    public function setCrisp($crisp) {
1520
        $this->crisp = $crisp;
1521
        return $this;
1522
    }
1523
1524
    /**
1525
     * Set the crop threshold.
1526
     *
1527
     * @param integer $cropThreshold The crop threshold.
1528
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1529
     */
1530
    public function setCropThreshold($cropThreshold) {
1531
        $this->cropThreshold = $cropThreshold;
1532
        return $this;
1533
    }
1534
1535
    /**
1536
     * Set the cursor.
1537
     *
1538
     * @param string $cursor The cursor.
1539
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1540
     */
1541
    public function setCursor($cursor) {
1542
        switch ($cursor) {
1543
            case null:
1544
            case "crosshair":
1545
            case "default":
1546
            case "help":
1547
            case "none":
1548
            case "pointer":
1549
            $this->cursor = $cursor;
1550
            break;
1551
        }
1552
        return $this;
1553
    }
1554
1555
    /**
1556
     * Set the data.
1557
     *
1558
     * @param array $data The data.
1559
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1560
     */
1561
    public function setData(array $data = null) {
1562
        $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...
1563
        return $this;
1564
    }
1565
1566
    /**
1567
     * Set the data labels.
1568
     *
1569
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsDataLabels $dataLabels The data labels.
1570
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1571
     */
1572
    public function setDataLabels(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsDataLabels $dataLabels = null) {
1573
        $this->dataLabels = $dataLabels;
1574
        return $this;
1575
    }
1576
1577
    /**
1578
     * Set the depth.
1579
     *
1580
     * @param integer $depth The depth.
1581
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1582
     */
1583
    public function setDepth($depth) {
1584
        $this->depth = $depth;
1585
        return $this;
1586
    }
1587
1588
    /**
1589
     * Set the description.
1590
     *
1591
     * @param string $description The description.
1592
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1593
     */
1594
    public function setDescription($description) {
1595
        $this->description = $description;
1596
        return $this;
1597
    }
1598
1599
    /**
1600
     * Set the edge color.
1601
     *
1602
     * @param string $edgeColor The edge color.
1603
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1604
     */
1605
    public function setEdgeColor($edgeColor) {
1606
        $this->edgeColor = $edgeColor;
1607
        return $this;
1608
    }
1609
1610
    /**
1611
     * Set the edge width.
1612
     *
1613
     * @param integer $edgeWidth The edge width.
1614
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1615
     */
1616
    public function setEdgeWidth($edgeWidth) {
1617
        $this->edgeWidth = $edgeWidth;
1618
        return $this;
1619
    }
1620
1621
    /**
1622
     * Set the enable mouse tracking.
1623
     *
1624
     * @param boolean $enableMouseTracking The enable mouse tracking.
1625
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1626
     */
1627
    public function setEnableMouseTracking($enableMouseTracking) {
1628
        $this->enableMouseTracking = $enableMouseTracking;
1629
        return $this;
1630
    }
1631
1632
    /**
1633
     * Set the events.
1634
     *
1635
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsEvents $events The events.
1636
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1637
     */
1638
    public function setEvents(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsEvents $events = null) {
1639
        $this->events = $events;
1640
        return $this;
1641
    }
1642
1643
    /**
1644
     * Set the expose element to a11y.
1645
     *
1646
     * @param boolean $exposeElementToA11y The expose element to a11y.
1647
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1648
     */
1649
    public function setExposeElementToA11y($exposeElementToA11y) {
1650
        $this->exposeElementToA11y = $exposeElementToA11y;
1651
        return $this;
1652
    }
1653
1654
    /**
1655
     * Set the find nearest point by.
1656
     *
1657
     * @param string $findNearestPointBy The find nearest point by.
1658
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1659
     */
1660
    public function setFindNearestPointBy($findNearestPointBy) {
1661
        switch ($findNearestPointBy) {
1662
            case "x":
1663
            case "xy":
1664
            $this->findNearestPointBy = $findNearestPointBy;
1665
            break;
1666
        }
1667
        return $this;
1668
    }
1669
1670
    /**
1671
     * Set the get extremes from all.
1672
     *
1673
     * @param boolean $getExtremesFromAll The get extremes from all.
1674
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1675
     */
1676
    public function setGetExtremesFromAll($getExtremesFromAll) {
1677
        $this->getExtremesFromAll = $getExtremesFromAll;
1678
        return $this;
1679
    }
1680
1681
    /**
1682
     * Set the group padding.
1683
     *
1684
     * @param integer $groupPadding The group padding.
1685
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1686
     */
1687
    public function setGroupPadding($groupPadding) {
1688
        $this->groupPadding = $groupPadding;
1689
        return $this;
1690
    }
1691
1692
    /**
1693
     * Set the group z padding.
1694
     *
1695
     * @param integer $groupZPadding The group z padding.
1696
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1697
     */
1698
    public function setGroupZPadding($groupZPadding) {
1699
        $this->groupZPadding = $groupZPadding;
1700
        return $this;
1701
    }
1702
1703
    /**
1704
     * Set the grouping.
1705
     *
1706
     * @param boolean $grouping The grouping.
1707
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1708
     */
1709
    public function setGrouping($grouping) {
1710
        $this->grouping = $grouping;
1711
        return $this;
1712
    }
1713
1714
    /**
1715
     * Set the id.
1716
     *
1717
     * @param string $id The id.
1718
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1719
     */
1720
    public function setId($id) {
1721
        $this->id = $id;
1722
        return $this;
1723
    }
1724
1725
    /**
1726
     * Set the index.
1727
     *
1728
     * @param integer $index The index.
1729
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1730
     */
1731
    public function setIndex($index) {
1732
        $this->index = $index;
1733
        return $this;
1734
    }
1735
1736
    /**
1737
     * Set the keys.
1738
     *
1739
     * @param array $keys The keys.
1740
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1741
     */
1742
    public function setKeys(array $keys = null) {
1743
        $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...
1744
        return $this;
1745
    }
1746
1747
    /**
1748
     * Set the legend index.
1749
     *
1750
     * @param integer $legendIndex The legend index.
1751
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1752
     */
1753
    public function setLegendIndex($legendIndex) {
1754
        $this->legendIndex = $legendIndex;
1755
        return $this;
1756
    }
1757
1758
    /**
1759
     * Set the linked to.
1760
     *
1761
     * @param string $linkedTo The linked to.
1762
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1763
     */
1764
    public function setLinkedTo($linkedTo) {
1765
        $this->linkedTo = $linkedTo;
1766
        return $this;
1767
    }
1768
1769
    /**
1770
     * Set the max point width.
1771
     *
1772
     * @param integer $maxPointWidth The max point width.
1773
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1774
     */
1775
    public function setMaxPointWidth($maxPointWidth) {
1776
        $this->maxPointWidth = $maxPointWidth;
1777
        return $this;
1778
    }
1779
1780
    /**
1781
     * Set the min point length.
1782
     *
1783
     * @param integer $minPointLength The min point length.
1784
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1785
     */
1786
    public function setMinPointLength($minPointLength) {
1787
        $this->minPointLength = $minPointLength;
1788
        return $this;
1789
    }
1790
1791
    /**
1792
     * Set the name.
1793
     *
1794
     * @param string $name The name.
1795
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1796
     */
1797
    public function setName($name) {
1798
        $this->name = $name;
1799
        return $this;
1800
    }
1801
1802
    /**
1803
     * Set the negative color.
1804
     *
1805
     * @param string $negativeColor The negative color.
1806
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1807
     */
1808
    public function setNegativeColor($negativeColor) {
1809
        $this->negativeColor = $negativeColor;
1810
        return $this;
1811
    }
1812
1813
    /**
1814
     * Set the point.
1815
     *
1816
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsPoint $point The point.
1817
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1818
     */
1819
    public function setPoint(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsPoint $point = null) {
1820
        $this->point = $point;
1821
        return $this;
1822
    }
1823
1824
    /**
1825
     * Set the point description formatter.
1826
     *
1827
     * @param string $pointDescriptionFormatter The point description formatter.
1828
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1829
     */
1830
    public function setPointDescriptionFormatter($pointDescriptionFormatter) {
1831
        $this->pointDescriptionFormatter = $pointDescriptionFormatter;
1832
        return $this;
1833
    }
1834
1835
    /**
1836
     * Set the point interval.
1837
     *
1838
     * @param integer $pointInterval The point interval.
1839
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1840
     */
1841
    public function setPointInterval($pointInterval) {
1842
        $this->pointInterval = $pointInterval;
1843
        return $this;
1844
    }
1845
1846
    /**
1847
     * Set the point interval unit.
1848
     *
1849
     * @param string $pointIntervalUnit The point interval unit.
1850
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1851
     */
1852
    public function setPointIntervalUnit($pointIntervalUnit) {
1853
        switch ($pointIntervalUnit) {
1854
            case null:
1855
            case "day":
1856
            case "month":
1857
            case "year":
1858
            $this->pointIntervalUnit = $pointIntervalUnit;
1859
            break;
1860
        }
1861
        return $this;
1862
    }
1863
1864
    /**
1865
     * Set the point padding.
1866
     *
1867
     * @param integer $pointPadding The point padding.
1868
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1869
     */
1870
    public function setPointPadding($pointPadding) {
1871
        $this->pointPadding = $pointPadding;
1872
        return $this;
1873
    }
1874
1875
    /**
1876
     * Set the point placement.
1877
     *
1878
     * @param string|integer $pointPlacement The point placement.
1879
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1880
     */
1881
    public function setPointPlacement($pointPlacement) {
1882
        switch ($pointPlacement) {
1883
            case null:
1884
            case "between":
1885
            case "on":
1886
            $this->pointPlacement = $pointPlacement;
1887
            break;
1888
        }
1889
        return $this;
1890
    }
1891
1892
    /**
1893
     * Set the point range.
1894
     *
1895
     * @param integer $pointRange The point range.
1896
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1897
     */
1898
    public function setPointRange($pointRange) {
1899
        $this->pointRange = $pointRange;
1900
        return $this;
1901
    }
1902
1903
    /**
1904
     * Set the point start.
1905
     *
1906
     * @param integer $pointStart The point start.
1907
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1908
     */
1909
    public function setPointStart($pointStart) {
1910
        $this->pointStart = $pointStart;
1911
        return $this;
1912
    }
1913
1914
    /**
1915
     * Set the point width.
1916
     *
1917
     * @param integer $pointWidth The point width.
1918
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1919
     */
1920
    public function setPointWidth($pointWidth) {
1921
        $this->pointWidth = $pointWidth;
1922
        return $this;
1923
    }
1924
1925
    /**
1926
     * Set the selected.
1927
     *
1928
     * @param boolean $selected The selected.
1929
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1930
     */
1931
    public function setSelected($selected) {
1932
        $this->selected = $selected;
1933
        return $this;
1934
    }
1935
1936
    /**
1937
     * Set the shadow.
1938
     *
1939
     * @param boolean|array $shadow The shadow.
1940
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1941
     */
1942
    public function setShadow($shadow) {
1943
        $this->shadow = $shadow;
1944
        return $this;
1945
    }
1946
1947
    /**
1948
     * Set the show checkbox.
1949
     *
1950
     * @param boolean $showCheckbox The show checkbox.
1951
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1952
     */
1953
    public function setShowCheckbox($showCheckbox) {
1954
        $this->showCheckbox = $showCheckbox;
1955
        return $this;
1956
    }
1957
1958
    /**
1959
     * Set the show in legend.
1960
     *
1961
     * @param boolean $showInLegend The show in legend.
1962
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1963
     */
1964
    public function setShowInLegend($showInLegend) {
1965
        $this->showInLegend = $showInLegend;
1966
        return $this;
1967
    }
1968
1969
    /**
1970
     * Set the skip keyboard navigation.
1971
     *
1972
     * @param boolean $skipKeyboardNavigation The skip keyboard navigation.
1973
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1974
     */
1975
    public function setSkipKeyboardNavigation($skipKeyboardNavigation) {
1976
        $this->skipKeyboardNavigation = $skipKeyboardNavigation;
1977
        return $this;
1978
    }
1979
1980
    /**
1981
     * Set the soft threshold.
1982
     *
1983
     * @param boolean $softThreshold The soft threshold.
1984
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1985
     */
1986
    public function setSoftThreshold($softThreshold) {
1987
        $this->softThreshold = $softThreshold;
1988
        return $this;
1989
    }
1990
1991
    /**
1992
     * Set the stack.
1993
     *
1994
     * @param string $stack The stack.
1995
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
1996
     */
1997
    public function setStack($stack) {
1998
        $this->stack = $stack;
1999
        return $this;
2000
    }
2001
2002
    /**
2003
     * Set the stacking.
2004
     *
2005
     * @param string $stacking The stacking.
2006
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
2007
     */
2008
    public function setStacking($stacking) {
2009
        switch ($stacking) {
2010
            case null:
2011
            case "normal":
2012
            case "percent":
2013
            $this->stacking = $stacking;
2014
            break;
2015
        }
2016
        return $this;
2017
    }
2018
2019
    /**
2020
     * Set the states.
2021
     *
2022
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsStates $states The states.
2023
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
2024
     */
2025
    public function setStates(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Column\HighchartsStates $states = null) {
2026
        $this->states = $states;
2027
        return $this;
2028
    }
2029
2030
    /**
2031
     * Set the sticky tracking.
2032
     *
2033
     * @param boolean $stickyTracking The sticky tracking.
2034
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
2035
     */
2036
    public function setStickyTracking($stickyTracking) {
2037
        $this->stickyTracking = $stickyTracking;
2038
        return $this;
2039
    }
2040
2041
    /**
2042
     * Set the threshold.
2043
     *
2044
     * @param integer $threshold The threshold.
2045
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
2046
     */
2047
    public function setThreshold($threshold) {
2048
        $this->threshold = $threshold;
2049
        return $this;
2050
    }
2051
2052
    /**
2053
     * Set the tooltip.
2054
     *
2055
     * @param array $tooltip The tooltip.
2056
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
2057
     */
2058
    public function setTooltip(array $tooltip = null) {
2059
        $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...
2060
        return $this;
2061
    }
2062
2063
    /**
2064
     * Set the turbo threshold.
2065
     *
2066
     * @param integer $turboThreshold The turbo threshold.
2067
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
2068
     */
2069
    public function setTurboThreshold($turboThreshold) {
2070
        $this->turboThreshold = $turboThreshold;
2071
        return $this;
2072
    }
2073
2074
    /**
2075
     * Set the type.
2076
     *
2077
     * @param string $type The type.
2078
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
2079
     */
2080
    public function setType($type) {
2081
        switch ($type) {
2082
            case null:
2083
            case "area":
2084
            case "arearange":
2085
            case "areaspline":
2086
            case "areasplinerange":
2087
            case "boxplot":
2088
            case "bubble":
2089
            case "column":
2090
            case "columnrange":
2091
            case "errorbar":
2092
            case "funnel":
2093
            case "gauge":
2094
            case "line":
2095
            case "pie":
2096
            case "scatter":
2097
            case "spline":
2098
            case "waterfall":
2099
            $this->type = $type;
2100
            break;
2101
        }
2102
        return $this;
2103
    }
2104
2105
    /**
2106
     * Set the visible.
2107
     *
2108
     * @param boolean $visible The visible.
2109
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
2110
     */
2111
    public function setVisible($visible) {
2112
        $this->visible = $visible;
2113
        return $this;
2114
    }
2115
2116
    /**
2117
     * Set the x axis.
2118
     *
2119
     * @param integer|string $xAxis The x axis.
2120
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
2121
     */
2122
    public function setXAxis($xAxis) {
2123
        $this->xAxis = $xAxis;
2124
        return $this;
2125
    }
2126
2127
    /**
2128
     * Set the y axis.
2129
     *
2130
     * @param integer|string $yAxis The y axis.
2131
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
2132
     */
2133
    public function setYAxis($yAxis) {
2134
        $this->yAxis = $yAxis;
2135
        return $this;
2136
    }
2137
2138
    /**
2139
     * Set the z index.
2140
     *
2141
     * @param integer $zIndex The z index.
2142
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
2143
     */
2144
    public function setZIndex($zIndex) {
2145
        $this->zIndex = $zIndex;
2146
        return $this;
2147
    }
2148
2149
    /**
2150
     * Set the zone axis.
2151
     *
2152
     * @param string $zoneAxis The zone axis.
2153
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
2154
     */
2155
    public function setZoneAxis($zoneAxis) {
2156
        $this->zoneAxis = $zoneAxis;
2157
        return $this;
2158
    }
2159
2160
    /**
2161
     * Set the zones.
2162
     *
2163
     * @param array $zones The zones.
2164
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsColumn Returns the highcharts column.
2165
     */
2166
    public function setZones(array $zones = null) {
2167
        $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...
2168
        return $this;
2169
    }
2170
2171
    /**
2172
     * Convert into an array representing this instance.
2173
     *
2174
     * @return array Returns an array representing this instance.
2175
     */
2176
    public function toArray() {
2177
2178
        // Initialize the output.
2179
        $output = [];
2180
2181
        // Set the allow point select.
2182
        ArrayUtility::set($output, "allowPointSelect", $this->allowPointSelect, [null]);
2183
2184
        // Set the animation.
2185
        ArrayUtility::set($output, "animation", $this->animation, [null]);
2186
2187
        // Set the animation limit.
2188
        ArrayUtility::set($output, "animationLimit", $this->animationLimit, [null]);
2189
2190
        // Set the border color.
2191
        ArrayUtility::set($output, "borderColor", $this->borderColor, [null]);
2192
2193
        // Set the border radius.
2194
        ArrayUtility::set($output, "borderRadius", $this->borderRadius, [null]);
2195
2196
        // Set the border width.
2197
        ArrayUtility::set($output, "borderWidth", $this->borderWidth, [null]);
2198
2199
        // Set the class name.
2200
        ArrayUtility::set($output, "className", $this->className, [null]);
2201
2202
        // Set the color.
2203
        ArrayUtility::set($output, "color", $this->color, [null]);
2204
2205
        // Set the color by point.
2206
        ArrayUtility::set($output, "colorByPoint", $this->colorByPoint, [null]);
2207
2208
        // Set the color index.
2209
        ArrayUtility::set($output, "colorIndex", $this->colorIndex, [null]);
2210
2211
        // Set the colors.
2212
        ArrayUtility::set($output, "colors", $this->colors, [null]);
2213
2214
        // Set the crisp.
2215
        ArrayUtility::set($output, "crisp", $this->crisp, [null]);
2216
2217
        // Set the crop threshold.
2218
        ArrayUtility::set($output, "cropThreshold", $this->cropThreshold, [null]);
2219
2220
        // Set the cursor.
2221
        ArrayUtility::set($output, "cursor", $this->cursor, [null]);
2222
2223
        // Set the data.
2224
        ArrayUtility::set($output, "data", $this->data, [null]);
2225
2226
        // Set the data labels.
2227
        if (null !== $this->dataLabels) {
2228
            ArrayUtility::set($output, "dataLabels", $this->dataLabels->toArray(), []);
2229
        }
2230
2231
        // Set the depth.
2232
        ArrayUtility::set($output, "depth", $this->depth, [null]);
2233
2234
        // Set the description.
2235
        ArrayUtility::set($output, "description", $this->description, [null]);
2236
2237
        // Set the edge color.
2238
        ArrayUtility::set($output, "edgeColor", $this->edgeColor, [null]);
2239
2240
        // Set the edge width.
2241
        ArrayUtility::set($output, "edgeWidth", $this->edgeWidth, [null]);
2242
2243
        // Set the enable mouse tracking.
2244
        ArrayUtility::set($output, "enableMouseTracking", $this->enableMouseTracking, [null]);
2245
2246
        // Set the events.
2247
        if (null !== $this->events) {
2248
            ArrayUtility::set($output, "events", $this->events->toArray(), []);
2249
        }
2250
2251
        // Set the expose element to a11y.
2252
        ArrayUtility::set($output, "exposeElementToA11y", $this->exposeElementToA11y, [null]);
2253
2254
        // Set the find nearest point by.
2255
        ArrayUtility::set($output, "findNearestPointBy", $this->findNearestPointBy, [null]);
2256
2257
        // Set the get extremes from all.
2258
        ArrayUtility::set($output, "getExtremesFromAll", $this->getExtremesFromAll, [null]);
2259
2260
        // Set the group padding.
2261
        ArrayUtility::set($output, "groupPadding", $this->groupPadding, [null]);
2262
2263
        // Set the group z padding.
2264
        ArrayUtility::set($output, "groupZPadding", $this->groupZPadding, [null]);
2265
2266
        // Set the grouping.
2267
        ArrayUtility::set($output, "grouping", $this->grouping, [null]);
2268
2269
        // Set the id.
2270
        ArrayUtility::set($output, "id", $this->id, [null]);
2271
2272
        // Set the index.
2273
        ArrayUtility::set($output, "index", $this->index, [null]);
2274
2275
        // Set the keys.
2276
        ArrayUtility::set($output, "keys", $this->keys, [null]);
2277
2278
        // Set the legend index.
2279
        ArrayUtility::set($output, "legendIndex", $this->legendIndex, [null]);
2280
2281
        // Set the linked to.
2282
        ArrayUtility::set($output, "linkedTo", $this->linkedTo, [null]);
2283
2284
        // Set the max point width.
2285
        ArrayUtility::set($output, "maxPointWidth", $this->maxPointWidth, [null]);
2286
2287
        // Set the min point length.
2288
        ArrayUtility::set($output, "minPointLength", $this->minPointLength, [null]);
2289
2290
        // Set the name.
2291
        ArrayUtility::set($output, "name", $this->name, [null]);
2292
2293
        // Set the negative color.
2294
        ArrayUtility::set($output, "negativeColor", $this->negativeColor, [null]);
2295
2296
        // Set the point.
2297
        if (null !== $this->point) {
2298
            ArrayUtility::set($output, "point", $this->point->toArray(), []);
2299
        }
2300
2301
        // Set the point description formatter.
2302
        ArrayUtility::set($output, "pointDescriptionFormatter", $this->pointDescriptionFormatter, [null]);
2303
2304
        // Set the point interval.
2305
        ArrayUtility::set($output, "pointInterval", $this->pointInterval, [null]);
2306
2307
        // Set the point interval unit.
2308
        ArrayUtility::set($output, "pointIntervalUnit", $this->pointIntervalUnit, [null]);
2309
2310
        // Set the point padding.
2311
        ArrayUtility::set($output, "pointPadding", $this->pointPadding, [null]);
2312
2313
        // Set the point placement.
2314
        ArrayUtility::set($output, "pointPlacement", $this->pointPlacement, [null]);
2315
2316
        // Set the point range.
2317
        ArrayUtility::set($output, "pointRange", $this->pointRange, [null]);
2318
2319
        // Set the point start.
2320
        ArrayUtility::set($output, "pointStart", $this->pointStart, [null]);
2321
2322
        // Set the point width.
2323
        ArrayUtility::set($output, "pointWidth", $this->pointWidth, [null]);
2324
2325
        // Set the selected.
2326
        ArrayUtility::set($output, "selected", $this->selected, [null]);
2327
2328
        // Set the shadow.
2329
        ArrayUtility::set($output, "shadow", $this->shadow, [null]);
2330
2331
        // Set the show checkbox.
2332
        ArrayUtility::set($output, "showCheckbox", $this->showCheckbox, [null]);
2333
2334
        // Set the show in legend.
2335
        ArrayUtility::set($output, "showInLegend", $this->showInLegend, [null]);
2336
2337
        // Set the skip keyboard navigation.
2338
        ArrayUtility::set($output, "skipKeyboardNavigation", $this->skipKeyboardNavigation, [null]);
2339
2340
        // Set the soft threshold.
2341
        ArrayUtility::set($output, "softThreshold", $this->softThreshold, [null]);
2342
2343
        // Set the stack.
2344
        ArrayUtility::set($output, "stack", $this->stack, [null]);
2345
2346
        // Set the stacking.
2347
        ArrayUtility::set($output, "stacking", $this->stacking, [null]);
2348
2349
        // Set the states.
2350
        if (null !== $this->states) {
2351
            ArrayUtility::set($output, "states", $this->states->toArray(), []);
2352
        }
2353
2354
        // Set the sticky tracking.
2355
        ArrayUtility::set($output, "stickyTracking", $this->stickyTracking, [null]);
2356
2357
        // Set the threshold.
2358
        ArrayUtility::set($output, "threshold", $this->threshold, [null]);
2359
2360
        // Set the tooltip.
2361
        ArrayUtility::set($output, "tooltip", $this->tooltip, [null]);
2362
2363
        // Set the turbo threshold.
2364
        ArrayUtility::set($output, "turboThreshold", $this->turboThreshold, [null]);
2365
2366
        // Set the type.
2367
        ArrayUtility::set($output, "type", $this->type, [null]);
2368
2369
        // Set the visible.
2370
        ArrayUtility::set($output, "visible", $this->visible, [null]);
2371
2372
        // Set the x axis.
2373
        ArrayUtility::set($output, "xAxis", $this->xAxis, [null]);
2374
2375
        // Set the y axis.
2376
        ArrayUtility::set($output, "yAxis", $this->yAxis, [null]);
2377
2378
        // Set the z index.
2379
        ArrayUtility::set($output, "zIndex", $this->zIndex, [null]);
2380
2381
        // Set the zone axis.
2382
        ArrayUtility::set($output, "zoneAxis", $this->zoneAxis, [null]);
2383
2384
        // Set the zones.
2385
        ArrayUtility::set($output, "zones", $this->zones, [null]);
2386
2387
        // Return the output.
2388
        return $output;
2389
    }
2390
2391
}
2392