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 | * 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) { |
||
375 | |||
376 | /** |
||
377 | * Clear. |
||
378 | * |
||
379 | * @return void |
||
380 | */ |
||
381 | public function clear() { |
||
524 | |||
525 | /** |
||
526 | * Get the align ticks. |
||
527 | * |
||
528 | * @return boolean Returns the align ticks. |
||
529 | */ |
||
530 | public function getAlignTicks() { |
||
533 | |||
534 | /** |
||
535 | * Get the animation. |
||
536 | * |
||
537 | * @return boolean|array Returns the animation. |
||
538 | */ |
||
539 | public function getAnimation() { |
||
542 | |||
543 | /** |
||
544 | * Get the background color. |
||
545 | * |
||
546 | * @return string Returns the background color. |
||
547 | */ |
||
548 | public function getBackgroundColor() { |
||
551 | |||
552 | /** |
||
553 | * Get the border color. |
||
554 | * |
||
555 | * @return string Returns the border color. |
||
556 | */ |
||
557 | public function getBorderColor() { |
||
560 | |||
561 | /** |
||
562 | * Get the border radius. |
||
563 | * |
||
564 | * @return integer Returns the border radius. |
||
565 | */ |
||
566 | public function getBorderRadius() { |
||
569 | |||
570 | /** |
||
571 | * Get the border width. |
||
572 | * |
||
573 | * @return integer Returns the border width. |
||
574 | */ |
||
575 | public function getBorderWidth() { |
||
578 | |||
579 | /** |
||
580 | * Get the class name. |
||
581 | * |
||
582 | * @return string Returns the class name. |
||
583 | */ |
||
584 | public function getClassName() { |
||
587 | |||
588 | /** |
||
589 | * Get the color count. |
||
590 | * |
||
591 | * @return integer Returns the color count. |
||
592 | */ |
||
593 | public function getColorCount() { |
||
596 | |||
597 | /** |
||
598 | * Get the default series type. |
||
599 | * |
||
600 | * @return string Returns the default series type. |
||
601 | * @deprecated |
||
602 | */ |
||
603 | public function getDefaultSeriesType() { |
||
606 | |||
607 | /** |
||
608 | * Get the description. |
||
609 | * |
||
610 | * @return string Returns the description. |
||
611 | */ |
||
612 | public function getDescription() { |
||
615 | |||
616 | /** |
||
617 | * Get the events. |
||
618 | * |
||
619 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Chart\HighchartsEvents Returns the events. |
||
620 | */ |
||
621 | public function getEvents() { |
||
624 | |||
625 | /** |
||
626 | * Get the height. |
||
627 | * |
||
628 | * @return integer|string Returns the height. |
||
629 | */ |
||
630 | public function getHeight() { |
||
633 | |||
634 | /** |
||
635 | * Get the ignore hidden series. |
||
636 | * |
||
637 | * @return boolean Returns the ignore hidden series. |
||
638 | */ |
||
639 | public function getIgnoreHiddenSeries() { |
||
642 | |||
643 | /** |
||
644 | * Get the inverted. |
||
645 | * |
||
646 | * @return boolean Returns the inverted. |
||
647 | */ |
||
648 | public function getInverted() { |
||
651 | |||
652 | /** |
||
653 | * Get the margin. |
||
654 | * |
||
655 | * @return array Returns the margin. |
||
656 | */ |
||
657 | public function getMargin() { |
||
660 | |||
661 | /** |
||
662 | * Get the margin bottom. |
||
663 | * |
||
664 | * @return integer Returns the margin bottom. |
||
665 | */ |
||
666 | public function getMarginBottom() { |
||
669 | |||
670 | /** |
||
671 | * Get the margin left. |
||
672 | * |
||
673 | * @return integer Returns the margin left. |
||
674 | */ |
||
675 | public function getMarginLeft() { |
||
678 | |||
679 | /** |
||
680 | * Get the margin right. |
||
681 | * |
||
682 | * @return integer Returns the margin right. |
||
683 | */ |
||
684 | public function getMarginRight() { |
||
687 | |||
688 | /** |
||
689 | * Get the margin top. |
||
690 | * |
||
691 | * @return integer Returns the margin top. |
||
692 | */ |
||
693 | public function getMarginTop() { |
||
696 | |||
697 | /** |
||
698 | * Get the options3d. |
||
699 | * |
||
700 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Chart\HighchartsOptions3d Returns the options3d. |
||
701 | */ |
||
702 | public function getOptions3d() { |
||
705 | |||
706 | /** |
||
707 | * Get the pan key. |
||
708 | * |
||
709 | * @return string Returns the pan key. |
||
710 | */ |
||
711 | public function getPanKey() { |
||
714 | |||
715 | /** |
||
716 | * Get the panning. |
||
717 | * |
||
718 | * @return boolean Returns the panning. |
||
719 | */ |
||
720 | public function getPanning() { |
||
723 | |||
724 | /** |
||
725 | * Get the pinch type. |
||
726 | * |
||
727 | * @return string Returns the pinch type. |
||
728 | */ |
||
729 | public function getPinchType() { |
||
732 | |||
733 | /** |
||
734 | * Get the plot background color. |
||
735 | * |
||
736 | * @return string Returns the plot background color. |
||
737 | */ |
||
738 | public function getPlotBackgroundColor() { |
||
741 | |||
742 | /** |
||
743 | * Get the plot background image. |
||
744 | * |
||
745 | * @return string Returns the plot background image. |
||
746 | */ |
||
747 | public function getPlotBackgroundImage() { |
||
750 | |||
751 | /** |
||
752 | * Get the plot border color. |
||
753 | * |
||
754 | * @return string Returns the plot border color. |
||
755 | */ |
||
756 | public function getPlotBorderColor() { |
||
759 | |||
760 | /** |
||
761 | * Get the plot border width. |
||
762 | * |
||
763 | * @return integer Returns the plot border width. |
||
764 | */ |
||
765 | public function getPlotBorderWidth() { |
||
768 | |||
769 | /** |
||
770 | * Get the plot shadow. |
||
771 | * |
||
772 | * @return boolean|array Returns the plot shadow. |
||
773 | */ |
||
774 | public function getPlotShadow() { |
||
777 | |||
778 | /** |
||
779 | * Get the polar. |
||
780 | * |
||
781 | * @return boolean Returns the polar. |
||
782 | */ |
||
783 | public function getPolar() { |
||
786 | |||
787 | /** |
||
788 | * Get the reflow. |
||
789 | * |
||
790 | * @return boolean Returns the reflow. |
||
791 | */ |
||
792 | public function getReflow() { |
||
795 | |||
796 | /** |
||
797 | * Get the render to. |
||
798 | * |
||
799 | * @return string Returns the render to. |
||
800 | */ |
||
801 | public function getRenderTo() { |
||
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() { |
||
813 | |||
814 | /** |
||
815 | * Get the selection marker fill. |
||
816 | * |
||
817 | * @return string Returns the selection marker fill. |
||
818 | */ |
||
819 | public function getSelectionMarkerFill() { |
||
822 | |||
823 | /** |
||
824 | * Get the shadow. |
||
825 | * |
||
826 | * @return boolean|array Returns the shadow. |
||
827 | */ |
||
828 | public function getShadow() { |
||
831 | |||
832 | /** |
||
833 | * Get the show axes. |
||
834 | * |
||
835 | * @return boolean Returns the show axes. |
||
836 | */ |
||
837 | public function getShowAxes() { |
||
840 | |||
841 | /** |
||
842 | * Get the spacing. |
||
843 | * |
||
844 | * @return array Returns the spacing. |
||
845 | */ |
||
846 | public function getSpacing() { |
||
849 | |||
850 | /** |
||
851 | * Get the spacing bottom. |
||
852 | * |
||
853 | * @return integer Returns the spacing bottom. |
||
854 | */ |
||
855 | public function getSpacingBottom() { |
||
858 | |||
859 | /** |
||
860 | * Get the spacing left. |
||
861 | * |
||
862 | * @return integer Returns the spacing left. |
||
863 | */ |
||
864 | public function getSpacingLeft() { |
||
867 | |||
868 | /** |
||
869 | * Get the spacing right. |
||
870 | * |
||
871 | * @return integer Returns the spacing right. |
||
872 | */ |
||
873 | public function getSpacingRight() { |
||
876 | |||
877 | /** |
||
878 | * Get the spacing top. |
||
879 | * |
||
880 | * @return integer Returns the spacing top. |
||
881 | */ |
||
882 | public function getSpacingTop() { |
||
885 | |||
886 | /** |
||
887 | * Get the style. |
||
888 | * |
||
889 | * @return array Returns the style. |
||
890 | */ |
||
891 | public function getStyle() { |
||
894 | |||
895 | /** |
||
896 | * Get the type. |
||
897 | * |
||
898 | * @return string Returns the type. |
||
899 | */ |
||
900 | public function getType() { |
||
903 | |||
904 | /** |
||
905 | * Get the type description. |
||
906 | * |
||
907 | * @return string Returns the type description. |
||
908 | */ |
||
909 | public function getTypeDescription() { |
||
912 | |||
913 | /** |
||
914 | * Get the width. |
||
915 | * |
||
916 | * @return integer Returns the width. |
||
917 | */ |
||
918 | public function getWidth() { |
||
921 | |||
922 | /** |
||
923 | * Get the zoom type. |
||
924 | * |
||
925 | * @return string Returns the zoom type. |
||
926 | */ |
||
927 | public function getZoomType() { |
||
930 | |||
931 | /** |
||
932 | * Serialize this instance. |
||
933 | * |
||
934 | * @return array Returns an array representing this instance. |
||
935 | */ |
||
936 | public function jsonSerialize() { |
||
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() { |
||
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() { |
||
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() { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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) { |
||
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() { |
||
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.