This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
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; |
||
13 | |||
14 | use JsonSerializable; |
||
15 | use WBW\Library\Core\Utility\Argument\ArrayUtility; |
||
16 | |||
17 | /** |
||
18 | * Highcharts chart. |
||
19 | * |
||
20 | * @author webeweb <https://github.com/webeweb/> |
||
21 | * @package WBW\Bundle\HighchartsBundle\API\Chart |
||
22 | * @version 5.0.14 |
||
23 | * @final |
||
24 | */ |
||
25 | final class HighchartsChart implements JsonSerializable { |
||
26 | |||
27 | /** |
||
28 | * Align ticks. |
||
29 | * |
||
30 | * @var boolean |
||
31 | */ |
||
32 | private $alignTicks = true; |
||
33 | |||
34 | /** |
||
35 | * Animation. |
||
36 | * |
||
37 | * @var boolean|array |
||
38 | */ |
||
39 | private $animation = true; |
||
40 | |||
41 | /** |
||
42 | * Background color. |
||
43 | * |
||
44 | * @var string |
||
45 | */ |
||
46 | private $backgroundColor = "#FFFFFF"; |
||
47 | |||
48 | /** |
||
49 | * Border color. |
||
50 | * |
||
51 | * @var string |
||
52 | */ |
||
53 | private $borderColor = "#335cad"; |
||
54 | |||
55 | /** |
||
56 | * Border radius. |
||
57 | * |
||
58 | * @var integer |
||
59 | */ |
||
60 | private $borderRadius = 0; |
||
61 | |||
62 | /** |
||
63 | * Border width. |
||
64 | * |
||
65 | * @var integer |
||
66 | */ |
||
67 | private $borderWidth = 0; |
||
68 | |||
69 | /** |
||
70 | * Class name. |
||
71 | * |
||
72 | * @var string |
||
73 | */ |
||
74 | private $className; |
||
75 | |||
76 | /** |
||
77 | * Color count. |
||
78 | * |
||
79 | * @var integer |
||
80 | * @since 5.0.0 |
||
81 | */ |
||
82 | private $colorCount = 10; |
||
83 | |||
84 | /** |
||
85 | * Default series type. |
||
86 | * |
||
87 | * @var string |
||
88 | * @deprecated |
||
89 | */ |
||
90 | private $defaultSeriesType = "line"; |
||
91 | |||
92 | /** |
||
93 | * Description. |
||
94 | * |
||
95 | * @var string |
||
96 | * @since 5.0.0 |
||
97 | */ |
||
98 | private $description; |
||
99 | |||
100 | /** |
||
101 | * Events. |
||
102 | * |
||
103 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\Chart\HighchartsEvents |
||
104 | */ |
||
105 | private $events; |
||
106 | |||
107 | /** |
||
108 | * Height. |
||
109 | * |
||
110 | * @var integer|string |
||
111 | */ |
||
112 | private $height; |
||
113 | |||
114 | /** |
||
115 | * Ignore hidden series. |
||
116 | * |
||
117 | * @var boolean |
||
118 | * @since 1.2.0 |
||
119 | */ |
||
120 | private $ignoreHiddenSeries = true; |
||
121 | |||
122 | /** |
||
123 | * Inverted. |
||
124 | * |
||
125 | * @var boolean |
||
126 | */ |
||
127 | private $inverted = false; |
||
128 | |||
129 | /** |
||
130 | * Margin. |
||
131 | * |
||
132 | * @var array |
||
133 | */ |
||
134 | private $margin; |
||
135 | |||
136 | /** |
||
137 | * Margin bottom. |
||
138 | * |
||
139 | * @var integer |
||
140 | * @since 2.0 |
||
141 | */ |
||
142 | private $marginBottom; |
||
143 | |||
144 | /** |
||
145 | * Margin left. |
||
146 | * |
||
147 | * @var integer |
||
148 | * @since 2.0 |
||
149 | */ |
||
150 | private $marginLeft; |
||
151 | |||
152 | /** |
||
153 | * Margin right. |
||
154 | * |
||
155 | * @var integer |
||
156 | * @since 2.0 |
||
157 | */ |
||
158 | private $marginRight; |
||
159 | |||
160 | /** |
||
161 | * Margin top. |
||
162 | * |
||
163 | * @var integer |
||
164 | * @since 2.0 |
||
165 | */ |
||
166 | private $marginTop; |
||
167 | |||
168 | /** |
||
169 | * Options3d. |
||
170 | * |
||
171 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\Chart\HighchartsOptions3d |
||
172 | * @since 4.0 |
||
173 | */ |
||
174 | private $options3d; |
||
175 | |||
176 | /** |
||
177 | * Pan key. |
||
178 | * |
||
179 | * @var string |
||
180 | * @since 4.0.3 |
||
181 | */ |
||
182 | private $panKey; |
||
183 | |||
184 | /** |
||
185 | * Panning. |
||
186 | * |
||
187 | * @var boolean |
||
188 | * @since 4.0.3 |
||
189 | */ |
||
190 | private $panning = false; |
||
191 | |||
192 | /** |
||
193 | * Pinch type. |
||
194 | * |
||
195 | * @var string |
||
196 | * @since 3.0 |
||
197 | */ |
||
198 | private $pinchType; |
||
199 | |||
200 | /** |
||
201 | * Plot background color. |
||
202 | * |
||
203 | * @var string |
||
204 | */ |
||
205 | private $plotBackgroundColor; |
||
206 | |||
207 | /** |
||
208 | * Plot background image. |
||
209 | * |
||
210 | * @var string |
||
211 | */ |
||
212 | private $plotBackgroundImage; |
||
213 | |||
214 | /** |
||
215 | * Plot border color. |
||
216 | * |
||
217 | * @var string |
||
218 | */ |
||
219 | private $plotBorderColor = "#cccccc"; |
||
220 | |||
221 | /** |
||
222 | * Plot border width. |
||
223 | * |
||
224 | * @var integer |
||
225 | */ |
||
226 | private $plotBorderWidth = 0; |
||
227 | |||
228 | /** |
||
229 | * Plot shadow. |
||
230 | * |
||
231 | * @var boolean|array |
||
232 | */ |
||
233 | private $plotShadow = false; |
||
234 | |||
235 | /** |
||
236 | * Polar. |
||
237 | * |
||
238 | * @var boolean |
||
239 | * @since 2.3.0 |
||
240 | */ |
||
241 | private $polar = false; |
||
242 | |||
243 | /** |
||
244 | * Reflow. |
||
245 | * |
||
246 | * @var boolean |
||
247 | * @since 2.1 |
||
248 | */ |
||
249 | private $reflow = true; |
||
250 | |||
251 | /** |
||
252 | * Render to. |
||
253 | * |
||
254 | * @var string |
||
255 | */ |
||
256 | private $renderTo; |
||
257 | |||
258 | /** |
||
259 | * Reset zoom button. |
||
260 | * |
||
261 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\Chart\HighchartsResetZoomButton |
||
262 | */ |
||
263 | private $resetZoomButton; |
||
264 | |||
265 | /** |
||
266 | * Selection marker fill. |
||
267 | * |
||
268 | * @var string |
||
269 | * @since 2.1.7 |
||
270 | */ |
||
271 | private $selectionMarkerFill = "rgba(51,92,173,0.25)"; |
||
272 | |||
273 | /** |
||
274 | * Shadow. |
||
275 | * |
||
276 | * @var boolean|array |
||
277 | */ |
||
278 | private $shadow = false; |
||
279 | |||
280 | /** |
||
281 | * Show axes. |
||
282 | * |
||
283 | * @var boolean |
||
284 | * @since 1.2.5 |
||
285 | */ |
||
286 | private $showAxes = false; |
||
287 | |||
288 | /** |
||
289 | * Spacing. |
||
290 | * |
||
291 | * @var array |
||
292 | * @since 3.0.6 |
||
293 | */ |
||
294 | private $spacing = [10, 10, 15, 10]; |
||
295 | |||
296 | /** |
||
297 | * Spacing bottom. |
||
298 | * |
||
299 | * @var integer |
||
300 | * @since 2.1 |
||
301 | */ |
||
302 | private $spacingBottom = 15; |
||
303 | |||
304 | /** |
||
305 | * Spacing left. |
||
306 | * |
||
307 | * @var integer |
||
308 | * @since 2.1 |
||
309 | */ |
||
310 | private $spacingLeft = 10; |
||
311 | |||
312 | /** |
||
313 | * Spacing right. |
||
314 | * |
||
315 | * @var integer |
||
316 | * @since 2.1 |
||
317 | */ |
||
318 | private $spacingRight = 10; |
||
319 | |||
320 | /** |
||
321 | * Spacing top. |
||
322 | * |
||
323 | * @var integer |
||
324 | * @since 2.1 |
||
325 | */ |
||
326 | private $spacingTop = 10; |
||
327 | |||
328 | /** |
||
329 | * Style. |
||
330 | * |
||
331 | * @var array |
||
332 | */ |
||
333 | private $style = ["fontFamily" => "\"Lucida Grande\", \"Lucida Sans Unicode\", Verdana, Arial, Helvetica, sans-serif", "fontSize" => "12px"]; |
||
334 | |||
335 | /** |
||
336 | * Type. |
||
337 | * |
||
338 | * @var string |
||
339 | * @since 2.1.0 |
||
340 | */ |
||
341 | private $type = "line"; |
||
342 | |||
343 | /** |
||
344 | * Type description. |
||
345 | * |
||
346 | * @var string |
||
347 | * @since 5.0.0 |
||
348 | */ |
||
349 | private $typeDescription; |
||
350 | |||
351 | /** |
||
352 | * Width. |
||
353 | * |
||
354 | * @var integer |
||
355 | */ |
||
356 | private $width; |
||
357 | |||
358 | /** |
||
359 | * Zoom type. |
||
360 | * |
||
361 | * @var string |
||
362 | */ |
||
363 | private $zoomType; |
||
364 | |||
365 | /** |
||
366 | * Constructor. |
||
367 | * |
||
368 | * @param boolean $ignoreDefaultValues Ignore the default values. |
||
369 | */ |
||
370 | public function __construct($ignoreDefaultValues = true) { |
||
371 | if (true === $ignoreDefaultValues) { |
||
372 | $this->clear(); |
||
373 | } |
||
374 | } |
||
375 | |||
376 | /** |
||
377 | * Clear. |
||
378 | * |
||
379 | * @return void |
||
380 | */ |
||
381 | public function clear() { |
||
382 | |||
383 | // Clear the align ticks. |
||
384 | $this->alignTicks = null; |
||
385 | |||
386 | // Clear the animation. |
||
387 | $this->animation = null; |
||
388 | |||
389 | // Clear the background color. |
||
390 | $this->backgroundColor = null; |
||
391 | |||
392 | // Clear the border color. |
||
393 | $this->borderColor = null; |
||
394 | |||
395 | // Clear the border radius. |
||
396 | $this->borderRadius = null; |
||
397 | |||
398 | // Clear the border width. |
||
399 | $this->borderWidth = null; |
||
400 | |||
401 | // Clear the class name. |
||
402 | $this->className = null; |
||
403 | |||
404 | // Clear the color count. |
||
405 | $this->colorCount = null; |
||
406 | |||
407 | // Clear the default series type. |
||
408 | $this->defaultSeriesType = null; |
||
0 ignored issues
–
show
|
|||
409 | |||
410 | // Clear the description. |
||
411 | $this->description = null; |
||
412 | |||
413 | // Clear the events. |
||
414 | if (null !== $this->events) { |
||
415 | $this->events->clear(); |
||
416 | } |
||
417 | |||
418 | // Clear the height. |
||
419 | $this->height = null; |
||
420 | |||
421 | // Clear the ignore hidden series. |
||
422 | $this->ignoreHiddenSeries = null; |
||
423 | |||
424 | // Clear the inverted. |
||
425 | $this->inverted = null; |
||
426 | |||
427 | // Clear the margin. |
||
428 | $this->margin = null; |
||
0 ignored issues
–
show
It seems like
null of type null is incompatible with the declared type array of property $margin .
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.. ![]() |
|||
429 | |||
430 | // Clear the margin bottom. |
||
431 | $this->marginBottom = null; |
||
432 | |||
433 | // Clear the margin left. |
||
434 | $this->marginLeft = null; |
||
435 | |||
436 | // Clear the margin right. |
||
437 | $this->marginRight = null; |
||
438 | |||
439 | // Clear the margin top. |
||
440 | $this->marginTop = null; |
||
441 | |||
442 | // Clear the options3d. |
||
443 | if (null !== $this->options3d) { |
||
444 | $this->options3d->clear(); |
||
445 | } |
||
446 | |||
447 | // Clear the pan key. |
||
448 | $this->panKey = null; |
||
449 | |||
450 | // Clear the panning. |
||
451 | $this->panning = null; |
||
452 | |||
453 | // Clear the pinch type. |
||
454 | $this->pinchType = null; |
||
455 | |||
456 | // Clear the plot background color. |
||
457 | $this->plotBackgroundColor = null; |
||
458 | |||
459 | // Clear the plot background image. |
||
460 | $this->plotBackgroundImage = null; |
||
461 | |||
462 | // Clear the plot border color. |
||
463 | $this->plotBorderColor = null; |
||
464 | |||
465 | // Clear the plot border width. |
||
466 | $this->plotBorderWidth = null; |
||
467 | |||
468 | // Clear the plot shadow. |
||
469 | $this->plotShadow = null; |
||
470 | |||
471 | // Clear the polar. |
||
472 | $this->polar = null; |
||
473 | |||
474 | // Clear the reflow. |
||
475 | $this->reflow = null; |
||
476 | |||
477 | // Clear the render to. |
||
478 | $this->renderTo = null; |
||
479 | |||
480 | // Clear the reset zoom button. |
||
481 | if (null !== $this->resetZoomButton) { |
||
482 | $this->resetZoomButton->clear(); |
||
483 | } |
||
484 | |||
485 | // Clear the selection marker fill. |
||
486 | $this->selectionMarkerFill = null; |
||
487 | |||
488 | // Clear the shadow. |
||
489 | $this->shadow = null; |
||
490 | |||
491 | // Clear the show axes. |
||
492 | $this->showAxes = null; |
||
493 | |||
494 | // Clear the spacing. |
||
495 | $this->spacing = null; |
||
0 ignored issues
–
show
It seems like
null of type null is incompatible with the declared type array of property $spacing .
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.. ![]() |
|||
496 | |||
497 | // Clear the spacing bottom. |
||
498 | $this->spacingBottom = null; |
||
499 | |||
500 | // Clear the spacing left. |
||
501 | $this->spacingLeft = null; |
||
502 | |||
503 | // Clear the spacing right. |
||
504 | $this->spacingRight = null; |
||
505 | |||
506 | // Clear the spacing top. |
||
507 | $this->spacingTop = null; |
||
508 | |||
509 | // Clear the style. |
||
510 | $this->style = null; |
||
0 ignored issues
–
show
It seems like
null of type null is incompatible with the declared type array of property $style .
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.. ![]() |
|||
511 | |||
512 | // Clear the type. |
||
513 | $this->type = null; |
||
514 | |||
515 | // Clear the type description. |
||
516 | $this->typeDescription = null; |
||
517 | |||
518 | // Clear the width. |
||
519 | $this->width = null; |
||
520 | |||
521 | // Clear the zoom type. |
||
522 | $this->zoomType = null; |
||
523 | } |
||
524 | |||
525 | /** |
||
526 | * Get the align ticks. |
||
527 | * |
||
528 | * @return boolean Returns the align ticks. |
||
529 | */ |
||
530 | public function getAlignTicks() { |
||
531 | return $this->alignTicks; |
||
532 | } |
||
533 | |||
534 | /** |
||
535 | * Get the animation. |
||
536 | * |
||
537 | * @return boolean|array Returns the animation. |
||
538 | */ |
||
539 | public function getAnimation() { |
||
540 | return $this->animation; |
||
541 | } |
||
542 | |||
543 | /** |
||
544 | * Get the background color. |
||
545 | * |
||
546 | * @return string Returns the background color. |
||
547 | */ |
||
548 | public function getBackgroundColor() { |
||
549 | return $this->backgroundColor; |
||
550 | } |
||
551 | |||
552 | /** |
||
553 | * Get the border color. |
||
554 | * |
||
555 | * @return string Returns the border color. |
||
556 | */ |
||
557 | public function getBorderColor() { |
||
558 | return $this->borderColor; |
||
559 | } |
||
560 | |||
561 | /** |
||
562 | * Get the border radius. |
||
563 | * |
||
564 | * @return integer Returns the border radius. |
||
565 | */ |
||
566 | public function getBorderRadius() { |
||
567 | return $this->borderRadius; |
||
568 | } |
||
569 | |||
570 | /** |
||
571 | * Get the border width. |
||
572 | * |
||
573 | * @return integer Returns the border width. |
||
574 | */ |
||
575 | public function getBorderWidth() { |
||
576 | return $this->borderWidth; |
||
577 | } |
||
578 | |||
579 | /** |
||
580 | * Get the class name. |
||
581 | * |
||
582 | * @return string Returns the class name. |
||
583 | */ |
||
584 | public function getClassName() { |
||
585 | return $this->className; |
||
586 | } |
||
587 | |||
588 | /** |
||
589 | * Get the color count. |
||
590 | * |
||
591 | * @return integer Returns the color count. |
||
592 | */ |
||
593 | public function getColorCount() { |
||
594 | return $this->colorCount; |
||
595 | } |
||
596 | |||
597 | /** |
||
598 | * Get the default series type. |
||
599 | * |
||
600 | * @return string Returns the default series type. |
||
601 | * @deprecated |
||
602 | */ |
||
603 | public function getDefaultSeriesType() { |
||
604 | return $this->defaultSeriesType; |
||
0 ignored issues
–
show
The property
WBW\Bundle\HighchartsBun...art::$defaultSeriesType has been deprecated.
This property has been deprecated. The supplier of the class has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead. ![]() |
|||
605 | } |
||
606 | |||
607 | /** |
||
608 | * Get the description. |
||
609 | * |
||
610 | * @return string Returns the description. |
||
611 | */ |
||
612 | public function getDescription() { |
||
613 | return $this->description; |
||
614 | } |
||
615 | |||
616 | /** |
||
617 | * Get the events. |
||
618 | * |
||
619 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Chart\HighchartsEvents Returns the events. |
||
620 | */ |
||
621 | public function getEvents() { |
||
622 | return $this->events; |
||
623 | } |
||
624 | |||
625 | /** |
||
626 | * Get the height. |
||
627 | * |
||
628 | * @return integer|string Returns the height. |
||
629 | */ |
||
630 | public function getHeight() { |
||
631 | return $this->height; |
||
632 | } |
||
633 | |||
634 | /** |
||
635 | * Get the ignore hidden series. |
||
636 | * |
||
637 | * @return boolean Returns the ignore hidden series. |
||
638 | */ |
||
639 | public function getIgnoreHiddenSeries() { |
||
640 | return $this->ignoreHiddenSeries; |
||
641 | } |
||
642 | |||
643 | /** |
||
644 | * Get the inverted. |
||
645 | * |
||
646 | * @return boolean Returns the inverted. |
||
647 | */ |
||
648 | public function getInverted() { |
||
649 | return $this->inverted; |
||
650 | } |
||
651 | |||
652 | /** |
||
653 | * Get the margin. |
||
654 | * |
||
655 | * @return array Returns the margin. |
||
656 | */ |
||
657 | public function getMargin() { |
||
658 | return $this->margin; |
||
659 | } |
||
660 | |||
661 | /** |
||
662 | * Get the margin bottom. |
||
663 | * |
||
664 | * @return integer Returns the margin bottom. |
||
665 | */ |
||
666 | public function getMarginBottom() { |
||
667 | return $this->marginBottom; |
||
668 | } |
||
669 | |||
670 | /** |
||
671 | * Get the margin left. |
||
672 | * |
||
673 | * @return integer Returns the margin left. |
||
674 | */ |
||
675 | public function getMarginLeft() { |
||
676 | return $this->marginLeft; |
||
677 | } |
||
678 | |||
679 | /** |
||
680 | * Get the margin right. |
||
681 | * |
||
682 | * @return integer Returns the margin right. |
||
683 | */ |
||
684 | public function getMarginRight() { |
||
685 | return $this->marginRight; |
||
686 | } |
||
687 | |||
688 | /** |
||
689 | * Get the margin top. |
||
690 | * |
||
691 | * @return integer Returns the margin top. |
||
692 | */ |
||
693 | public function getMarginTop() { |
||
694 | return $this->marginTop; |
||
695 | } |
||
696 | |||
697 | /** |
||
698 | * Get the options3d. |
||
699 | * |
||
700 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Chart\HighchartsOptions3d Returns the options3d. |
||
701 | */ |
||
702 | public function getOptions3d() { |
||
703 | return $this->options3d; |
||
704 | } |
||
705 | |||
706 | /** |
||
707 | * Get the pan key. |
||
708 | * |
||
709 | * @return string Returns the pan key. |
||
710 | */ |
||
711 | public function getPanKey() { |
||
712 | return $this->panKey; |
||
713 | } |
||
714 | |||
715 | /** |
||
716 | * Get the panning. |
||
717 | * |
||
718 | * @return boolean Returns the panning. |
||
719 | */ |
||
720 | public function getPanning() { |
||
721 | return $this->panning; |
||
722 | } |
||
723 | |||
724 | /** |
||
725 | * Get the pinch type. |
||
726 | * |
||
727 | * @return string Returns the pinch type. |
||
728 | */ |
||
729 | public function getPinchType() { |
||
730 | return $this->pinchType; |
||
731 | } |
||
732 | |||
733 | /** |
||
734 | * Get the plot background color. |
||
735 | * |
||
736 | * @return string Returns the plot background color. |
||
737 | */ |
||
738 | public function getPlotBackgroundColor() { |
||
739 | return $this->plotBackgroundColor; |
||
740 | } |
||
741 | |||
742 | /** |
||
743 | * Get the plot background image. |
||
744 | * |
||
745 | * @return string Returns the plot background image. |
||
746 | */ |
||
747 | public function getPlotBackgroundImage() { |
||
748 | return $this->plotBackgroundImage; |
||
749 | } |
||
750 | |||
751 | /** |
||
752 | * Get the plot border color. |
||
753 | * |
||
754 | * @return string Returns the plot border color. |
||
755 | */ |
||
756 | public function getPlotBorderColor() { |
||
757 | return $this->plotBorderColor; |
||
758 | } |
||
759 | |||
760 | /** |
||
761 | * Get the plot border width. |
||
762 | * |
||
763 | * @return integer Returns the plot border width. |
||
764 | */ |
||
765 | public function getPlotBorderWidth() { |
||
766 | return $this->plotBorderWidth; |
||
767 | } |
||
768 | |||
769 | /** |
||
770 | * Get the plot shadow. |
||
771 | * |
||
772 | * @return boolean|array Returns the plot shadow. |
||
773 | */ |
||
774 | public function getPlotShadow() { |
||
775 | return $this->plotShadow; |
||
776 | } |
||
777 | |||
778 | /** |
||
779 | * Get the polar. |
||
780 | * |
||
781 | * @return boolean Returns the polar. |
||
782 | */ |
||
783 | public function getPolar() { |
||
784 | return $this->polar; |
||
785 | } |
||
786 | |||
787 | /** |
||
788 | * Get the reflow. |
||
789 | * |
||
790 | * @return boolean Returns the reflow. |
||
791 | */ |
||
792 | public function getReflow() { |
||
793 | return $this->reflow; |
||
794 | } |
||
795 | |||
796 | /** |
||
797 | * Get the render to. |
||
798 | * |
||
799 | * @return string Returns the render to. |
||
800 | */ |
||
801 | public function getRenderTo() { |
||
802 | return $this->renderTo; |
||
803 | } |
||
804 | |||
805 | /** |
||
806 | * Get the reset zoom button. |
||
807 | * |
||
808 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Chart\HighchartsResetZoomButton Returns the reset zoom button. |
||
809 | */ |
||
810 | public function getResetZoomButton() { |
||
811 | return $this->resetZoomButton; |
||
812 | } |
||
813 | |||
814 | /** |
||
815 | * Get the selection marker fill. |
||
816 | * |
||
817 | * @return string Returns the selection marker fill. |
||
818 | */ |
||
819 | public function getSelectionMarkerFill() { |
||
820 | return $this->selectionMarkerFill; |
||
821 | } |
||
822 | |||
823 | /** |
||
824 | * Get the shadow. |
||
825 | * |
||
826 | * @return boolean|array Returns the shadow. |
||
827 | */ |
||
828 | public function getShadow() { |
||
829 | return $this->shadow; |
||
830 | } |
||
831 | |||
832 | /** |
||
833 | * Get the show axes. |
||
834 | * |
||
835 | * @return boolean Returns the show axes. |
||
836 | */ |
||
837 | public function getShowAxes() { |
||
838 | return $this->showAxes; |
||
839 | } |
||
840 | |||
841 | /** |
||
842 | * Get the spacing. |
||
843 | * |
||
844 | * @return array Returns the spacing. |
||
845 | */ |
||
846 | public function getSpacing() { |
||
847 | return $this->spacing; |
||
848 | } |
||
849 | |||
850 | /** |
||
851 | * Get the spacing bottom. |
||
852 | * |
||
853 | * @return integer Returns the spacing bottom. |
||
854 | */ |
||
855 | public function getSpacingBottom() { |
||
856 | return $this->spacingBottom; |
||
857 | } |
||
858 | |||
859 | /** |
||
860 | * Get the spacing left. |
||
861 | * |
||
862 | * @return integer Returns the spacing left. |
||
863 | */ |
||
864 | public function getSpacingLeft() { |
||
865 | return $this->spacingLeft; |
||
866 | } |
||
867 | |||
868 | /** |
||
869 | * Get the spacing right. |
||
870 | * |
||
871 | * @return integer Returns the spacing right. |
||
872 | */ |
||
873 | public function getSpacingRight() { |
||
874 | return $this->spacingRight; |
||
875 | } |
||
876 | |||
877 | /** |
||
878 | * Get the spacing top. |
||
879 | * |
||
880 | * @return integer Returns the spacing top. |
||
881 | */ |
||
882 | public function getSpacingTop() { |
||
883 | return $this->spacingTop; |
||
884 | } |
||
885 | |||
886 | /** |
||
887 | * Get the style. |
||
888 | * |
||
889 | * @return array Returns the style. |
||
890 | */ |
||
891 | public function getStyle() { |
||
892 | return $this->style; |
||
893 | } |
||
894 | |||
895 | /** |
||
896 | * Get the type. |
||
897 | * |
||
898 | * @return string Returns the type. |
||
899 | */ |
||
900 | public function getType() { |
||
901 | return $this->type; |
||
902 | } |
||
903 | |||
904 | /** |
||
905 | * Get the type description. |
||
906 | * |
||
907 | * @return string Returns the type description. |
||
908 | */ |
||
909 | public function getTypeDescription() { |
||
910 | return $this->typeDescription; |
||
911 | } |
||
912 | |||
913 | /** |
||
914 | * Get the width. |
||
915 | * |
||
916 | * @return integer Returns the width. |
||
917 | */ |
||
918 | public function getWidth() { |
||
919 | return $this->width; |
||
920 | } |
||
921 | |||
922 | /** |
||
923 | * Get the zoom type. |
||
924 | * |
||
925 | * @return string Returns the zoom type. |
||
926 | */ |
||
927 | public function getZoomType() { |
||
928 | return $this->zoomType; |
||
929 | } |
||
930 | |||
931 | /** |
||
932 | * Serialize this instance. |
||
933 | * |
||
934 | * @return array Returns an array representing this instance. |
||
935 | */ |
||
936 | public function jsonSerialize() { |
||
937 | return $this->toArray(); |
||
938 | } |
||
939 | |||
940 | /** |
||
941 | * Create a new events. |
||
942 | * |
||
943 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Chart\HighchartsEvents Returns the events. |
||
944 | */ |
||
945 | public function newEvents() { |
||
946 | $this->events = new \WBW\Bundle\HighchartsBundle\API\Chart\Chart\HighchartsEvents(); |
||
947 | return $this->events; |
||
948 | } |
||
949 | |||
950 | /** |
||
951 | * Create a new options3d. |
||
952 | * |
||
953 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Chart\HighchartsOptions3d Returns the options3d. |
||
954 | */ |
||
955 | public function newOptions3d() { |
||
956 | $this->options3d = new \WBW\Bundle\HighchartsBundle\API\Chart\Chart\HighchartsOptions3d(); |
||
957 | return $this->options3d; |
||
958 | } |
||
959 | |||
960 | /** |
||
961 | * Create a new reset zoom button. |
||
962 | * |
||
963 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Chart\HighchartsResetZoomButton Returns the reset zoom button. |
||
964 | */ |
||
965 | public function newResetZoomButton() { |
||
966 | $this->resetZoomButton = new \WBW\Bundle\HighchartsBundle\API\Chart\Chart\HighchartsResetZoomButton(); |
||
967 | return $this->resetZoomButton; |
||
968 | } |
||
969 | |||
970 | /** |
||
971 | * Set the align ticks. |
||
972 | * |
||
973 | * @param boolean $alignTicks The align ticks. |
||
974 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
975 | */ |
||
976 | public function setAlignTicks($alignTicks) { |
||
977 | $this->alignTicks = $alignTicks; |
||
978 | return $this; |
||
979 | } |
||
980 | |||
981 | /** |
||
982 | * Set the animation. |
||
983 | * |
||
984 | * @param boolean|array $animation The animation. |
||
985 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
986 | */ |
||
987 | public function setAnimation($animation) { |
||
988 | $this->animation = $animation; |
||
989 | return $this; |
||
990 | } |
||
991 | |||
992 | /** |
||
993 | * Set the background color. |
||
994 | * |
||
995 | * @param string $backgroundColor The background color. |
||
996 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
997 | */ |
||
998 | public function setBackgroundColor($backgroundColor) { |
||
999 | $this->backgroundColor = $backgroundColor; |
||
1000 | return $this; |
||
1001 | } |
||
1002 | |||
1003 | /** |
||
1004 | * Set the border color. |
||
1005 | * |
||
1006 | * @param string $borderColor The border color. |
||
1007 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1008 | */ |
||
1009 | public function setBorderColor($borderColor) { |
||
1010 | $this->borderColor = $borderColor; |
||
1011 | return $this; |
||
1012 | } |
||
1013 | |||
1014 | /** |
||
1015 | * Set the border radius. |
||
1016 | * |
||
1017 | * @param integer $borderRadius The border radius. |
||
1018 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1019 | */ |
||
1020 | public function setBorderRadius($borderRadius) { |
||
1021 | $this->borderRadius = $borderRadius; |
||
1022 | return $this; |
||
1023 | } |
||
1024 | |||
1025 | /** |
||
1026 | * Set the border width. |
||
1027 | * |
||
1028 | * @param integer $borderWidth The border width. |
||
1029 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1030 | */ |
||
1031 | public function setBorderWidth($borderWidth) { |
||
1032 | $this->borderWidth = $borderWidth; |
||
1033 | return $this; |
||
1034 | } |
||
1035 | |||
1036 | /** |
||
1037 | * Set the class name. |
||
1038 | * |
||
1039 | * @param string $className The class name. |
||
1040 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1041 | */ |
||
1042 | public function setClassName($className) { |
||
1043 | $this->className = $className; |
||
1044 | return $this; |
||
1045 | } |
||
1046 | |||
1047 | /** |
||
1048 | * Set the color count. |
||
1049 | * |
||
1050 | * @param integer $colorCount The color count. |
||
1051 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1052 | */ |
||
1053 | public function setColorCount($colorCount) { |
||
1054 | $this->colorCount = $colorCount; |
||
1055 | return $this; |
||
1056 | } |
||
1057 | |||
1058 | /** |
||
1059 | * Set the default series type. |
||
1060 | * |
||
1061 | * @param string $defaultSeriesType The default series type. |
||
1062 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1063 | * @deprecated |
||
1064 | */ |
||
1065 | public function setDefaultSeriesType($defaultSeriesType) { |
||
1066 | switch ($defaultSeriesType) { |
||
1067 | case "area": |
||
1068 | case "areaspline": |
||
1069 | case "column": |
||
1070 | case "line": |
||
1071 | case "pie": |
||
1072 | case "spline": |
||
1073 | $this->defaultSeriesType = $defaultSeriesType; |
||
0 ignored issues
–
show
The property
WBW\Bundle\HighchartsBun...art::$defaultSeriesType has been deprecated.
This property has been deprecated. The supplier of the class has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead. ![]() |
|||
1074 | break; |
||
1075 | } |
||
1076 | return $this; |
||
1077 | } |
||
1078 | |||
1079 | /** |
||
1080 | * Set the description. |
||
1081 | * |
||
1082 | * @param string $description The description. |
||
1083 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1084 | */ |
||
1085 | public function setDescription($description) { |
||
1086 | $this->description = $description; |
||
1087 | return $this; |
||
1088 | } |
||
1089 | |||
1090 | /** |
||
1091 | * Set the events. |
||
1092 | * |
||
1093 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\Chart\HighchartsEvents $events The events. |
||
1094 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1095 | */ |
||
1096 | public function setEvents(\WBW\Bundle\HighchartsBundle\API\Chart\Chart\HighchartsEvents $events = null) { |
||
1097 | $this->events = $events; |
||
1098 | return $this; |
||
1099 | } |
||
1100 | |||
1101 | /** |
||
1102 | * Set the height. |
||
1103 | * |
||
1104 | * @param integer|string $height The height. |
||
1105 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1106 | */ |
||
1107 | public function setHeight($height) { |
||
1108 | $this->height = $height; |
||
1109 | return $this; |
||
1110 | } |
||
1111 | |||
1112 | /** |
||
1113 | * Set the ignore hidden series. |
||
1114 | * |
||
1115 | * @param boolean $ignoreHiddenSeries The ignore hidden series. |
||
1116 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1117 | */ |
||
1118 | public function setIgnoreHiddenSeries($ignoreHiddenSeries) { |
||
1119 | $this->ignoreHiddenSeries = $ignoreHiddenSeries; |
||
1120 | return $this; |
||
1121 | } |
||
1122 | |||
1123 | /** |
||
1124 | * Set the inverted. |
||
1125 | * |
||
1126 | * @param boolean $inverted The inverted. |
||
1127 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1128 | */ |
||
1129 | public function setInverted($inverted) { |
||
1130 | $this->inverted = $inverted; |
||
1131 | return $this; |
||
1132 | } |
||
1133 | |||
1134 | /** |
||
1135 | * Set the margin. |
||
1136 | * |
||
1137 | * @param array $margin The margin. |
||
1138 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1139 | */ |
||
1140 | public function setMargin(array $margin = null) { |
||
1141 | $this->margin = $margin; |
||
0 ignored issues
–
show
It seems like
$margin can be null . However, the property $margin 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 ![]() |
|||
1142 | return $this; |
||
1143 | } |
||
1144 | |||
1145 | /** |
||
1146 | * Set the margin bottom. |
||
1147 | * |
||
1148 | * @param integer $marginBottom The margin bottom. |
||
1149 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1150 | */ |
||
1151 | public function setMarginBottom($marginBottom) { |
||
1152 | $this->marginBottom = $marginBottom; |
||
1153 | return $this; |
||
1154 | } |
||
1155 | |||
1156 | /** |
||
1157 | * Set the margin left. |
||
1158 | * |
||
1159 | * @param integer $marginLeft The margin left. |
||
1160 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1161 | */ |
||
1162 | public function setMarginLeft($marginLeft) { |
||
1163 | $this->marginLeft = $marginLeft; |
||
1164 | return $this; |
||
1165 | } |
||
1166 | |||
1167 | /** |
||
1168 | * Set the margin right. |
||
1169 | * |
||
1170 | * @param integer $marginRight The margin right. |
||
1171 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1172 | */ |
||
1173 | public function setMarginRight($marginRight) { |
||
1174 | $this->marginRight = $marginRight; |
||
1175 | return $this; |
||
1176 | } |
||
1177 | |||
1178 | /** |
||
1179 | * Set the margin top. |
||
1180 | * |
||
1181 | * @param integer $marginTop The margin top. |
||
1182 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1183 | */ |
||
1184 | public function setMarginTop($marginTop) { |
||
1185 | $this->marginTop = $marginTop; |
||
1186 | return $this; |
||
1187 | } |
||
1188 | |||
1189 | /** |
||
1190 | * Set the options3d. |
||
1191 | * |
||
1192 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\Chart\HighchartsOptions3d $options3d The options3d. |
||
1193 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1194 | */ |
||
1195 | public function setOptions3d(\WBW\Bundle\HighchartsBundle\API\Chart\Chart\HighchartsOptions3d $options3d = null) { |
||
1196 | $this->options3d = $options3d; |
||
1197 | return $this; |
||
1198 | } |
||
1199 | |||
1200 | /** |
||
1201 | * Set the pan key. |
||
1202 | * |
||
1203 | * @param string $panKey The pan key. |
||
1204 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1205 | */ |
||
1206 | public function setPanKey($panKey) { |
||
1207 | switch ($panKey) { |
||
1208 | case null: |
||
1209 | case "alt": |
||
1210 | case "ctrl": |
||
1211 | case "meta": |
||
1212 | case "shift": |
||
1213 | $this->panKey = $panKey; |
||
1214 | break; |
||
1215 | } |
||
1216 | return $this; |
||
1217 | } |
||
1218 | |||
1219 | /** |
||
1220 | * Set the panning. |
||
1221 | * |
||
1222 | * @param boolean $panning The panning. |
||
1223 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1224 | */ |
||
1225 | public function setPanning($panning) { |
||
1226 | $this->panning = $panning; |
||
1227 | return $this; |
||
1228 | } |
||
1229 | |||
1230 | /** |
||
1231 | * Set the pinch type. |
||
1232 | * |
||
1233 | * @param string $pinchType The pinch type. |
||
1234 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1235 | */ |
||
1236 | public function setPinchType($pinchType) { |
||
1237 | switch ($pinchType) { |
||
1238 | case "x": |
||
1239 | case "xy": |
||
1240 | case "y": |
||
1241 | $this->pinchType = $pinchType; |
||
1242 | break; |
||
1243 | } |
||
1244 | return $this; |
||
1245 | } |
||
1246 | |||
1247 | /** |
||
1248 | * Set the plot background color. |
||
1249 | * |
||
1250 | * @param string $plotBackgroundColor The plot background color. |
||
1251 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1252 | */ |
||
1253 | public function setPlotBackgroundColor($plotBackgroundColor) { |
||
1254 | $this->plotBackgroundColor = $plotBackgroundColor; |
||
1255 | return $this; |
||
1256 | } |
||
1257 | |||
1258 | /** |
||
1259 | * Set the plot background image. |
||
1260 | * |
||
1261 | * @param string $plotBackgroundImage The plot background image. |
||
1262 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1263 | */ |
||
1264 | public function setPlotBackgroundImage($plotBackgroundImage) { |
||
1265 | $this->plotBackgroundImage = $plotBackgroundImage; |
||
1266 | return $this; |
||
1267 | } |
||
1268 | |||
1269 | /** |
||
1270 | * Set the plot border color. |
||
1271 | * |
||
1272 | * @param string $plotBorderColor The plot border color. |
||
1273 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1274 | */ |
||
1275 | public function setPlotBorderColor($plotBorderColor) { |
||
1276 | $this->plotBorderColor = $plotBorderColor; |
||
1277 | return $this; |
||
1278 | } |
||
1279 | |||
1280 | /** |
||
1281 | * Set the plot border width. |
||
1282 | * |
||
1283 | * @param integer $plotBorderWidth The plot border width. |
||
1284 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1285 | */ |
||
1286 | public function setPlotBorderWidth($plotBorderWidth) { |
||
1287 | $this->plotBorderWidth = $plotBorderWidth; |
||
1288 | return $this; |
||
1289 | } |
||
1290 | |||
1291 | /** |
||
1292 | * Set the plot shadow. |
||
1293 | * |
||
1294 | * @param boolean|array $plotShadow The plot shadow. |
||
1295 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1296 | */ |
||
1297 | public function setPlotShadow($plotShadow) { |
||
1298 | $this->plotShadow = $plotShadow; |
||
1299 | return $this; |
||
1300 | } |
||
1301 | |||
1302 | /** |
||
1303 | * Set the polar. |
||
1304 | * |
||
1305 | * @param boolean $polar The polar. |
||
1306 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1307 | */ |
||
1308 | public function setPolar($polar) { |
||
1309 | $this->polar = $polar; |
||
1310 | return $this; |
||
1311 | } |
||
1312 | |||
1313 | /** |
||
1314 | * Set the reflow. |
||
1315 | * |
||
1316 | * @param boolean $reflow The reflow. |
||
1317 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1318 | */ |
||
1319 | public function setReflow($reflow) { |
||
1320 | $this->reflow = $reflow; |
||
1321 | return $this; |
||
1322 | } |
||
1323 | |||
1324 | /** |
||
1325 | * Set the render to. |
||
1326 | * |
||
1327 | * @param string $renderTo The render to. |
||
1328 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1329 | */ |
||
1330 | public function setRenderTo($renderTo) { |
||
1331 | $this->renderTo = $renderTo; |
||
1332 | return $this; |
||
1333 | } |
||
1334 | |||
1335 | /** |
||
1336 | * Set the reset zoom button. |
||
1337 | * |
||
1338 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\Chart\HighchartsResetZoomButton $resetZoomButton The reset zoom button. |
||
1339 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1340 | */ |
||
1341 | public function setResetZoomButton(\WBW\Bundle\HighchartsBundle\API\Chart\Chart\HighchartsResetZoomButton $resetZoomButton = null) { |
||
1342 | $this->resetZoomButton = $resetZoomButton; |
||
1343 | return $this; |
||
1344 | } |
||
1345 | |||
1346 | /** |
||
1347 | * Set the selection marker fill. |
||
1348 | * |
||
1349 | * @param string $selectionMarkerFill The selection marker fill. |
||
1350 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1351 | */ |
||
1352 | public function setSelectionMarkerFill($selectionMarkerFill) { |
||
1353 | $this->selectionMarkerFill = $selectionMarkerFill; |
||
1354 | return $this; |
||
1355 | } |
||
1356 | |||
1357 | /** |
||
1358 | * Set the shadow. |
||
1359 | * |
||
1360 | * @param boolean|array $shadow The shadow. |
||
1361 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1362 | */ |
||
1363 | public function setShadow($shadow) { |
||
1364 | $this->shadow = $shadow; |
||
1365 | return $this; |
||
1366 | } |
||
1367 | |||
1368 | /** |
||
1369 | * Set the show axes. |
||
1370 | * |
||
1371 | * @param boolean $showAxes The show axes. |
||
1372 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1373 | */ |
||
1374 | public function setShowAxes($showAxes) { |
||
1375 | $this->showAxes = $showAxes; |
||
1376 | return $this; |
||
1377 | } |
||
1378 | |||
1379 | /** |
||
1380 | * Set the spacing. |
||
1381 | * |
||
1382 | * @param array $spacing The spacing. |
||
1383 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1384 | */ |
||
1385 | public function setSpacing(array $spacing = null) { |
||
1386 | $this->spacing = $spacing; |
||
0 ignored issues
–
show
It seems like
$spacing can be null . However, the property $spacing 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 ![]() |
|||
1387 | return $this; |
||
1388 | } |
||
1389 | |||
1390 | /** |
||
1391 | * Set the spacing bottom. |
||
1392 | * |
||
1393 | * @param integer $spacingBottom The spacing bottom. |
||
1394 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1395 | */ |
||
1396 | public function setSpacingBottom($spacingBottom) { |
||
1397 | $this->spacingBottom = $spacingBottom; |
||
1398 | return $this; |
||
1399 | } |
||
1400 | |||
1401 | /** |
||
1402 | * Set the spacing left. |
||
1403 | * |
||
1404 | * @param integer $spacingLeft The spacing left. |
||
1405 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1406 | */ |
||
1407 | public function setSpacingLeft($spacingLeft) { |
||
1408 | $this->spacingLeft = $spacingLeft; |
||
1409 | return $this; |
||
1410 | } |
||
1411 | |||
1412 | /** |
||
1413 | * Set the spacing right. |
||
1414 | * |
||
1415 | * @param integer $spacingRight The spacing right. |
||
1416 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1417 | */ |
||
1418 | public function setSpacingRight($spacingRight) { |
||
1419 | $this->spacingRight = $spacingRight; |
||
1420 | return $this; |
||
1421 | } |
||
1422 | |||
1423 | /** |
||
1424 | * Set the spacing top. |
||
1425 | * |
||
1426 | * @param integer $spacingTop The spacing top. |
||
1427 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1428 | */ |
||
1429 | public function setSpacingTop($spacingTop) { |
||
1430 | $this->spacingTop = $spacingTop; |
||
1431 | return $this; |
||
1432 | } |
||
1433 | |||
1434 | /** |
||
1435 | * Set the style. |
||
1436 | * |
||
1437 | * @param array $style The style. |
||
1438 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1439 | */ |
||
1440 | public function setStyle(array $style = null) { |
||
1441 | $this->style = $style; |
||
0 ignored issues
–
show
It seems like
$style can be null . However, the property $style 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 ![]() |
|||
1442 | return $this; |
||
1443 | } |
||
1444 | |||
1445 | /** |
||
1446 | * Set the type. |
||
1447 | * |
||
1448 | * @param string $type The type. |
||
1449 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1450 | */ |
||
1451 | public function setType($type) { |
||
1452 | switch ($type) { |
||
1453 | case "area": |
||
1454 | case "arearange": |
||
1455 | case "areaspline": |
||
1456 | case "areasplinerange": |
||
1457 | case "bar": |
||
1458 | case "boxplot": |
||
1459 | case "bubble": |
||
1460 | case "column": |
||
1461 | case "columnrange": |
||
1462 | case "errorbar": |
||
1463 | case "funnel": |
||
1464 | case "gauge": |
||
1465 | case "heatmap": |
||
1466 | case "line": |
||
1467 | case "pie": |
||
1468 | case "polygon": |
||
1469 | case "pyramid": |
||
1470 | case "scatter": |
||
1471 | case "solidgauge": |
||
1472 | case "spline": |
||
1473 | case "treemap": |
||
1474 | case "waterfall": |
||
1475 | $this->type = $type; |
||
1476 | break; |
||
1477 | } |
||
1478 | return $this; |
||
1479 | } |
||
1480 | |||
1481 | /** |
||
1482 | * Set the type description. |
||
1483 | * |
||
1484 | * @param string $typeDescription The type description. |
||
1485 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1486 | */ |
||
1487 | public function setTypeDescription($typeDescription) { |
||
1488 | $this->typeDescription = $typeDescription; |
||
1489 | return $this; |
||
1490 | } |
||
1491 | |||
1492 | /** |
||
1493 | * Set the width. |
||
1494 | * |
||
1495 | * @param integer $width The width. |
||
1496 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1497 | */ |
||
1498 | public function setWidth($width) { |
||
1499 | $this->width = $width; |
||
1500 | return $this; |
||
1501 | } |
||
1502 | |||
1503 | /** |
||
1504 | * Set the zoom type. |
||
1505 | * |
||
1506 | * @param string $zoomType The zoom type. |
||
1507 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the highcharts chart. |
||
1508 | */ |
||
1509 | public function setZoomType($zoomType) { |
||
1510 | switch ($zoomType) { |
||
1511 | case null: |
||
1512 | case "x": |
||
1513 | case "xy": |
||
1514 | case "y": |
||
1515 | $this->zoomType = $zoomType; |
||
1516 | break; |
||
1517 | } |
||
1518 | return $this; |
||
1519 | } |
||
1520 | |||
1521 | /** |
||
1522 | * Convert into an array representing this instance. |
||
1523 | * |
||
1524 | * @return array Returns an array representing this instance. |
||
1525 | */ |
||
1526 | public function toArray() { |
||
1527 | |||
1528 | // Initialize the output. |
||
1529 | $output = []; |
||
1530 | |||
1531 | // Set the align ticks. |
||
1532 | ArrayUtility::set($output, "alignTicks", $this->alignTicks, [null]); |
||
1533 | |||
1534 | // Set the animation. |
||
1535 | ArrayUtility::set($output, "animation", $this->animation, [null]); |
||
1536 | |||
1537 | // Set the background color. |
||
1538 | ArrayUtility::set($output, "backgroundColor", $this->backgroundColor, [null]); |
||
1539 | |||
1540 | // Set the border color. |
||
1541 | ArrayUtility::set($output, "borderColor", $this->borderColor, [null]); |
||
1542 | |||
1543 | // Set the border radius. |
||
1544 | ArrayUtility::set($output, "borderRadius", $this->borderRadius, [null]); |
||
1545 | |||
1546 | // Set the border width. |
||
1547 | ArrayUtility::set($output, "borderWidth", $this->borderWidth, [null]); |
||
1548 | |||
1549 | // Set the class name. |
||
1550 | ArrayUtility::set($output, "className", $this->className, [null]); |
||
1551 | |||
1552 | // Set the color count. |
||
1553 | ArrayUtility::set($output, "colorCount", $this->colorCount, [null]); |
||
1554 | |||
1555 | // Set the default series type. |
||
1556 | ArrayUtility::set($output, "defaultSeriesType", $this->defaultSeriesType, [null]); |
||
0 ignored issues
–
show
The property
WBW\Bundle\HighchartsBun...art::$defaultSeriesType has been deprecated.
This property has been deprecated. The supplier of the class has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead. ![]() |
|||
1557 | |||
1558 | // Set the description. |
||
1559 | ArrayUtility::set($output, "description", $this->description, [null]); |
||
1560 | |||
1561 | // Set the events. |
||
1562 | if (null !== $this->events) { |
||
1563 | ArrayUtility::set($output, "events", $this->events->toArray(), []); |
||
1564 | } |
||
1565 | |||
1566 | // Set the height. |
||
1567 | ArrayUtility::set($output, "height", $this->height, [null]); |
||
1568 | |||
1569 | // Set the ignore hidden series. |
||
1570 | ArrayUtility::set($output, "ignoreHiddenSeries", $this->ignoreHiddenSeries, [null]); |
||
1571 | |||
1572 | // Set the inverted. |
||
1573 | ArrayUtility::set($output, "inverted", $this->inverted, [null]); |
||
1574 | |||
1575 | // Set the margin. |
||
1576 | ArrayUtility::set($output, "margin", $this->margin, [null]); |
||
1577 | |||
1578 | // Set the margin bottom. |
||
1579 | ArrayUtility::set($output, "marginBottom", $this->marginBottom, [null]); |
||
1580 | |||
1581 | // Set the margin left. |
||
1582 | ArrayUtility::set($output, "marginLeft", $this->marginLeft, [null]); |
||
1583 | |||
1584 | // Set the margin right. |
||
1585 | ArrayUtility::set($output, "marginRight", $this->marginRight, [null]); |
||
1586 | |||
1587 | // Set the margin top. |
||
1588 | ArrayUtility::set($output, "marginTop", $this->marginTop, [null]); |
||
1589 | |||
1590 | // Set the options3d. |
||
1591 | if (null !== $this->options3d) { |
||
1592 | ArrayUtility::set($output, "options3d", $this->options3d->toArray(), []); |
||
1593 | } |
||
1594 | |||
1595 | // Set the pan key. |
||
1596 | ArrayUtility::set($output, "panKey", $this->panKey, [null]); |
||
1597 | |||
1598 | // Set the panning. |
||
1599 | ArrayUtility::set($output, "panning", $this->panning, [null]); |
||
1600 | |||
1601 | // Set the pinch type. |
||
1602 | ArrayUtility::set($output, "pinchType", $this->pinchType, [null]); |
||
1603 | |||
1604 | // Set the plot background color. |
||
1605 | ArrayUtility::set($output, "plotBackgroundColor", $this->plotBackgroundColor, [null]); |
||
1606 | |||
1607 | // Set the plot background image. |
||
1608 | ArrayUtility::set($output, "plotBackgroundImage", $this->plotBackgroundImage, [null]); |
||
1609 | |||
1610 | // Set the plot border color. |
||
1611 | ArrayUtility::set($output, "plotBorderColor", $this->plotBorderColor, [null]); |
||
1612 | |||
1613 | // Set the plot border width. |
||
1614 | ArrayUtility::set($output, "plotBorderWidth", $this->plotBorderWidth, [null]); |
||
1615 | |||
1616 | // Set the plot shadow. |
||
1617 | ArrayUtility::set($output, "plotShadow", $this->plotShadow, [null]); |
||
1618 | |||
1619 | // Set the polar. |
||
1620 | ArrayUtility::set($output, "polar", $this->polar, [null]); |
||
1621 | |||
1622 | // Set the reflow. |
||
1623 | ArrayUtility::set($output, "reflow", $this->reflow, [null]); |
||
1624 | |||
1625 | // Set the render to. |
||
1626 | ArrayUtility::set($output, "renderTo", $this->renderTo, [null]); |
||
1627 | |||
1628 | // Set the reset zoom button. |
||
1629 | if (null !== $this->resetZoomButton) { |
||
1630 | ArrayUtility::set($output, "resetZoomButton", $this->resetZoomButton->toArray(), []); |
||
1631 | } |
||
1632 | |||
1633 | // Set the selection marker fill. |
||
1634 | ArrayUtility::set($output, "selectionMarkerFill", $this->selectionMarkerFill, [null]); |
||
1635 | |||
1636 | // Set the shadow. |
||
1637 | ArrayUtility::set($output, "shadow", $this->shadow, [null]); |
||
1638 | |||
1639 | // Set the show axes. |
||
1640 | ArrayUtility::set($output, "showAxes", $this->showAxes, [null]); |
||
1641 | |||
1642 | // Set the spacing. |
||
1643 | ArrayUtility::set($output, "spacing", $this->spacing, [null]); |
||
1644 | |||
1645 | // Set the spacing bottom. |
||
1646 | ArrayUtility::set($output, "spacingBottom", $this->spacingBottom, [null]); |
||
1647 | |||
1648 | // Set the spacing left. |
||
1649 | ArrayUtility::set($output, "spacingLeft", $this->spacingLeft, [null]); |
||
1650 | |||
1651 | // Set the spacing right. |
||
1652 | ArrayUtility::set($output, "spacingRight", $this->spacingRight, [null]); |
||
1653 | |||
1654 | // Set the spacing top. |
||
1655 | ArrayUtility::set($output, "spacingTop", $this->spacingTop, [null]); |
||
1656 | |||
1657 | // Set the style. |
||
1658 | ArrayUtility::set($output, "style", $this->style, [null]); |
||
1659 | |||
1660 | // Set the type. |
||
1661 | ArrayUtility::set($output, "type", $this->type, [null]); |
||
1662 | |||
1663 | // Set the type description. |
||
1664 | ArrayUtility::set($output, "typeDescription", $this->typeDescription, [null]); |
||
1665 | |||
1666 | // Set the width. |
||
1667 | ArrayUtility::set($output, "width", $this->width, [null]); |
||
1668 | |||
1669 | // Set the zoom type. |
||
1670 | ArrayUtility::set($output, "zoomType", $this->zoomType, [null]); |
||
1671 | |||
1672 | // Return the output. |
||
1673 | return $output; |
||
1674 | } |
||
1675 | |||
1676 | } |
||
1677 |
This property has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.