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/Series/HighchartsLine.php (8 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\Series;
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\Series
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.
112
     *
113
     * @var array
114
     */
115
    private $data;
116
117
    /**
118
     * Data labels.
119
     *
120
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Line\HighchartsDataLabels
121
     */
122
    private $dataLabels;
123
124
    /**
125
     * Description.
126
     *
127
     * @var string
128
     * @since 5.0.0
129
     */
130
    private $description;
131
132
    /**
133
     * Enable mouse tracking.
134
     *
135
     * @var boolean
136
     */
137
    private $enableMouseTracking = true;
138
139
    /**
140
     * Events.
141
     *
142
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Line\HighchartsEvents
143
     */
144
    private $events;
145
146
    /**
147
     * Expose element to a11y.
148
     *
149
     * @var boolean
150
     * @since 5.0.12
151
     */
152
    private $exposeElementToA11y;
153
154
    /**
155
     * Find nearest point by.
156
     *
157
     * @var string
158
     * @since 5.0.10
159
     */
160
    private $findNearestPointBy;
161
162
    /**
163
     * Get extremes from all.
164
     *
165
     * @var boolean
166
     * @since 4.1.6
167
     */
168
    private $getExtremesFromAll = false;
169
170
    /**
171
     * Id.
172
     *
173
     * @var string
174
     * @since 1.2.0
175
     */
176
    private $id;
177
178
    /**
179
     * Index.
180
     *
181
     * @var integer
182
     * @since 2.3.0
183
     */
184
    private $index;
185
186
    /**
187
     * Keys.
188
     *
189
     * @var array
190
     * @since 4.1.6
191
     */
192
    private $keys;
193
194
    /**
195
     * Legend index.
196
     *
197
     * @var integer
198
     */
199
    private $legendIndex;
200
201
    /**
202
     * Line width.
203
     *
204
     * @var integer
205
     */
206
    private $lineWidth = 2;
207
208
    /**
209
     * Linecap.
210
     *
211
     * @var string
212
     */
213
    private $linecap = "round";
214
215
    /**
216
     * Linked to.
217
     *
218
     * @var string
219
     * @since 3.0
220
     */
221
    private $linkedTo;
222
223
    /**
224
     * Marker.
225
     *
226
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Line\HighchartsMarker
227
     */
228
    private $marker;
229
230
    /**
231
     * Name.
232
     *
233
     * @var string
234
     */
235
    private $name;
236
237
    /**
238
     * Negative color.
239
     *
240
     * @var string
241
     * @since 3.0
242
     */
243
    private $negativeColor;
244
245
    /**
246
     * Point.
247
     *
248
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Line\HighchartsPoint
249
     */
250
    private $point;
251
252
    /**
253
     * Point description formatter.
254
     *
255
     * @var string
256
     * @since 5.0.12
257
     */
258
    private $pointDescriptionFormatter;
259
260
    /**
261
     * Point interval.
262
     *
263
     * @var integer
264
     */
265
    private $pointInterval = 1;
266
267
    /**
268
     * Point interval unit.
269
     *
270
     * @var string
271
     * @since 4.1.0
272
     */
273
    private $pointIntervalUnit;
274
275
    /**
276
     * Point placement.
277
     *
278
     * @var string|integer
279
     * @since 2.3.0
280
     */
281
    private $pointPlacement;
282
283
    /**
284
     * Point start.
285
     *
286
     * @var integer
287
     */
288
    private $pointStart = 0;
289
290
    /**
291
     * Selected.
292
     *
293
     * @var boolean
294
     * @since 1.2.0
295
     */
296
    private $selected = false;
297
298
    /**
299
     * Shadow.
300
     *
301
     * @var boolean|array
302
     */
303
    private $shadow = false;
304
305
    /**
306
     * Show checkbox.
307
     *
308
     * @var boolean
309
     * @since 1.2.0
310
     */
311
    private $showCheckbox = false;
312
313
    /**
314
     * Show in legend.
315
     *
316
     * @var boolean
317
     */
318
    private $showInLegend = true;
319
320
    /**
321
     * Skip keyboard navigation.
322
     *
323
     * @var boolean
324
     * @since 5.0.12
325
     */
326
    private $skipKeyboardNavigation;
327
328
    /**
329
     * Soft threshold.
330
     *
331
     * @var boolean
332
     * @since 4.1.9
333
     */
334
    private $softThreshold = true;
335
336
    /**
337
     * Stack.
338
     *
339
     * @var string
340
     * @since 2.1
341
     */
342
    private $stack;
343
344
    /**
345
     * Stacking.
346
     *
347
     * @var string
348
     */
349
    private $stacking;
350
351
    /**
352
     * States.
353
     *
354
     * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Line\HighchartsStates
355
     */
356
    private $states;
357
358
    /**
359
     * Step.
360
     *
361
     * @var string
362
     * @since 1.2.5
363
     */
364
    private $step = "false";
365
366
    /**
367
     * Sticky tracking.
368
     *
369
     * @var boolean
370
     * @since 2.0
371
     */
372
    private $stickyTracking = true;
373
374
    /**
375
     * Threshold.
376
     *
377
     * @var integer
378
     * @since 3.0
379
     */
380
    private $threshold = 0;
381
382
    /**
383
     * Tooltip.
384
     *
385
     * @var array
386
     * @since 2.3
387
     */
388
    private $tooltip;
389
390
    /**
391
     * Turbo threshold.
392
     *
393
     * @var integer
394
     * @since 2.2
395
     */
396
    private $turboThreshold = 1000;
397
398
    /**
399
     * Type.
400
     *
401
     * @var string
402
     */
403
    private $type;
404
405
    /**
406
     * Visible.
407
     *
408
     * @var boolean
409
     */
410
    private $visible = true;
411
412
    /**
413
     * X axis.
414
     *
415
     * @var integer|string
416
     */
417
    private $xAxis = "0";
418
419
    /**
420
     * Y axis.
421
     *
422
     * @var integer|string
423
     */
424
    private $yAxis = "0";
425
426
    /**
427
     * Z index.
428
     *
429
     * @var integer
430
     */
431
    private $zIndex;
432
433
    /**
434
     * Zone axis.
435
     *
436
     * @var string
437
     * @since 4.1.0
438
     */
439
    private $zoneAxis = "y";
440
441
    /**
442
     * Zones.
443
     *
444
     * @var array
445
     * @since 4.1.0
446
     */
447
    private $zones;
448
449
    /**
450
     * Constructor.
451
     *
452
     * @param boolean $ignoreDefaultValues Ignore the default values.
453
     */
454
    public function __construct($ignoreDefaultValues = true) {
455
        if (true === $ignoreDefaultValues) {
456
            $this->clear();
457
        }
458
    }
459
460
    /**
461
     * Clear.
462
     *
463
     * @return void
464
     */
465
    public function clear() {
466
467
        // Clear the allow point select.
468
        $this->allowPointSelect = null;
469
470
        // Clear the animation.
471
        $this->animation = null;
472
473
        // Clear the animation limit.
474
        $this->animationLimit = null;
475
476
        // Clear the class name.
477
        $this->className = null;
478
479
        // Clear the color.
480
        $this->color = null;
481
482
        // Clear the color index.
483
        $this->colorIndex = null;
484
485
        // Clear the connect ends.
486
        $this->connectEnds = null;
487
488
        // Clear the connect nulls.
489
        $this->connectNulls = null;
490
491
        // Clear the crop threshold.
492
        $this->cropThreshold = null;
493
494
        // Clear the cursor.
495
        $this->cursor = null;
496
497
        // Clear the dash style.
498
        $this->dashStyle = null;
499
500
        // Clear the data.
501
        $this->data = null;
0 ignored issues
show
Documentation Bug introduced by
It seems like null of type null is incompatible with the declared type array of property $data.

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

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

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

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

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

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

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

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

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

Loading history...
1361
        return $this;
1362
    }
1363
1364
    /**
1365
     * Set the data labels.
1366
     *
1367
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Line\HighchartsDataLabels $dataLabels The data labels.
1368
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1369
     */
1370
    public function setDataLabels(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Line\HighchartsDataLabels $dataLabels = null) {
1371
        $this->dataLabels = $dataLabels;
1372
        return $this;
1373
    }
1374
1375
    /**
1376
     * Set the description.
1377
     *
1378
     * @param string $description The description.
1379
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1380
     */
1381
    public function setDescription($description) {
1382
        $this->description = $description;
1383
        return $this;
1384
    }
1385
1386
    /**
1387
     * Set the enable mouse tracking.
1388
     *
1389
     * @param boolean $enableMouseTracking The enable mouse tracking.
1390
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1391
     */
1392
    public function setEnableMouseTracking($enableMouseTracking) {
1393
        $this->enableMouseTracking = $enableMouseTracking;
1394
        return $this;
1395
    }
1396
1397
    /**
1398
     * Set the events.
1399
     *
1400
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Line\HighchartsEvents $events The events.
1401
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1402
     */
1403
    public function setEvents(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Line\HighchartsEvents $events = null) {
1404
        $this->events = $events;
1405
        return $this;
1406
    }
1407
1408
    /**
1409
     * Set the expose element to a11y.
1410
     *
1411
     * @param boolean $exposeElementToA11y The expose element to a11y.
1412
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1413
     */
1414
    public function setExposeElementToA11y($exposeElementToA11y) {
1415
        $this->exposeElementToA11y = $exposeElementToA11y;
1416
        return $this;
1417
    }
1418
1419
    /**
1420
     * Set the find nearest point by.
1421
     *
1422
     * @param string $findNearestPointBy The find nearest point by.
1423
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1424
     */
1425
    public function setFindNearestPointBy($findNearestPointBy) {
1426
        switch ($findNearestPointBy) {
1427
            case "x":
1428
            case "xy":
1429
            $this->findNearestPointBy = $findNearestPointBy;
1430
            break;
1431
        }
1432
        return $this;
1433
    }
1434
1435
    /**
1436
     * Set the get extremes from all.
1437
     *
1438
     * @param boolean $getExtremesFromAll The get extremes from all.
1439
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1440
     */
1441
    public function setGetExtremesFromAll($getExtremesFromAll) {
1442
        $this->getExtremesFromAll = $getExtremesFromAll;
1443
        return $this;
1444
    }
1445
1446
    /**
1447
     * Set the id.
1448
     *
1449
     * @param string $id The id.
1450
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1451
     */
1452
    public function setId($id) {
1453
        $this->id = $id;
1454
        return $this;
1455
    }
1456
1457
    /**
1458
     * Set the index.
1459
     *
1460
     * @param integer $index The index.
1461
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1462
     */
1463
    public function setIndex($index) {
1464
        $this->index = $index;
1465
        return $this;
1466
    }
1467
1468
    /**
1469
     * Set the keys.
1470
     *
1471
     * @param array $keys The keys.
1472
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1473
     */
1474
    public function setKeys(array $keys = null) {
1475
        $this->keys = $keys;
0 ignored issues
show
Documentation Bug introduced by
It seems like $keys can be null. However, the property $keys is declared as array. Maybe change the type of the property to array|null or add a type check?

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

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

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

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

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

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

Loading history...
1476
        return $this;
1477
    }
1478
1479
    /**
1480
     * Set the legend index.
1481
     *
1482
     * @param integer $legendIndex The legend index.
1483
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1484
     */
1485
    public function setLegendIndex($legendIndex) {
1486
        $this->legendIndex = $legendIndex;
1487
        return $this;
1488
    }
1489
1490
    /**
1491
     * Set the line width.
1492
     *
1493
     * @param integer $lineWidth The line width.
1494
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1495
     */
1496
    public function setLineWidth($lineWidth) {
1497
        $this->lineWidth = $lineWidth;
1498
        return $this;
1499
    }
1500
1501
    /**
1502
     * Set the linecap.
1503
     *
1504
     * @param string $linecap The linecap.
1505
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1506
     */
1507
    public function setLinecap($linecap) {
1508
        switch ($linecap) {
1509
            case "round":
1510
            case "square":
1511
            $this->linecap = $linecap;
1512
            break;
1513
        }
1514
        return $this;
1515
    }
1516
1517
    /**
1518
     * Set the linked to.
1519
     *
1520
     * @param string $linkedTo The linked to.
1521
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1522
     */
1523
    public function setLinkedTo($linkedTo) {
1524
        $this->linkedTo = $linkedTo;
1525
        return $this;
1526
    }
1527
1528
    /**
1529
     * Set the marker.
1530
     *
1531
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Line\HighchartsMarker $marker The marker.
1532
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1533
     */
1534
    public function setMarker(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Line\HighchartsMarker $marker = null) {
1535
        $this->marker = $marker;
1536
        return $this;
1537
    }
1538
1539
    /**
1540
     * Set the name.
1541
     *
1542
     * @param string $name The name.
1543
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1544
     */
1545
    public function setName($name) {
1546
        $this->name = $name;
1547
        return $this;
1548
    }
1549
1550
    /**
1551
     * Set the negative color.
1552
     *
1553
     * @param string $negativeColor The negative color.
1554
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1555
     */
1556
    public function setNegativeColor($negativeColor) {
1557
        $this->negativeColor = $negativeColor;
1558
        return $this;
1559
    }
1560
1561
    /**
1562
     * Set the point.
1563
     *
1564
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Line\HighchartsPoint $point The point.
1565
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1566
     */
1567
    public function setPoint(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Line\HighchartsPoint $point = null) {
1568
        $this->point = $point;
1569
        return $this;
1570
    }
1571
1572
    /**
1573
     * Set the point description formatter.
1574
     *
1575
     * @param string $pointDescriptionFormatter The point description formatter.
1576
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1577
     */
1578
    public function setPointDescriptionFormatter($pointDescriptionFormatter) {
1579
        $this->pointDescriptionFormatter = $pointDescriptionFormatter;
1580
        return $this;
1581
    }
1582
1583
    /**
1584
     * Set the point interval.
1585
     *
1586
     * @param integer $pointInterval The point interval.
1587
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1588
     */
1589
    public function setPointInterval($pointInterval) {
1590
        $this->pointInterval = $pointInterval;
1591
        return $this;
1592
    }
1593
1594
    /**
1595
     * Set the point interval unit.
1596
     *
1597
     * @param string $pointIntervalUnit The point interval unit.
1598
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1599
     */
1600
    public function setPointIntervalUnit($pointIntervalUnit) {
1601
        switch ($pointIntervalUnit) {
1602
            case null:
1603
            case "day":
1604
            case "month":
1605
            case "year":
1606
            $this->pointIntervalUnit = $pointIntervalUnit;
1607
            break;
1608
        }
1609
        return $this;
1610
    }
1611
1612
    /**
1613
     * Set the point placement.
1614
     *
1615
     * @param string|integer $pointPlacement The point placement.
1616
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1617
     */
1618
    public function setPointPlacement($pointPlacement) {
1619
        switch ($pointPlacement) {
1620
            case null:
1621
            case "between":
1622
            case "on":
1623
            $this->pointPlacement = $pointPlacement;
1624
            break;
1625
        }
1626
        return $this;
1627
    }
1628
1629
    /**
1630
     * Set the point start.
1631
     *
1632
     * @param integer $pointStart The point start.
1633
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1634
     */
1635
    public function setPointStart($pointStart) {
1636
        $this->pointStart = $pointStart;
1637
        return $this;
1638
    }
1639
1640
    /**
1641
     * Set the selected.
1642
     *
1643
     * @param boolean $selected The selected.
1644
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1645
     */
1646
    public function setSelected($selected) {
1647
        $this->selected = $selected;
1648
        return $this;
1649
    }
1650
1651
    /**
1652
     * Set the shadow.
1653
     *
1654
     * @param boolean|array $shadow The shadow.
1655
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1656
     */
1657
    public function setShadow($shadow) {
1658
        $this->shadow = $shadow;
1659
        return $this;
1660
    }
1661
1662
    /**
1663
     * Set the show checkbox.
1664
     *
1665
     * @param boolean $showCheckbox The show checkbox.
1666
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1667
     */
1668
    public function setShowCheckbox($showCheckbox) {
1669
        $this->showCheckbox = $showCheckbox;
1670
        return $this;
1671
    }
1672
1673
    /**
1674
     * Set the show in legend.
1675
     *
1676
     * @param boolean $showInLegend The show in legend.
1677
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1678
     */
1679
    public function setShowInLegend($showInLegend) {
1680
        $this->showInLegend = $showInLegend;
1681
        return $this;
1682
    }
1683
1684
    /**
1685
     * Set the skip keyboard navigation.
1686
     *
1687
     * @param boolean $skipKeyboardNavigation The skip keyboard navigation.
1688
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1689
     */
1690
    public function setSkipKeyboardNavigation($skipKeyboardNavigation) {
1691
        $this->skipKeyboardNavigation = $skipKeyboardNavigation;
1692
        return $this;
1693
    }
1694
1695
    /**
1696
     * Set the soft threshold.
1697
     *
1698
     * @param boolean $softThreshold The soft threshold.
1699
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1700
     */
1701
    public function setSoftThreshold($softThreshold) {
1702
        $this->softThreshold = $softThreshold;
1703
        return $this;
1704
    }
1705
1706
    /**
1707
     * Set the stack.
1708
     *
1709
     * @param string $stack The stack.
1710
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1711
     */
1712
    public function setStack($stack) {
1713
        $this->stack = $stack;
1714
        return $this;
1715
    }
1716
1717
    /**
1718
     * Set the stacking.
1719
     *
1720
     * @param string $stacking The stacking.
1721
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1722
     */
1723
    public function setStacking($stacking) {
1724
        switch ($stacking) {
1725
            case null:
1726
            case "normal":
1727
            case "percent":
1728
            $this->stacking = $stacking;
1729
            break;
1730
        }
1731
        return $this;
1732
    }
1733
1734
    /**
1735
     * Set the states.
1736
     *
1737
     * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Line\HighchartsStates $states The states.
1738
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1739
     */
1740
    public function setStates(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Line\HighchartsStates $states = null) {
1741
        $this->states = $states;
1742
        return $this;
1743
    }
1744
1745
    /**
1746
     * Set the step.
1747
     *
1748
     * @param string $step The step.
1749
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1750
     */
1751
    public function setStep($step) {
1752
        switch ($step) {
1753
            case "center":
1754
            case "left":
1755
            case "right":
1756
            $this->step = $step;
1757
            break;
1758
        }
1759
        return $this;
1760
    }
1761
1762
    /**
1763
     * Set the sticky tracking.
1764
     *
1765
     * @param boolean $stickyTracking The sticky tracking.
1766
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1767
     */
1768
    public function setStickyTracking($stickyTracking) {
1769
        $this->stickyTracking = $stickyTracking;
1770
        return $this;
1771
    }
1772
1773
    /**
1774
     * Set the threshold.
1775
     *
1776
     * @param integer $threshold The threshold.
1777
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1778
     */
1779
    public function setThreshold($threshold) {
1780
        $this->threshold = $threshold;
1781
        return $this;
1782
    }
1783
1784
    /**
1785
     * Set the tooltip.
1786
     *
1787
     * @param array $tooltip The tooltip.
1788
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1789
     */
1790
    public function setTooltip(array $tooltip = null) {
1791
        $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...
1792
        return $this;
1793
    }
1794
1795
    /**
1796
     * Set the turbo threshold.
1797
     *
1798
     * @param integer $turboThreshold The turbo threshold.
1799
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1800
     */
1801
    public function setTurboThreshold($turboThreshold) {
1802
        $this->turboThreshold = $turboThreshold;
1803
        return $this;
1804
    }
1805
1806
    /**
1807
     * Set the type.
1808
     *
1809
     * @param string $type The type.
1810
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1811
     */
1812
    public function setType($type) {
1813
        switch ($type) {
1814
            case null:
1815
            case "area":
1816
            case "arearange":
1817
            case "areaspline":
1818
            case "areasplinerange":
1819
            case "boxplot":
1820
            case "bubble":
1821
            case "column":
1822
            case "columnrange":
1823
            case "errorbar":
1824
            case "funnel":
1825
            case "gauge":
1826
            case "line":
1827
            case "pie":
1828
            case "scatter":
1829
            case "spline":
1830
            case "waterfall":
1831
            $this->type = $type;
1832
            break;
1833
        }
1834
        return $this;
1835
    }
1836
1837
    /**
1838
     * Set the visible.
1839
     *
1840
     * @param boolean $visible The visible.
1841
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1842
     */
1843
    public function setVisible($visible) {
1844
        $this->visible = $visible;
1845
        return $this;
1846
    }
1847
1848
    /**
1849
     * Set the x axis.
1850
     *
1851
     * @param integer|string $xAxis The x axis.
1852
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1853
     */
1854
    public function setXAxis($xAxis) {
1855
        $this->xAxis = $xAxis;
1856
        return $this;
1857
    }
1858
1859
    /**
1860
     * Set the y axis.
1861
     *
1862
     * @param integer|string $yAxis The y axis.
1863
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1864
     */
1865
    public function setYAxis($yAxis) {
1866
        $this->yAxis = $yAxis;
1867
        return $this;
1868
    }
1869
1870
    /**
1871
     * Set the z index.
1872
     *
1873
     * @param integer $zIndex The z index.
1874
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1875
     */
1876
    public function setZIndex($zIndex) {
1877
        $this->zIndex = $zIndex;
1878
        return $this;
1879
    }
1880
1881
    /**
1882
     * Set the zone axis.
1883
     *
1884
     * @param string $zoneAxis The zone axis.
1885
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1886
     */
1887
    public function setZoneAxis($zoneAxis) {
1888
        $this->zoneAxis = $zoneAxis;
1889
        return $this;
1890
    }
1891
1892
    /**
1893
     * Set the zones.
1894
     *
1895
     * @param array $zones The zones.
1896
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsLine Returns the highcharts line.
1897
     */
1898
    public function setZones(array $zones = null) {
1899
        $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...
1900
        return $this;
1901
    }
1902
1903
    /**
1904
     * Convert into an array representing this instance.
1905
     *
1906
     * @return array Returns an array representing this instance.
1907
     */
1908
    public function toArray() {
1909
1910
        // Initialize the output.
1911
        $output = [];
1912
1913
        // Set the allow point select.
1914
        ArrayUtility::set($output, "allowPointSelect", $this->allowPointSelect, [null]);
1915
1916
        // Set the animation.
1917
        ArrayUtility::set($output, "animation", $this->animation, [null]);
1918
1919
        // Set the animation limit.
1920
        ArrayUtility::set($output, "animationLimit", $this->animationLimit, [null]);
1921
1922
        // Set the class name.
1923
        ArrayUtility::set($output, "className", $this->className, [null]);
1924
1925
        // Set the color.
1926
        ArrayUtility::set($output, "color", $this->color, [null]);
1927
1928
        // Set the color index.
1929
        ArrayUtility::set($output, "colorIndex", $this->colorIndex, [null]);
1930
1931
        // Set the connect ends.
1932
        ArrayUtility::set($output, "connectEnds", $this->connectEnds, [null]);
1933
1934
        // Set the connect nulls.
1935
        ArrayUtility::set($output, "connectNulls", $this->connectNulls, [null]);
1936
1937
        // Set the crop threshold.
1938
        ArrayUtility::set($output, "cropThreshold", $this->cropThreshold, [null]);
1939
1940
        // Set the cursor.
1941
        ArrayUtility::set($output, "cursor", $this->cursor, [null]);
1942
1943
        // Set the dash style.
1944
        ArrayUtility::set($output, "dashStyle", $this->dashStyle, [null]);
1945
1946
        // Set the data.
1947
        ArrayUtility::set($output, "data", $this->data, [null]);
1948
1949
        // Set the data labels.
1950
        if (null !== $this->dataLabels) {
1951
            ArrayUtility::set($output, "dataLabels", $this->dataLabels->toArray(), []);
1952
        }
1953
1954
        // Set the description.
1955
        ArrayUtility::set($output, "description", $this->description, [null]);
1956
1957
        // Set the enable mouse tracking.
1958
        ArrayUtility::set($output, "enableMouseTracking", $this->enableMouseTracking, [null]);
1959
1960
        // Set the events.
1961
        if (null !== $this->events) {
1962
            ArrayUtility::set($output, "events", $this->events->toArray(), []);
1963
        }
1964
1965
        // Set the expose element to a11y.
1966
        ArrayUtility::set($output, "exposeElementToA11y", $this->exposeElementToA11y, [null]);
1967
1968
        // Set the find nearest point by.
1969
        ArrayUtility::set($output, "findNearestPointBy", $this->findNearestPointBy, [null]);
1970
1971
        // Set the get extremes from all.
1972
        ArrayUtility::set($output, "getExtremesFromAll", $this->getExtremesFromAll, [null]);
1973
1974
        // Set the id.
1975
        ArrayUtility::set($output, "id", $this->id, [null]);
1976
1977
        // Set the index.
1978
        ArrayUtility::set($output, "index", $this->index, [null]);
1979
1980
        // Set the keys.
1981
        ArrayUtility::set($output, "keys", $this->keys, [null]);
1982
1983
        // Set the legend index.
1984
        ArrayUtility::set($output, "legendIndex", $this->legendIndex, [null]);
1985
1986
        // Set the line width.
1987
        ArrayUtility::set($output, "lineWidth", $this->lineWidth, [null]);
1988
1989
        // Set the linecap.
1990
        ArrayUtility::set($output, "linecap", $this->linecap, [null]);
1991
1992
        // Set the linked to.
1993
        ArrayUtility::set($output, "linkedTo", $this->linkedTo, [null]);
1994
1995
        // Set the marker.
1996
        if (null !== $this->marker) {
1997
            ArrayUtility::set($output, "marker", $this->marker->toArray(), []);
1998
        }
1999
2000
        // Set the name.
2001
        ArrayUtility::set($output, "name", $this->name, [null]);
2002
2003
        // Set the negative color.
2004
        ArrayUtility::set($output, "negativeColor", $this->negativeColor, [null]);
2005
2006
        // Set the point.
2007
        if (null !== $this->point) {
2008
            ArrayUtility::set($output, "point", $this->point->toArray(), []);
2009
        }
2010
2011
        // Set the point description formatter.
2012
        ArrayUtility::set($output, "pointDescriptionFormatter", $this->pointDescriptionFormatter, [null]);
2013
2014
        // Set the point interval.
2015
        ArrayUtility::set($output, "pointInterval", $this->pointInterval, [null]);
2016
2017
        // Set the point interval unit.
2018
        ArrayUtility::set($output, "pointIntervalUnit", $this->pointIntervalUnit, [null]);
2019
2020
        // Set the point placement.
2021
        ArrayUtility::set($output, "pointPlacement", $this->pointPlacement, [null]);
2022
2023
        // Set the point start.
2024
        ArrayUtility::set($output, "pointStart", $this->pointStart, [null]);
2025
2026
        // Set the selected.
2027
        ArrayUtility::set($output, "selected", $this->selected, [null]);
2028
2029
        // Set the shadow.
2030
        ArrayUtility::set($output, "shadow", $this->shadow, [null]);
2031
2032
        // Set the show checkbox.
2033
        ArrayUtility::set($output, "showCheckbox", $this->showCheckbox, [null]);
2034
2035
        // Set the show in legend.
2036
        ArrayUtility::set($output, "showInLegend", $this->showInLegend, [null]);
2037
2038
        // Set the skip keyboard navigation.
2039
        ArrayUtility::set($output, "skipKeyboardNavigation", $this->skipKeyboardNavigation, [null]);
2040
2041
        // Set the soft threshold.
2042
        ArrayUtility::set($output, "softThreshold", $this->softThreshold, [null]);
2043
2044
        // Set the stack.
2045
        ArrayUtility::set($output, "stack", $this->stack, [null]);
2046
2047
        // Set the stacking.
2048
        ArrayUtility::set($output, "stacking", $this->stacking, [null]);
2049
2050
        // Set the states.
2051
        if (null !== $this->states) {
2052
            ArrayUtility::set($output, "states", $this->states->toArray(), []);
2053
        }
2054
2055
        // Set the step.
2056
        ArrayUtility::set($output, "step", $this->step, [null]);
2057
2058
        // Set the sticky tracking.
2059
        ArrayUtility::set($output, "stickyTracking", $this->stickyTracking, [null]);
2060
2061
        // Set the threshold.
2062
        ArrayUtility::set($output, "threshold", $this->threshold, [null]);
2063
2064
        // Set the tooltip.
2065
        ArrayUtility::set($output, "tooltip", $this->tooltip, [null]);
2066
2067
        // Set the turbo threshold.
2068
        ArrayUtility::set($output, "turboThreshold", $this->turboThreshold, [null]);
2069
2070
        // Set the type.
2071
        ArrayUtility::set($output, "type", $this->type, [null]);
2072
2073
        // Set the visible.
2074
        ArrayUtility::set($output, "visible", $this->visible, [null]);
2075
2076
        // Set the x axis.
2077
        ArrayUtility::set($output, "xAxis", $this->xAxis, [null]);
2078
2079
        // Set the y axis.
2080
        ArrayUtility::set($output, "yAxis", $this->yAxis, [null]);
2081
2082
        // Set the z index.
2083
        ArrayUtility::set($output, "zIndex", $this->zIndex, [null]);
2084
2085
        // Set the zone axis.
2086
        ArrayUtility::set($output, "zoneAxis", $this->zoneAxis, [null]);
2087
2088
        // Set the zones.
2089
        ArrayUtility::set($output, "zones", $this->zones, [null]);
2090
2091
        // Return the output.
2092
        return $output;
2093
    }
2094
2095
}
2096