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