Complex classes like HighchartsLegend 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 HighchartsLegend, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
25 | final class HighchartsLegend implements JsonSerializable { |
||
26 | |||
27 | /** |
||
28 | * Align. |
||
29 | * |
||
30 | * @var string |
||
31 | * @since 2.0 |
||
32 | */ |
||
33 | private $align = "center"; |
||
34 | |||
35 | /** |
||
36 | * Background color. |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | private $backgroundColor; |
||
41 | |||
42 | /** |
||
43 | * Border color. |
||
44 | * |
||
45 | * @var string |
||
46 | */ |
||
47 | private $borderColor = "#999999"; |
||
48 | |||
49 | /** |
||
50 | * Border radius. |
||
51 | * |
||
52 | * @var integer |
||
53 | */ |
||
54 | private $borderRadius = 0; |
||
55 | |||
56 | /** |
||
57 | * Border width. |
||
58 | * |
||
59 | * @var integer |
||
60 | */ |
||
61 | private $borderWidth = 0; |
||
62 | |||
63 | /** |
||
64 | * Enabled. |
||
65 | * |
||
66 | * @var boolean |
||
67 | */ |
||
68 | private $enabled = true; |
||
69 | |||
70 | /** |
||
71 | * Floating. |
||
72 | * |
||
73 | * @var boolean |
||
74 | * @since 2.1 |
||
75 | */ |
||
76 | private $floating = false; |
||
77 | |||
78 | /** |
||
79 | * Item distance. |
||
80 | * |
||
81 | * @var integer |
||
82 | * @since 3.0.3 |
||
83 | */ |
||
84 | private $itemDistance = 20; |
||
85 | |||
86 | /** |
||
87 | * Item hidden style. |
||
88 | * |
||
89 | * @var array |
||
90 | */ |
||
91 | private $itemHiddenStyle = ["color" => "#cccccc"]; |
||
92 | |||
93 | /** |
||
94 | * Item hover style. |
||
95 | * |
||
96 | * @var array |
||
97 | */ |
||
98 | private $itemHoverStyle = ["color" => "#000000"]; |
||
99 | |||
100 | /** |
||
101 | * Item margin bottom. |
||
102 | * |
||
103 | * @var integer |
||
104 | * @since 2.2.0 |
||
105 | */ |
||
106 | private $itemMarginBottom = 0; |
||
107 | |||
108 | /** |
||
109 | * Item margin top. |
||
110 | * |
||
111 | * @var integer |
||
112 | * @since 2.2.0 |
||
113 | */ |
||
114 | private $itemMarginTop = 0; |
||
115 | |||
116 | /** |
||
117 | * Item style. |
||
118 | * |
||
119 | * @var array |
||
120 | */ |
||
121 | private $itemStyle = ["color" => "#333333", "cursor" => "pointer", "fontSize" => "12px", "fontWeight" => "bold", "textOverflow" => "ellipsis"]; |
||
122 | |||
123 | /** |
||
124 | * Item width. |
||
125 | * |
||
126 | * @var integer |
||
127 | * @since 2.0 |
||
128 | */ |
||
129 | private $itemWidth; |
||
130 | |||
131 | /** |
||
132 | * Label format. |
||
133 | * |
||
134 | * @var string |
||
135 | * @since 1.3 |
||
136 | */ |
||
137 | private $labelFormat = "{name}"; |
||
138 | |||
139 | /** |
||
140 | * Label formatter. |
||
141 | * |
||
142 | * @var string |
||
143 | */ |
||
144 | private $labelFormatter; |
||
145 | |||
146 | /** |
||
147 | * Layout. |
||
148 | * |
||
149 | * @var string |
||
150 | */ |
||
151 | private $layout = "horizontal"; |
||
152 | |||
153 | /** |
||
154 | * Line height. |
||
155 | * |
||
156 | * @var integer |
||
157 | * @since 2.0 |
||
158 | */ |
||
159 | private $lineHeight = 16; |
||
160 | |||
161 | /** |
||
162 | * Margin. |
||
163 | * |
||
164 | * @var integer |
||
165 | * @since 2.1 |
||
166 | */ |
||
167 | private $margin = 12; |
||
168 | |||
169 | /** |
||
170 | * Max height. |
||
171 | * |
||
172 | * @var integer |
||
173 | * @since 2.3.0 |
||
174 | */ |
||
175 | private $maxHeight; |
||
176 | |||
177 | /** |
||
178 | * Navigation. |
||
179 | * |
||
180 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\Legend\HighchartsNavigation |
||
181 | */ |
||
182 | private $navigation; |
||
183 | |||
184 | /** |
||
185 | * Padding. |
||
186 | * |
||
187 | * @var integer |
||
188 | * @since 2.2.0 |
||
189 | */ |
||
190 | private $padding = 8; |
||
191 | |||
192 | /** |
||
193 | * Reversed. |
||
194 | * |
||
195 | * @var boolean |
||
196 | * @since 1.2.5 |
||
197 | */ |
||
198 | private $reversed = false; |
||
199 | |||
200 | /** |
||
201 | * Rtl. |
||
202 | * |
||
203 | * @var boolean |
||
204 | * @since 2.2 |
||
205 | */ |
||
206 | private $rtl = false; |
||
207 | |||
208 | /** |
||
209 | * Shadow. |
||
210 | * |
||
211 | * @var boolean|array |
||
212 | */ |
||
213 | private $shadow = false; |
||
214 | |||
215 | /** |
||
216 | * Square symbol. |
||
217 | * |
||
218 | * @var boolean |
||
219 | * @since 5.0.0 |
||
220 | */ |
||
221 | private $squareSymbol = true; |
||
222 | |||
223 | /** |
||
224 | * Style. |
||
225 | * |
||
226 | * @var array |
||
227 | * @deprecated |
||
228 | */ |
||
229 | private $style; |
||
230 | |||
231 | /** |
||
232 | * Symbol height. |
||
233 | * |
||
234 | * @var integer |
||
235 | * @since 3.0.8 |
||
236 | */ |
||
237 | private $symbolHeight; |
||
238 | |||
239 | /** |
||
240 | * Symbol padding. |
||
241 | * |
||
242 | * @var integer |
||
243 | */ |
||
244 | private $symbolPadding = 5; |
||
245 | |||
246 | /** |
||
247 | * Symbol radius. |
||
248 | * |
||
249 | * @var integer |
||
250 | * @since 3.0.8 |
||
251 | */ |
||
252 | private $symbolRadius; |
||
253 | |||
254 | /** |
||
255 | * Symbol width. |
||
256 | * |
||
257 | * @var integer |
||
258 | */ |
||
259 | private $symbolWidth; |
||
260 | |||
261 | /** |
||
262 | * Title. |
||
263 | * |
||
264 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\Legend\HighchartsTitle |
||
265 | * @since 3.0 |
||
266 | */ |
||
267 | private $title; |
||
268 | |||
269 | /** |
||
270 | * Use HTML. |
||
271 | * |
||
272 | * @var boolean |
||
273 | */ |
||
274 | private $useHTML = false; |
||
275 | |||
276 | /** |
||
277 | * Vertical align. |
||
278 | * |
||
279 | * @var string |
||
280 | * @since 2.0 |
||
281 | */ |
||
282 | private $verticalAlign = "bottom"; |
||
283 | |||
284 | /** |
||
285 | * Width. |
||
286 | * |
||
287 | * @var integer |
||
288 | * @since 2.0 |
||
289 | */ |
||
290 | private $width; |
||
291 | |||
292 | /** |
||
293 | * X. |
||
294 | * |
||
295 | * @var integer |
||
296 | * @since 2.0 |
||
297 | */ |
||
298 | private $x = 0; |
||
299 | |||
300 | /** |
||
301 | * Y. |
||
302 | * |
||
303 | * @var integer |
||
304 | * @since 2.0 |
||
305 | */ |
||
306 | private $y = 0; |
||
307 | |||
308 | /** |
||
309 | * Constructor. |
||
310 | * |
||
311 | * @param boolean $ignoreDefaultValues Ignore the default values. |
||
312 | */ |
||
313 | public function __construct($ignoreDefaultValues = true) { |
||
318 | |||
319 | /** |
||
320 | * Clear. |
||
321 | * |
||
322 | * @return void |
||
323 | */ |
||
324 | public function clear() { |
||
441 | |||
442 | /** |
||
443 | * Get the align. |
||
444 | * |
||
445 | * @return string Returns the align. |
||
446 | */ |
||
447 | public function getAlign() { |
||
450 | |||
451 | /** |
||
452 | * Get the background color. |
||
453 | * |
||
454 | * @return string Returns the background color. |
||
455 | */ |
||
456 | public function getBackgroundColor() { |
||
459 | |||
460 | /** |
||
461 | * Get the border color. |
||
462 | * |
||
463 | * @return string Returns the border color. |
||
464 | */ |
||
465 | public function getBorderColor() { |
||
468 | |||
469 | /** |
||
470 | * Get the border radius. |
||
471 | * |
||
472 | * @return integer Returns the border radius. |
||
473 | */ |
||
474 | public function getBorderRadius() { |
||
477 | |||
478 | /** |
||
479 | * Get the border width. |
||
480 | * |
||
481 | * @return integer Returns the border width. |
||
482 | */ |
||
483 | public function getBorderWidth() { |
||
486 | |||
487 | /** |
||
488 | * Get the enabled. |
||
489 | * |
||
490 | * @return boolean Returns the enabled. |
||
491 | */ |
||
492 | public function getEnabled() { |
||
495 | |||
496 | /** |
||
497 | * Get the floating. |
||
498 | * |
||
499 | * @return boolean Returns the floating. |
||
500 | */ |
||
501 | public function getFloating() { |
||
504 | |||
505 | /** |
||
506 | * Get the item distance. |
||
507 | * |
||
508 | * @return integer Returns the item distance. |
||
509 | */ |
||
510 | public function getItemDistance() { |
||
513 | |||
514 | /** |
||
515 | * Get the item hidden style. |
||
516 | * |
||
517 | * @return array Returns the item hidden style. |
||
518 | */ |
||
519 | public function getItemHiddenStyle() { |
||
522 | |||
523 | /** |
||
524 | * Get the item hover style. |
||
525 | * |
||
526 | * @return array Returns the item hover style. |
||
527 | */ |
||
528 | public function getItemHoverStyle() { |
||
531 | |||
532 | /** |
||
533 | * Get the item margin bottom. |
||
534 | * |
||
535 | * @return integer Returns the item margin bottom. |
||
536 | */ |
||
537 | public function getItemMarginBottom() { |
||
540 | |||
541 | /** |
||
542 | * Get the item margin top. |
||
543 | * |
||
544 | * @return integer Returns the item margin top. |
||
545 | */ |
||
546 | public function getItemMarginTop() { |
||
549 | |||
550 | /** |
||
551 | * Get the item style. |
||
552 | * |
||
553 | * @return array Returns the item style. |
||
554 | */ |
||
555 | public function getItemStyle() { |
||
558 | |||
559 | /** |
||
560 | * Get the item width. |
||
561 | * |
||
562 | * @return integer Returns the item width. |
||
563 | */ |
||
564 | public function getItemWidth() { |
||
567 | |||
568 | /** |
||
569 | * Get the label format. |
||
570 | * |
||
571 | * @return string Returns the label format. |
||
572 | */ |
||
573 | public function getLabelFormat() { |
||
576 | |||
577 | /** |
||
578 | * Get the label formatter. |
||
579 | * |
||
580 | * @return string Returns the label formatter. |
||
581 | */ |
||
582 | public function getLabelFormatter() { |
||
585 | |||
586 | /** |
||
587 | * Get the layout. |
||
588 | * |
||
589 | * @return string Returns the layout. |
||
590 | */ |
||
591 | public function getLayout() { |
||
594 | |||
595 | /** |
||
596 | * Get the line height. |
||
597 | * |
||
598 | * @return integer Returns the line height. |
||
599 | */ |
||
600 | public function getLineHeight() { |
||
603 | |||
604 | /** |
||
605 | * Get the margin. |
||
606 | * |
||
607 | * @return integer Returns the margin. |
||
608 | */ |
||
609 | public function getMargin() { |
||
612 | |||
613 | /** |
||
614 | * Get the max height. |
||
615 | * |
||
616 | * @return integer Returns the max height. |
||
617 | */ |
||
618 | public function getMaxHeight() { |
||
621 | |||
622 | /** |
||
623 | * Get the navigation. |
||
624 | * |
||
625 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Legend\HighchartsNavigation Returns the navigation. |
||
626 | */ |
||
627 | public function getNavigation() { |
||
630 | |||
631 | /** |
||
632 | * Get the padding. |
||
633 | * |
||
634 | * @return integer Returns the padding. |
||
635 | */ |
||
636 | public function getPadding() { |
||
639 | |||
640 | /** |
||
641 | * Get the reversed. |
||
642 | * |
||
643 | * @return boolean Returns the reversed. |
||
644 | */ |
||
645 | public function getReversed() { |
||
648 | |||
649 | /** |
||
650 | * Get the rtl. |
||
651 | * |
||
652 | * @return boolean Returns the rtl. |
||
653 | */ |
||
654 | public function getRtl() { |
||
657 | |||
658 | /** |
||
659 | * Get the shadow. |
||
660 | * |
||
661 | * @return boolean|array Returns the shadow. |
||
662 | */ |
||
663 | public function getShadow() { |
||
666 | |||
667 | /** |
||
668 | * Get the square symbol. |
||
669 | * |
||
670 | * @return boolean Returns the square symbol. |
||
671 | */ |
||
672 | public function getSquareSymbol() { |
||
675 | |||
676 | /** |
||
677 | * Get the style. |
||
678 | * |
||
679 | * @return array Returns the style. |
||
680 | * @deprecated |
||
681 | */ |
||
682 | public function getStyle() { |
||
685 | |||
686 | /** |
||
687 | * Get the symbol height. |
||
688 | * |
||
689 | * @return integer Returns the symbol height. |
||
690 | */ |
||
691 | public function getSymbolHeight() { |
||
694 | |||
695 | /** |
||
696 | * Get the symbol padding. |
||
697 | * |
||
698 | * @return integer Returns the symbol padding. |
||
699 | */ |
||
700 | public function getSymbolPadding() { |
||
703 | |||
704 | /** |
||
705 | * Get the symbol radius. |
||
706 | * |
||
707 | * @return integer Returns the symbol radius. |
||
708 | */ |
||
709 | public function getSymbolRadius() { |
||
712 | |||
713 | /** |
||
714 | * Get the symbol width. |
||
715 | * |
||
716 | * @return integer Returns the symbol width. |
||
717 | */ |
||
718 | public function getSymbolWidth() { |
||
721 | |||
722 | /** |
||
723 | * Get the title. |
||
724 | * |
||
725 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Legend\HighchartsTitle Returns the title. |
||
726 | */ |
||
727 | public function getTitle() { |
||
730 | |||
731 | /** |
||
732 | * Get the use HTML. |
||
733 | * |
||
734 | * @return boolean Returns the use HTML. |
||
735 | */ |
||
736 | public function getUseHTML() { |
||
739 | |||
740 | /** |
||
741 | * Get the vertical align. |
||
742 | * |
||
743 | * @return string Returns the vertical align. |
||
744 | */ |
||
745 | public function getVerticalAlign() { |
||
748 | |||
749 | /** |
||
750 | * Get the width. |
||
751 | * |
||
752 | * @return integer Returns the width. |
||
753 | */ |
||
754 | public function getWidth() { |
||
757 | |||
758 | /** |
||
759 | * Get the x. |
||
760 | * |
||
761 | * @return integer Returns the x. |
||
762 | */ |
||
763 | public function getX() { |
||
766 | |||
767 | /** |
||
768 | * Get the y. |
||
769 | * |
||
770 | * @return integer Returns the y. |
||
771 | */ |
||
772 | public function getY() { |
||
775 | |||
776 | /** |
||
777 | * Serialize this instance. |
||
778 | * |
||
779 | * @return array Returns an array representing this instance. |
||
780 | */ |
||
781 | public function jsonSerialize() { |
||
784 | |||
785 | /** |
||
786 | * Create a new navigation. |
||
787 | * |
||
788 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Legend\HighchartsNavigation Returns the navigation. |
||
789 | */ |
||
790 | public function newNavigation() { |
||
794 | |||
795 | /** |
||
796 | * Create a new title. |
||
797 | * |
||
798 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Legend\HighchartsTitle Returns the title. |
||
799 | */ |
||
800 | public function newTitle() { |
||
804 | |||
805 | /** |
||
806 | * Set the align. |
||
807 | * |
||
808 | * @param string $align The align. |
||
809 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
810 | */ |
||
811 | public function setAlign($align) { |
||
821 | |||
822 | /** |
||
823 | * Set the background color. |
||
824 | * |
||
825 | * @param string $backgroundColor The background color. |
||
826 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
827 | */ |
||
828 | public function setBackgroundColor($backgroundColor) { |
||
832 | |||
833 | /** |
||
834 | * Set the border color. |
||
835 | * |
||
836 | * @param string $borderColor The border color. |
||
837 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
838 | */ |
||
839 | public function setBorderColor($borderColor) { |
||
843 | |||
844 | /** |
||
845 | * Set the border radius. |
||
846 | * |
||
847 | * @param integer $borderRadius The border radius. |
||
848 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
849 | */ |
||
850 | public function setBorderRadius($borderRadius) { |
||
854 | |||
855 | /** |
||
856 | * Set the border width. |
||
857 | * |
||
858 | * @param integer $borderWidth The border width. |
||
859 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
860 | */ |
||
861 | public function setBorderWidth($borderWidth) { |
||
865 | |||
866 | /** |
||
867 | * Set the enabled. |
||
868 | * |
||
869 | * @param boolean $enabled The enabled. |
||
870 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
871 | */ |
||
872 | public function setEnabled($enabled) { |
||
876 | |||
877 | /** |
||
878 | * Set the floating. |
||
879 | * |
||
880 | * @param boolean $floating The floating. |
||
881 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
882 | */ |
||
883 | public function setFloating($floating) { |
||
887 | |||
888 | /** |
||
889 | * Set the item distance. |
||
890 | * |
||
891 | * @param integer $itemDistance The item distance. |
||
892 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
893 | */ |
||
894 | public function setItemDistance($itemDistance) { |
||
898 | |||
899 | /** |
||
900 | * Set the item hidden style. |
||
901 | * |
||
902 | * @param array $itemHiddenStyle The item hidden style. |
||
903 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
904 | */ |
||
905 | public function setItemHiddenStyle(array $itemHiddenStyle = null) { |
||
909 | |||
910 | /** |
||
911 | * Set the item hover style. |
||
912 | * |
||
913 | * @param array $itemHoverStyle The item hover style. |
||
914 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
915 | */ |
||
916 | public function setItemHoverStyle(array $itemHoverStyle = null) { |
||
920 | |||
921 | /** |
||
922 | * Set the item margin bottom. |
||
923 | * |
||
924 | * @param integer $itemMarginBottom The item margin bottom. |
||
925 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
926 | */ |
||
927 | public function setItemMarginBottom($itemMarginBottom) { |
||
931 | |||
932 | /** |
||
933 | * Set the item margin top. |
||
934 | * |
||
935 | * @param integer $itemMarginTop The item margin top. |
||
936 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
937 | */ |
||
938 | public function setItemMarginTop($itemMarginTop) { |
||
942 | |||
943 | /** |
||
944 | * Set the item style. |
||
945 | * |
||
946 | * @param array $itemStyle The item style. |
||
947 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
948 | */ |
||
949 | public function setItemStyle(array $itemStyle = null) { |
||
953 | |||
954 | /** |
||
955 | * Set the item width. |
||
956 | * |
||
957 | * @param integer $itemWidth The item width. |
||
958 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
959 | */ |
||
960 | public function setItemWidth($itemWidth) { |
||
964 | |||
965 | /** |
||
966 | * Set the label format. |
||
967 | * |
||
968 | * @param string $labelFormat The label format. |
||
969 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
970 | */ |
||
971 | public function setLabelFormat($labelFormat) { |
||
975 | |||
976 | /** |
||
977 | * Set the label formatter. |
||
978 | * |
||
979 | * @param string $labelFormatter The label formatter. |
||
980 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
981 | */ |
||
982 | public function setLabelFormatter($labelFormatter) { |
||
986 | |||
987 | /** |
||
988 | * Set the layout. |
||
989 | * |
||
990 | * @param string $layout The layout. |
||
991 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
992 | */ |
||
993 | public function setLayout($layout) { |
||
1002 | |||
1003 | /** |
||
1004 | * Set the line height. |
||
1005 | * |
||
1006 | * @param integer $lineHeight The line height. |
||
1007 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
1008 | */ |
||
1009 | public function setLineHeight($lineHeight) { |
||
1013 | |||
1014 | /** |
||
1015 | * Set the margin. |
||
1016 | * |
||
1017 | * @param integer $margin The margin. |
||
1018 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
1019 | */ |
||
1020 | public function setMargin($margin) { |
||
1024 | |||
1025 | /** |
||
1026 | * Set the max height. |
||
1027 | * |
||
1028 | * @param integer $maxHeight The max height. |
||
1029 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
1030 | */ |
||
1031 | public function setMaxHeight($maxHeight) { |
||
1035 | |||
1036 | /** |
||
1037 | * Set the navigation. |
||
1038 | * |
||
1039 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\Legend\HighchartsNavigation $navigation The navigation. |
||
1040 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
1041 | */ |
||
1042 | public function setNavigation(\WBW\Bundle\HighchartsBundle\API\Chart\Legend\HighchartsNavigation $navigation = null) { |
||
1046 | |||
1047 | /** |
||
1048 | * Set the padding. |
||
1049 | * |
||
1050 | * @param integer $padding The padding. |
||
1051 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
1052 | */ |
||
1053 | public function setPadding($padding) { |
||
1057 | |||
1058 | /** |
||
1059 | * Set the reversed. |
||
1060 | * |
||
1061 | * @param boolean $reversed The reversed. |
||
1062 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
1063 | */ |
||
1064 | public function setReversed($reversed) { |
||
1068 | |||
1069 | /** |
||
1070 | * Set the rtl. |
||
1071 | * |
||
1072 | * @param boolean $rtl The rtl. |
||
1073 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
1074 | */ |
||
1075 | public function setRtl($rtl) { |
||
1079 | |||
1080 | /** |
||
1081 | * Set the shadow. |
||
1082 | * |
||
1083 | * @param boolean|array $shadow The shadow. |
||
1084 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
1085 | */ |
||
1086 | public function setShadow($shadow) { |
||
1090 | |||
1091 | /** |
||
1092 | * Set the square symbol. |
||
1093 | * |
||
1094 | * @param boolean $squareSymbol The square symbol. |
||
1095 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
1096 | */ |
||
1097 | public function setSquareSymbol($squareSymbol) { |
||
1101 | |||
1102 | /** |
||
1103 | * Set the style. |
||
1104 | * |
||
1105 | * @param array $style The style. |
||
1106 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
1107 | * @deprecated |
||
1108 | */ |
||
1109 | public function setStyle(array $style = null) { |
||
1113 | |||
1114 | /** |
||
1115 | * Set the symbol height. |
||
1116 | * |
||
1117 | * @param integer $symbolHeight The symbol height. |
||
1118 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
1119 | */ |
||
1120 | public function setSymbolHeight($symbolHeight) { |
||
1124 | |||
1125 | /** |
||
1126 | * Set the symbol padding. |
||
1127 | * |
||
1128 | * @param integer $symbolPadding The symbol padding. |
||
1129 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
1130 | */ |
||
1131 | public function setSymbolPadding($symbolPadding) { |
||
1135 | |||
1136 | /** |
||
1137 | * Set the symbol radius. |
||
1138 | * |
||
1139 | * @param integer $symbolRadius The symbol radius. |
||
1140 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
1141 | */ |
||
1142 | public function setSymbolRadius($symbolRadius) { |
||
1146 | |||
1147 | /** |
||
1148 | * Set the symbol width. |
||
1149 | * |
||
1150 | * @param integer $symbolWidth The symbol width. |
||
1151 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
1152 | */ |
||
1153 | public function setSymbolWidth($symbolWidth) { |
||
1157 | |||
1158 | /** |
||
1159 | * Set the title. |
||
1160 | * |
||
1161 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\Legend\HighchartsTitle $title The title. |
||
1162 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
1163 | */ |
||
1164 | public function setTitle(\WBW\Bundle\HighchartsBundle\API\Chart\Legend\HighchartsTitle $title = null) { |
||
1168 | |||
1169 | /** |
||
1170 | * Set the use HTML. |
||
1171 | * |
||
1172 | * @param boolean $useHTML The use HTML. |
||
1173 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
1174 | */ |
||
1175 | public function setUseHTML($useHTML) { |
||
1179 | |||
1180 | /** |
||
1181 | * Set the vertical align. |
||
1182 | * |
||
1183 | * @param string $verticalAlign The vertical align. |
||
1184 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
1185 | */ |
||
1186 | public function setVerticalAlign($verticalAlign) { |
||
1196 | |||
1197 | /** |
||
1198 | * Set the width. |
||
1199 | * |
||
1200 | * @param integer $width The width. |
||
1201 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
1202 | */ |
||
1203 | public function setWidth($width) { |
||
1207 | |||
1208 | /** |
||
1209 | * Set the x. |
||
1210 | * |
||
1211 | * @param integer $x The x. |
||
1212 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
1213 | */ |
||
1214 | public function setX($x) { |
||
1218 | |||
1219 | /** |
||
1220 | * Set the y. |
||
1221 | * |
||
1222 | * @param integer $y The y. |
||
1223 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend Returns the highcharts legend. |
||
1224 | */ |
||
1225 | public function setY($y) { |
||
1229 | |||
1230 | /** |
||
1231 | * Convert into an array representing this instance. |
||
1232 | * |
||
1233 | * @return array Returns an array representing this instance. |
||
1234 | */ |
||
1235 | public function toArray() { |
||
1358 | |||
1359 | } |
||
1360 |
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..