Complex classes like HighchartsPie 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 HighchartsPie, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
25 | final class HighchartsPie 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 | * Border color. |
||
51 | * |
||
52 | * @var string |
||
53 | */ |
||
54 | private $borderColor = "#ffffff"; |
||
55 | |||
56 | /** |
||
57 | * Border width. |
||
58 | * |
||
59 | * @var integer |
||
60 | */ |
||
61 | private $borderWidth = 1; |
||
62 | |||
63 | /** |
||
64 | * Center. |
||
65 | * |
||
66 | * @var array |
||
67 | */ |
||
68 | private $center = [null, null]; |
||
69 | |||
70 | /** |
||
71 | * Class name. |
||
72 | * |
||
73 | * @var string |
||
74 | * @since 5.0.0 |
||
75 | */ |
||
76 | private $className; |
||
77 | |||
78 | /** |
||
79 | * Color index. |
||
80 | * |
||
81 | * @var integer |
||
82 | * @since 5.0.0 |
||
83 | */ |
||
84 | private $colorIndex; |
||
85 | |||
86 | /** |
||
87 | * Colors. |
||
88 | * |
||
89 | * @var array |
||
90 | * @since 3.0 |
||
91 | */ |
||
92 | private $colors; |
||
93 | |||
94 | /** |
||
95 | * Cursor. |
||
96 | * |
||
97 | * @var string |
||
98 | */ |
||
99 | private $cursor; |
||
100 | |||
101 | /** |
||
102 | * Data labels. |
||
103 | * |
||
104 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Pie\HighchartsDataLabels |
||
105 | */ |
||
106 | private $dataLabels; |
||
107 | |||
108 | /** |
||
109 | * Depth. |
||
110 | * |
||
111 | * @var integer |
||
112 | * @since 4.0 |
||
113 | */ |
||
114 | private $depth = 0; |
||
115 | |||
116 | /** |
||
117 | * Description. |
||
118 | * |
||
119 | * @var string |
||
120 | * @since 5.0.0 |
||
121 | */ |
||
122 | private $description; |
||
123 | |||
124 | /** |
||
125 | * Enable mouse tracking. |
||
126 | * |
||
127 | * @var boolean |
||
128 | */ |
||
129 | private $enableMouseTracking = true; |
||
130 | |||
131 | /** |
||
132 | * End angle. |
||
133 | * |
||
134 | * @var integer |
||
135 | * @since 1.3.6 |
||
136 | */ |
||
137 | private $endAngle; |
||
138 | |||
139 | /** |
||
140 | * Events. |
||
141 | * |
||
142 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Pie\HighchartsEvents |
||
143 | */ |
||
144 | private $events; |
||
145 | |||
146 | /** |
||
147 | * Expose element to a11y. |
||
148 | * |
||
149 | * @var boolean |
||
150 | * @since 5.0.12 |
||
151 | */ |
||
152 | private $exposeElementToA11y; |
||
153 | |||
154 | /** |
||
155 | * Find nearest point by. |
||
156 | * |
||
157 | * @var string |
||
158 | * @since 5.0.10 |
||
159 | */ |
||
160 | private $findNearestPointBy; |
||
161 | |||
162 | /** |
||
163 | * Get extremes from all. |
||
164 | * |
||
165 | * @var boolean |
||
166 | * @since 4.1.6 |
||
167 | */ |
||
168 | private $getExtremesFromAll = false; |
||
169 | |||
170 | /** |
||
171 | * Ignore hidden point. |
||
172 | * |
||
173 | * @var boolean |
||
174 | * @since 2.3.0 |
||
175 | */ |
||
176 | private $ignoreHiddenPoint = true; |
||
177 | |||
178 | /** |
||
179 | * Inner size. |
||
180 | * |
||
181 | * @var string|integer |
||
182 | * @since 2.0 |
||
183 | */ |
||
184 | private $innerSize = "0"; |
||
185 | |||
186 | /** |
||
187 | * Keys. |
||
188 | * |
||
189 | * @var array |
||
190 | * @since 4.1.6 |
||
191 | */ |
||
192 | private $keys; |
||
193 | |||
194 | /** |
||
195 | * Linked to. |
||
196 | * |
||
197 | * @var string |
||
198 | * @since 3.0 |
||
199 | */ |
||
200 | private $linkedTo; |
||
201 | |||
202 | /** |
||
203 | * Min size. |
||
204 | * |
||
205 | * @var integer |
||
206 | * @since 3.0 |
||
207 | */ |
||
208 | private $minSize = 80; |
||
209 | |||
210 | /** |
||
211 | * Point. |
||
212 | * |
||
213 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Pie\HighchartsPoint |
||
214 | */ |
||
215 | private $point; |
||
216 | |||
217 | /** |
||
218 | * Point description formatter. |
||
219 | * |
||
220 | * @var string |
||
221 | * @since 5.0.12 |
||
222 | */ |
||
223 | private $pointDescriptionFormatter; |
||
224 | |||
225 | /** |
||
226 | * Selected. |
||
227 | * |
||
228 | * @var boolean |
||
229 | * @since 1.2.0 |
||
230 | */ |
||
231 | private $selected = false; |
||
232 | |||
233 | /** |
||
234 | * Shadow. |
||
235 | * |
||
236 | * @var boolean|array |
||
237 | */ |
||
238 | private $shadow = false; |
||
239 | |||
240 | /** |
||
241 | * Show in legend. |
||
242 | * |
||
243 | * @var boolean |
||
244 | */ |
||
245 | private $showInLegend = false; |
||
246 | |||
247 | /** |
||
248 | * Size. |
||
249 | * |
||
250 | * @var string|integer |
||
251 | */ |
||
252 | private $size; |
||
253 | |||
254 | /** |
||
255 | * Skip keyboard navigation. |
||
256 | * |
||
257 | * @var boolean |
||
258 | * @since 5.0.12 |
||
259 | */ |
||
260 | private $skipKeyboardNavigation; |
||
261 | |||
262 | /** |
||
263 | * Sliced offset. |
||
264 | * |
||
265 | * @var integer |
||
266 | */ |
||
267 | private $slicedOffset = 10; |
||
268 | |||
269 | /** |
||
270 | * Start angle. |
||
271 | * |
||
272 | * @var integer |
||
273 | * @since 2.3.4 |
||
274 | */ |
||
275 | private $startAngle = 0; |
||
276 | |||
277 | /** |
||
278 | * States. |
||
279 | * |
||
280 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Pie\HighchartsStates |
||
281 | */ |
||
282 | private $states; |
||
283 | |||
284 | /** |
||
285 | * Sticky tracking. |
||
286 | * |
||
287 | * @var boolean |
||
288 | */ |
||
289 | private $stickyTracking = false; |
||
290 | |||
291 | /** |
||
292 | * Tooltip. |
||
293 | * |
||
294 | * @var array |
||
295 | * @since 2.3 |
||
296 | */ |
||
297 | private $tooltip; |
||
298 | |||
299 | /** |
||
300 | * Visible. |
||
301 | * |
||
302 | * @var boolean |
||
303 | */ |
||
304 | private $visible = true; |
||
305 | |||
306 | /** |
||
307 | * Zone axis. |
||
308 | * |
||
309 | * @var string |
||
310 | * @since 4.1.0 |
||
311 | */ |
||
312 | private $zoneAxis = "y"; |
||
313 | |||
314 | /** |
||
315 | * Zones. |
||
316 | * |
||
317 | * @var array |
||
318 | * @since 4.1.0 |
||
319 | */ |
||
320 | private $zones; |
||
321 | |||
322 | /** |
||
323 | * Constructor. |
||
324 | * |
||
325 | * @param boolean $ignoreDefaultValues Ignore the default values. |
||
326 | */ |
||
327 | public function __construct($ignoreDefaultValues = true) { |
||
332 | |||
333 | /** |
||
334 | * Clear. |
||
335 | * |
||
336 | * @return void |
||
337 | */ |
||
338 | public function clear() { |
||
465 | |||
466 | /** |
||
467 | * Get the allow point select. |
||
468 | * |
||
469 | * @return boolean Returns the allow point select. |
||
470 | */ |
||
471 | public function getAllowPointSelect() { |
||
474 | |||
475 | /** |
||
476 | * Get the animation. |
||
477 | * |
||
478 | * @return boolean Returns the animation. |
||
479 | */ |
||
480 | public function getAnimation() { |
||
483 | |||
484 | /** |
||
485 | * Get the animation limit. |
||
486 | * |
||
487 | * @return integer Returns the animation limit. |
||
488 | */ |
||
489 | public function getAnimationLimit() { |
||
492 | |||
493 | /** |
||
494 | * Get the border color. |
||
495 | * |
||
496 | * @return string Returns the border color. |
||
497 | */ |
||
498 | public function getBorderColor() { |
||
501 | |||
502 | /** |
||
503 | * Get the border width. |
||
504 | * |
||
505 | * @return integer Returns the border width. |
||
506 | */ |
||
507 | public function getBorderWidth() { |
||
510 | |||
511 | /** |
||
512 | * Get the center. |
||
513 | * |
||
514 | * @return array Returns the center. |
||
515 | */ |
||
516 | public function getCenter() { |
||
519 | |||
520 | /** |
||
521 | * Get the class name. |
||
522 | * |
||
523 | * @return string Returns the class name. |
||
524 | */ |
||
525 | public function getClassName() { |
||
528 | |||
529 | /** |
||
530 | * Get the color index. |
||
531 | * |
||
532 | * @return integer Returns the color index. |
||
533 | */ |
||
534 | public function getColorIndex() { |
||
537 | |||
538 | /** |
||
539 | * Get the colors. |
||
540 | * |
||
541 | * @return array Returns the colors. |
||
542 | */ |
||
543 | public function getColors() { |
||
546 | |||
547 | /** |
||
548 | * Get the cursor. |
||
549 | * |
||
550 | * @return string Returns the cursor. |
||
551 | */ |
||
552 | public function getCursor() { |
||
555 | |||
556 | /** |
||
557 | * Get the data labels. |
||
558 | * |
||
559 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Pie\HighchartsDataLabels Returns the data labels. |
||
560 | */ |
||
561 | public function getDataLabels() { |
||
564 | |||
565 | /** |
||
566 | * Get the depth. |
||
567 | * |
||
568 | * @return integer Returns the depth. |
||
569 | */ |
||
570 | public function getDepth() { |
||
573 | |||
574 | /** |
||
575 | * Get the description. |
||
576 | * |
||
577 | * @return string Returns the description. |
||
578 | */ |
||
579 | public function getDescription() { |
||
582 | |||
583 | /** |
||
584 | * Get the enable mouse tracking. |
||
585 | * |
||
586 | * @return boolean Returns the enable mouse tracking. |
||
587 | */ |
||
588 | public function getEnableMouseTracking() { |
||
591 | |||
592 | /** |
||
593 | * Get the end angle. |
||
594 | * |
||
595 | * @return integer Returns the end angle. |
||
596 | */ |
||
597 | public function getEndAngle() { |
||
600 | |||
601 | /** |
||
602 | * Get the events. |
||
603 | * |
||
604 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Pie\HighchartsEvents Returns the events. |
||
605 | */ |
||
606 | public function getEvents() { |
||
609 | |||
610 | /** |
||
611 | * Get the expose element to a11y. |
||
612 | * |
||
613 | * @return boolean Returns the expose element to a11y. |
||
614 | */ |
||
615 | public function getExposeElementToA11y() { |
||
618 | |||
619 | /** |
||
620 | * Get the find nearest point by. |
||
621 | * |
||
622 | * @return string Returns the find nearest point by. |
||
623 | */ |
||
624 | public function getFindNearestPointBy() { |
||
627 | |||
628 | /** |
||
629 | * Get the get extremes from all. |
||
630 | * |
||
631 | * @return boolean Returns the get extremes from all. |
||
632 | */ |
||
633 | public function getGetExtremesFromAll() { |
||
636 | |||
637 | /** |
||
638 | * Get the ignore hidden point. |
||
639 | * |
||
640 | * @return boolean Returns the ignore hidden point. |
||
641 | */ |
||
642 | public function getIgnoreHiddenPoint() { |
||
645 | |||
646 | /** |
||
647 | * Get the inner size. |
||
648 | * |
||
649 | * @return string|integer Returns the inner size. |
||
650 | */ |
||
651 | public function getInnerSize() { |
||
654 | |||
655 | /** |
||
656 | * Get the keys. |
||
657 | * |
||
658 | * @return array Returns the keys. |
||
659 | */ |
||
660 | public function getKeys() { |
||
663 | |||
664 | /** |
||
665 | * Get the linked to. |
||
666 | * |
||
667 | * @return string Returns the linked to. |
||
668 | */ |
||
669 | public function getLinkedTo() { |
||
672 | |||
673 | /** |
||
674 | * Get the min size. |
||
675 | * |
||
676 | * @return integer Returns the min size. |
||
677 | */ |
||
678 | public function getMinSize() { |
||
681 | |||
682 | /** |
||
683 | * Get the point. |
||
684 | * |
||
685 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Pie\HighchartsPoint Returns the point. |
||
686 | */ |
||
687 | public function getPoint() { |
||
690 | |||
691 | /** |
||
692 | * Get the point description formatter. |
||
693 | * |
||
694 | * @return string Returns the point description formatter. |
||
695 | */ |
||
696 | public function getPointDescriptionFormatter() { |
||
699 | |||
700 | /** |
||
701 | * Get the selected. |
||
702 | * |
||
703 | * @return boolean Returns the selected. |
||
704 | */ |
||
705 | public function getSelected() { |
||
708 | |||
709 | /** |
||
710 | * Get the shadow. |
||
711 | * |
||
712 | * @return boolean|array Returns the shadow. |
||
713 | */ |
||
714 | public function getShadow() { |
||
717 | |||
718 | /** |
||
719 | * Get the show in legend. |
||
720 | * |
||
721 | * @return boolean Returns the show in legend. |
||
722 | */ |
||
723 | public function getShowInLegend() { |
||
726 | |||
727 | /** |
||
728 | * Get the size. |
||
729 | * |
||
730 | * @return string|integer Returns the size. |
||
731 | */ |
||
732 | public function getSize() { |
||
735 | |||
736 | /** |
||
737 | * Get the skip keyboard navigation. |
||
738 | * |
||
739 | * @return boolean Returns the skip keyboard navigation. |
||
740 | */ |
||
741 | public function getSkipKeyboardNavigation() { |
||
744 | |||
745 | /** |
||
746 | * Get the sliced offset. |
||
747 | * |
||
748 | * @return integer Returns the sliced offset. |
||
749 | */ |
||
750 | public function getSlicedOffset() { |
||
753 | |||
754 | /** |
||
755 | * Get the start angle. |
||
756 | * |
||
757 | * @return integer Returns the start angle. |
||
758 | */ |
||
759 | public function getStartAngle() { |
||
762 | |||
763 | /** |
||
764 | * Get the states. |
||
765 | * |
||
766 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Pie\HighchartsStates Returns the states. |
||
767 | */ |
||
768 | public function getStates() { |
||
771 | |||
772 | /** |
||
773 | * Get the sticky tracking. |
||
774 | * |
||
775 | * @return boolean Returns the sticky tracking. |
||
776 | */ |
||
777 | public function getStickyTracking() { |
||
780 | |||
781 | /** |
||
782 | * Get the tooltip. |
||
783 | * |
||
784 | * @return array Returns the tooltip. |
||
785 | */ |
||
786 | public function getTooltip() { |
||
789 | |||
790 | /** |
||
791 | * Get the visible. |
||
792 | * |
||
793 | * @return boolean Returns the visible. |
||
794 | */ |
||
795 | public function getVisible() { |
||
798 | |||
799 | /** |
||
800 | * Get the zone axis. |
||
801 | * |
||
802 | * @return string Returns the zone axis. |
||
803 | */ |
||
804 | public function getZoneAxis() { |
||
807 | |||
808 | /** |
||
809 | * Get the zones. |
||
810 | * |
||
811 | * @return array Returns the zones. |
||
812 | */ |
||
813 | public function getZones() { |
||
816 | |||
817 | /** |
||
818 | * Serialize this instance. |
||
819 | * |
||
820 | * @return array Returns an array representing this instance. |
||
821 | */ |
||
822 | public function jsonSerialize() { |
||
825 | |||
826 | /** |
||
827 | * Create a new data labels. |
||
828 | * |
||
829 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Pie\HighchartsDataLabels Returns the data labels. |
||
830 | */ |
||
831 | public function newDataLabels() { |
||
835 | |||
836 | /** |
||
837 | * Create a new events. |
||
838 | * |
||
839 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Pie\HighchartsEvents Returns the events. |
||
840 | */ |
||
841 | public function newEvents() { |
||
845 | |||
846 | /** |
||
847 | * Create a new point. |
||
848 | * |
||
849 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Pie\HighchartsPoint Returns the point. |
||
850 | */ |
||
851 | public function newPoint() { |
||
855 | |||
856 | /** |
||
857 | * Create a new states. |
||
858 | * |
||
859 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Pie\HighchartsStates Returns the states. |
||
860 | */ |
||
861 | public function newStates() { |
||
865 | |||
866 | /** |
||
867 | * Set the allow point select. |
||
868 | * |
||
869 | * @param boolean $allowPointSelect The allow point select. |
||
870 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
871 | */ |
||
872 | public function setAllowPointSelect($allowPointSelect) { |
||
876 | |||
877 | /** |
||
878 | * Set the animation. |
||
879 | * |
||
880 | * @param boolean $animation The animation. |
||
881 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
882 | */ |
||
883 | public function setAnimation($animation) { |
||
887 | |||
888 | /** |
||
889 | * Set the animation limit. |
||
890 | * |
||
891 | * @param integer $animationLimit The animation limit. |
||
892 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
893 | */ |
||
894 | public function setAnimationLimit($animationLimit) { |
||
898 | |||
899 | /** |
||
900 | * Set the border color. |
||
901 | * |
||
902 | * @param string $borderColor The border color. |
||
903 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
904 | */ |
||
905 | public function setBorderColor($borderColor) { |
||
909 | |||
910 | /** |
||
911 | * Set the border width. |
||
912 | * |
||
913 | * @param integer $borderWidth The border width. |
||
914 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
915 | */ |
||
916 | public function setBorderWidth($borderWidth) { |
||
920 | |||
921 | /** |
||
922 | * Set the center. |
||
923 | * |
||
924 | * @param array $center The center. |
||
925 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
926 | */ |
||
927 | public function setCenter(array $center = null) { |
||
931 | |||
932 | /** |
||
933 | * Set the class name. |
||
934 | * |
||
935 | * @param string $className The class name. |
||
936 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
937 | */ |
||
938 | public function setClassName($className) { |
||
942 | |||
943 | /** |
||
944 | * Set the color index. |
||
945 | * |
||
946 | * @param integer $colorIndex The color index. |
||
947 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
948 | */ |
||
949 | public function setColorIndex($colorIndex) { |
||
953 | |||
954 | /** |
||
955 | * Set the colors. |
||
956 | * |
||
957 | * @param array $colors The colors. |
||
958 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
959 | */ |
||
960 | public function setColors(array $colors = null) { |
||
964 | |||
965 | /** |
||
966 | * Set the cursor. |
||
967 | * |
||
968 | * @param string $cursor The cursor. |
||
969 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
970 | */ |
||
971 | public function setCursor($cursor) { |
||
984 | |||
985 | /** |
||
986 | * Set the data labels. |
||
987 | * |
||
988 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Pie\HighchartsDataLabels $dataLabels The data labels. |
||
989 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
990 | */ |
||
991 | public function setDataLabels(\WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Pie\HighchartsDataLabels $dataLabels = null) { |
||
995 | |||
996 | /** |
||
997 | * Set the depth. |
||
998 | * |
||
999 | * @param integer $depth The depth. |
||
1000 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1001 | */ |
||
1002 | public function setDepth($depth) { |
||
1006 | |||
1007 | /** |
||
1008 | * Set the description. |
||
1009 | * |
||
1010 | * @param string $description The description. |
||
1011 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1012 | */ |
||
1013 | public function setDescription($description) { |
||
1017 | |||
1018 | /** |
||
1019 | * Set the enable mouse tracking. |
||
1020 | * |
||
1021 | * @param boolean $enableMouseTracking The enable mouse tracking. |
||
1022 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1023 | */ |
||
1024 | public function setEnableMouseTracking($enableMouseTracking) { |
||
1028 | |||
1029 | /** |
||
1030 | * Set the end angle. |
||
1031 | * |
||
1032 | * @param integer $endAngle The end angle. |
||
1033 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1034 | */ |
||
1035 | public function setEndAngle($endAngle) { |
||
1039 | |||
1040 | /** |
||
1041 | * Set the events. |
||
1042 | * |
||
1043 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Pie\HighchartsEvents $events The events. |
||
1044 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1045 | */ |
||
1046 | public function setEvents(\WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Pie\HighchartsEvents $events = null) { |
||
1050 | |||
1051 | /** |
||
1052 | * Set the expose element to a11y. |
||
1053 | * |
||
1054 | * @param boolean $exposeElementToA11y The expose element to a11y. |
||
1055 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1056 | */ |
||
1057 | public function setExposeElementToA11y($exposeElementToA11y) { |
||
1061 | |||
1062 | /** |
||
1063 | * Set the find nearest point by. |
||
1064 | * |
||
1065 | * @param string $findNearestPointBy The find nearest point by. |
||
1066 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1067 | */ |
||
1068 | public function setFindNearestPointBy($findNearestPointBy) { |
||
1077 | |||
1078 | /** |
||
1079 | * Set the get extremes from all. |
||
1080 | * |
||
1081 | * @param boolean $getExtremesFromAll The get extremes from all. |
||
1082 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1083 | */ |
||
1084 | public function setGetExtremesFromAll($getExtremesFromAll) { |
||
1088 | |||
1089 | /** |
||
1090 | * Set the ignore hidden point. |
||
1091 | * |
||
1092 | * @param boolean $ignoreHiddenPoint The ignore hidden point. |
||
1093 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1094 | */ |
||
1095 | public function setIgnoreHiddenPoint($ignoreHiddenPoint) { |
||
1099 | |||
1100 | /** |
||
1101 | * Set the inner size. |
||
1102 | * |
||
1103 | * @param string|integer $innerSize The inner size. |
||
1104 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1105 | */ |
||
1106 | public function setInnerSize($innerSize) { |
||
1110 | |||
1111 | /** |
||
1112 | * Set the keys. |
||
1113 | * |
||
1114 | * @param array $keys The keys. |
||
1115 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1116 | */ |
||
1117 | public function setKeys(array $keys = null) { |
||
1121 | |||
1122 | /** |
||
1123 | * Set the linked to. |
||
1124 | * |
||
1125 | * @param string $linkedTo The linked to. |
||
1126 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1127 | */ |
||
1128 | public function setLinkedTo($linkedTo) { |
||
1132 | |||
1133 | /** |
||
1134 | * Set the min size. |
||
1135 | * |
||
1136 | * @param integer $minSize The min size. |
||
1137 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1138 | */ |
||
1139 | public function setMinSize($minSize) { |
||
1143 | |||
1144 | /** |
||
1145 | * Set the point. |
||
1146 | * |
||
1147 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Pie\HighchartsPoint $point The point. |
||
1148 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1149 | */ |
||
1150 | public function setPoint(\WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Pie\HighchartsPoint $point = null) { |
||
1154 | |||
1155 | /** |
||
1156 | * Set the point description formatter. |
||
1157 | * |
||
1158 | * @param string $pointDescriptionFormatter The point description formatter. |
||
1159 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1160 | */ |
||
1161 | public function setPointDescriptionFormatter($pointDescriptionFormatter) { |
||
1165 | |||
1166 | /** |
||
1167 | * Set the selected. |
||
1168 | * |
||
1169 | * @param boolean $selected The selected. |
||
1170 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1171 | */ |
||
1172 | public function setSelected($selected) { |
||
1176 | |||
1177 | /** |
||
1178 | * Set the shadow. |
||
1179 | * |
||
1180 | * @param boolean|array $shadow The shadow. |
||
1181 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1182 | */ |
||
1183 | public function setShadow($shadow) { |
||
1187 | |||
1188 | /** |
||
1189 | * Set the show in legend. |
||
1190 | * |
||
1191 | * @param boolean $showInLegend The show in legend. |
||
1192 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1193 | */ |
||
1194 | public function setShowInLegend($showInLegend) { |
||
1198 | |||
1199 | /** |
||
1200 | * Set the size. |
||
1201 | * |
||
1202 | * @param string|integer $size The size. |
||
1203 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1204 | */ |
||
1205 | public function setSize($size) { |
||
1209 | |||
1210 | /** |
||
1211 | * Set the skip keyboard navigation. |
||
1212 | * |
||
1213 | * @param boolean $skipKeyboardNavigation The skip keyboard navigation. |
||
1214 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1215 | */ |
||
1216 | public function setSkipKeyboardNavigation($skipKeyboardNavigation) { |
||
1220 | |||
1221 | /** |
||
1222 | * Set the sliced offset. |
||
1223 | * |
||
1224 | * @param integer $slicedOffset The sliced offset. |
||
1225 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1226 | */ |
||
1227 | public function setSlicedOffset($slicedOffset) { |
||
1231 | |||
1232 | /** |
||
1233 | * Set the start angle. |
||
1234 | * |
||
1235 | * @param integer $startAngle The start angle. |
||
1236 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1237 | */ |
||
1238 | public function setStartAngle($startAngle) { |
||
1242 | |||
1243 | /** |
||
1244 | * Set the states. |
||
1245 | * |
||
1246 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Pie\HighchartsStates $states The states. |
||
1247 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1248 | */ |
||
1249 | public function setStates(\WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Pie\HighchartsStates $states = null) { |
||
1253 | |||
1254 | /** |
||
1255 | * Set the sticky tracking. |
||
1256 | * |
||
1257 | * @param boolean $stickyTracking The sticky tracking. |
||
1258 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1259 | */ |
||
1260 | public function setStickyTracking($stickyTracking) { |
||
1264 | |||
1265 | /** |
||
1266 | * Set the tooltip. |
||
1267 | * |
||
1268 | * @param array $tooltip The tooltip. |
||
1269 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1270 | */ |
||
1271 | public function setTooltip(array $tooltip = null) { |
||
1275 | |||
1276 | /** |
||
1277 | * Set the visible. |
||
1278 | * |
||
1279 | * @param boolean $visible The visible. |
||
1280 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1281 | */ |
||
1282 | public function setVisible($visible) { |
||
1286 | |||
1287 | /** |
||
1288 | * Set the zone axis. |
||
1289 | * |
||
1290 | * @param string $zoneAxis The zone axis. |
||
1291 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1292 | */ |
||
1293 | public function setZoneAxis($zoneAxis) { |
||
1297 | |||
1298 | /** |
||
1299 | * Set the zones. |
||
1300 | * |
||
1301 | * @param array $zones The zones. |
||
1302 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsPie Returns the highcharts pie. |
||
1303 | */ |
||
1304 | public function setZones(array $zones = null) { |
||
1308 | |||
1309 | /** |
||
1310 | * Convert into an array representing this instance. |
||
1311 | * |
||
1312 | * @return array Returns an array representing this instance. |
||
1313 | */ |
||
1314 | public function toArray() { |
||
1447 | |||
1448 | } |
||
1449 |
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..