Complex classes like HighchartsPolygon 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 HighchartsPolygon, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 25 | final class HighchartsPolygon 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 | * Class name. |
||
| 51 | * |
||
| 52 | * @var string |
||
| 53 | * @since 5.0.0 |
||
| 54 | */ |
||
| 55 | private $className; |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Color. |
||
| 59 | * |
||
| 60 | * @var string |
||
| 61 | */ |
||
| 62 | private $color; |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Color index. |
||
| 66 | * |
||
| 67 | * @var integer |
||
| 68 | * @since 5.0.0 |
||
| 69 | */ |
||
| 70 | private $colorIndex; |
||
| 71 | |||
| 72 | /** |
||
| 73 | * Crop threshold. |
||
| 74 | * |
||
| 75 | * @var integer |
||
| 76 | * @since 2.2 |
||
| 77 | */ |
||
| 78 | private $cropThreshold = 300; |
||
| 79 | |||
| 80 | /** |
||
| 81 | * Cursor. |
||
| 82 | * |
||
| 83 | * @var string |
||
| 84 | */ |
||
| 85 | private $cursor; |
||
| 86 | |||
| 87 | /** |
||
| 88 | * Dash style. |
||
| 89 | * |
||
| 90 | * @var string |
||
| 91 | * @since 2.1 |
||
| 92 | */ |
||
| 93 | private $dashStyle = "Solid"; |
||
| 94 | |||
| 95 | /** |
||
| 96 | * Data. |
||
| 97 | * |
||
| 98 | * @var array |
||
| 99 | */ |
||
| 100 | private $data; |
||
| 101 | |||
| 102 | /** |
||
| 103 | * Data labels. |
||
| 104 | * |
||
| 105 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsDataLabels |
||
| 106 | */ |
||
| 107 | private $dataLabels; |
||
| 108 | |||
| 109 | /** |
||
| 110 | * Description. |
||
| 111 | * |
||
| 112 | * @var string |
||
| 113 | * @since 5.0.0 |
||
| 114 | */ |
||
| 115 | private $description; |
||
| 116 | |||
| 117 | /** |
||
| 118 | * Enable mouse tracking. |
||
| 119 | * |
||
| 120 | * @var boolean |
||
| 121 | */ |
||
| 122 | private $enableMouseTracking = true; |
||
| 123 | |||
| 124 | /** |
||
| 125 | * Events. |
||
| 126 | * |
||
| 127 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsEvents |
||
| 128 | */ |
||
| 129 | private $events; |
||
| 130 | |||
| 131 | /** |
||
| 132 | * Expose element to a11y. |
||
| 133 | * |
||
| 134 | * @var boolean |
||
| 135 | * @since 5.0.12 |
||
| 136 | */ |
||
| 137 | private $exposeElementToA11y; |
||
| 138 | |||
| 139 | /** |
||
| 140 | * Find nearest point by. |
||
| 141 | * |
||
| 142 | * @var string |
||
| 143 | * @since 5.0.10 |
||
| 144 | */ |
||
| 145 | private $findNearestPointBy; |
||
| 146 | |||
| 147 | /** |
||
| 148 | * Get extremes from all. |
||
| 149 | * |
||
| 150 | * @var boolean |
||
| 151 | * @since 4.1.6 |
||
| 152 | */ |
||
| 153 | private $getExtremesFromAll = false; |
||
| 154 | |||
| 155 | /** |
||
| 156 | * Id. |
||
| 157 | * |
||
| 158 | * @var string |
||
| 159 | * @since 1.2.0 |
||
| 160 | */ |
||
| 161 | private $id; |
||
| 162 | |||
| 163 | /** |
||
| 164 | * Index. |
||
| 165 | * |
||
| 166 | * @var integer |
||
| 167 | * @since 2.3.0 |
||
| 168 | */ |
||
| 169 | private $index; |
||
| 170 | |||
| 171 | /** |
||
| 172 | * Keys. |
||
| 173 | * |
||
| 174 | * @var array |
||
| 175 | * @since 4.1.6 |
||
| 176 | */ |
||
| 177 | private $keys; |
||
| 178 | |||
| 179 | /** |
||
| 180 | * Legend index. |
||
| 181 | * |
||
| 182 | * @var integer |
||
| 183 | */ |
||
| 184 | private $legendIndex; |
||
| 185 | |||
| 186 | /** |
||
| 187 | * Line width. |
||
| 188 | * |
||
| 189 | * @var integer |
||
| 190 | */ |
||
| 191 | private $lineWidth = 0; |
||
| 192 | |||
| 193 | /** |
||
| 194 | * Linked to. |
||
| 195 | * |
||
| 196 | * @var string |
||
| 197 | * @since 3.0 |
||
| 198 | */ |
||
| 199 | private $linkedTo; |
||
| 200 | |||
| 201 | /** |
||
| 202 | * Marker. |
||
| 203 | * |
||
| 204 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsMarker |
||
| 205 | */ |
||
| 206 | private $marker; |
||
| 207 | |||
| 208 | /** |
||
| 209 | * Name. |
||
| 210 | * |
||
| 211 | * @var string |
||
| 212 | */ |
||
| 213 | private $name; |
||
| 214 | |||
| 215 | /** |
||
| 216 | * Negative color. |
||
| 217 | * |
||
| 218 | * @var string |
||
| 219 | * @since 3.0 |
||
| 220 | */ |
||
| 221 | private $negativeColor; |
||
| 222 | |||
| 223 | /** |
||
| 224 | * Point. |
||
| 225 | * |
||
| 226 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsPoint |
||
| 227 | */ |
||
| 228 | private $point; |
||
| 229 | |||
| 230 | /** |
||
| 231 | * Point description formatter. |
||
| 232 | * |
||
| 233 | * @var string |
||
| 234 | * @since 5.0.12 |
||
| 235 | */ |
||
| 236 | private $pointDescriptionFormatter; |
||
| 237 | |||
| 238 | /** |
||
| 239 | * Point interval. |
||
| 240 | * |
||
| 241 | * @var integer |
||
| 242 | */ |
||
| 243 | private $pointInterval = 1; |
||
| 244 | |||
| 245 | /** |
||
| 246 | * Point interval unit. |
||
| 247 | * |
||
| 248 | * @var string |
||
| 249 | * @since 4.1.0 |
||
| 250 | */ |
||
| 251 | private $pointIntervalUnit; |
||
| 252 | |||
| 253 | /** |
||
| 254 | * Point start. |
||
| 255 | * |
||
| 256 | * @var integer |
||
| 257 | */ |
||
| 258 | private $pointStart = 0; |
||
| 259 | |||
| 260 | /** |
||
| 261 | * Selected. |
||
| 262 | * |
||
| 263 | * @var boolean |
||
| 264 | * @since 1.2.0 |
||
| 265 | */ |
||
| 266 | private $selected = false; |
||
| 267 | |||
| 268 | /** |
||
| 269 | * Shadow. |
||
| 270 | * |
||
| 271 | * @var boolean|array |
||
| 272 | */ |
||
| 273 | private $shadow = false; |
||
| 274 | |||
| 275 | /** |
||
| 276 | * Show checkbox. |
||
| 277 | * |
||
| 278 | * @var boolean |
||
| 279 | * @since 1.2.0 |
||
| 280 | */ |
||
| 281 | private $showCheckbox = false; |
||
| 282 | |||
| 283 | /** |
||
| 284 | * Show in legend. |
||
| 285 | * |
||
| 286 | * @var boolean |
||
| 287 | */ |
||
| 288 | private $showInLegend = true; |
||
| 289 | |||
| 290 | /** |
||
| 291 | * Skip keyboard navigation. |
||
| 292 | * |
||
| 293 | * @var boolean |
||
| 294 | * @since 5.0.12 |
||
| 295 | */ |
||
| 296 | private $skipKeyboardNavigation; |
||
| 297 | |||
| 298 | /** |
||
| 299 | * States. |
||
| 300 | * |
||
| 301 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsStates |
||
| 302 | */ |
||
| 303 | private $states; |
||
| 304 | |||
| 305 | /** |
||
| 306 | * Sticky tracking. |
||
| 307 | * |
||
| 308 | * @var boolean |
||
| 309 | */ |
||
| 310 | private $stickyTracking = false; |
||
| 311 | |||
| 312 | /** |
||
| 313 | * Tooltip. |
||
| 314 | * |
||
| 315 | * @var array |
||
| 316 | * @since 2.3 |
||
| 317 | */ |
||
| 318 | private $tooltip; |
||
| 319 | |||
| 320 | /** |
||
| 321 | * Turbo threshold. |
||
| 322 | * |
||
| 323 | * @var integer |
||
| 324 | * @since 2.2 |
||
| 325 | */ |
||
| 326 | private $turboThreshold = 1000; |
||
| 327 | |||
| 328 | /** |
||
| 329 | * Type. |
||
| 330 | * |
||
| 331 | * @var string |
||
| 332 | */ |
||
| 333 | private $type; |
||
| 334 | |||
| 335 | /** |
||
| 336 | * Visible. |
||
| 337 | * |
||
| 338 | * @var boolean |
||
| 339 | */ |
||
| 340 | private $visible = true; |
||
| 341 | |||
| 342 | /** |
||
| 343 | * X axis. |
||
| 344 | * |
||
| 345 | * @var integer|string |
||
| 346 | */ |
||
| 347 | private $xAxis = "0"; |
||
| 348 | |||
| 349 | /** |
||
| 350 | * Y axis. |
||
| 351 | * |
||
| 352 | * @var integer|string |
||
| 353 | */ |
||
| 354 | private $yAxis = "0"; |
||
| 355 | |||
| 356 | /** |
||
| 357 | * Z index. |
||
| 358 | * |
||
| 359 | * @var integer |
||
| 360 | */ |
||
| 361 | private $zIndex; |
||
| 362 | |||
| 363 | /** |
||
| 364 | * Zone axis. |
||
| 365 | * |
||
| 366 | * @var string |
||
| 367 | * @since 4.1.0 |
||
| 368 | */ |
||
| 369 | private $zoneAxis = "y"; |
||
| 370 | |||
| 371 | /** |
||
| 372 | * Zones. |
||
| 373 | * |
||
| 374 | * @var array |
||
| 375 | * @since 4.1.0 |
||
| 376 | */ |
||
| 377 | private $zones; |
||
| 378 | |||
| 379 | /** |
||
| 380 | * Constructor. |
||
| 381 | * |
||
| 382 | * @param boolean $ignoreDefaultValues Ignore the default values. |
||
| 383 | */ |
||
| 384 | public function __construct($ignoreDefaultValues = true) { |
||
| 389 | |||
| 390 | /** |
||
| 391 | * Clear. |
||
| 392 | * |
||
| 393 | * @return void |
||
| 394 | */ |
||
| 395 | public function clear() { |
||
| 548 | |||
| 549 | /** |
||
| 550 | * Get the allow point select. |
||
| 551 | * |
||
| 552 | * @return boolean Returns the allow point select. |
||
| 553 | */ |
||
| 554 | public function getAllowPointSelect() { |
||
| 557 | |||
| 558 | /** |
||
| 559 | * Get the animation. |
||
| 560 | * |
||
| 561 | * @return boolean Returns the animation. |
||
| 562 | */ |
||
| 563 | public function getAnimation() { |
||
| 566 | |||
| 567 | /** |
||
| 568 | * Get the animation limit. |
||
| 569 | * |
||
| 570 | * @return integer Returns the animation limit. |
||
| 571 | */ |
||
| 572 | public function getAnimationLimit() { |
||
| 575 | |||
| 576 | /** |
||
| 577 | * Get the class name. |
||
| 578 | * |
||
| 579 | * @return string Returns the class name. |
||
| 580 | */ |
||
| 581 | public function getClassName() { |
||
| 584 | |||
| 585 | /** |
||
| 586 | * Get the color. |
||
| 587 | * |
||
| 588 | * @return string Returns the color. |
||
| 589 | */ |
||
| 590 | public function getColor() { |
||
| 593 | |||
| 594 | /** |
||
| 595 | * Get the color index. |
||
| 596 | * |
||
| 597 | * @return integer Returns the color index. |
||
| 598 | */ |
||
| 599 | public function getColorIndex() { |
||
| 602 | |||
| 603 | /** |
||
| 604 | * Get the crop threshold. |
||
| 605 | * |
||
| 606 | * @return integer Returns the crop threshold. |
||
| 607 | */ |
||
| 608 | public function getCropThreshold() { |
||
| 611 | |||
| 612 | /** |
||
| 613 | * Get the cursor. |
||
| 614 | * |
||
| 615 | * @return string Returns the cursor. |
||
| 616 | */ |
||
| 617 | public function getCursor() { |
||
| 620 | |||
| 621 | /** |
||
| 622 | * Get the dash style. |
||
| 623 | * |
||
| 624 | * @return string Returns the dash style. |
||
| 625 | */ |
||
| 626 | public function getDashStyle() { |
||
| 629 | |||
| 630 | /** |
||
| 631 | * Get the data. |
||
| 632 | * |
||
| 633 | * @return array Returns the data. |
||
| 634 | */ |
||
| 635 | public function getData() { |
||
| 638 | |||
| 639 | /** |
||
| 640 | * Get the data labels. |
||
| 641 | * |
||
| 642 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsDataLabels Returns the data labels. |
||
| 643 | */ |
||
| 644 | public function getDataLabels() { |
||
| 647 | |||
| 648 | /** |
||
| 649 | * Get the description. |
||
| 650 | * |
||
| 651 | * @return string Returns the description. |
||
| 652 | */ |
||
| 653 | public function getDescription() { |
||
| 656 | |||
| 657 | /** |
||
| 658 | * Get the enable mouse tracking. |
||
| 659 | * |
||
| 660 | * @return boolean Returns the enable mouse tracking. |
||
| 661 | */ |
||
| 662 | public function getEnableMouseTracking() { |
||
| 665 | |||
| 666 | /** |
||
| 667 | * Get the events. |
||
| 668 | * |
||
| 669 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsEvents Returns the events. |
||
| 670 | */ |
||
| 671 | public function getEvents() { |
||
| 674 | |||
| 675 | /** |
||
| 676 | * Get the expose element to a11y. |
||
| 677 | * |
||
| 678 | * @return boolean Returns the expose element to a11y. |
||
| 679 | */ |
||
| 680 | public function getExposeElementToA11y() { |
||
| 683 | |||
| 684 | /** |
||
| 685 | * Get the find nearest point by. |
||
| 686 | * |
||
| 687 | * @return string Returns the find nearest point by. |
||
| 688 | */ |
||
| 689 | public function getFindNearestPointBy() { |
||
| 692 | |||
| 693 | /** |
||
| 694 | * Get the get extremes from all. |
||
| 695 | * |
||
| 696 | * @return boolean Returns the get extremes from all. |
||
| 697 | */ |
||
| 698 | public function getGetExtremesFromAll() { |
||
| 701 | |||
| 702 | /** |
||
| 703 | * Get the id. |
||
| 704 | * |
||
| 705 | * @return string Returns the id. |
||
| 706 | */ |
||
| 707 | public function getId() { |
||
| 710 | |||
| 711 | /** |
||
| 712 | * Get the index. |
||
| 713 | * |
||
| 714 | * @return integer Returns the index. |
||
| 715 | */ |
||
| 716 | public function getIndex() { |
||
| 719 | |||
| 720 | /** |
||
| 721 | * Get the keys. |
||
| 722 | * |
||
| 723 | * @return array Returns the keys. |
||
| 724 | */ |
||
| 725 | public function getKeys() { |
||
| 728 | |||
| 729 | /** |
||
| 730 | * Get the legend index. |
||
| 731 | * |
||
| 732 | * @return integer Returns the legend index. |
||
| 733 | */ |
||
| 734 | public function getLegendIndex() { |
||
| 737 | |||
| 738 | /** |
||
| 739 | * Get the line width. |
||
| 740 | * |
||
| 741 | * @return integer Returns the line width. |
||
| 742 | */ |
||
| 743 | public function getLineWidth() { |
||
| 746 | |||
| 747 | /** |
||
| 748 | * Get the linked to. |
||
| 749 | * |
||
| 750 | * @return string Returns the linked to. |
||
| 751 | */ |
||
| 752 | public function getLinkedTo() { |
||
| 755 | |||
| 756 | /** |
||
| 757 | * Get the marker. |
||
| 758 | * |
||
| 759 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsMarker Returns the marker. |
||
| 760 | */ |
||
| 761 | public function getMarker() { |
||
| 764 | |||
| 765 | /** |
||
| 766 | * Get the name. |
||
| 767 | * |
||
| 768 | * @return string Returns the name. |
||
| 769 | */ |
||
| 770 | public function getName() { |
||
| 773 | |||
| 774 | /** |
||
| 775 | * Get the negative color. |
||
| 776 | * |
||
| 777 | * @return string Returns the negative color. |
||
| 778 | */ |
||
| 779 | public function getNegativeColor() { |
||
| 782 | |||
| 783 | /** |
||
| 784 | * Get the point. |
||
| 785 | * |
||
| 786 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsPoint Returns the point. |
||
| 787 | */ |
||
| 788 | public function getPoint() { |
||
| 791 | |||
| 792 | /** |
||
| 793 | * Get the point description formatter. |
||
| 794 | * |
||
| 795 | * @return string Returns the point description formatter. |
||
| 796 | */ |
||
| 797 | public function getPointDescriptionFormatter() { |
||
| 800 | |||
| 801 | /** |
||
| 802 | * Get the point interval. |
||
| 803 | * |
||
| 804 | * @return integer Returns the point interval. |
||
| 805 | */ |
||
| 806 | public function getPointInterval() { |
||
| 809 | |||
| 810 | /** |
||
| 811 | * Get the point interval unit. |
||
| 812 | * |
||
| 813 | * @return string Returns the point interval unit. |
||
| 814 | */ |
||
| 815 | public function getPointIntervalUnit() { |
||
| 818 | |||
| 819 | /** |
||
| 820 | * Get the point start. |
||
| 821 | * |
||
| 822 | * @return integer Returns the point start. |
||
| 823 | */ |
||
| 824 | public function getPointStart() { |
||
| 827 | |||
| 828 | /** |
||
| 829 | * Get the selected. |
||
| 830 | * |
||
| 831 | * @return boolean Returns the selected. |
||
| 832 | */ |
||
| 833 | public function getSelected() { |
||
| 836 | |||
| 837 | /** |
||
| 838 | * Get the shadow. |
||
| 839 | * |
||
| 840 | * @return boolean|array Returns the shadow. |
||
| 841 | */ |
||
| 842 | public function getShadow() { |
||
| 845 | |||
| 846 | /** |
||
| 847 | * Get the show checkbox. |
||
| 848 | * |
||
| 849 | * @return boolean Returns the show checkbox. |
||
| 850 | */ |
||
| 851 | public function getShowCheckbox() { |
||
| 854 | |||
| 855 | /** |
||
| 856 | * Get the show in legend. |
||
| 857 | * |
||
| 858 | * @return boolean Returns the show in legend. |
||
| 859 | */ |
||
| 860 | public function getShowInLegend() { |
||
| 863 | |||
| 864 | /** |
||
| 865 | * Get the skip keyboard navigation. |
||
| 866 | * |
||
| 867 | * @return boolean Returns the skip keyboard navigation. |
||
| 868 | */ |
||
| 869 | public function getSkipKeyboardNavigation() { |
||
| 872 | |||
| 873 | /** |
||
| 874 | * Get the states. |
||
| 875 | * |
||
| 876 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsStates Returns the states. |
||
| 877 | */ |
||
| 878 | public function getStates() { |
||
| 881 | |||
| 882 | /** |
||
| 883 | * Get the sticky tracking. |
||
| 884 | * |
||
| 885 | * @return boolean Returns the sticky tracking. |
||
| 886 | */ |
||
| 887 | public function getStickyTracking() { |
||
| 890 | |||
| 891 | /** |
||
| 892 | * Get the tooltip. |
||
| 893 | * |
||
| 894 | * @return array Returns the tooltip. |
||
| 895 | */ |
||
| 896 | public function getTooltip() { |
||
| 899 | |||
| 900 | /** |
||
| 901 | * Get the turbo threshold. |
||
| 902 | * |
||
| 903 | * @return integer Returns the turbo threshold. |
||
| 904 | */ |
||
| 905 | public function getTurboThreshold() { |
||
| 908 | |||
| 909 | /** |
||
| 910 | * Get the type. |
||
| 911 | * |
||
| 912 | * @return string Returns the type. |
||
| 913 | */ |
||
| 914 | public function getType() { |
||
| 917 | |||
| 918 | /** |
||
| 919 | * Get the visible. |
||
| 920 | * |
||
| 921 | * @return boolean Returns the visible. |
||
| 922 | */ |
||
| 923 | public function getVisible() { |
||
| 926 | |||
| 927 | /** |
||
| 928 | * Get the x axis. |
||
| 929 | * |
||
| 930 | * @return integer|string Returns the x axis. |
||
| 931 | */ |
||
| 932 | public function getXAxis() { |
||
| 935 | |||
| 936 | /** |
||
| 937 | * Get the y axis. |
||
| 938 | * |
||
| 939 | * @return integer|string Returns the y axis. |
||
| 940 | */ |
||
| 941 | public function getYAxis() { |
||
| 944 | |||
| 945 | /** |
||
| 946 | * Get the z index. |
||
| 947 | * |
||
| 948 | * @return integer Returns the z index. |
||
| 949 | */ |
||
| 950 | public function getZIndex() { |
||
| 953 | |||
| 954 | /** |
||
| 955 | * Get the zone axis. |
||
| 956 | * |
||
| 957 | * @return string Returns the zone axis. |
||
| 958 | */ |
||
| 959 | public function getZoneAxis() { |
||
| 962 | |||
| 963 | /** |
||
| 964 | * Get the zones. |
||
| 965 | * |
||
| 966 | * @return array Returns the zones. |
||
| 967 | */ |
||
| 968 | public function getZones() { |
||
| 971 | |||
| 972 | /** |
||
| 973 | * Serialize this instance. |
||
| 974 | * |
||
| 975 | * @return array Returns an array representing this instance. |
||
| 976 | */ |
||
| 977 | public function jsonSerialize() { |
||
| 980 | |||
| 981 | /** |
||
| 982 | * Create a new data labels. |
||
| 983 | * |
||
| 984 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsDataLabels Returns the data labels. |
||
| 985 | */ |
||
| 986 | public function newDataLabels() { |
||
| 990 | |||
| 991 | /** |
||
| 992 | * Create a new events. |
||
| 993 | * |
||
| 994 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsEvents Returns the events. |
||
| 995 | */ |
||
| 996 | public function newEvents() { |
||
| 1000 | |||
| 1001 | /** |
||
| 1002 | * Create a new marker. |
||
| 1003 | * |
||
| 1004 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsMarker Returns the marker. |
||
| 1005 | */ |
||
| 1006 | public function newMarker() { |
||
| 1010 | |||
| 1011 | /** |
||
| 1012 | * Create a new point. |
||
| 1013 | * |
||
| 1014 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsPoint Returns the point. |
||
| 1015 | */ |
||
| 1016 | public function newPoint() { |
||
| 1020 | |||
| 1021 | /** |
||
| 1022 | * Create a new states. |
||
| 1023 | * |
||
| 1024 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsStates Returns the states. |
||
| 1025 | */ |
||
| 1026 | public function newStates() { |
||
| 1030 | |||
| 1031 | /** |
||
| 1032 | * Set the allow point select. |
||
| 1033 | * |
||
| 1034 | * @param boolean $allowPointSelect The allow point select. |
||
| 1035 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1036 | */ |
||
| 1037 | public function setAllowPointSelect($allowPointSelect) { |
||
| 1041 | |||
| 1042 | /** |
||
| 1043 | * Set the animation. |
||
| 1044 | * |
||
| 1045 | * @param boolean $animation The animation. |
||
| 1046 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1047 | */ |
||
| 1048 | public function setAnimation($animation) { |
||
| 1052 | |||
| 1053 | /** |
||
| 1054 | * Set the animation limit. |
||
| 1055 | * |
||
| 1056 | * @param integer $animationLimit The animation limit. |
||
| 1057 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1058 | */ |
||
| 1059 | public function setAnimationLimit($animationLimit) { |
||
| 1063 | |||
| 1064 | /** |
||
| 1065 | * Set the class name. |
||
| 1066 | * |
||
| 1067 | * @param string $className The class name. |
||
| 1068 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1069 | */ |
||
| 1070 | public function setClassName($className) { |
||
| 1074 | |||
| 1075 | /** |
||
| 1076 | * Set the color. |
||
| 1077 | * |
||
| 1078 | * @param string $color The color. |
||
| 1079 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1080 | */ |
||
| 1081 | public function setColor($color) { |
||
| 1085 | |||
| 1086 | /** |
||
| 1087 | * Set the color index. |
||
| 1088 | * |
||
| 1089 | * @param integer $colorIndex The color index. |
||
| 1090 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1091 | */ |
||
| 1092 | public function setColorIndex($colorIndex) { |
||
| 1096 | |||
| 1097 | /** |
||
| 1098 | * Set the crop threshold. |
||
| 1099 | * |
||
| 1100 | * @param integer $cropThreshold The crop threshold. |
||
| 1101 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1102 | */ |
||
| 1103 | public function setCropThreshold($cropThreshold) { |
||
| 1107 | |||
| 1108 | /** |
||
| 1109 | * Set the cursor. |
||
| 1110 | * |
||
| 1111 | * @param string $cursor The cursor. |
||
| 1112 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1113 | */ |
||
| 1114 | public function setCursor($cursor) { |
||
| 1127 | |||
| 1128 | /** |
||
| 1129 | * Set the dash style. |
||
| 1130 | * |
||
| 1131 | * @param string $dashStyle The dash style. |
||
| 1132 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1133 | */ |
||
| 1134 | public function setDashStyle($dashStyle) { |
||
| 1152 | |||
| 1153 | /** |
||
| 1154 | * Set the data. |
||
| 1155 | * |
||
| 1156 | * @param array $data The data. |
||
| 1157 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1158 | */ |
||
| 1159 | public function setData(array $data = null) { |
||
| 1163 | |||
| 1164 | /** |
||
| 1165 | * Set the data labels. |
||
| 1166 | * |
||
| 1167 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsDataLabels $dataLabels The data labels. |
||
| 1168 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1169 | */ |
||
| 1170 | public function setDataLabels(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsDataLabels $dataLabels = null) { |
||
| 1174 | |||
| 1175 | /** |
||
| 1176 | * Set the description. |
||
| 1177 | * |
||
| 1178 | * @param string $description The description. |
||
| 1179 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1180 | */ |
||
| 1181 | public function setDescription($description) { |
||
| 1185 | |||
| 1186 | /** |
||
| 1187 | * Set the enable mouse tracking. |
||
| 1188 | * |
||
| 1189 | * @param boolean $enableMouseTracking The enable mouse tracking. |
||
| 1190 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1191 | */ |
||
| 1192 | public function setEnableMouseTracking($enableMouseTracking) { |
||
| 1196 | |||
| 1197 | /** |
||
| 1198 | * Set the events. |
||
| 1199 | * |
||
| 1200 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsEvents $events The events. |
||
| 1201 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1202 | */ |
||
| 1203 | public function setEvents(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsEvents $events = null) { |
||
| 1207 | |||
| 1208 | /** |
||
| 1209 | * Set the expose element to a11y. |
||
| 1210 | * |
||
| 1211 | * @param boolean $exposeElementToA11y The expose element to a11y. |
||
| 1212 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1213 | */ |
||
| 1214 | public function setExposeElementToA11y($exposeElementToA11y) { |
||
| 1218 | |||
| 1219 | /** |
||
| 1220 | * Set the find nearest point by. |
||
| 1221 | * |
||
| 1222 | * @param string $findNearestPointBy The find nearest point by. |
||
| 1223 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1224 | */ |
||
| 1225 | public function setFindNearestPointBy($findNearestPointBy) { |
||
| 1234 | |||
| 1235 | /** |
||
| 1236 | * Set the get extremes from all. |
||
| 1237 | * |
||
| 1238 | * @param boolean $getExtremesFromAll The get extremes from all. |
||
| 1239 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1240 | */ |
||
| 1241 | public function setGetExtremesFromAll($getExtremesFromAll) { |
||
| 1245 | |||
| 1246 | /** |
||
| 1247 | * Set the id. |
||
| 1248 | * |
||
| 1249 | * @param string $id The id. |
||
| 1250 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1251 | */ |
||
| 1252 | public function setId($id) { |
||
| 1256 | |||
| 1257 | /** |
||
| 1258 | * Set the index. |
||
| 1259 | * |
||
| 1260 | * @param integer $index The index. |
||
| 1261 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1262 | */ |
||
| 1263 | public function setIndex($index) { |
||
| 1267 | |||
| 1268 | /** |
||
| 1269 | * Set the keys. |
||
| 1270 | * |
||
| 1271 | * @param array $keys The keys. |
||
| 1272 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1273 | */ |
||
| 1274 | public function setKeys(array $keys = null) { |
||
| 1278 | |||
| 1279 | /** |
||
| 1280 | * Set the legend index. |
||
| 1281 | * |
||
| 1282 | * @param integer $legendIndex The legend index. |
||
| 1283 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1284 | */ |
||
| 1285 | public function setLegendIndex($legendIndex) { |
||
| 1289 | |||
| 1290 | /** |
||
| 1291 | * Set the line width. |
||
| 1292 | * |
||
| 1293 | * @param integer $lineWidth The line width. |
||
| 1294 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1295 | */ |
||
| 1296 | public function setLineWidth($lineWidth) { |
||
| 1300 | |||
| 1301 | /** |
||
| 1302 | * Set the linked to. |
||
| 1303 | * |
||
| 1304 | * @param string $linkedTo The linked to. |
||
| 1305 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1306 | */ |
||
| 1307 | public function setLinkedTo($linkedTo) { |
||
| 1311 | |||
| 1312 | /** |
||
| 1313 | * Set the marker. |
||
| 1314 | * |
||
| 1315 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsMarker $marker The marker. |
||
| 1316 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1317 | */ |
||
| 1318 | public function setMarker(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsMarker $marker = null) { |
||
| 1322 | |||
| 1323 | /** |
||
| 1324 | * Set the name. |
||
| 1325 | * |
||
| 1326 | * @param string $name The name. |
||
| 1327 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1328 | */ |
||
| 1329 | public function setName($name) { |
||
| 1333 | |||
| 1334 | /** |
||
| 1335 | * Set the negative color. |
||
| 1336 | * |
||
| 1337 | * @param string $negativeColor The negative color. |
||
| 1338 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1339 | */ |
||
| 1340 | public function setNegativeColor($negativeColor) { |
||
| 1344 | |||
| 1345 | /** |
||
| 1346 | * Set the point. |
||
| 1347 | * |
||
| 1348 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsPoint $point The point. |
||
| 1349 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1350 | */ |
||
| 1351 | public function setPoint(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsPoint $point = null) { |
||
| 1355 | |||
| 1356 | /** |
||
| 1357 | * Set the point description formatter. |
||
| 1358 | * |
||
| 1359 | * @param string $pointDescriptionFormatter The point description formatter. |
||
| 1360 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1361 | */ |
||
| 1362 | public function setPointDescriptionFormatter($pointDescriptionFormatter) { |
||
| 1366 | |||
| 1367 | /** |
||
| 1368 | * Set the point interval. |
||
| 1369 | * |
||
| 1370 | * @param integer $pointInterval The point interval. |
||
| 1371 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1372 | */ |
||
| 1373 | public function setPointInterval($pointInterval) { |
||
| 1377 | |||
| 1378 | /** |
||
| 1379 | * Set the point interval unit. |
||
| 1380 | * |
||
| 1381 | * @param string $pointIntervalUnit The point interval unit. |
||
| 1382 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1383 | */ |
||
| 1384 | public function setPointIntervalUnit($pointIntervalUnit) { |
||
| 1395 | |||
| 1396 | /** |
||
| 1397 | * Set the point start. |
||
| 1398 | * |
||
| 1399 | * @param integer $pointStart The point start. |
||
| 1400 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1401 | */ |
||
| 1402 | public function setPointStart($pointStart) { |
||
| 1406 | |||
| 1407 | /** |
||
| 1408 | * Set the selected. |
||
| 1409 | * |
||
| 1410 | * @param boolean $selected The selected. |
||
| 1411 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1412 | */ |
||
| 1413 | public function setSelected($selected) { |
||
| 1417 | |||
| 1418 | /** |
||
| 1419 | * Set the shadow. |
||
| 1420 | * |
||
| 1421 | * @param boolean|array $shadow The shadow. |
||
| 1422 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1423 | */ |
||
| 1424 | public function setShadow($shadow) { |
||
| 1428 | |||
| 1429 | /** |
||
| 1430 | * Set the show checkbox. |
||
| 1431 | * |
||
| 1432 | * @param boolean $showCheckbox The show checkbox. |
||
| 1433 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1434 | */ |
||
| 1435 | public function setShowCheckbox($showCheckbox) { |
||
| 1439 | |||
| 1440 | /** |
||
| 1441 | * Set the show in legend. |
||
| 1442 | * |
||
| 1443 | * @param boolean $showInLegend The show in legend. |
||
| 1444 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1445 | */ |
||
| 1446 | public function setShowInLegend($showInLegend) { |
||
| 1450 | |||
| 1451 | /** |
||
| 1452 | * Set the skip keyboard navigation. |
||
| 1453 | * |
||
| 1454 | * @param boolean $skipKeyboardNavigation The skip keyboard navigation. |
||
| 1455 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1456 | */ |
||
| 1457 | public function setSkipKeyboardNavigation($skipKeyboardNavigation) { |
||
| 1461 | |||
| 1462 | /** |
||
| 1463 | * Set the states. |
||
| 1464 | * |
||
| 1465 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsStates $states The states. |
||
| 1466 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1467 | */ |
||
| 1468 | public function setStates(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsStates $states = null) { |
||
| 1472 | |||
| 1473 | /** |
||
| 1474 | * Set the sticky tracking. |
||
| 1475 | * |
||
| 1476 | * @param boolean $stickyTracking The sticky tracking. |
||
| 1477 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1478 | */ |
||
| 1479 | public function setStickyTracking($stickyTracking) { |
||
| 1483 | |||
| 1484 | /** |
||
| 1485 | * Set the tooltip. |
||
| 1486 | * |
||
| 1487 | * @param array $tooltip The tooltip. |
||
| 1488 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1489 | */ |
||
| 1490 | public function setTooltip(array $tooltip = null) { |
||
| 1494 | |||
| 1495 | /** |
||
| 1496 | * Set the turbo threshold. |
||
| 1497 | * |
||
| 1498 | * @param integer $turboThreshold The turbo threshold. |
||
| 1499 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1500 | */ |
||
| 1501 | public function setTurboThreshold($turboThreshold) { |
||
| 1505 | |||
| 1506 | /** |
||
| 1507 | * Set the type. |
||
| 1508 | * |
||
| 1509 | * @param string $type The type. |
||
| 1510 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1511 | */ |
||
| 1512 | public function setType($type) { |
||
| 1536 | |||
| 1537 | /** |
||
| 1538 | * Set the visible. |
||
| 1539 | * |
||
| 1540 | * @param boolean $visible The visible. |
||
| 1541 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1542 | */ |
||
| 1543 | public function setVisible($visible) { |
||
| 1547 | |||
| 1548 | /** |
||
| 1549 | * Set the x axis. |
||
| 1550 | * |
||
| 1551 | * @param integer|string $xAxis The x axis. |
||
| 1552 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1553 | */ |
||
| 1554 | public function setXAxis($xAxis) { |
||
| 1558 | |||
| 1559 | /** |
||
| 1560 | * Set the y axis. |
||
| 1561 | * |
||
| 1562 | * @param integer|string $yAxis The y axis. |
||
| 1563 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1564 | */ |
||
| 1565 | public function setYAxis($yAxis) { |
||
| 1569 | |||
| 1570 | /** |
||
| 1571 | * Set the z index. |
||
| 1572 | * |
||
| 1573 | * @param integer $zIndex The z index. |
||
| 1574 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1575 | */ |
||
| 1576 | public function setZIndex($zIndex) { |
||
| 1580 | |||
| 1581 | /** |
||
| 1582 | * Set the zone axis. |
||
| 1583 | * |
||
| 1584 | * @param string $zoneAxis The zone axis. |
||
| 1585 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1586 | */ |
||
| 1587 | public function setZoneAxis($zoneAxis) { |
||
| 1591 | |||
| 1592 | /** |
||
| 1593 | * Set the zones. |
||
| 1594 | * |
||
| 1595 | * @param array $zones The zones. |
||
| 1596 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon Returns the highcharts polygon. |
||
| 1597 | */ |
||
| 1598 | public function setZones(array $zones = null) { |
||
| 1602 | |||
| 1603 | /** |
||
| 1604 | * Convert into an array representing this instance. |
||
| 1605 | * |
||
| 1606 | * @return array Returns an array representing this instance. |
||
| 1607 | */ |
||
| 1608 | public function toArray() { |
||
| 1767 | |||
| 1768 | } |
||
| 1769 |
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..