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. |
||
| 103 | * |
||
| 104 | * @var array |
||
| 105 | */ |
||
| 106 | private $data; |
||
| 107 | |||
| 108 | /** |
||
| 109 | * Data labels. |
||
| 110 | * |
||
| 111 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pie\HighchartsDataLabels |
||
| 112 | */ |
||
| 113 | private $dataLabels; |
||
| 114 | |||
| 115 | /** |
||
| 116 | * Depth. |
||
| 117 | * |
||
| 118 | * @var integer |
||
| 119 | * @since 4.0 |
||
| 120 | */ |
||
| 121 | private $depth = 0; |
||
| 122 | |||
| 123 | /** |
||
| 124 | * Description. |
||
| 125 | * |
||
| 126 | * @var string |
||
| 127 | * @since 5.0.0 |
||
| 128 | */ |
||
| 129 | private $description; |
||
| 130 | |||
| 131 | /** |
||
| 132 | * Enable mouse tracking. |
||
| 133 | * |
||
| 134 | * @var boolean |
||
| 135 | */ |
||
| 136 | private $enableMouseTracking = true; |
||
| 137 | |||
| 138 | /** |
||
| 139 | * End angle. |
||
| 140 | * |
||
| 141 | * @var integer |
||
| 142 | * @since 1.3.6 |
||
| 143 | */ |
||
| 144 | private $endAngle; |
||
| 145 | |||
| 146 | /** |
||
| 147 | * Events. |
||
| 148 | * |
||
| 149 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pie\HighchartsEvents |
||
| 150 | */ |
||
| 151 | private $events; |
||
| 152 | |||
| 153 | /** |
||
| 154 | * Expose element to a11y. |
||
| 155 | * |
||
| 156 | * @var boolean |
||
| 157 | * @since 5.0.12 |
||
| 158 | */ |
||
| 159 | private $exposeElementToA11y; |
||
| 160 | |||
| 161 | /** |
||
| 162 | * Find nearest point by. |
||
| 163 | * |
||
| 164 | * @var string |
||
| 165 | * @since 5.0.10 |
||
| 166 | */ |
||
| 167 | private $findNearestPointBy; |
||
| 168 | |||
| 169 | /** |
||
| 170 | * Get extremes from all. |
||
| 171 | * |
||
| 172 | * @var boolean |
||
| 173 | * @since 4.1.6 |
||
| 174 | */ |
||
| 175 | private $getExtremesFromAll = false; |
||
| 176 | |||
| 177 | /** |
||
| 178 | * Id. |
||
| 179 | * |
||
| 180 | * @var string |
||
| 181 | * @since 1.2.0 |
||
| 182 | */ |
||
| 183 | private $id; |
||
| 184 | |||
| 185 | /** |
||
| 186 | * Ignore hidden point. |
||
| 187 | * |
||
| 188 | * @var boolean |
||
| 189 | * @since 2.3.0 |
||
| 190 | */ |
||
| 191 | private $ignoreHiddenPoint = true; |
||
| 192 | |||
| 193 | /** |
||
| 194 | * Index. |
||
| 195 | * |
||
| 196 | * @var integer |
||
| 197 | * @since 2.3.0 |
||
| 198 | */ |
||
| 199 | private $index; |
||
| 200 | |||
| 201 | /** |
||
| 202 | * Inner size. |
||
| 203 | * |
||
| 204 | * @var string|integer |
||
| 205 | * @since 2.0 |
||
| 206 | */ |
||
| 207 | private $innerSize = "0"; |
||
| 208 | |||
| 209 | /** |
||
| 210 | * Keys. |
||
| 211 | * |
||
| 212 | * @var array |
||
| 213 | * @since 4.1.6 |
||
| 214 | */ |
||
| 215 | private $keys; |
||
| 216 | |||
| 217 | /** |
||
| 218 | * Legend index. |
||
| 219 | * |
||
| 220 | * @var integer |
||
| 221 | */ |
||
| 222 | private $legendIndex; |
||
| 223 | |||
| 224 | /** |
||
| 225 | * Linked to. |
||
| 226 | * |
||
| 227 | * @var string |
||
| 228 | * @since 3.0 |
||
| 229 | */ |
||
| 230 | private $linkedTo; |
||
| 231 | |||
| 232 | /** |
||
| 233 | * Min size. |
||
| 234 | * |
||
| 235 | * @var integer |
||
| 236 | * @since 3.0 |
||
| 237 | */ |
||
| 238 | private $minSize = 80; |
||
| 239 | |||
| 240 | /** |
||
| 241 | * Name. |
||
| 242 | * |
||
| 243 | * @var string |
||
| 244 | */ |
||
| 245 | private $name; |
||
| 246 | |||
| 247 | /** |
||
| 248 | * Point. |
||
| 249 | * |
||
| 250 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pie\HighchartsPoint |
||
| 251 | */ |
||
| 252 | private $point; |
||
| 253 | |||
| 254 | /** |
||
| 255 | * Point description formatter. |
||
| 256 | * |
||
| 257 | * @var string |
||
| 258 | * @since 5.0.12 |
||
| 259 | */ |
||
| 260 | private $pointDescriptionFormatter; |
||
| 261 | |||
| 262 | /** |
||
| 263 | * Selected. |
||
| 264 | * |
||
| 265 | * @var boolean |
||
| 266 | * @since 1.2.0 |
||
| 267 | */ |
||
| 268 | private $selected = false; |
||
| 269 | |||
| 270 | /** |
||
| 271 | * Shadow. |
||
| 272 | * |
||
| 273 | * @var boolean|array |
||
| 274 | */ |
||
| 275 | private $shadow = false; |
||
| 276 | |||
| 277 | /** |
||
| 278 | * Show in legend. |
||
| 279 | * |
||
| 280 | * @var boolean |
||
| 281 | */ |
||
| 282 | private $showInLegend = false; |
||
| 283 | |||
| 284 | /** |
||
| 285 | * Size. |
||
| 286 | * |
||
| 287 | * @var string|integer |
||
| 288 | */ |
||
| 289 | private $size; |
||
| 290 | |||
| 291 | /** |
||
| 292 | * Skip keyboard navigation. |
||
| 293 | * |
||
| 294 | * @var boolean |
||
| 295 | * @since 5.0.12 |
||
| 296 | */ |
||
| 297 | private $skipKeyboardNavigation; |
||
| 298 | |||
| 299 | /** |
||
| 300 | * Sliced offset. |
||
| 301 | * |
||
| 302 | * @var integer |
||
| 303 | */ |
||
| 304 | private $slicedOffset = 10; |
||
| 305 | |||
| 306 | /** |
||
| 307 | * Start angle. |
||
| 308 | * |
||
| 309 | * @var integer |
||
| 310 | * @since 2.3.4 |
||
| 311 | */ |
||
| 312 | private $startAngle = 0; |
||
| 313 | |||
| 314 | /** |
||
| 315 | * States. |
||
| 316 | * |
||
| 317 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pie\HighchartsStates |
||
| 318 | */ |
||
| 319 | private $states; |
||
| 320 | |||
| 321 | /** |
||
| 322 | * Sticky tracking. |
||
| 323 | * |
||
| 324 | * @var boolean |
||
| 325 | */ |
||
| 326 | private $stickyTracking = false; |
||
| 327 | |||
| 328 | /** |
||
| 329 | * Tooltip. |
||
| 330 | * |
||
| 331 | * @var array |
||
| 332 | * @since 2.3 |
||
| 333 | */ |
||
| 334 | private $tooltip; |
||
| 335 | |||
| 336 | /** |
||
| 337 | * Type. |
||
| 338 | * |
||
| 339 | * @var string |
||
| 340 | */ |
||
| 341 | private $type; |
||
| 342 | |||
| 343 | /** |
||
| 344 | * Visible. |
||
| 345 | * |
||
| 346 | * @var boolean |
||
| 347 | */ |
||
| 348 | private $visible = true; |
||
| 349 | |||
| 350 | /** |
||
| 351 | * Z index. |
||
| 352 | * |
||
| 353 | * @var integer |
||
| 354 | */ |
||
| 355 | private $zIndex; |
||
| 356 | |||
| 357 | /** |
||
| 358 | * Zone axis. |
||
| 359 | * |
||
| 360 | * @var string |
||
| 361 | * @since 4.1.0 |
||
| 362 | */ |
||
| 363 | private $zoneAxis = "y"; |
||
| 364 | |||
| 365 | /** |
||
| 366 | * Zones. |
||
| 367 | * |
||
| 368 | * @var array |
||
| 369 | * @since 4.1.0 |
||
| 370 | */ |
||
| 371 | private $zones; |
||
| 372 | |||
| 373 | /** |
||
| 374 | * Constructor. |
||
| 375 | * |
||
| 376 | * @param boolean $ignoreDefaultValues Ignore the default values. |
||
| 377 | */ |
||
| 378 | public function __construct($ignoreDefaultValues = true) { |
||
| 383 | |||
| 384 | /** |
||
| 385 | * Clear. |
||
| 386 | * |
||
| 387 | * @return void |
||
| 388 | */ |
||
| 389 | public function clear() { |
||
| 537 | |||
| 538 | /** |
||
| 539 | * Get the allow point select. |
||
| 540 | * |
||
| 541 | * @return boolean Returns the allow point select. |
||
| 542 | */ |
||
| 543 | public function getAllowPointSelect() { |
||
| 546 | |||
| 547 | /** |
||
| 548 | * Get the animation. |
||
| 549 | * |
||
| 550 | * @return boolean Returns the animation. |
||
| 551 | */ |
||
| 552 | public function getAnimation() { |
||
| 555 | |||
| 556 | /** |
||
| 557 | * Get the animation limit. |
||
| 558 | * |
||
| 559 | * @return integer Returns the animation limit. |
||
| 560 | */ |
||
| 561 | public function getAnimationLimit() { |
||
| 564 | |||
| 565 | /** |
||
| 566 | * Get the border color. |
||
| 567 | * |
||
| 568 | * @return string Returns the border color. |
||
| 569 | */ |
||
| 570 | public function getBorderColor() { |
||
| 573 | |||
| 574 | /** |
||
| 575 | * Get the border width. |
||
| 576 | * |
||
| 577 | * @return integer Returns the border width. |
||
| 578 | */ |
||
| 579 | public function getBorderWidth() { |
||
| 582 | |||
| 583 | /** |
||
| 584 | * Get the center. |
||
| 585 | * |
||
| 586 | * @return array Returns the center. |
||
| 587 | */ |
||
| 588 | public function getCenter() { |
||
| 591 | |||
| 592 | /** |
||
| 593 | * Get the class name. |
||
| 594 | * |
||
| 595 | * @return string Returns the class name. |
||
| 596 | */ |
||
| 597 | public function getClassName() { |
||
| 600 | |||
| 601 | /** |
||
| 602 | * Get the color index. |
||
| 603 | * |
||
| 604 | * @return integer Returns the color index. |
||
| 605 | */ |
||
| 606 | public function getColorIndex() { |
||
| 609 | |||
| 610 | /** |
||
| 611 | * Get the colors. |
||
| 612 | * |
||
| 613 | * @return array Returns the colors. |
||
| 614 | */ |
||
| 615 | public function getColors() { |
||
| 618 | |||
| 619 | /** |
||
| 620 | * Get the cursor. |
||
| 621 | * |
||
| 622 | * @return string Returns the cursor. |
||
| 623 | */ |
||
| 624 | public function getCursor() { |
||
| 627 | |||
| 628 | /** |
||
| 629 | * Get the data. |
||
| 630 | * |
||
| 631 | * @return array Returns the data. |
||
| 632 | */ |
||
| 633 | public function getData() { |
||
| 636 | |||
| 637 | /** |
||
| 638 | * Get the data labels. |
||
| 639 | * |
||
| 640 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pie\HighchartsDataLabels Returns the data labels. |
||
| 641 | */ |
||
| 642 | public function getDataLabels() { |
||
| 645 | |||
| 646 | /** |
||
| 647 | * Get the depth. |
||
| 648 | * |
||
| 649 | * @return integer Returns the depth. |
||
| 650 | */ |
||
| 651 | public function getDepth() { |
||
| 654 | |||
| 655 | /** |
||
| 656 | * Get the description. |
||
| 657 | * |
||
| 658 | * @return string Returns the description. |
||
| 659 | */ |
||
| 660 | public function getDescription() { |
||
| 663 | |||
| 664 | /** |
||
| 665 | * Get the enable mouse tracking. |
||
| 666 | * |
||
| 667 | * @return boolean Returns the enable mouse tracking. |
||
| 668 | */ |
||
| 669 | public function getEnableMouseTracking() { |
||
| 672 | |||
| 673 | /** |
||
| 674 | * Get the end angle. |
||
| 675 | * |
||
| 676 | * @return integer Returns the end angle. |
||
| 677 | */ |
||
| 678 | public function getEndAngle() { |
||
| 681 | |||
| 682 | /** |
||
| 683 | * Get the events. |
||
| 684 | * |
||
| 685 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pie\HighchartsEvents Returns the events. |
||
| 686 | */ |
||
| 687 | public function getEvents() { |
||
| 690 | |||
| 691 | /** |
||
| 692 | * Get the expose element to a11y. |
||
| 693 | * |
||
| 694 | * @return boolean Returns the expose element to a11y. |
||
| 695 | */ |
||
| 696 | public function getExposeElementToA11y() { |
||
| 699 | |||
| 700 | /** |
||
| 701 | * Get the find nearest point by. |
||
| 702 | * |
||
| 703 | * @return string Returns the find nearest point by. |
||
| 704 | */ |
||
| 705 | public function getFindNearestPointBy() { |
||
| 708 | |||
| 709 | /** |
||
| 710 | * Get the get extremes from all. |
||
| 711 | * |
||
| 712 | * @return boolean Returns the get extremes from all. |
||
| 713 | */ |
||
| 714 | public function getGetExtremesFromAll() { |
||
| 717 | |||
| 718 | /** |
||
| 719 | * Get the id. |
||
| 720 | * |
||
| 721 | * @return string Returns the id. |
||
| 722 | */ |
||
| 723 | public function getId() { |
||
| 726 | |||
| 727 | /** |
||
| 728 | * Get the ignore hidden point. |
||
| 729 | * |
||
| 730 | * @return boolean Returns the ignore hidden point. |
||
| 731 | */ |
||
| 732 | public function getIgnoreHiddenPoint() { |
||
| 735 | |||
| 736 | /** |
||
| 737 | * Get the index. |
||
| 738 | * |
||
| 739 | * @return integer Returns the index. |
||
| 740 | */ |
||
| 741 | public function getIndex() { |
||
| 744 | |||
| 745 | /** |
||
| 746 | * Get the inner size. |
||
| 747 | * |
||
| 748 | * @return string|integer Returns the inner size. |
||
| 749 | */ |
||
| 750 | public function getInnerSize() { |
||
| 753 | |||
| 754 | /** |
||
| 755 | * Get the keys. |
||
| 756 | * |
||
| 757 | * @return array Returns the keys. |
||
| 758 | */ |
||
| 759 | public function getKeys() { |
||
| 762 | |||
| 763 | /** |
||
| 764 | * Get the legend index. |
||
| 765 | * |
||
| 766 | * @return integer Returns the legend index. |
||
| 767 | */ |
||
| 768 | public function getLegendIndex() { |
||
| 771 | |||
| 772 | /** |
||
| 773 | * Get the linked to. |
||
| 774 | * |
||
| 775 | * @return string Returns the linked to. |
||
| 776 | */ |
||
| 777 | public function getLinkedTo() { |
||
| 780 | |||
| 781 | /** |
||
| 782 | * Get the min size. |
||
| 783 | * |
||
| 784 | * @return integer Returns the min size. |
||
| 785 | */ |
||
| 786 | public function getMinSize() { |
||
| 789 | |||
| 790 | /** |
||
| 791 | * Get the name. |
||
| 792 | * |
||
| 793 | * @return string Returns the name. |
||
| 794 | */ |
||
| 795 | public function getName() { |
||
| 798 | |||
| 799 | /** |
||
| 800 | * Get the point. |
||
| 801 | * |
||
| 802 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pie\HighchartsPoint Returns the point. |
||
| 803 | */ |
||
| 804 | public function getPoint() { |
||
| 807 | |||
| 808 | /** |
||
| 809 | * Get the point description formatter. |
||
| 810 | * |
||
| 811 | * @return string Returns the point description formatter. |
||
| 812 | */ |
||
| 813 | public function getPointDescriptionFormatter() { |
||
| 816 | |||
| 817 | /** |
||
| 818 | * Get the selected. |
||
| 819 | * |
||
| 820 | * @return boolean Returns the selected. |
||
| 821 | */ |
||
| 822 | public function getSelected() { |
||
| 825 | |||
| 826 | /** |
||
| 827 | * Get the shadow. |
||
| 828 | * |
||
| 829 | * @return boolean|array Returns the shadow. |
||
| 830 | */ |
||
| 831 | public function getShadow() { |
||
| 834 | |||
| 835 | /** |
||
| 836 | * Get the show in legend. |
||
| 837 | * |
||
| 838 | * @return boolean Returns the show in legend. |
||
| 839 | */ |
||
| 840 | public function getShowInLegend() { |
||
| 843 | |||
| 844 | /** |
||
| 845 | * Get the size. |
||
| 846 | * |
||
| 847 | * @return string|integer Returns the size. |
||
| 848 | */ |
||
| 849 | public function getSize() { |
||
| 852 | |||
| 853 | /** |
||
| 854 | * Get the skip keyboard navigation. |
||
| 855 | * |
||
| 856 | * @return boolean Returns the skip keyboard navigation. |
||
| 857 | */ |
||
| 858 | public function getSkipKeyboardNavigation() { |
||
| 861 | |||
| 862 | /** |
||
| 863 | * Get the sliced offset. |
||
| 864 | * |
||
| 865 | * @return integer Returns the sliced offset. |
||
| 866 | */ |
||
| 867 | public function getSlicedOffset() { |
||
| 870 | |||
| 871 | /** |
||
| 872 | * Get the start angle. |
||
| 873 | * |
||
| 874 | * @return integer Returns the start angle. |
||
| 875 | */ |
||
| 876 | public function getStartAngle() { |
||
| 879 | |||
| 880 | /** |
||
| 881 | * Get the states. |
||
| 882 | * |
||
| 883 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pie\HighchartsStates Returns the states. |
||
| 884 | */ |
||
| 885 | public function getStates() { |
||
| 888 | |||
| 889 | /** |
||
| 890 | * Get the sticky tracking. |
||
| 891 | * |
||
| 892 | * @return boolean Returns the sticky tracking. |
||
| 893 | */ |
||
| 894 | public function getStickyTracking() { |
||
| 897 | |||
| 898 | /** |
||
| 899 | * Get the tooltip. |
||
| 900 | * |
||
| 901 | * @return array Returns the tooltip. |
||
| 902 | */ |
||
| 903 | public function getTooltip() { |
||
| 906 | |||
| 907 | /** |
||
| 908 | * Get the type. |
||
| 909 | * |
||
| 910 | * @return string Returns the type. |
||
| 911 | */ |
||
| 912 | public function getType() { |
||
| 915 | |||
| 916 | /** |
||
| 917 | * Get the visible. |
||
| 918 | * |
||
| 919 | * @return boolean Returns the visible. |
||
| 920 | */ |
||
| 921 | public function getVisible() { |
||
| 924 | |||
| 925 | /** |
||
| 926 | * Get the z index. |
||
| 927 | * |
||
| 928 | * @return integer Returns the z index. |
||
| 929 | */ |
||
| 930 | public function getZIndex() { |
||
| 933 | |||
| 934 | /** |
||
| 935 | * Get the zone axis. |
||
| 936 | * |
||
| 937 | * @return string Returns the zone axis. |
||
| 938 | */ |
||
| 939 | public function getZoneAxis() { |
||
| 942 | |||
| 943 | /** |
||
| 944 | * Get the zones. |
||
| 945 | * |
||
| 946 | * @return array Returns the zones. |
||
| 947 | */ |
||
| 948 | public function getZones() { |
||
| 951 | |||
| 952 | /** |
||
| 953 | * Serialize this instance. |
||
| 954 | * |
||
| 955 | * @return array Returns an array representing this instance. |
||
| 956 | */ |
||
| 957 | public function jsonSerialize() { |
||
| 960 | |||
| 961 | /** |
||
| 962 | * Create a new data labels. |
||
| 963 | * |
||
| 964 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pie\HighchartsDataLabels Returns the data labels. |
||
| 965 | */ |
||
| 966 | public function newDataLabels() { |
||
| 970 | |||
| 971 | /** |
||
| 972 | * Create a new events. |
||
| 973 | * |
||
| 974 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pie\HighchartsEvents Returns the events. |
||
| 975 | */ |
||
| 976 | public function newEvents() { |
||
| 980 | |||
| 981 | /** |
||
| 982 | * Create a new point. |
||
| 983 | * |
||
| 984 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pie\HighchartsPoint Returns the point. |
||
| 985 | */ |
||
| 986 | public function newPoint() { |
||
| 990 | |||
| 991 | /** |
||
| 992 | * Create a new states. |
||
| 993 | * |
||
| 994 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pie\HighchartsStates Returns the states. |
||
| 995 | */ |
||
| 996 | public function newStates() { |
||
| 1000 | |||
| 1001 | /** |
||
| 1002 | * Set the allow point select. |
||
| 1003 | * |
||
| 1004 | * @param boolean $allowPointSelect The allow point select. |
||
| 1005 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1006 | */ |
||
| 1007 | public function setAllowPointSelect($allowPointSelect) { |
||
| 1011 | |||
| 1012 | /** |
||
| 1013 | * Set the animation. |
||
| 1014 | * |
||
| 1015 | * @param boolean $animation The animation. |
||
| 1016 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1017 | */ |
||
| 1018 | public function setAnimation($animation) { |
||
| 1022 | |||
| 1023 | /** |
||
| 1024 | * Set the animation limit. |
||
| 1025 | * |
||
| 1026 | * @param integer $animationLimit The animation limit. |
||
| 1027 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1028 | */ |
||
| 1029 | public function setAnimationLimit($animationLimit) { |
||
| 1033 | |||
| 1034 | /** |
||
| 1035 | * Set the border color. |
||
| 1036 | * |
||
| 1037 | * @param string $borderColor The border color. |
||
| 1038 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1039 | */ |
||
| 1040 | public function setBorderColor($borderColor) { |
||
| 1044 | |||
| 1045 | /** |
||
| 1046 | * Set the border width. |
||
| 1047 | * |
||
| 1048 | * @param integer $borderWidth The border width. |
||
| 1049 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1050 | */ |
||
| 1051 | public function setBorderWidth($borderWidth) { |
||
| 1055 | |||
| 1056 | /** |
||
| 1057 | * Set the center. |
||
| 1058 | * |
||
| 1059 | * @param array $center The center. |
||
| 1060 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1061 | */ |
||
| 1062 | public function setCenter(array $center = null) { |
||
| 1066 | |||
| 1067 | /** |
||
| 1068 | * Set the class name. |
||
| 1069 | * |
||
| 1070 | * @param string $className The class name. |
||
| 1071 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1072 | */ |
||
| 1073 | public function setClassName($className) { |
||
| 1077 | |||
| 1078 | /** |
||
| 1079 | * Set the color index. |
||
| 1080 | * |
||
| 1081 | * @param integer $colorIndex The color index. |
||
| 1082 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1083 | */ |
||
| 1084 | public function setColorIndex($colorIndex) { |
||
| 1088 | |||
| 1089 | /** |
||
| 1090 | * Set the colors. |
||
| 1091 | * |
||
| 1092 | * @param array $colors The colors. |
||
| 1093 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1094 | */ |
||
| 1095 | public function setColors(array $colors = null) { |
||
| 1099 | |||
| 1100 | /** |
||
| 1101 | * Set the cursor. |
||
| 1102 | * |
||
| 1103 | * @param string $cursor The cursor. |
||
| 1104 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1105 | */ |
||
| 1106 | public function setCursor($cursor) { |
||
| 1119 | |||
| 1120 | /** |
||
| 1121 | * Set the data. |
||
| 1122 | * |
||
| 1123 | * @param array $data The data. |
||
| 1124 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1125 | */ |
||
| 1126 | public function setData(array $data = null) { |
||
| 1130 | |||
| 1131 | /** |
||
| 1132 | * Set the data labels. |
||
| 1133 | * |
||
| 1134 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pie\HighchartsDataLabels $dataLabels The data labels. |
||
| 1135 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1136 | */ |
||
| 1137 | public function setDataLabels(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Pie\HighchartsDataLabels $dataLabels = null) { |
||
| 1141 | |||
| 1142 | /** |
||
| 1143 | * Set the depth. |
||
| 1144 | * |
||
| 1145 | * @param integer $depth The depth. |
||
| 1146 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1147 | */ |
||
| 1148 | public function setDepth($depth) { |
||
| 1152 | |||
| 1153 | /** |
||
| 1154 | * Set the description. |
||
| 1155 | * |
||
| 1156 | * @param string $description The description. |
||
| 1157 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1158 | */ |
||
| 1159 | public function setDescription($description) { |
||
| 1163 | |||
| 1164 | /** |
||
| 1165 | * Set the enable mouse tracking. |
||
| 1166 | * |
||
| 1167 | * @param boolean $enableMouseTracking The enable mouse tracking. |
||
| 1168 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1169 | */ |
||
| 1170 | public function setEnableMouseTracking($enableMouseTracking) { |
||
| 1174 | |||
| 1175 | /** |
||
| 1176 | * Set the end angle. |
||
| 1177 | * |
||
| 1178 | * @param integer $endAngle The end angle. |
||
| 1179 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1180 | */ |
||
| 1181 | public function setEndAngle($endAngle) { |
||
| 1185 | |||
| 1186 | /** |
||
| 1187 | * Set the events. |
||
| 1188 | * |
||
| 1189 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pie\HighchartsEvents $events The events. |
||
| 1190 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1191 | */ |
||
| 1192 | public function setEvents(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Pie\HighchartsEvents $events = null) { |
||
| 1196 | |||
| 1197 | /** |
||
| 1198 | * Set the expose element to a11y. |
||
| 1199 | * |
||
| 1200 | * @param boolean $exposeElementToA11y The expose element to a11y. |
||
| 1201 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1202 | */ |
||
| 1203 | public function setExposeElementToA11y($exposeElementToA11y) { |
||
| 1207 | |||
| 1208 | /** |
||
| 1209 | * Set the find nearest point by. |
||
| 1210 | * |
||
| 1211 | * @param string $findNearestPointBy The find nearest point by. |
||
| 1212 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1213 | */ |
||
| 1214 | public function setFindNearestPointBy($findNearestPointBy) { |
||
| 1223 | |||
| 1224 | /** |
||
| 1225 | * Set the get extremes from all. |
||
| 1226 | * |
||
| 1227 | * @param boolean $getExtremesFromAll The get extremes from all. |
||
| 1228 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1229 | */ |
||
| 1230 | public function setGetExtremesFromAll($getExtremesFromAll) { |
||
| 1234 | |||
| 1235 | /** |
||
| 1236 | * Set the id. |
||
| 1237 | * |
||
| 1238 | * @param string $id The id. |
||
| 1239 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1240 | */ |
||
| 1241 | public function setId($id) { |
||
| 1245 | |||
| 1246 | /** |
||
| 1247 | * Set the ignore hidden point. |
||
| 1248 | * |
||
| 1249 | * @param boolean $ignoreHiddenPoint The ignore hidden point. |
||
| 1250 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1251 | */ |
||
| 1252 | public function setIgnoreHiddenPoint($ignoreHiddenPoint) { |
||
| 1256 | |||
| 1257 | /** |
||
| 1258 | * Set the index. |
||
| 1259 | * |
||
| 1260 | * @param integer $index The index. |
||
| 1261 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1262 | */ |
||
| 1263 | public function setIndex($index) { |
||
| 1267 | |||
| 1268 | /** |
||
| 1269 | * Set the inner size. |
||
| 1270 | * |
||
| 1271 | * @param string|integer $innerSize The inner size. |
||
| 1272 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1273 | */ |
||
| 1274 | public function setInnerSize($innerSize) { |
||
| 1278 | |||
| 1279 | /** |
||
| 1280 | * Set the keys. |
||
| 1281 | * |
||
| 1282 | * @param array $keys The keys. |
||
| 1283 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1284 | */ |
||
| 1285 | public function setKeys(array $keys = null) { |
||
| 1289 | |||
| 1290 | /** |
||
| 1291 | * Set the legend index. |
||
| 1292 | * |
||
| 1293 | * @param integer $legendIndex The legend index. |
||
| 1294 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1295 | */ |
||
| 1296 | public function setLegendIndex($legendIndex) { |
||
| 1300 | |||
| 1301 | /** |
||
| 1302 | * Set the linked to. |
||
| 1303 | * |
||
| 1304 | * @param string $linkedTo The linked to. |
||
| 1305 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1306 | */ |
||
| 1307 | public function setLinkedTo($linkedTo) { |
||
| 1311 | |||
| 1312 | /** |
||
| 1313 | * Set the min size. |
||
| 1314 | * |
||
| 1315 | * @param integer $minSize The min size. |
||
| 1316 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1317 | */ |
||
| 1318 | public function setMinSize($minSize) { |
||
| 1322 | |||
| 1323 | /** |
||
| 1324 | * Set the name. |
||
| 1325 | * |
||
| 1326 | * @param string $name The name. |
||
| 1327 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1328 | */ |
||
| 1329 | public function setName($name) { |
||
| 1333 | |||
| 1334 | /** |
||
| 1335 | * Set the point. |
||
| 1336 | * |
||
| 1337 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pie\HighchartsPoint $point The point. |
||
| 1338 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1339 | */ |
||
| 1340 | public function setPoint(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Pie\HighchartsPoint $point = null) { |
||
| 1344 | |||
| 1345 | /** |
||
| 1346 | * Set the point description formatter. |
||
| 1347 | * |
||
| 1348 | * @param string $pointDescriptionFormatter The point description formatter. |
||
| 1349 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1350 | */ |
||
| 1351 | public function setPointDescriptionFormatter($pointDescriptionFormatter) { |
||
| 1355 | |||
| 1356 | /** |
||
| 1357 | * Set the selected. |
||
| 1358 | * |
||
| 1359 | * @param boolean $selected The selected. |
||
| 1360 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1361 | */ |
||
| 1362 | public function setSelected($selected) { |
||
| 1366 | |||
| 1367 | /** |
||
| 1368 | * Set the shadow. |
||
| 1369 | * |
||
| 1370 | * @param boolean|array $shadow The shadow. |
||
| 1371 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1372 | */ |
||
| 1373 | public function setShadow($shadow) { |
||
| 1377 | |||
| 1378 | /** |
||
| 1379 | * Set the show in legend. |
||
| 1380 | * |
||
| 1381 | * @param boolean $showInLegend The show in legend. |
||
| 1382 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1383 | */ |
||
| 1384 | public function setShowInLegend($showInLegend) { |
||
| 1388 | |||
| 1389 | /** |
||
| 1390 | * Set the size. |
||
| 1391 | * |
||
| 1392 | * @param string|integer $size The size. |
||
| 1393 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1394 | */ |
||
| 1395 | public function setSize($size) { |
||
| 1399 | |||
| 1400 | /** |
||
| 1401 | * Set the skip keyboard navigation. |
||
| 1402 | * |
||
| 1403 | * @param boolean $skipKeyboardNavigation The skip keyboard navigation. |
||
| 1404 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1405 | */ |
||
| 1406 | public function setSkipKeyboardNavigation($skipKeyboardNavigation) { |
||
| 1410 | |||
| 1411 | /** |
||
| 1412 | * Set the sliced offset. |
||
| 1413 | * |
||
| 1414 | * @param integer $slicedOffset The sliced offset. |
||
| 1415 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1416 | */ |
||
| 1417 | public function setSlicedOffset($slicedOffset) { |
||
| 1421 | |||
| 1422 | /** |
||
| 1423 | * Set the start angle. |
||
| 1424 | * |
||
| 1425 | * @param integer $startAngle The start angle. |
||
| 1426 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1427 | */ |
||
| 1428 | public function setStartAngle($startAngle) { |
||
| 1432 | |||
| 1433 | /** |
||
| 1434 | * Set the states. |
||
| 1435 | * |
||
| 1436 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Pie\HighchartsStates $states The states. |
||
| 1437 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1438 | */ |
||
| 1439 | public function setStates(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Pie\HighchartsStates $states = null) { |
||
| 1443 | |||
| 1444 | /** |
||
| 1445 | * Set the sticky tracking. |
||
| 1446 | * |
||
| 1447 | * @param boolean $stickyTracking The sticky tracking. |
||
| 1448 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1449 | */ |
||
| 1450 | public function setStickyTracking($stickyTracking) { |
||
| 1454 | |||
| 1455 | /** |
||
| 1456 | * Set the tooltip. |
||
| 1457 | * |
||
| 1458 | * @param array $tooltip The tooltip. |
||
| 1459 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1460 | */ |
||
| 1461 | public function setTooltip(array $tooltip = null) { |
||
| 1465 | |||
| 1466 | /** |
||
| 1467 | * Set the type. |
||
| 1468 | * |
||
| 1469 | * @param string $type The type. |
||
| 1470 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1471 | */ |
||
| 1472 | public function setType($type) { |
||
| 1496 | |||
| 1497 | /** |
||
| 1498 | * Set the visible. |
||
| 1499 | * |
||
| 1500 | * @param boolean $visible The visible. |
||
| 1501 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1502 | */ |
||
| 1503 | public function setVisible($visible) { |
||
| 1507 | |||
| 1508 | /** |
||
| 1509 | * Set the z index. |
||
| 1510 | * |
||
| 1511 | * @param integer $zIndex The z index. |
||
| 1512 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1513 | */ |
||
| 1514 | public function setZIndex($zIndex) { |
||
| 1518 | |||
| 1519 | /** |
||
| 1520 | * Set the zone axis. |
||
| 1521 | * |
||
| 1522 | * @param string $zoneAxis The zone axis. |
||
| 1523 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1524 | */ |
||
| 1525 | public function setZoneAxis($zoneAxis) { |
||
| 1529 | |||
| 1530 | /** |
||
| 1531 | * Set the zones. |
||
| 1532 | * |
||
| 1533 | * @param array $zones The zones. |
||
| 1534 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPie Returns the highcharts pie. |
||
| 1535 | */ |
||
| 1536 | public function setZones(array $zones = null) { |
||
| 1540 | |||
| 1541 | /** |
||
| 1542 | * Convert into an array representing this instance. |
||
| 1543 | * |
||
| 1544 | * @return array Returns an array representing this instance. |
||
| 1545 | */ |
||
| 1546 | public function toArray() { |
||
| 1700 | |||
| 1701 | } |
||
| 1702 |
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..