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