HighchartsXAxis   F
last analyzed

Complexity

Total Complexity 176

Size/Duplication

Total Lines 2256
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 5

Importance

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

134 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 2
B clear() 0 199 5
A getAllowDecimals() 0 3 1
A getAlternateGridColor() 0 3 1
A getBreaks() 0 3 1
A getCategories() 0 3 1
A getCeiling() 0 3 1
A getClassName() 0 3 1
A getCrosshair() 0 3 1
A getDateTimeLabelFormats() 0 3 1
A getDescription() 0 3 1
A getEndOnTick() 0 3 1
A getEvents() 0 3 1
A getFloor() 0 3 1
A getGridLineColor() 0 3 1
A getGridLineDashStyle() 0 3 1
A getGridLineWidth() 0 3 1
A getGridZIndex() 0 3 1
A getId() 0 3 1
A getLabels() 0 3 1
A getLineColor() 0 3 1
A getLineWidth() 0 3 1
A getLinkedTo() 0 3 1
A getMax() 0 3 1
A getMaxPadding() 0 3 1
A getMaxZoom() 0 3 1
A getMin() 0 3 1
A getMinPadding() 0 3 1
A getMinRange() 0 3 1
A getMinTickInterval() 0 3 1
A getMinorGridLineColor() 0 3 1
A getMinorGridLineDashStyle() 0 3 1
A getMinorGridLineWidth() 0 3 1
A getMinorTickColor() 0 3 1
A getMinorTickInterval() 0 3 1
A getMinorTickLength() 0 3 1
A getMinorTickPosition() 0 3 1
A getMinorTickWidth() 0 3 1
A getOffset() 0 3 1
A getOpposite() 0 3 1
A getPlotBands() 0 3 1
A getPlotLines() 0 3 1
A getReversed() 0 3 1
A getShowEmpty() 0 3 1
A getShowFirstLabel() 0 3 1
A getShowLastLabel() 0 3 1
A getSoftMax() 0 3 1
A getSoftMin() 0 3 1
A getStartOfWeek() 0 3 1
A getStartOnTick() 0 3 1
A getTickAmount() 0 3 1
A getTickColor() 0 3 1
A getTickInterval() 0 3 1
A getTickLength() 0 3 1
A getTickPixelInterval() 0 3 1
A getTickPosition() 0 3 1
A getTickPositioner() 0 3 1
A getTickPositions() 0 3 1
A getTickWidth() 0 3 1
A getTickmarkPlacement() 0 3 1
A getTitle() 0 3 1
A getType() 0 3 1
A getUniqueNames() 0 3 1
A getUnits() 0 3 1
A getVisible() 0 3 1
A jsonSerialize() 0 3 1
A newCrosshair() 0 4 1
A newEvents() 0 4 1
A newLabels() 0 4 1
A newTitle() 0 4 1
A setAllowDecimals() 0 4 1
A setAlternateGridColor() 0 4 1
A setBreaks() 0 4 1
A setCategories() 0 4 1
A setCeiling() 0 4 1
A setClassName() 0 4 1
A setCrosshair() 0 4 1
A setDateTimeLabelFormats() 0 4 1
A setDescription() 0 4 1
A setEndOnTick() 0 4 1
A setEvents() 0 4 1
A setFloor() 0 4 1
A setGridLineColor() 0 4 1
C setGridLineDashStyle() 0 18 12
A setGridLineWidth() 0 4 1
A setGridZIndex() 0 4 1
A setId() 0 4 1
A setLabels() 0 4 1
A setLineColor() 0 4 1
A setLineWidth() 0 4 1
A setLinkedTo() 0 4 1
A setMax() 0 4 1
A setMaxPadding() 0 4 1
A setMaxZoom() 0 4 1
A setMin() 0 4 1
A setMinPadding() 0 4 1
A setMinRange() 0 4 1
A setMinTickInterval() 0 4 1
A setMinorGridLineColor() 0 4 1
C setMinorGridLineDashStyle() 0 18 12
A setMinorGridLineWidth() 0 4 1
A setMinorTickColor() 0 4 1
A setMinorTickInterval() 0 4 1
A setMinorTickLength() 0 4 1
A setMinorTickPosition() 0 9 3
A setMinorTickWidth() 0 4 1
A setOffset() 0 4 1
A setOpposite() 0 4 1
A setPlotBands() 0 4 1
A setPlotLines() 0 4 1
A setReversed() 0 4 1
A setShowEmpty() 0 4 1
A setShowFirstLabel() 0 4 1
A setShowLastLabel() 0 4 1
A setSoftMax() 0 4 1
A setSoftMin() 0 4 1
A setStartOfWeek() 0 4 1
A setStartOnTick() 0 4 1
A setTickAmount() 0 4 1
A setTickColor() 0 4 1
A setTickInterval() 0 4 1
A setTickLength() 0 4 1
A setTickPixelInterval() 0 4 1
A setTickPosition() 0 9 3
A setTickPositioner() 0 4 1
A setTickPositions() 0 4 1
A setTickWidth() 0 4 1
A setTickmarkPlacement() 0 10 4
A setTitle() 0 4 1
A setType() 0 11 5
A setUniqueNames() 0 4 1
A setUnits() 0 4 1
A setVisible() 0 4 1
B toArray() 0 205 5

How to fix   Complexity   

Complex Class

Complex classes like HighchartsXAxis 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 HighchartsXAxis, 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;
13
14
use JsonSerializable;
15
use WBW\Library\Core\Utility\Argument\ArrayUtility;
16
17
/**
18
 * Highcharts x axis.
19
 *
20
 * @author webeweb <https://github.com/webeweb/>
21
 * @package WBW\Bundle\HighchartsBundle\API\Chart
22
 * @version 5.0.14
23
 * @final
24
 */
25
final class HighchartsXAxis implements JsonSerializable {
26
27
    /**
28
     * Allow decimals.
29
     *
30
     * @var boolean
31
     * @since 2.0
32
     */
33
    private $allowDecimals = true;
34
35
    /**
36
     * Alternate grid color.
37
     *
38
     * @var string
39
     */
40
    private $alternateGridColor;
41
42
    /**
43
     * Breaks.
44
     *
45
     * @var array
46
     * @since 4.1.0
47
     */
48
    private $breaks;
49
50
    /**
51
     * Categories.
52
     *
53
     * @var array
54
     */
55
    private $categories;
56
57
    /**
58
     * Ceiling.
59
     *
60
     * @var integer
61
     * @since 4.0
62
     */
63
    private $ceiling;
64
65
    /**
66
     * Class name.
67
     *
68
     * @var string
69
     * @since 5.0.0
70
     */
71
    private $className;
72
73
    /**
74
     * Crosshair.
75
     *
76
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsCrosshair
77
     * @since 4.1
78
     */
79
    private $crosshair;
80
81
    /**
82
     * Date time label formats.
83
     *
84
     * @var array
85
     */
86
    private $dateTimeLabelFormats;
87
88
    /**
89
     * Description.
90
     *
91
     * @var string
92
     * @since 5.0.0
93
     */
94
    private $description;
95
96
    /**
97
     * End on tick.
98
     *
99
     * @var boolean
100
     * @since 1.2.0
101
     */
102
    private $endOnTick = false;
103
104
    /**
105
     * Events.
106
     *
107
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsEvents
108
     */
109
    private $events;
110
111
    /**
112
     * Floor.
113
     *
114
     * @var integer
115
     * @since 4.0
116
     */
117
    private $floor;
118
119
    /**
120
     * Grid line color.
121
     *
122
     * @var string
123
     */
124
    private $gridLineColor = "#e6e6e6";
125
126
    /**
127
     * Grid line dash style.
128
     *
129
     * @var string
130
     * @since 1.2
131
     */
132
    private $gridLineDashStyle = "Solid";
133
134
    /**
135
     * Grid line width.
136
     *
137
     * @var integer
138
     */
139
    private $gridLineWidth = 0;
140
141
    /**
142
     * Grid z index.
143
     *
144
     * @var integer
145
     */
146
    private $gridZIndex = 1;
147
148
    /**
149
     * Id.
150
     *
151
     * @var string
152
     * @since 1.2.0
153
     */
154
    private $id;
155
156
    /**
157
     * Labels.
158
     *
159
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsLabels
160
     */
161
    private $labels;
162
163
    /**
164
     * Line color.
165
     *
166
     * @var string
167
     */
168
    private $lineColor = "#ccd6eb";
169
170
    /**
171
     * Line width.
172
     *
173
     * @var integer
174
     */
175
    private $lineWidth = 1;
176
177
    /**
178
     * Linked to.
179
     *
180
     * @var integer
181
     * @since 2.0.2
182
     */
183
    private $linkedTo;
184
185
    /**
186
     * Max.
187
     *
188
     * @var integer
189
     */
190
    private $max;
191
192
    /**
193
     * Max padding.
194
     *
195
     * @var integer
196
     * @since 1.2.0
197
     */
198
    private $maxPadding = 0.01;
199
200
    /**
201
     * Max zoom.
202
     *
203
     * @var integer
204
     * @deprecated
205
     */
206
    private $maxZoom;
207
208
    /**
209
     * Min.
210
     *
211
     * @var integer
212
     */
213
    private $min;
214
215
    /**
216
     * Min padding.
217
     *
218
     * @var integer
219
     * @since 1.2.0
220
     */
221
    private $minPadding = 0.01;
222
223
    /**
224
     * Min range.
225
     *
226
     * @var integer
227
     */
228
    private $minRange;
229
230
    /**
231
     * Min tick interval.
232
     *
233
     * @var integer
234
     * @since 2.3.0
235
     */
236
    private $minTickInterval;
237
238
    /**
239
     * Minor grid line color.
240
     *
241
     * @var string
242
     */
243
    private $minorGridLineColor = "#f2f2f2";
244
245
    /**
246
     * Minor grid line dash style.
247
     *
248
     * @var string
249
     * @since 1.2
250
     */
251
    private $minorGridLineDashStyle = "Solid";
252
253
    /**
254
     * Minor grid line width.
255
     *
256
     * @var integer
257
     */
258
    private $minorGridLineWidth = 1;
259
260
    /**
261
     * Minor tick color.
262
     *
263
     * @var string
264
     */
265
    private $minorTickColor = "#999999";
266
267
    /**
268
     * Minor tick interval.
269
     *
270
     * @var string|integer
271
     */
272
    private $minorTickInterval;
273
274
    /**
275
     * Minor tick length.
276
     *
277
     * @var integer
278
     */
279
    private $minorTickLength = 2;
280
281
    /**
282
     * Minor tick position.
283
     *
284
     * @var string
285
     */
286
    private $minorTickPosition = "outside";
287
288
    /**
289
     * Minor tick width.
290
     *
291
     * @var integer
292
     */
293
    private $minorTickWidth = 0;
294
295
    /**
296
     * Offset.
297
     *
298
     * @var integer
299
     */
300
    private $offset = 0;
301
302
    /**
303
     * Opposite.
304
     *
305
     * @var boolean
306
     */
307
    private $opposite = false;
308
309
    /**
310
     * Plot bands.
311
     *
312
     * @var array
313
     */
314
    private $plotBands;
315
316
    /**
317
     * Plot lines.
318
     *
319
     * @var array
320
     */
321
    private $plotLines;
322
323
    /**
324
     * Reversed.
325
     *
326
     * @var boolean
327
     */
328
    private $reversed = false;
329
330
    /**
331
     * Show empty.
332
     *
333
     * @var boolean
334
     * @since 1.1
335
     */
336
    private $showEmpty = true;
337
338
    /**
339
     * Show first label.
340
     *
341
     * @var boolean
342
     */
343
    private $showFirstLabel = true;
344
345
    /**
346
     * Show last label.
347
     *
348
     * @var boolean
349
     */
350
    private $showLastLabel = true;
351
352
    /**
353
     * Soft max.
354
     *
355
     * @var integer
356
     * @since 5.0.1
357
     */
358
    private $softMax;
359
360
    /**
361
     * Soft min.
362
     *
363
     * @var integer
364
     * @since 5.0.1
365
     */
366
    private $softMin;
367
368
    /**
369
     * Start of week.
370
     *
371
     * @var integer
372
     */
373
    private $startOfWeek = 1;
374
375
    /**
376
     * Start on tick.
377
     *
378
     * @var boolean
379
     * @since 1.2.0
380
     */
381
    private $startOnTick = false;
382
383
    /**
384
     * Tick amount.
385
     *
386
     * @var integer
387
     * @since 4.1.0
388
     */
389
    private $tickAmount;
390
391
    /**
392
     * Tick color.
393
     *
394
     * @var string
395
     */
396
    private $tickColor = "#ccd6eb";
397
398
    /**
399
     * Tick interval.
400
     *
401
     * @var integer
402
     */
403
    private $tickInterval;
404
405
    /**
406
     * Tick length.
407
     *
408
     * @var integer
409
     */
410
    private $tickLength = 10;
411
412
    /**
413
     * Tick pixel interval.
414
     *
415
     * @var integer
416
     */
417
    private $tickPixelInterval;
418
419
    /**
420
     * Tick position.
421
     *
422
     * @var string
423
     */
424
    private $tickPosition = "outside";
425
426
    /**
427
     * Tick positioner.
428
     *
429
     * @var string
430
     */
431
    private $tickPositioner;
432
433
    /**
434
     * Tick positions.
435
     *
436
     * @var array
437
     */
438
    private $tickPositions;
439
440
    /**
441
     * Tick width.
442
     *
443
     * @var integer
444
     */
445
    private $tickWidth = 1;
446
447
    /**
448
     * Tickmark placement.
449
     *
450
     * @var string
451
     */
452
    private $tickmarkPlacement;
453
454
    /**
455
     * Title.
456
     *
457
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsTitle
458
     */
459
    private $title;
460
461
    /**
462
     * Type.
463
     *
464
     * @var string
465
     */
466
    private $type = "linear";
467
468
    /**
469
     * Unique names.
470
     *
471
     * @var boolean
472
     * @since 4.2.7
473
     */
474
    private $uniqueNames = true;
475
476
    /**
477
     * Units.
478
     *
479
     * @var array
480
     */
481
    private $units;
482
483
    /**
484
     * Visible.
485
     *
486
     * @var boolean
487
     * @since 4.1.9
488
     */
489
    private $visible = true;
490
491
    /**
492
     * Constructor.
493
     *
494
     * @param boolean $ignoreDefaultValues Ignore the default values.
495
     */
496
    public function __construct($ignoreDefaultValues = true) {
497
        if (true === $ignoreDefaultValues) {
498
            $this->clear();
499
        }
500
    }
501
502
    /**
503
     * Clear.
504
     *
505
     * @return void
506
     */
507
    public function clear() {
508
509
        // Clear the allow decimals.
510
        $this->allowDecimals = null;
511
512
        // Clear the alternate grid color.
513
        $this->alternateGridColor = null;
514
515
        // Clear the breaks.
516
        $this->breaks = 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 $breaks.

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...
517
518
        // Clear the categories.
519
        $this->categories = 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 $categories.

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...
520
521
        // Clear the ceiling.
522
        $this->ceiling = null;
523
524
        // Clear the class name.
525
        $this->className = null;
526
527
        // Clear the crosshair.
528
        if (null !== $this->crosshair) {
529
            $this->crosshair->clear();
530
        }
531
532
        // Clear the date time label formats.
533
        $this->dateTimeLabelFormats = 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 $dateTimeLabelFormats.

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...
534
535
        // Clear the description.
536
        $this->description = null;
537
538
        // Clear the end on tick.
539
        $this->endOnTick = null;
540
541
        // Clear the events.
542
        if (null !== $this->events) {
543
            $this->events->clear();
544
        }
545
546
        // Clear the floor.
547
        $this->floor = null;
548
549
        // Clear the grid line color.
550
        $this->gridLineColor = null;
551
552
        // Clear the grid line dash style.
553
        $this->gridLineDashStyle = null;
554
555
        // Clear the grid line width.
556
        $this->gridLineWidth = null;
557
558
        // Clear the grid z index.
559
        $this->gridZIndex = null;
560
561
        // Clear the id.
562
        $this->id = null;
563
564
        // Clear the labels.
565
        if (null !== $this->labels) {
566
            $this->labels->clear();
567
        }
568
569
        // Clear the line color.
570
        $this->lineColor = null;
571
572
        // Clear the line width.
573
        $this->lineWidth = null;
574
575
        // Clear the linked to.
576
        $this->linkedTo = null;
577
578
        // Clear the max.
579
        $this->max = null;
580
581
        // Clear the max padding.
582
        $this->maxPadding = null;
583
584
        // Clear the max zoom.
585
        $this->maxZoom = null;
0 ignored issues
show
Deprecated Code introduced by
The property WBW\Bundle\HighchartsBun...ghchartsXAxis::$maxZoom has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
586
587
        // Clear the min.
588
        $this->min = null;
589
590
        // Clear the min padding.
591
        $this->minPadding = null;
592
593
        // Clear the min range.
594
        $this->minRange = null;
595
596
        // Clear the min tick interval.
597
        $this->minTickInterval = null;
598
599
        // Clear the minor grid line color.
600
        $this->minorGridLineColor = null;
601
602
        // Clear the minor grid line dash style.
603
        $this->minorGridLineDashStyle = null;
604
605
        // Clear the minor grid line width.
606
        $this->minorGridLineWidth = null;
607
608
        // Clear the minor tick color.
609
        $this->minorTickColor = null;
610
611
        // Clear the minor tick interval.
612
        $this->minorTickInterval = null;
613
614
        // Clear the minor tick length.
615
        $this->minorTickLength = null;
616
617
        // Clear the minor tick position.
618
        $this->minorTickPosition = null;
619
620
        // Clear the minor tick width.
621
        $this->minorTickWidth = null;
622
623
        // Clear the offset.
624
        $this->offset = null;
625
626
        // Clear the opposite.
627
        $this->opposite = null;
628
629
        // Clear the plot bands.
630
        $this->plotBands = 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 $plotBands.

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...
631
632
        // Clear the plot lines.
633
        $this->plotLines = 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 $plotLines.

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...
634
635
        // Clear the reversed.
636
        $this->reversed = null;
637
638
        // Clear the show empty.
639
        $this->showEmpty = null;
640
641
        // Clear the show first label.
642
        $this->showFirstLabel = null;
643
644
        // Clear the show last label.
645
        $this->showLastLabel = null;
646
647
        // Clear the soft max.
648
        $this->softMax = null;
649
650
        // Clear the soft min.
651
        $this->softMin = null;
652
653
        // Clear the start of week.
654
        $this->startOfWeek = null;
655
656
        // Clear the start on tick.
657
        $this->startOnTick = null;
658
659
        // Clear the tick amount.
660
        $this->tickAmount = null;
661
662
        // Clear the tick color.
663
        $this->tickColor = null;
664
665
        // Clear the tick interval.
666
        $this->tickInterval = null;
667
668
        // Clear the tick length.
669
        $this->tickLength = null;
670
671
        // Clear the tick pixel interval.
672
        $this->tickPixelInterval = null;
673
674
        // Clear the tick position.
675
        $this->tickPosition = null;
676
677
        // Clear the tick positioner.
678
        $this->tickPositioner = null;
679
680
        // Clear the tick positions.
681
        $this->tickPositions = 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 $tickPositions.

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...
682
683
        // Clear the tick width.
684
        $this->tickWidth = null;
685
686
        // Clear the tickmark placement.
687
        $this->tickmarkPlacement = null;
688
689
        // Clear the title.
690
        if (null !== $this->title) {
691
            $this->title->clear();
692
        }
693
694
        // Clear the type.
695
        $this->type = null;
696
697
        // Clear the unique names.
698
        $this->uniqueNames = null;
699
700
        // Clear the units.
701
        $this->units = 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 $units.

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...
702
703
        // Clear the visible.
704
        $this->visible = null;
705
    }
706
707
    /**
708
     * Get the allow decimals.
709
     *
710
     * @return boolean Returns the allow decimals.
711
     */
712
    public function getAllowDecimals() {
713
        return $this->allowDecimals;
714
    }
715
716
    /**
717
     * Get the alternate grid color.
718
     *
719
     * @return string Returns the alternate grid color.
720
     */
721
    public function getAlternateGridColor() {
722
        return $this->alternateGridColor;
723
    }
724
725
    /**
726
     * Get the breaks.
727
     *
728
     * @return array Returns the breaks.
729
     */
730
    public function getBreaks() {
731
        return $this->breaks;
732
    }
733
734
    /**
735
     * Get the categories.
736
     *
737
     * @return array Returns the categories.
738
     */
739
    public function getCategories() {
740
        return $this->categories;
741
    }
742
743
    /**
744
     * Get the ceiling.
745
     *
746
     * @return integer Returns the ceiling.
747
     */
748
    public function getCeiling() {
749
        return $this->ceiling;
750
    }
751
752
    /**
753
     * Get the class name.
754
     *
755
     * @return string Returns the class name.
756
     */
757
    public function getClassName() {
758
        return $this->className;
759
    }
760
761
    /**
762
     * Get the crosshair.
763
     *
764
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsCrosshair Returns the crosshair.
765
     */
766
    public function getCrosshair() {
767
        return $this->crosshair;
768
    }
769
770
    /**
771
     * Get the date time label formats.
772
     *
773
     * @return array Returns the date time label formats.
774
     */
775
    public function getDateTimeLabelFormats() {
776
        return $this->dateTimeLabelFormats;
777
    }
778
779
    /**
780
     * Get the description.
781
     *
782
     * @return string Returns the description.
783
     */
784
    public function getDescription() {
785
        return $this->description;
786
    }
787
788
    /**
789
     * Get the end on tick.
790
     *
791
     * @return boolean Returns the end on tick.
792
     */
793
    public function getEndOnTick() {
794
        return $this->endOnTick;
795
    }
796
797
    /**
798
     * Get the events.
799
     *
800
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsEvents Returns the events.
801
     */
802
    public function getEvents() {
803
        return $this->events;
804
    }
805
806
    /**
807
     * Get the floor.
808
     *
809
     * @return integer Returns the floor.
810
     */
811
    public function getFloor() {
812
        return $this->floor;
813
    }
814
815
    /**
816
     * Get the grid line color.
817
     *
818
     * @return string Returns the grid line color.
819
     */
820
    public function getGridLineColor() {
821
        return $this->gridLineColor;
822
    }
823
824
    /**
825
     * Get the grid line dash style.
826
     *
827
     * @return string Returns the grid line dash style.
828
     */
829
    public function getGridLineDashStyle() {
830
        return $this->gridLineDashStyle;
831
    }
832
833
    /**
834
     * Get the grid line width.
835
     *
836
     * @return integer Returns the grid line width.
837
     */
838
    public function getGridLineWidth() {
839
        return $this->gridLineWidth;
840
    }
841
842
    /**
843
     * Get the grid z index.
844
     *
845
     * @return integer Returns the grid z index.
846
     */
847
    public function getGridZIndex() {
848
        return $this->gridZIndex;
849
    }
850
851
    /**
852
     * Get the id.
853
     *
854
     * @return string Returns the id.
855
     */
856
    public function getId() {
857
        return $this->id;
858
    }
859
860
    /**
861
     * Get the labels.
862
     *
863
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsLabels Returns the labels.
864
     */
865
    public function getLabels() {
866
        return $this->labels;
867
    }
868
869
    /**
870
     * Get the line color.
871
     *
872
     * @return string Returns the line color.
873
     */
874
    public function getLineColor() {
875
        return $this->lineColor;
876
    }
877
878
    /**
879
     * Get the line width.
880
     *
881
     * @return integer Returns the line width.
882
     */
883
    public function getLineWidth() {
884
        return $this->lineWidth;
885
    }
886
887
    /**
888
     * Get the linked to.
889
     *
890
     * @return integer Returns the linked to.
891
     */
892
    public function getLinkedTo() {
893
        return $this->linkedTo;
894
    }
895
896
    /**
897
     * Get the max.
898
     *
899
     * @return integer Returns the max.
900
     */
901
    public function getMax() {
902
        return $this->max;
903
    }
904
905
    /**
906
     * Get the max padding.
907
     *
908
     * @return integer Returns the max padding.
909
     */
910
    public function getMaxPadding() {
911
        return $this->maxPadding;
912
    }
913
914
    /**
915
     * Get the max zoom.
916
     *
917
     * @return integer Returns the max zoom.
918
     * @deprecated
919
     */
920
    public function getMaxZoom() {
921
        return $this->maxZoom;
0 ignored issues
show
Deprecated Code introduced by
The property WBW\Bundle\HighchartsBun...ghchartsXAxis::$maxZoom has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
922
    }
923
924
    /**
925
     * Get the min.
926
     *
927
     * @return integer Returns the min.
928
     */
929
    public function getMin() {
930
        return $this->min;
931
    }
932
933
    /**
934
     * Get the min padding.
935
     *
936
     * @return integer Returns the min padding.
937
     */
938
    public function getMinPadding() {
939
        return $this->minPadding;
940
    }
941
942
    /**
943
     * Get the min range.
944
     *
945
     * @return integer Returns the min range.
946
     */
947
    public function getMinRange() {
948
        return $this->minRange;
949
    }
950
951
    /**
952
     * Get the min tick interval.
953
     *
954
     * @return integer Returns the min tick interval.
955
     */
956
    public function getMinTickInterval() {
957
        return $this->minTickInterval;
958
    }
959
960
    /**
961
     * Get the minor grid line color.
962
     *
963
     * @return string Returns the minor grid line color.
964
     */
965
    public function getMinorGridLineColor() {
966
        return $this->minorGridLineColor;
967
    }
968
969
    /**
970
     * Get the minor grid line dash style.
971
     *
972
     * @return string Returns the minor grid line dash style.
973
     */
974
    public function getMinorGridLineDashStyle() {
975
        return $this->minorGridLineDashStyle;
976
    }
977
978
    /**
979
     * Get the minor grid line width.
980
     *
981
     * @return integer Returns the minor grid line width.
982
     */
983
    public function getMinorGridLineWidth() {
984
        return $this->minorGridLineWidth;
985
    }
986
987
    /**
988
     * Get the minor tick color.
989
     *
990
     * @return string Returns the minor tick color.
991
     */
992
    public function getMinorTickColor() {
993
        return $this->minorTickColor;
994
    }
995
996
    /**
997
     * Get the minor tick interval.
998
     *
999
     * @return string|integer Returns the minor tick interval.
1000
     */
1001
    public function getMinorTickInterval() {
1002
        return $this->minorTickInterval;
1003
    }
1004
1005
    /**
1006
     * Get the minor tick length.
1007
     *
1008
     * @return integer Returns the minor tick length.
1009
     */
1010
    public function getMinorTickLength() {
1011
        return $this->minorTickLength;
1012
    }
1013
1014
    /**
1015
     * Get the minor tick position.
1016
     *
1017
     * @return string Returns the minor tick position.
1018
     */
1019
    public function getMinorTickPosition() {
1020
        return $this->minorTickPosition;
1021
    }
1022
1023
    /**
1024
     * Get the minor tick width.
1025
     *
1026
     * @return integer Returns the minor tick width.
1027
     */
1028
    public function getMinorTickWidth() {
1029
        return $this->minorTickWidth;
1030
    }
1031
1032
    /**
1033
     * Get the offset.
1034
     *
1035
     * @return integer Returns the offset.
1036
     */
1037
    public function getOffset() {
1038
        return $this->offset;
1039
    }
1040
1041
    /**
1042
     * Get the opposite.
1043
     *
1044
     * @return boolean Returns the opposite.
1045
     */
1046
    public function getOpposite() {
1047
        return $this->opposite;
1048
    }
1049
1050
    /**
1051
     * Get the plot bands.
1052
     *
1053
     * @return array Returns the plot bands.
1054
     */
1055
    public function getPlotBands() {
1056
        return $this->plotBands;
1057
    }
1058
1059
    /**
1060
     * Get the plot lines.
1061
     *
1062
     * @return array Returns the plot lines.
1063
     */
1064
    public function getPlotLines() {
1065
        return $this->plotLines;
1066
    }
1067
1068
    /**
1069
     * Get the reversed.
1070
     *
1071
     * @return boolean Returns the reversed.
1072
     */
1073
    public function getReversed() {
1074
        return $this->reversed;
1075
    }
1076
1077
    /**
1078
     * Get the show empty.
1079
     *
1080
     * @return boolean Returns the show empty.
1081
     */
1082
    public function getShowEmpty() {
1083
        return $this->showEmpty;
1084
    }
1085
1086
    /**
1087
     * Get the show first label.
1088
     *
1089
     * @return boolean Returns the show first label.
1090
     */
1091
    public function getShowFirstLabel() {
1092
        return $this->showFirstLabel;
1093
    }
1094
1095
    /**
1096
     * Get the show last label.
1097
     *
1098
     * @return boolean Returns the show last label.
1099
     */
1100
    public function getShowLastLabel() {
1101
        return $this->showLastLabel;
1102
    }
1103
1104
    /**
1105
     * Get the soft max.
1106
     *
1107
     * @return integer Returns the soft max.
1108
     */
1109
    public function getSoftMax() {
1110
        return $this->softMax;
1111
    }
1112
1113
    /**
1114
     * Get the soft min.
1115
     *
1116
     * @return integer Returns the soft min.
1117
     */
1118
    public function getSoftMin() {
1119
        return $this->softMin;
1120
    }
1121
1122
    /**
1123
     * Get the start of week.
1124
     *
1125
     * @return integer Returns the start of week.
1126
     */
1127
    public function getStartOfWeek() {
1128
        return $this->startOfWeek;
1129
    }
1130
1131
    /**
1132
     * Get the start on tick.
1133
     *
1134
     * @return boolean Returns the start on tick.
1135
     */
1136
    public function getStartOnTick() {
1137
        return $this->startOnTick;
1138
    }
1139
1140
    /**
1141
     * Get the tick amount.
1142
     *
1143
     * @return integer Returns the tick amount.
1144
     */
1145
    public function getTickAmount() {
1146
        return $this->tickAmount;
1147
    }
1148
1149
    /**
1150
     * Get the tick color.
1151
     *
1152
     * @return string Returns the tick color.
1153
     */
1154
    public function getTickColor() {
1155
        return $this->tickColor;
1156
    }
1157
1158
    /**
1159
     * Get the tick interval.
1160
     *
1161
     * @return integer Returns the tick interval.
1162
     */
1163
    public function getTickInterval() {
1164
        return $this->tickInterval;
1165
    }
1166
1167
    /**
1168
     * Get the tick length.
1169
     *
1170
     * @return integer Returns the tick length.
1171
     */
1172
    public function getTickLength() {
1173
        return $this->tickLength;
1174
    }
1175
1176
    /**
1177
     * Get the tick pixel interval.
1178
     *
1179
     * @return integer Returns the tick pixel interval.
1180
     */
1181
    public function getTickPixelInterval() {
1182
        return $this->tickPixelInterval;
1183
    }
1184
1185
    /**
1186
     * Get the tick position.
1187
     *
1188
     * @return string Returns the tick position.
1189
     */
1190
    public function getTickPosition() {
1191
        return $this->tickPosition;
1192
    }
1193
1194
    /**
1195
     * Get the tick positioner.
1196
     *
1197
     * @return string Returns the tick positioner.
1198
     */
1199
    public function getTickPositioner() {
1200
        return $this->tickPositioner;
1201
    }
1202
1203
    /**
1204
     * Get the tick positions.
1205
     *
1206
     * @return array Returns the tick positions.
1207
     */
1208
    public function getTickPositions() {
1209
        return $this->tickPositions;
1210
    }
1211
1212
    /**
1213
     * Get the tick width.
1214
     *
1215
     * @return integer Returns the tick width.
1216
     */
1217
    public function getTickWidth() {
1218
        return $this->tickWidth;
1219
    }
1220
1221
    /**
1222
     * Get the tickmark placement.
1223
     *
1224
     * @return string Returns the tickmark placement.
1225
     */
1226
    public function getTickmarkPlacement() {
1227
        return $this->tickmarkPlacement;
1228
    }
1229
1230
    /**
1231
     * Get the title.
1232
     *
1233
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsTitle Returns the title.
1234
     */
1235
    public function getTitle() {
1236
        return $this->title;
1237
    }
1238
1239
    /**
1240
     * Get the type.
1241
     *
1242
     * @return string Returns the type.
1243
     */
1244
    public function getType() {
1245
        return $this->type;
1246
    }
1247
1248
    /**
1249
     * Get the unique names.
1250
     *
1251
     * @return boolean Returns the unique names.
1252
     */
1253
    public function getUniqueNames() {
1254
        return $this->uniqueNames;
1255
    }
1256
1257
    /**
1258
     * Get the units.
1259
     *
1260
     * @return array Returns the units.
1261
     */
1262
    public function getUnits() {
1263
        return $this->units;
1264
    }
1265
1266
    /**
1267
     * Get the visible.
1268
     *
1269
     * @return boolean Returns the visible.
1270
     */
1271
    public function getVisible() {
1272
        return $this->visible;
1273
    }
1274
1275
    /**
1276
     * Serialize this instance.
1277
     *
1278
     * @return array Returns an array representing this instance.
1279
     */
1280
    public function jsonSerialize() {
1281
        return $this->toArray();
1282
    }
1283
1284
    /**
1285
     * Create a new crosshair.
1286
     *
1287
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsCrosshair Returns the crosshair.
1288
     */
1289
    public function newCrosshair() {
1290
        $this->crosshair = new \WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsCrosshair();
1291
        return $this->crosshair;
1292
    }
1293
1294
    /**
1295
     * Create a new events.
1296
     *
1297
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsEvents Returns the events.
1298
     */
1299
    public function newEvents() {
1300
        $this->events = new \WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsEvents();
1301
        return $this->events;
1302
    }
1303
1304
    /**
1305
     * Create a new labels.
1306
     *
1307
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsLabels Returns the labels.
1308
     */
1309
    public function newLabels() {
1310
        $this->labels = new \WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsLabels();
1311
        return $this->labels;
1312
    }
1313
1314
    /**
1315
     * Create a new title.
1316
     *
1317
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsTitle Returns the title.
1318
     */
1319
    public function newTitle() {
1320
        $this->title = new \WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsTitle();
1321
        return $this->title;
1322
    }
1323
1324
    /**
1325
     * Set the allow decimals.
1326
     *
1327
     * @param boolean $allowDecimals The allow decimals.
1328
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1329
     */
1330
    public function setAllowDecimals($allowDecimals) {
1331
        $this->allowDecimals = $allowDecimals;
1332
        return $this;
1333
    }
1334
1335
    /**
1336
     * Set the alternate grid color.
1337
     *
1338
     * @param string $alternateGridColor The alternate grid color.
1339
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1340
     */
1341
    public function setAlternateGridColor($alternateGridColor) {
1342
        $this->alternateGridColor = $alternateGridColor;
1343
        return $this;
1344
    }
1345
1346
    /**
1347
     * Set the breaks.
1348
     *
1349
     * @param array $breaks The breaks.
1350
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1351
     */
1352
    public function setBreaks(array $breaks = null) {
1353
        $this->breaks = $breaks;
0 ignored issues
show
Documentation Bug introduced by
It seems like $breaks can be null. However, the property $breaks 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...
1354
        return $this;
1355
    }
1356
1357
    /**
1358
     * Set the categories.
1359
     *
1360
     * @param array $categories The categories.
1361
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1362
     */
1363
    public function setCategories(array $categories = null) {
1364
        $this->categories = $categories;
0 ignored issues
show
Documentation Bug introduced by
It seems like $categories can be null. However, the property $categories 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...
1365
        return $this;
1366
    }
1367
1368
    /**
1369
     * Set the ceiling.
1370
     *
1371
     * @param integer $ceiling The ceiling.
1372
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1373
     */
1374
    public function setCeiling($ceiling) {
1375
        $this->ceiling = $ceiling;
1376
        return $this;
1377
    }
1378
1379
    /**
1380
     * Set the class name.
1381
     *
1382
     * @param string $className The class name.
1383
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1384
     */
1385
    public function setClassName($className) {
1386
        $this->className = $className;
1387
        return $this;
1388
    }
1389
1390
    /**
1391
     * Set the crosshair.
1392
     *
1393
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsCrosshair $crosshair The crosshair.
1394
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1395
     */
1396
    public function setCrosshair(\WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsCrosshair $crosshair = null) {
1397
        $this->crosshair = $crosshair;
1398
        return $this;
1399
    }
1400
1401
    /**
1402
     * Set the date time label formats.
1403
     *
1404
     * @param array $dateTimeLabelFormats The date time label formats.
1405
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1406
     */
1407
    public function setDateTimeLabelFormats(array $dateTimeLabelFormats = null) {
1408
        $this->dateTimeLabelFormats = $dateTimeLabelFormats;
0 ignored issues
show
Documentation Bug introduced by
It seems like $dateTimeLabelFormats can be null. However, the property $dateTimeLabelFormats 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...
1409
        return $this;
1410
    }
1411
1412
    /**
1413
     * Set the description.
1414
     *
1415
     * @param string $description The description.
1416
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1417
     */
1418
    public function setDescription($description) {
1419
        $this->description = $description;
1420
        return $this;
1421
    }
1422
1423
    /**
1424
     * Set the end on tick.
1425
     *
1426
     * @param boolean $endOnTick The end on tick.
1427
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1428
     */
1429
    public function setEndOnTick($endOnTick) {
1430
        $this->endOnTick = $endOnTick;
1431
        return $this;
1432
    }
1433
1434
    /**
1435
     * Set the events.
1436
     *
1437
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsEvents $events The events.
1438
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1439
     */
1440
    public function setEvents(\WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsEvents $events = null) {
1441
        $this->events = $events;
1442
        return $this;
1443
    }
1444
1445
    /**
1446
     * Set the floor.
1447
     *
1448
     * @param integer $floor The floor.
1449
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1450
     */
1451
    public function setFloor($floor) {
1452
        $this->floor = $floor;
1453
        return $this;
1454
    }
1455
1456
    /**
1457
     * Set the grid line color.
1458
     *
1459
     * @param string $gridLineColor The grid line color.
1460
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1461
     */
1462
    public function setGridLineColor($gridLineColor) {
1463
        $this->gridLineColor = $gridLineColor;
1464
        return $this;
1465
    }
1466
1467
    /**
1468
     * Set the grid line dash style.
1469
     *
1470
     * @param string $gridLineDashStyle The grid line dash style.
1471
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1472
     */
1473
    public function setGridLineDashStyle($gridLineDashStyle) {
1474
        switch ($gridLineDashStyle) {
1475
            case "Dash":
1476
            case "DashDot":
1477
            case "Dot":
1478
            case "LongDash":
1479
            case "LongDashDot":
1480
            case "LongDashDotDot":
1481
            case "ShortDash":
1482
            case "ShortDashDot":
1483
            case "ShortDashDotDot":
1484
            case "ShortDot":
1485
            case "Solid":
1486
            $this->gridLineDashStyle = $gridLineDashStyle;
1487
            break;
1488
        }
1489
        return $this;
1490
    }
1491
1492
    /**
1493
     * Set the grid line width.
1494
     *
1495
     * @param integer $gridLineWidth The grid line width.
1496
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1497
     */
1498
    public function setGridLineWidth($gridLineWidth) {
1499
        $this->gridLineWidth = $gridLineWidth;
1500
        return $this;
1501
    }
1502
1503
    /**
1504
     * Set the grid z index.
1505
     *
1506
     * @param integer $gridZIndex The grid z index.
1507
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1508
     */
1509
    public function setGridZIndex($gridZIndex) {
1510
        $this->gridZIndex = $gridZIndex;
1511
        return $this;
1512
    }
1513
1514
    /**
1515
     * Set the id.
1516
     *
1517
     * @param string $id The id.
1518
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1519
     */
1520
    public function setId($id) {
1521
        $this->id = $id;
1522
        return $this;
1523
    }
1524
1525
    /**
1526
     * Set the labels.
1527
     *
1528
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsLabels $labels The labels.
1529
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1530
     */
1531
    public function setLabels(\WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsLabels $labels = null) {
1532
        $this->labels = $labels;
1533
        return $this;
1534
    }
1535
1536
    /**
1537
     * Set the line color.
1538
     *
1539
     * @param string $lineColor The line color.
1540
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1541
     */
1542
    public function setLineColor($lineColor) {
1543
        $this->lineColor = $lineColor;
1544
        return $this;
1545
    }
1546
1547
    /**
1548
     * Set the line width.
1549
     *
1550
     * @param integer $lineWidth The line width.
1551
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1552
     */
1553
    public function setLineWidth($lineWidth) {
1554
        $this->lineWidth = $lineWidth;
1555
        return $this;
1556
    }
1557
1558
    /**
1559
     * Set the linked to.
1560
     *
1561
     * @param integer $linkedTo The linked to.
1562
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1563
     */
1564
    public function setLinkedTo($linkedTo) {
1565
        $this->linkedTo = $linkedTo;
1566
        return $this;
1567
    }
1568
1569
    /**
1570
     * Set the max.
1571
     *
1572
     * @param integer $max The max.
1573
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1574
     */
1575
    public function setMax($max) {
1576
        $this->max = $max;
1577
        return $this;
1578
    }
1579
1580
    /**
1581
     * Set the max padding.
1582
     *
1583
     * @param integer $maxPadding The max padding.
1584
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1585
     */
1586
    public function setMaxPadding($maxPadding) {
1587
        $this->maxPadding = $maxPadding;
1588
        return $this;
1589
    }
1590
1591
    /**
1592
     * Set the max zoom.
1593
     *
1594
     * @param integer $maxZoom The max zoom.
1595
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1596
     * @deprecated
1597
     */
1598
    public function setMaxZoom($maxZoom) {
1599
        $this->maxZoom = $maxZoom;
0 ignored issues
show
Deprecated Code introduced by
The property WBW\Bundle\HighchartsBun...ghchartsXAxis::$maxZoom has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
1600
        return $this;
1601
    }
1602
1603
    /**
1604
     * Set the min.
1605
     *
1606
     * @param integer $min The min.
1607
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1608
     */
1609
    public function setMin($min) {
1610
        $this->min = $min;
1611
        return $this;
1612
    }
1613
1614
    /**
1615
     * Set the min padding.
1616
     *
1617
     * @param integer $minPadding The min padding.
1618
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1619
     */
1620
    public function setMinPadding($minPadding) {
1621
        $this->minPadding = $minPadding;
1622
        return $this;
1623
    }
1624
1625
    /**
1626
     * Set the min range.
1627
     *
1628
     * @param integer $minRange The min range.
1629
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1630
     */
1631
    public function setMinRange($minRange) {
1632
        $this->minRange = $minRange;
1633
        return $this;
1634
    }
1635
1636
    /**
1637
     * Set the min tick interval.
1638
     *
1639
     * @param integer $minTickInterval The min tick interval.
1640
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1641
     */
1642
    public function setMinTickInterval($minTickInterval) {
1643
        $this->minTickInterval = $minTickInterval;
1644
        return $this;
1645
    }
1646
1647
    /**
1648
     * Set the minor grid line color.
1649
     *
1650
     * @param string $minorGridLineColor The minor grid line color.
1651
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1652
     */
1653
    public function setMinorGridLineColor($minorGridLineColor) {
1654
        $this->minorGridLineColor = $minorGridLineColor;
1655
        return $this;
1656
    }
1657
1658
    /**
1659
     * Set the minor grid line dash style.
1660
     *
1661
     * @param string $minorGridLineDashStyle The minor grid line dash style.
1662
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1663
     */
1664
    public function setMinorGridLineDashStyle($minorGridLineDashStyle) {
1665
        switch ($minorGridLineDashStyle) {
1666
            case "Dash":
1667
            case "DashDot":
1668
            case "Dot":
1669
            case "LongDash":
1670
            case "LongDashDot":
1671
            case "LongDashDotDot":
1672
            case "ShortDash":
1673
            case "ShortDashDot":
1674
            case "ShortDashDotDot":
1675
            case "ShortDot":
1676
            case "Solid":
1677
            $this->minorGridLineDashStyle = $minorGridLineDashStyle;
1678
            break;
1679
        }
1680
        return $this;
1681
    }
1682
1683
    /**
1684
     * Set the minor grid line width.
1685
     *
1686
     * @param integer $minorGridLineWidth The minor grid line width.
1687
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1688
     */
1689
    public function setMinorGridLineWidth($minorGridLineWidth) {
1690
        $this->minorGridLineWidth = $minorGridLineWidth;
1691
        return $this;
1692
    }
1693
1694
    /**
1695
     * Set the minor tick color.
1696
     *
1697
     * @param string $minorTickColor The minor tick color.
1698
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1699
     */
1700
    public function setMinorTickColor($minorTickColor) {
1701
        $this->minorTickColor = $minorTickColor;
1702
        return $this;
1703
    }
1704
1705
    /**
1706
     * Set the minor tick interval.
1707
     *
1708
     * @param string|integer $minorTickInterval The minor tick interval.
1709
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1710
     */
1711
    public function setMinorTickInterval($minorTickInterval) {
1712
        $this->minorTickInterval = $minorTickInterval;
1713
        return $this;
1714
    }
1715
1716
    /**
1717
     * Set the minor tick length.
1718
     *
1719
     * @param integer $minorTickLength The minor tick length.
1720
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1721
     */
1722
    public function setMinorTickLength($minorTickLength) {
1723
        $this->minorTickLength = $minorTickLength;
1724
        return $this;
1725
    }
1726
1727
    /**
1728
     * Set the minor tick position.
1729
     *
1730
     * @param string $minorTickPosition The minor tick position.
1731
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1732
     */
1733
    public function setMinorTickPosition($minorTickPosition) {
1734
        switch ($minorTickPosition) {
1735
            case "inside":
1736
            case "outside":
1737
            $this->minorTickPosition = $minorTickPosition;
1738
            break;
1739
        }
1740
        return $this;
1741
    }
1742
1743
    /**
1744
     * Set the minor tick width.
1745
     *
1746
     * @param integer $minorTickWidth The minor tick width.
1747
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1748
     */
1749
    public function setMinorTickWidth($minorTickWidth) {
1750
        $this->minorTickWidth = $minorTickWidth;
1751
        return $this;
1752
    }
1753
1754
    /**
1755
     * Set the offset.
1756
     *
1757
     * @param integer $offset The offset.
1758
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1759
     */
1760
    public function setOffset($offset) {
1761
        $this->offset = $offset;
1762
        return $this;
1763
    }
1764
1765
    /**
1766
     * Set the opposite.
1767
     *
1768
     * @param boolean $opposite The opposite.
1769
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1770
     */
1771
    public function setOpposite($opposite) {
1772
        $this->opposite = $opposite;
1773
        return $this;
1774
    }
1775
1776
    /**
1777
     * Set the plot bands.
1778
     *
1779
     * @param array $plotBands The plot bands.
1780
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1781
     */
1782
    public function setPlotBands(array $plotBands = null) {
1783
        $this->plotBands = $plotBands;
0 ignored issues
show
Documentation Bug introduced by
It seems like $plotBands can be null. However, the property $plotBands 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...
1784
        return $this;
1785
    }
1786
1787
    /**
1788
     * Set the plot lines.
1789
     *
1790
     * @param array $plotLines The plot lines.
1791
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1792
     */
1793
    public function setPlotLines(array $plotLines = null) {
1794
        $this->plotLines = $plotLines;
0 ignored issues
show
Documentation Bug introduced by
It seems like $plotLines can be null. However, the property $plotLines 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...
1795
        return $this;
1796
    }
1797
1798
    /**
1799
     * Set the reversed.
1800
     *
1801
     * @param boolean $reversed The reversed.
1802
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1803
     */
1804
    public function setReversed($reversed) {
1805
        $this->reversed = $reversed;
1806
        return $this;
1807
    }
1808
1809
    /**
1810
     * Set the show empty.
1811
     *
1812
     * @param boolean $showEmpty The show empty.
1813
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1814
     */
1815
    public function setShowEmpty($showEmpty) {
1816
        $this->showEmpty = $showEmpty;
1817
        return $this;
1818
    }
1819
1820
    /**
1821
     * Set the show first label.
1822
     *
1823
     * @param boolean $showFirstLabel The show first label.
1824
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1825
     */
1826
    public function setShowFirstLabel($showFirstLabel) {
1827
        $this->showFirstLabel = $showFirstLabel;
1828
        return $this;
1829
    }
1830
1831
    /**
1832
     * Set the show last label.
1833
     *
1834
     * @param boolean $showLastLabel The show last label.
1835
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1836
     */
1837
    public function setShowLastLabel($showLastLabel) {
1838
        $this->showLastLabel = $showLastLabel;
1839
        return $this;
1840
    }
1841
1842
    /**
1843
     * Set the soft max.
1844
     *
1845
     * @param integer $softMax The soft max.
1846
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1847
     */
1848
    public function setSoftMax($softMax) {
1849
        $this->softMax = $softMax;
1850
        return $this;
1851
    }
1852
1853
    /**
1854
     * Set the soft min.
1855
     *
1856
     * @param integer $softMin The soft min.
1857
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1858
     */
1859
    public function setSoftMin($softMin) {
1860
        $this->softMin = $softMin;
1861
        return $this;
1862
    }
1863
1864
    /**
1865
     * Set the start of week.
1866
     *
1867
     * @param integer $startOfWeek The start of week.
1868
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1869
     */
1870
    public function setStartOfWeek($startOfWeek) {
1871
        $this->startOfWeek = $startOfWeek;
1872
        return $this;
1873
    }
1874
1875
    /**
1876
     * Set the start on tick.
1877
     *
1878
     * @param boolean $startOnTick The start on tick.
1879
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1880
     */
1881
    public function setStartOnTick($startOnTick) {
1882
        $this->startOnTick = $startOnTick;
1883
        return $this;
1884
    }
1885
1886
    /**
1887
     * Set the tick amount.
1888
     *
1889
     * @param integer $tickAmount The tick amount.
1890
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1891
     */
1892
    public function setTickAmount($tickAmount) {
1893
        $this->tickAmount = $tickAmount;
1894
        return $this;
1895
    }
1896
1897
    /**
1898
     * Set the tick color.
1899
     *
1900
     * @param string $tickColor The tick color.
1901
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1902
     */
1903
    public function setTickColor($tickColor) {
1904
        $this->tickColor = $tickColor;
1905
        return $this;
1906
    }
1907
1908
    /**
1909
     * Set the tick interval.
1910
     *
1911
     * @param integer $tickInterval The tick interval.
1912
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1913
     */
1914
    public function setTickInterval($tickInterval) {
1915
        $this->tickInterval = $tickInterval;
1916
        return $this;
1917
    }
1918
1919
    /**
1920
     * Set the tick length.
1921
     *
1922
     * @param integer $tickLength The tick length.
1923
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1924
     */
1925
    public function setTickLength($tickLength) {
1926
        $this->tickLength = $tickLength;
1927
        return $this;
1928
    }
1929
1930
    /**
1931
     * Set the tick pixel interval.
1932
     *
1933
     * @param integer $tickPixelInterval The tick pixel interval.
1934
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1935
     */
1936
    public function setTickPixelInterval($tickPixelInterval) {
1937
        $this->tickPixelInterval = $tickPixelInterval;
1938
        return $this;
1939
    }
1940
1941
    /**
1942
     * Set the tick position.
1943
     *
1944
     * @param string $tickPosition The tick position.
1945
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1946
     */
1947
    public function setTickPosition($tickPosition) {
1948
        switch ($tickPosition) {
1949
            case "inside":
1950
            case "outside":
1951
            $this->tickPosition = $tickPosition;
1952
            break;
1953
        }
1954
        return $this;
1955
    }
1956
1957
    /**
1958
     * Set the tick positioner.
1959
     *
1960
     * @param string $tickPositioner The tick positioner.
1961
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1962
     */
1963
    public function setTickPositioner($tickPositioner) {
1964
        $this->tickPositioner = $tickPositioner;
1965
        return $this;
1966
    }
1967
1968
    /**
1969
     * Set the tick positions.
1970
     *
1971
     * @param array $tickPositions The tick positions.
1972
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1973
     */
1974
    public function setTickPositions(array $tickPositions = null) {
1975
        $this->tickPositions = $tickPositions;
0 ignored issues
show
Documentation Bug introduced by
It seems like $tickPositions can be null. However, the property $tickPositions 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...
1976
        return $this;
1977
    }
1978
1979
    /**
1980
     * Set the tick width.
1981
     *
1982
     * @param integer $tickWidth The tick width.
1983
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1984
     */
1985
    public function setTickWidth($tickWidth) {
1986
        $this->tickWidth = $tickWidth;
1987
        return $this;
1988
    }
1989
1990
    /**
1991
     * Set the tickmark placement.
1992
     *
1993
     * @param string $tickmarkPlacement The tickmark placement.
1994
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
1995
     */
1996
    public function setTickmarkPlacement($tickmarkPlacement) {
1997
        switch ($tickmarkPlacement) {
1998
            case null:
1999
            case "between":
2000
            case "on":
2001
            $this->tickmarkPlacement = $tickmarkPlacement;
2002
            break;
2003
        }
2004
        return $this;
2005
    }
2006
2007
    /**
2008
     * Set the title.
2009
     *
2010
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsTitle $title The title.
2011
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
2012
     */
2013
    public function setTitle(\WBW\Bundle\HighchartsBundle\API\Chart\XAxis\HighchartsTitle $title = null) {
2014
        $this->title = $title;
2015
        return $this;
2016
    }
2017
2018
    /**
2019
     * Set the type.
2020
     *
2021
     * @param string $type The type.
2022
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
2023
     */
2024
    public function setType($type) {
2025
        switch ($type) {
2026
            case "category":
2027
            case "datetime":
2028
            case "linear":
2029
            case "logarithmic":
2030
            $this->type = $type;
2031
            break;
2032
        }
2033
        return $this;
2034
    }
2035
2036
    /**
2037
     * Set the unique names.
2038
     *
2039
     * @param boolean $uniqueNames The unique names.
2040
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
2041
     */
2042
    public function setUniqueNames($uniqueNames) {
2043
        $this->uniqueNames = $uniqueNames;
2044
        return $this;
2045
    }
2046
2047
    /**
2048
     * Set the units.
2049
     *
2050
     * @param array $units The units.
2051
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
2052
     */
2053
    public function setUnits(array $units = null) {
2054
        $this->units = $units;
0 ignored issues
show
Documentation Bug introduced by
It seems like $units can be null. However, the property $units 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...
2055
        return $this;
2056
    }
2057
2058
    /**
2059
     * Set the visible.
2060
     *
2061
     * @param boolean $visible The visible.
2062
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsXAxis Returns the highcharts x axis.
2063
     */
2064
    public function setVisible($visible) {
2065
        $this->visible = $visible;
2066
        return $this;
2067
    }
2068
2069
    /**
2070
     * Convert into an array representing this instance.
2071
     *
2072
     * @return array Returns an array representing this instance.
2073
     */
2074
    public function toArray() {
2075
2076
        // Initialize the output.
2077
        $output = [];
2078
2079
        // Set the allow decimals.
2080
        ArrayUtility::set($output, "allowDecimals", $this->allowDecimals, [null]);
2081
2082
        // Set the alternate grid color.
2083
        ArrayUtility::set($output, "alternateGridColor", $this->alternateGridColor, [null]);
2084
2085
        // Set the breaks.
2086
        ArrayUtility::set($output, "breaks", $this->breaks, [null]);
2087
2088
        // Set the categories.
2089
        ArrayUtility::set($output, "categories", $this->categories, [null]);
2090
2091
        // Set the ceiling.
2092
        ArrayUtility::set($output, "ceiling", $this->ceiling, [null]);
2093
2094
        // Set the class name.
2095
        ArrayUtility::set($output, "className", $this->className, [null]);
2096
2097
        // Set the crosshair.
2098
        if (null !== $this->crosshair) {
2099
            ArrayUtility::set($output, "crosshair", $this->crosshair->toArray(), []);
2100
        }
2101
2102
        // Set the date time label formats.
2103
        ArrayUtility::set($output, "dateTimeLabelFormats", $this->dateTimeLabelFormats, [null]);
2104
2105
        // Set the description.
2106
        ArrayUtility::set($output, "description", $this->description, [null]);
2107
2108
        // Set the end on tick.
2109
        ArrayUtility::set($output, "endOnTick", $this->endOnTick, [null]);
2110
2111
        // Set the events.
2112
        if (null !== $this->events) {
2113
            ArrayUtility::set($output, "events", $this->events->toArray(), []);
2114
        }
2115
2116
        // Set the floor.
2117
        ArrayUtility::set($output, "floor", $this->floor, [null]);
2118
2119
        // Set the grid line color.
2120
        ArrayUtility::set($output, "gridLineColor", $this->gridLineColor, [null]);
2121
2122
        // Set the grid line dash style.
2123
        ArrayUtility::set($output, "gridLineDashStyle", $this->gridLineDashStyle, [null]);
2124
2125
        // Set the grid line width.
2126
        ArrayUtility::set($output, "gridLineWidth", $this->gridLineWidth, [null]);
2127
2128
        // Set the grid z index.
2129
        ArrayUtility::set($output, "gridZIndex", $this->gridZIndex, [null]);
2130
2131
        // Set the id.
2132
        ArrayUtility::set($output, "id", $this->id, [null]);
2133
2134
        // Set the labels.
2135
        if (null !== $this->labels) {
2136
            ArrayUtility::set($output, "labels", $this->labels->toArray(), []);
2137
        }
2138
2139
        // Set the line color.
2140
        ArrayUtility::set($output, "lineColor", $this->lineColor, [null]);
2141
2142
        // Set the line width.
2143
        ArrayUtility::set($output, "lineWidth", $this->lineWidth, [null]);
2144
2145
        // Set the linked to.
2146
        ArrayUtility::set($output, "linkedTo", $this->linkedTo, [null]);
2147
2148
        // Set the max.
2149
        ArrayUtility::set($output, "max", $this->max, [null]);
2150
2151
        // Set the max padding.
2152
        ArrayUtility::set($output, "maxPadding", $this->maxPadding, [null]);
2153
2154
        // Set the max zoom.
2155
        ArrayUtility::set($output, "maxZoom", $this->maxZoom, [null]);
0 ignored issues
show
Deprecated Code introduced by
The property WBW\Bundle\HighchartsBun...ghchartsXAxis::$maxZoom has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
2156
2157
        // Set the min.
2158
        ArrayUtility::set($output, "min", $this->min, [null]);
2159
2160
        // Set the min padding.
2161
        ArrayUtility::set($output, "minPadding", $this->minPadding, [null]);
2162
2163
        // Set the min range.
2164
        ArrayUtility::set($output, "minRange", $this->minRange, [null]);
2165
2166
        // Set the min tick interval.
2167
        ArrayUtility::set($output, "minTickInterval", $this->minTickInterval, [null]);
2168
2169
        // Set the minor grid line color.
2170
        ArrayUtility::set($output, "minorGridLineColor", $this->minorGridLineColor, [null]);
2171
2172
        // Set the minor grid line dash style.
2173
        ArrayUtility::set($output, "minorGridLineDashStyle", $this->minorGridLineDashStyle, [null]);
2174
2175
        // Set the minor grid line width.
2176
        ArrayUtility::set($output, "minorGridLineWidth", $this->minorGridLineWidth, [null]);
2177
2178
        // Set the minor tick color.
2179
        ArrayUtility::set($output, "minorTickColor", $this->minorTickColor, [null]);
2180
2181
        // Set the minor tick interval.
2182
        ArrayUtility::set($output, "minorTickInterval", $this->minorTickInterval, [null]);
2183
2184
        // Set the minor tick length.
2185
        ArrayUtility::set($output, "minorTickLength", $this->minorTickLength, [null]);
2186
2187
        // Set the minor tick position.
2188
        ArrayUtility::set($output, "minorTickPosition", $this->minorTickPosition, [null]);
2189
2190
        // Set the minor tick width.
2191
        ArrayUtility::set($output, "minorTickWidth", $this->minorTickWidth, [null]);
2192
2193
        // Set the offset.
2194
        ArrayUtility::set($output, "offset", $this->offset, [null]);
2195
2196
        // Set the opposite.
2197
        ArrayUtility::set($output, "opposite", $this->opposite, [null]);
2198
2199
        // Set the plot bands.
2200
        ArrayUtility::set($output, "plotBands", $this->plotBands, [null]);
2201
2202
        // Set the plot lines.
2203
        ArrayUtility::set($output, "plotLines", $this->plotLines, [null]);
2204
2205
        // Set the reversed.
2206
        ArrayUtility::set($output, "reversed", $this->reversed, [null]);
2207
2208
        // Set the show empty.
2209
        ArrayUtility::set($output, "showEmpty", $this->showEmpty, [null]);
2210
2211
        // Set the show first label.
2212
        ArrayUtility::set($output, "showFirstLabel", $this->showFirstLabel, [null]);
2213
2214
        // Set the show last label.
2215
        ArrayUtility::set($output, "showLastLabel", $this->showLastLabel, [null]);
2216
2217
        // Set the soft max.
2218
        ArrayUtility::set($output, "softMax", $this->softMax, [null]);
2219
2220
        // Set the soft min.
2221
        ArrayUtility::set($output, "softMin", $this->softMin, [null]);
2222
2223
        // Set the start of week.
2224
        ArrayUtility::set($output, "startOfWeek", $this->startOfWeek, [null]);
2225
2226
        // Set the start on tick.
2227
        ArrayUtility::set($output, "startOnTick", $this->startOnTick, [null]);
2228
2229
        // Set the tick amount.
2230
        ArrayUtility::set($output, "tickAmount", $this->tickAmount, [null]);
2231
2232
        // Set the tick color.
2233
        ArrayUtility::set($output, "tickColor", $this->tickColor, [null]);
2234
2235
        // Set the tick interval.
2236
        ArrayUtility::set($output, "tickInterval", $this->tickInterval, [null]);
2237
2238
        // Set the tick length.
2239
        ArrayUtility::set($output, "tickLength", $this->tickLength, [null]);
2240
2241
        // Set the tick pixel interval.
2242
        ArrayUtility::set($output, "tickPixelInterval", $this->tickPixelInterval, [null]);
2243
2244
        // Set the tick position.
2245
        ArrayUtility::set($output, "tickPosition", $this->tickPosition, [null]);
2246
2247
        // Set the tick positioner.
2248
        ArrayUtility::set($output, "tickPositioner", $this->tickPositioner, [null]);
2249
2250
        // Set the tick positions.
2251
        ArrayUtility::set($output, "tickPositions", $this->tickPositions, [null]);
2252
2253
        // Set the tick width.
2254
        ArrayUtility::set($output, "tickWidth", $this->tickWidth, [null]);
2255
2256
        // Set the tickmark placement.
2257
        ArrayUtility::set($output, "tickmarkPlacement", $this->tickmarkPlacement, [null]);
2258
2259
        // Set the title.
2260
        if (null !== $this->title) {
2261
            ArrayUtility::set($output, "title", $this->title->toArray(), []);
2262
        }
2263
2264
        // Set the type.
2265
        ArrayUtility::set($output, "type", $this->type, [null]);
2266
2267
        // Set the unique names.
2268
        ArrayUtility::set($output, "uniqueNames", $this->uniqueNames, [null]);
2269
2270
        // Set the units.
2271
        ArrayUtility::set($output, "units", $this->units, [null]);
2272
2273
        // Set the visible.
2274
        ArrayUtility::set($output, "visible", $this->visible, [null]);
2275
2276
        // Return the output.
2277
        return $output;
2278
    }
2279
2280
}
2281