Issues (1377)

Security Analysis    no request data  

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

API/Chart/PlotOptions/HighchartsLine.php (6 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

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