Complex classes like HighchartsChart often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use HighchartsChart, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
25 | final class HighchartsChart implements JsonSerializable { |
||
26 | |||
27 | /** |
||
28 | * Accessibility. |
||
29 | * |
||
30 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsAccessibility |
||
31 | * @since 5.0.0 |
||
32 | */ |
||
33 | private $accessibility; |
||
34 | |||
35 | /** |
||
36 | * Chart. |
||
37 | * |
||
38 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart |
||
39 | */ |
||
40 | private $chart; |
||
41 | |||
42 | /** |
||
43 | * Colors. |
||
44 | * |
||
45 | * @var array |
||
46 | */ |
||
47 | private $colors = ["#7cb5ec", "#434348", "#90ed7d", "#f7a35c", "#8085e9", "#f15c80", "#e4d354", "#2b908f", "#f45b5b", "#91e8e1"]; |
||
48 | |||
49 | /** |
||
50 | * Credits. |
||
51 | * |
||
52 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsCredits |
||
53 | */ |
||
54 | private $credits; |
||
55 | |||
56 | /** |
||
57 | * Data. |
||
58 | * |
||
59 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsData |
||
60 | * @since 4.0 |
||
61 | */ |
||
62 | private $data; |
||
63 | |||
64 | /** |
||
65 | * Defs. |
||
66 | * |
||
67 | * @var array |
||
68 | * @since 5.0.0 |
||
69 | */ |
||
70 | private $defs; |
||
71 | |||
72 | /** |
||
73 | * Drilldown. |
||
74 | * |
||
75 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsDrilldown |
||
76 | * @since 3.0.8 |
||
77 | */ |
||
78 | private $drilldown; |
||
79 | |||
80 | /** |
||
81 | * Exporting. |
||
82 | * |
||
83 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsExporting |
||
84 | */ |
||
85 | private $exporting; |
||
86 | |||
87 | /** |
||
88 | * Labels. |
||
89 | * |
||
90 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLabels |
||
91 | */ |
||
92 | private $labels; |
||
93 | |||
94 | /** |
||
95 | * Legend. |
||
96 | * |
||
97 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend |
||
98 | */ |
||
99 | private $legend; |
||
100 | |||
101 | /** |
||
102 | * Loading. |
||
103 | * |
||
104 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLoading |
||
105 | */ |
||
106 | private $loading; |
||
107 | |||
108 | /** |
||
109 | * Navigation. |
||
110 | * |
||
111 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsNavigation |
||
112 | */ |
||
113 | private $navigation; |
||
114 | |||
115 | /** |
||
116 | * No data. |
||
117 | * |
||
118 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsNoData |
||
119 | * @since 3.0.8 |
||
120 | */ |
||
121 | private $noData; |
||
122 | |||
123 | /** |
||
124 | * Pane. |
||
125 | * |
||
126 | * @var array |
||
127 | * @since 2.3.0 |
||
128 | */ |
||
129 | private $pane; |
||
130 | |||
131 | /** |
||
132 | * Plot options. |
||
133 | * |
||
134 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsPlotOptions |
||
135 | */ |
||
136 | private $plotOptions; |
||
137 | |||
138 | /** |
||
139 | * Responsive. |
||
140 | * |
||
141 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsResponsive |
||
142 | * @since 5.0.0 |
||
143 | */ |
||
144 | private $responsive; |
||
145 | |||
146 | /** |
||
147 | * Series. |
||
148 | * |
||
149 | * @var array |
||
150 | */ |
||
151 | private $series; |
||
152 | |||
153 | /** |
||
154 | * Subtitle. |
||
155 | * |
||
156 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsSubtitle |
||
157 | */ |
||
158 | private $subtitle; |
||
159 | |||
160 | /** |
||
161 | * Title. |
||
162 | * |
||
163 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsTitle |
||
164 | */ |
||
165 | private $title; |
||
166 | |||
167 | /** |
||
168 | * Tooltip. |
||
169 | * |
||
170 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsTooltip |
||
171 | */ |
||
172 | private $tooltip; |
||
173 | |||
174 | /** |
||
175 | * X axis. |
||
176 | * |
||
177 | * @var array |
||
178 | */ |
||
179 | private $xAxis; |
||
180 | |||
181 | /** |
||
182 | * Y axis. |
||
183 | * |
||
184 | * @var array |
||
185 | */ |
||
186 | private $yAxis; |
||
187 | |||
188 | /** |
||
189 | * Z axis. |
||
190 | * |
||
191 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsZAxis |
||
192 | * @since 5.0.0 |
||
193 | */ |
||
194 | private $zAxis; |
||
195 | |||
196 | /** |
||
197 | * Constructor. |
||
198 | * |
||
199 | * @param boolean $ignoreDefaultValues Ignore the default values. |
||
200 | */ |
||
201 | public function __construct($ignoreDefaultValues = true) { |
||
206 | |||
207 | /** |
||
208 | * Clear. |
||
209 | * |
||
210 | * @return void |
||
211 | */ |
||
212 | public function clear() { |
||
317 | |||
318 | /** |
||
319 | * Get the accessibility. |
||
320 | * |
||
321 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsAccessibility Returns the accessibility. |
||
322 | */ |
||
323 | public function getAccessibility() { |
||
326 | |||
327 | /** |
||
328 | * Get the chart. |
||
329 | * |
||
330 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the chart. |
||
331 | */ |
||
332 | public function getChart() { |
||
335 | |||
336 | /** |
||
337 | * Get the colors. |
||
338 | * |
||
339 | * @return array Returns the colors. |
||
340 | */ |
||
341 | public function getColors() { |
||
344 | |||
345 | /** |
||
346 | * Get the credits. |
||
347 | * |
||
348 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsCredits Returns the credits. |
||
349 | */ |
||
350 | public function getCredits() { |
||
353 | |||
354 | /** |
||
355 | * Get the data. |
||
356 | * |
||
357 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsData Returns the data. |
||
358 | */ |
||
359 | public function getData() { |
||
362 | |||
363 | /** |
||
364 | * Get the defs. |
||
365 | * |
||
366 | * @return array Returns the defs. |
||
367 | */ |
||
368 | public function getDefs() { |
||
371 | |||
372 | /** |
||
373 | * Get the drilldown. |
||
374 | * |
||
375 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsDrilldown Returns the drilldown. |
||
376 | */ |
||
377 | public function getDrilldown() { |
||
380 | |||
381 | /** |
||
382 | * Get the exporting. |
||
383 | * |
||
384 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsExporting Returns the exporting. |
||
385 | */ |
||
386 | public function getExporting() { |
||
389 | |||
390 | /** |
||
391 | * Get the labels. |
||
392 | * |
||
393 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLabels Returns the labels. |
||
394 | */ |
||
395 | public function getLabels() { |
||
398 | |||
399 | /** |
||
400 | * Get the legend. |
||
401 | * |
||
402 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the legend. |
||
403 | */ |
||
404 | public function getLegend() { |
||
407 | |||
408 | /** |
||
409 | * Get the loading. |
||
410 | * |
||
411 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLoading Returns the loading. |
||
412 | */ |
||
413 | public function getLoading() { |
||
416 | |||
417 | /** |
||
418 | * Get the navigation. |
||
419 | * |
||
420 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsNavigation Returns the navigation. |
||
421 | */ |
||
422 | public function getNavigation() { |
||
425 | |||
426 | /** |
||
427 | * Get the no data. |
||
428 | * |
||
429 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsNoData Returns the no data. |
||
430 | */ |
||
431 | public function getNoData() { |
||
434 | |||
435 | /** |
||
436 | * Get the pane. |
||
437 | * |
||
438 | * @return array Returns the pane. |
||
439 | */ |
||
440 | public function getPane() { |
||
443 | |||
444 | /** |
||
445 | * Get the plot options. |
||
446 | * |
||
447 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsPlotOptions Returns the plot options. |
||
448 | */ |
||
449 | public function getPlotOptions() { |
||
452 | |||
453 | /** |
||
454 | * Get the responsive. |
||
455 | * |
||
456 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsResponsive Returns the responsive. |
||
457 | */ |
||
458 | public function getResponsive() { |
||
461 | |||
462 | /** |
||
463 | * Get the series. |
||
464 | * |
||
465 | * @return array Returns the series. |
||
466 | */ |
||
467 | public function getSeries() { |
||
470 | |||
471 | /** |
||
472 | * Get the subtitle. |
||
473 | * |
||
474 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsSubtitle Returns the subtitle. |
||
475 | */ |
||
476 | public function getSubtitle() { |
||
479 | |||
480 | /** |
||
481 | * Get the title. |
||
482 | * |
||
483 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsTitle Returns the title. |
||
484 | */ |
||
485 | public function getTitle() { |
||
488 | |||
489 | /** |
||
490 | * Get the tooltip. |
||
491 | * |
||
492 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsTooltip Returns the tooltip. |
||
493 | */ |
||
494 | public function getTooltip() { |
||
497 | |||
498 | /** |
||
499 | * Get the x axis. |
||
500 | * |
||
501 | * @return array Returns the x axis. |
||
502 | */ |
||
503 | public function getXAxis() { |
||
506 | |||
507 | /** |
||
508 | * Get the y axis. |
||
509 | * |
||
510 | * @return array Returns the y axis. |
||
511 | */ |
||
512 | public function getYAxis() { |
||
515 | |||
516 | /** |
||
517 | * Get the z axis. |
||
518 | * |
||
519 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsZAxis Returns the z axis. |
||
520 | */ |
||
521 | public function getZAxis() { |
||
524 | |||
525 | /** |
||
526 | * Serialize this instance. |
||
527 | * |
||
528 | * @return array Returns an array representing this instance. |
||
529 | */ |
||
530 | public function jsonSerialize() { |
||
533 | |||
534 | /** |
||
535 | * Create a new accessibility. |
||
536 | * |
||
537 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsAccessibility Returns the accessibility. |
||
538 | */ |
||
539 | public function newAccessibility() { |
||
543 | |||
544 | /** |
||
545 | * Create a new chart. |
||
546 | * |
||
547 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart Returns the chart. |
||
548 | */ |
||
549 | public function newChart() { |
||
553 | |||
554 | /** |
||
555 | * Create a new credits. |
||
556 | * |
||
557 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsCredits Returns the credits. |
||
558 | */ |
||
559 | public function newCredits() { |
||
563 | |||
564 | /** |
||
565 | * Create a new data. |
||
566 | * |
||
567 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsData Returns the data. |
||
568 | */ |
||
569 | public function newData() { |
||
573 | |||
574 | /** |
||
575 | * Create a new drilldown. |
||
576 | * |
||
577 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsDrilldown Returns the drilldown. |
||
578 | */ |
||
579 | public function newDrilldown() { |
||
583 | |||
584 | /** |
||
585 | * Create a new exporting. |
||
586 | * |
||
587 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsExporting Returns the exporting. |
||
588 | */ |
||
589 | public function newExporting() { |
||
593 | |||
594 | /** |
||
595 | * Create a new labels. |
||
596 | * |
||
597 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLabels Returns the labels. |
||
598 | */ |
||
599 | public function newLabels() { |
||
603 | |||
604 | /** |
||
605 | * Create a new legend. |
||
606 | * |
||
607 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the legend. |
||
608 | */ |
||
609 | public function newLegend() { |
||
613 | |||
614 | /** |
||
615 | * Create a new loading. |
||
616 | * |
||
617 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLoading Returns the loading. |
||
618 | */ |
||
619 | public function newLoading() { |
||
623 | |||
624 | /** |
||
625 | * Create a new navigation. |
||
626 | * |
||
627 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsNavigation Returns the navigation. |
||
628 | */ |
||
629 | public function newNavigation() { |
||
633 | |||
634 | /** |
||
635 | * Create a new no data. |
||
636 | * |
||
637 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsNoData Returns the no data. |
||
638 | */ |
||
639 | public function newNoData() { |
||
643 | |||
644 | /** |
||
645 | * Create a new plot options. |
||
646 | * |
||
647 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsPlotOptions Returns the plot options. |
||
648 | */ |
||
649 | public function newPlotOptions() { |
||
653 | |||
654 | /** |
||
655 | * Create a new responsive. |
||
656 | * |
||
657 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsResponsive Returns the responsive. |
||
658 | */ |
||
659 | public function newResponsive() { |
||
663 | |||
664 | /** |
||
665 | * Create a new subtitle. |
||
666 | * |
||
667 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsSubtitle Returns the subtitle. |
||
668 | */ |
||
669 | public function newSubtitle() { |
||
673 | |||
674 | /** |
||
675 | * Create a new title. |
||
676 | * |
||
677 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsTitle Returns the title. |
||
678 | */ |
||
679 | public function newTitle() { |
||
683 | |||
684 | /** |
||
685 | * Create a new tooltip. |
||
686 | * |
||
687 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsTooltip Returns the tooltip. |
||
688 | */ |
||
689 | public function newTooltip() { |
||
693 | |||
694 | /** |
||
695 | * Create a new z axis. |
||
696 | * |
||
697 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsZAxis Returns the z axis. |
||
698 | */ |
||
699 | public function newZAxis() { |
||
703 | |||
704 | /** |
||
705 | * Set the accessibility. |
||
706 | * |
||
707 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsAccessibility $accessibility The accessibility. |
||
708 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
709 | */ |
||
710 | public function setAccessibility(\WBW\Bundle\HighchartsBundle\API\Chart\HighchartsAccessibility $accessibility = null) { |
||
714 | |||
715 | /** |
||
716 | * Set the chart. |
||
717 | * |
||
718 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart $chart The chart. |
||
719 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
720 | */ |
||
721 | public function setChart(\WBW\Bundle\HighchartsBundle\API\Chart\HighchartsChart $chart = null) { |
||
725 | |||
726 | /** |
||
727 | * Set the colors. |
||
728 | * |
||
729 | * @param array $colors The colors. |
||
730 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
731 | */ |
||
732 | public function setColors(array $colors = null) { |
||
736 | |||
737 | /** |
||
738 | * Set the credits. |
||
739 | * |
||
740 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsCredits $credits The credits. |
||
741 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
742 | */ |
||
743 | public function setCredits(\WBW\Bundle\HighchartsBundle\API\Chart\HighchartsCredits $credits = null) { |
||
747 | |||
748 | /** |
||
749 | * Set the data. |
||
750 | * |
||
751 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsData $data The data. |
||
752 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
753 | */ |
||
754 | public function setData(\WBW\Bundle\HighchartsBundle\API\Chart\HighchartsData $data = null) { |
||
758 | |||
759 | /** |
||
760 | * Set the defs. |
||
761 | * |
||
762 | * @param array $defs The defs. |
||
763 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
764 | */ |
||
765 | public function setDefs(array $defs = null) { |
||
769 | |||
770 | /** |
||
771 | * Set the drilldown. |
||
772 | * |
||
773 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsDrilldown $drilldown The drilldown. |
||
774 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
775 | */ |
||
776 | public function setDrilldown(\WBW\Bundle\HighchartsBundle\API\Chart\HighchartsDrilldown $drilldown = null) { |
||
780 | |||
781 | /** |
||
782 | * Set the exporting. |
||
783 | * |
||
784 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsExporting $exporting The exporting. |
||
785 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
786 | */ |
||
787 | public function setExporting(\WBW\Bundle\HighchartsBundle\API\Chart\HighchartsExporting $exporting = null) { |
||
791 | |||
792 | /** |
||
793 | * Set the labels. |
||
794 | * |
||
795 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLabels $labels The labels. |
||
796 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
797 | */ |
||
798 | public function setLabels(\WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLabels $labels = null) { |
||
802 | |||
803 | /** |
||
804 | * Set the legend. |
||
805 | * |
||
806 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend $legend The legend. |
||
807 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
808 | */ |
||
809 | public function setLegend(\WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend $legend = null) { |
||
813 | |||
814 | /** |
||
815 | * Set the loading. |
||
816 | * |
||
817 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLoading $loading The loading. |
||
818 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
819 | */ |
||
820 | public function setLoading(\WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLoading $loading = null) { |
||
824 | |||
825 | /** |
||
826 | * Set the navigation. |
||
827 | * |
||
828 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsNavigation $navigation The navigation. |
||
829 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
830 | */ |
||
831 | public function setNavigation(\WBW\Bundle\HighchartsBundle\API\Chart\HighchartsNavigation $navigation = null) { |
||
835 | |||
836 | /** |
||
837 | * Set the no data. |
||
838 | * |
||
839 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsNoData $noData The no data. |
||
840 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
841 | */ |
||
842 | public function setNoData(\WBW\Bundle\HighchartsBundle\API\Chart\HighchartsNoData $noData = null) { |
||
846 | |||
847 | /** |
||
848 | * Set the pane. |
||
849 | * |
||
850 | * @param array $pane The pane. |
||
851 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
852 | */ |
||
853 | public function setPane(array $pane = null) { |
||
857 | |||
858 | /** |
||
859 | * Set the plot options. |
||
860 | * |
||
861 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsPlotOptions $plotOptions The plot options. |
||
862 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
863 | */ |
||
864 | public function setPlotOptions(\WBW\Bundle\HighchartsBundle\API\Chart\HighchartsPlotOptions $plotOptions = null) { |
||
868 | |||
869 | /** |
||
870 | * Set the responsive. |
||
871 | * |
||
872 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsResponsive $responsive The responsive. |
||
873 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
874 | */ |
||
875 | public function setResponsive(\WBW\Bundle\HighchartsBundle\API\Chart\HighchartsResponsive $responsive = null) { |
||
879 | |||
880 | /** |
||
881 | * Set the series. |
||
882 | * |
||
883 | * @param array $series The series. |
||
884 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
885 | */ |
||
886 | public function setSeries(array $series = null) { |
||
890 | |||
891 | /** |
||
892 | * Set the subtitle. |
||
893 | * |
||
894 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsSubtitle $subtitle The subtitle. |
||
895 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
896 | */ |
||
897 | public function setSubtitle(\WBW\Bundle\HighchartsBundle\API\Chart\HighchartsSubtitle $subtitle = null) { |
||
901 | |||
902 | /** |
||
903 | * Set the title. |
||
904 | * |
||
905 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsTitle $title The title. |
||
906 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
907 | */ |
||
908 | public function setTitle(\WBW\Bundle\HighchartsBundle\API\Chart\HighchartsTitle $title = null) { |
||
912 | |||
913 | /** |
||
914 | * Set the tooltip. |
||
915 | * |
||
916 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsTooltip $tooltip The tooltip. |
||
917 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
918 | */ |
||
919 | public function setTooltip(\WBW\Bundle\HighchartsBundle\API\Chart\HighchartsTooltip $tooltip = null) { |
||
923 | |||
924 | /** |
||
925 | * Set the x axis. |
||
926 | * |
||
927 | * @param array $xAxis The x axis. |
||
928 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
929 | */ |
||
930 | public function setXAxis(array $xAxis = null) { |
||
934 | |||
935 | /** |
||
936 | * Set the y axis. |
||
937 | * |
||
938 | * @param array $yAxis The y axis. |
||
939 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
940 | */ |
||
941 | public function setYAxis(array $yAxis = null) { |
||
945 | |||
946 | /** |
||
947 | * Set the z axis. |
||
948 | * |
||
949 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsZAxis $zAxis The z axis. |
||
950 | * @return \WBW\Bundle\HighchartsBundle\API\HighchartsChart Returns the highcharts chart. |
||
951 | */ |
||
952 | public function setZAxis(\WBW\Bundle\HighchartsBundle\API\Chart\HighchartsZAxis $zAxis = null) { |
||
956 | |||
957 | /** |
||
958 | * Convert into an array representing this instance. |
||
959 | * |
||
960 | * @return array Returns an array representing this instance. |
||
961 | */ |
||
962 | public function toArray() { |
||
1073 | |||
1074 | } |
||
1075 |
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..