Complex classes like HighchartsSeries 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 HighchartsSeries, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 25 | final class HighchartsSeries 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 | * Connect ends. |
||
| 74 | * |
||
| 75 | * @var boolean |
||
| 76 | * @since 2.3.0 |
||
| 77 | */ |
||
| 78 | private $connectEnds = true; |
||
| 79 | |||
| 80 | /** |
||
| 81 | * Connect nulls. |
||
| 82 | * |
||
| 83 | * @var boolean |
||
| 84 | */ |
||
| 85 | private $connectNulls = false; |
||
| 86 | |||
| 87 | /** |
||
| 88 | * Crop threshold. |
||
| 89 | * |
||
| 90 | * @var integer |
||
| 91 | * @since 2.2 |
||
| 92 | */ |
||
| 93 | private $cropThreshold = 300; |
||
| 94 | |||
| 95 | /** |
||
| 96 | * Cursor. |
||
| 97 | * |
||
| 98 | * @var string |
||
| 99 | */ |
||
| 100 | private $cursor; |
||
| 101 | |||
| 102 | /** |
||
| 103 | * Dash style. |
||
| 104 | * |
||
| 105 | * @var string |
||
| 106 | * @since 2.1 |
||
| 107 | */ |
||
| 108 | private $dashStyle = "Solid"; |
||
| 109 | |||
| 110 | /** |
||
| 111 | * Data labels. |
||
| 112 | * |
||
| 113 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsDataLabels |
||
| 114 | */ |
||
| 115 | private $dataLabels; |
||
| 116 | |||
| 117 | /** |
||
| 118 | * Description. |
||
| 119 | * |
||
| 120 | * @var string |
||
| 121 | * @since 5.0.0 |
||
| 122 | */ |
||
| 123 | private $description; |
||
| 124 | |||
| 125 | /** |
||
| 126 | * Enable mouse tracking. |
||
| 127 | * |
||
| 128 | * @var boolean |
||
| 129 | */ |
||
| 130 | private $enableMouseTracking = true; |
||
| 131 | |||
| 132 | /** |
||
| 133 | * Events. |
||
| 134 | * |
||
| 135 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsEvents |
||
| 136 | */ |
||
| 137 | private $events; |
||
| 138 | |||
| 139 | /** |
||
| 140 | * Expose element to a11y. |
||
| 141 | * |
||
| 142 | * @var boolean |
||
| 143 | * @since 5.0.12 |
||
| 144 | */ |
||
| 145 | private $exposeElementToA11y; |
||
| 146 | |||
| 147 | /** |
||
| 148 | * Find nearest point by. |
||
| 149 | * |
||
| 150 | * @var string |
||
| 151 | * @since 5.0.10 |
||
| 152 | */ |
||
| 153 | private $findNearestPointBy; |
||
| 154 | |||
| 155 | /** |
||
| 156 | * Get extremes from all. |
||
| 157 | * |
||
| 158 | * @var boolean |
||
| 159 | * @since 4.1.6 |
||
| 160 | */ |
||
| 161 | private $getExtremesFromAll = false; |
||
| 162 | |||
| 163 | /** |
||
| 164 | * Keys. |
||
| 165 | * |
||
| 166 | * @var array |
||
| 167 | * @since 4.1.6 |
||
| 168 | */ |
||
| 169 | private $keys; |
||
| 170 | |||
| 171 | /** |
||
| 172 | * Line width. |
||
| 173 | * |
||
| 174 | * @var integer |
||
| 175 | */ |
||
| 176 | private $lineWidth = 2; |
||
| 177 | |||
| 178 | /** |
||
| 179 | * Linecap. |
||
| 180 | * |
||
| 181 | * @var string |
||
| 182 | */ |
||
| 183 | private $linecap = "round"; |
||
| 184 | |||
| 185 | /** |
||
| 186 | * Linked to. |
||
| 187 | * |
||
| 188 | * @var string |
||
| 189 | * @since 3.0 |
||
| 190 | */ |
||
| 191 | private $linkedTo; |
||
| 192 | |||
| 193 | /** |
||
| 194 | * Marker. |
||
| 195 | * |
||
| 196 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsMarker |
||
| 197 | */ |
||
| 198 | private $marker; |
||
| 199 | |||
| 200 | /** |
||
| 201 | * Negative color. |
||
| 202 | * |
||
| 203 | * @var string |
||
| 204 | * @since 3.0 |
||
| 205 | */ |
||
| 206 | private $negativeColor; |
||
| 207 | |||
| 208 | /** |
||
| 209 | * Point. |
||
| 210 | * |
||
| 211 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsPoint |
||
| 212 | */ |
||
| 213 | private $point; |
||
| 214 | |||
| 215 | /** |
||
| 216 | * Point description formatter. |
||
| 217 | * |
||
| 218 | * @var string |
||
| 219 | * @since 5.0.12 |
||
| 220 | */ |
||
| 221 | private $pointDescriptionFormatter; |
||
| 222 | |||
| 223 | /** |
||
| 224 | * Point interval. |
||
| 225 | * |
||
| 226 | * @var integer |
||
| 227 | */ |
||
| 228 | private $pointInterval = 1; |
||
| 229 | |||
| 230 | /** |
||
| 231 | * Point interval unit. |
||
| 232 | * |
||
| 233 | * @var string |
||
| 234 | * @since 4.1.0 |
||
| 235 | */ |
||
| 236 | private $pointIntervalUnit; |
||
| 237 | |||
| 238 | /** |
||
| 239 | * Point placement. |
||
| 240 | * |
||
| 241 | * @var string|integer |
||
| 242 | * @since 2.3.0 |
||
| 243 | */ |
||
| 244 | private $pointPlacement; |
||
| 245 | |||
| 246 | /** |
||
| 247 | * Point start. |
||
| 248 | * |
||
| 249 | * @var integer |
||
| 250 | */ |
||
| 251 | private $pointStart = 0; |
||
| 252 | |||
| 253 | /** |
||
| 254 | * Selected. |
||
| 255 | * |
||
| 256 | * @var boolean |
||
| 257 | * @since 1.2.0 |
||
| 258 | */ |
||
| 259 | private $selected = false; |
||
| 260 | |||
| 261 | /** |
||
| 262 | * Shadow. |
||
| 263 | * |
||
| 264 | * @var boolean|array |
||
| 265 | */ |
||
| 266 | private $shadow = false; |
||
| 267 | |||
| 268 | /** |
||
| 269 | * Show checkbox. |
||
| 270 | * |
||
| 271 | * @var boolean |
||
| 272 | * @since 1.2.0 |
||
| 273 | */ |
||
| 274 | private $showCheckbox = false; |
||
| 275 | |||
| 276 | /** |
||
| 277 | * Show in legend. |
||
| 278 | * |
||
| 279 | * @var boolean |
||
| 280 | */ |
||
| 281 | private $showInLegend = true; |
||
| 282 | |||
| 283 | /** |
||
| 284 | * Skip keyboard navigation. |
||
| 285 | * |
||
| 286 | * @var boolean |
||
| 287 | * @since 5.0.12 |
||
| 288 | */ |
||
| 289 | private $skipKeyboardNavigation; |
||
| 290 | |||
| 291 | /** |
||
| 292 | * Soft threshold. |
||
| 293 | * |
||
| 294 | * @var boolean |
||
| 295 | * @since 4.1.9 |
||
| 296 | */ |
||
| 297 | private $softThreshold = true; |
||
| 298 | |||
| 299 | /** |
||
| 300 | * Stacking. |
||
| 301 | * |
||
| 302 | * @var string |
||
| 303 | */ |
||
| 304 | private $stacking; |
||
| 305 | |||
| 306 | /** |
||
| 307 | * States. |
||
| 308 | * |
||
| 309 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsStates |
||
| 310 | */ |
||
| 311 | private $states; |
||
| 312 | |||
| 313 | /** |
||
| 314 | * Step. |
||
| 315 | * |
||
| 316 | * @var string |
||
| 317 | * @since 1.2.5 |
||
| 318 | */ |
||
| 319 | private $step; |
||
| 320 | |||
| 321 | /** |
||
| 322 | * Sticky tracking. |
||
| 323 | * |
||
| 324 | * @var boolean |
||
| 325 | * @since 2.0 |
||
| 326 | */ |
||
| 327 | private $stickyTracking = true; |
||
| 328 | |||
| 329 | /** |
||
| 330 | * Threshold. |
||
| 331 | * |
||
| 332 | * @var integer |
||
| 333 | * @since 3.0 |
||
| 334 | */ |
||
| 335 | private $threshold = 0; |
||
| 336 | |||
| 337 | /** |
||
| 338 | * Tooltip. |
||
| 339 | * |
||
| 340 | * @var array |
||
| 341 | * @since 2.3 |
||
| 342 | */ |
||
| 343 | private $tooltip; |
||
| 344 | |||
| 345 | /** |
||
| 346 | * Turbo threshold. |
||
| 347 | * |
||
| 348 | * @var integer |
||
| 349 | * @since 2.2 |
||
| 350 | */ |
||
| 351 | private $turboThreshold = 1000; |
||
| 352 | |||
| 353 | /** |
||
| 354 | * Visible. |
||
| 355 | * |
||
| 356 | * @var boolean |
||
| 357 | */ |
||
| 358 | private $visible = true; |
||
| 359 | |||
| 360 | /** |
||
| 361 | * Zone axis. |
||
| 362 | * |
||
| 363 | * @var string |
||
| 364 | * @since 4.1.0 |
||
| 365 | */ |
||
| 366 | private $zoneAxis = "y"; |
||
| 367 | |||
| 368 | /** |
||
| 369 | * Zones. |
||
| 370 | * |
||
| 371 | * @var array |
||
| 372 | * @since 4.1.0 |
||
| 373 | */ |
||
| 374 | private $zones; |
||
| 375 | |||
| 376 | /** |
||
| 377 | * Constructor. |
||
| 378 | * |
||
| 379 | * @param boolean $ignoreDefaultValues Ignore the default values. |
||
| 380 | */ |
||
| 381 | public function __construct($ignoreDefaultValues = true) { |
||
| 386 | |||
| 387 | /** |
||
| 388 | * Clear. |
||
| 389 | * |
||
| 390 | * @return void |
||
| 391 | */ |
||
| 392 | public function clear() { |
||
| 542 | |||
| 543 | /** |
||
| 544 | * Get the allow point select. |
||
| 545 | * |
||
| 546 | * @return boolean Returns the allow point select. |
||
| 547 | */ |
||
| 548 | public function getAllowPointSelect() { |
||
| 551 | |||
| 552 | /** |
||
| 553 | * Get the animation. |
||
| 554 | * |
||
| 555 | * @return boolean Returns the animation. |
||
| 556 | */ |
||
| 557 | public function getAnimation() { |
||
| 560 | |||
| 561 | /** |
||
| 562 | * Get the animation limit. |
||
| 563 | * |
||
| 564 | * @return integer Returns the animation limit. |
||
| 565 | */ |
||
| 566 | public function getAnimationLimit() { |
||
| 569 | |||
| 570 | /** |
||
| 571 | * Get the class name. |
||
| 572 | * |
||
| 573 | * @return string Returns the class name. |
||
| 574 | */ |
||
| 575 | public function getClassName() { |
||
| 578 | |||
| 579 | /** |
||
| 580 | * Get the color. |
||
| 581 | * |
||
| 582 | * @return string Returns the color. |
||
| 583 | */ |
||
| 584 | public function getColor() { |
||
| 587 | |||
| 588 | /** |
||
| 589 | * Get the color index. |
||
| 590 | * |
||
| 591 | * @return integer Returns the color index. |
||
| 592 | */ |
||
| 593 | public function getColorIndex() { |
||
| 596 | |||
| 597 | /** |
||
| 598 | * Get the connect ends. |
||
| 599 | * |
||
| 600 | * @return boolean Returns the connect ends. |
||
| 601 | */ |
||
| 602 | public function getConnectEnds() { |
||
| 605 | |||
| 606 | /** |
||
| 607 | * Get the connect nulls. |
||
| 608 | * |
||
| 609 | * @return boolean Returns the connect nulls. |
||
| 610 | */ |
||
| 611 | public function getConnectNulls() { |
||
| 614 | |||
| 615 | /** |
||
| 616 | * Get the crop threshold. |
||
| 617 | * |
||
| 618 | * @return integer Returns the crop threshold. |
||
| 619 | */ |
||
| 620 | public function getCropThreshold() { |
||
| 623 | |||
| 624 | /** |
||
| 625 | * Get the cursor. |
||
| 626 | * |
||
| 627 | * @return string Returns the cursor. |
||
| 628 | */ |
||
| 629 | public function getCursor() { |
||
| 632 | |||
| 633 | /** |
||
| 634 | * Get the dash style. |
||
| 635 | * |
||
| 636 | * @return string Returns the dash style. |
||
| 637 | */ |
||
| 638 | public function getDashStyle() { |
||
| 641 | |||
| 642 | /** |
||
| 643 | * Get the data labels. |
||
| 644 | * |
||
| 645 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsDataLabels Returns the data labels. |
||
| 646 | */ |
||
| 647 | public function getDataLabels() { |
||
| 650 | |||
| 651 | /** |
||
| 652 | * Get the description. |
||
| 653 | * |
||
| 654 | * @return string Returns the description. |
||
| 655 | */ |
||
| 656 | public function getDescription() { |
||
| 659 | |||
| 660 | /** |
||
| 661 | * Get the enable mouse tracking. |
||
| 662 | * |
||
| 663 | * @return boolean Returns the enable mouse tracking. |
||
| 664 | */ |
||
| 665 | public function getEnableMouseTracking() { |
||
| 668 | |||
| 669 | /** |
||
| 670 | * Get the events. |
||
| 671 | * |
||
| 672 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsEvents Returns the events. |
||
| 673 | */ |
||
| 674 | public function getEvents() { |
||
| 677 | |||
| 678 | /** |
||
| 679 | * Get the expose element to a11y. |
||
| 680 | * |
||
| 681 | * @return boolean Returns the expose element to a11y. |
||
| 682 | */ |
||
| 683 | public function getExposeElementToA11y() { |
||
| 686 | |||
| 687 | /** |
||
| 688 | * Get the find nearest point by. |
||
| 689 | * |
||
| 690 | * @return string Returns the find nearest point by. |
||
| 691 | */ |
||
| 692 | public function getFindNearestPointBy() { |
||
| 695 | |||
| 696 | /** |
||
| 697 | * Get the get extremes from all. |
||
| 698 | * |
||
| 699 | * @return boolean Returns the get extremes from all. |
||
| 700 | */ |
||
| 701 | public function getGetExtremesFromAll() { |
||
| 704 | |||
| 705 | /** |
||
| 706 | * Get the keys. |
||
| 707 | * |
||
| 708 | * @return array Returns the keys. |
||
| 709 | */ |
||
| 710 | public function getKeys() { |
||
| 713 | |||
| 714 | /** |
||
| 715 | * Get the line width. |
||
| 716 | * |
||
| 717 | * @return integer Returns the line width. |
||
| 718 | */ |
||
| 719 | public function getLineWidth() { |
||
| 722 | |||
| 723 | /** |
||
| 724 | * Get the linecap. |
||
| 725 | * |
||
| 726 | * @return string Returns the linecap. |
||
| 727 | */ |
||
| 728 | public function getLinecap() { |
||
| 731 | |||
| 732 | /** |
||
| 733 | * Get the linked to. |
||
| 734 | * |
||
| 735 | * @return string Returns the linked to. |
||
| 736 | */ |
||
| 737 | public function getLinkedTo() { |
||
| 740 | |||
| 741 | /** |
||
| 742 | * Get the marker. |
||
| 743 | * |
||
| 744 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsMarker Returns the marker. |
||
| 745 | */ |
||
| 746 | public function getMarker() { |
||
| 749 | |||
| 750 | /** |
||
| 751 | * Get the negative color. |
||
| 752 | * |
||
| 753 | * @return string Returns the negative color. |
||
| 754 | */ |
||
| 755 | public function getNegativeColor() { |
||
| 758 | |||
| 759 | /** |
||
| 760 | * Get the point. |
||
| 761 | * |
||
| 762 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsPoint Returns the point. |
||
| 763 | */ |
||
| 764 | public function getPoint() { |
||
| 767 | |||
| 768 | /** |
||
| 769 | * Get the point description formatter. |
||
| 770 | * |
||
| 771 | * @return string Returns the point description formatter. |
||
| 772 | */ |
||
| 773 | public function getPointDescriptionFormatter() { |
||
| 776 | |||
| 777 | /** |
||
| 778 | * Get the point interval. |
||
| 779 | * |
||
| 780 | * @return integer Returns the point interval. |
||
| 781 | */ |
||
| 782 | public function getPointInterval() { |
||
| 785 | |||
| 786 | /** |
||
| 787 | * Get the point interval unit. |
||
| 788 | * |
||
| 789 | * @return string Returns the point interval unit. |
||
| 790 | */ |
||
| 791 | public function getPointIntervalUnit() { |
||
| 794 | |||
| 795 | /** |
||
| 796 | * Get the point placement. |
||
| 797 | * |
||
| 798 | * @return string|integer Returns the point placement. |
||
| 799 | */ |
||
| 800 | public function getPointPlacement() { |
||
| 803 | |||
| 804 | /** |
||
| 805 | * Get the point start. |
||
| 806 | * |
||
| 807 | * @return integer Returns the point start. |
||
| 808 | */ |
||
| 809 | public function getPointStart() { |
||
| 812 | |||
| 813 | /** |
||
| 814 | * Get the selected. |
||
| 815 | * |
||
| 816 | * @return boolean Returns the selected. |
||
| 817 | */ |
||
| 818 | public function getSelected() { |
||
| 821 | |||
| 822 | /** |
||
| 823 | * Get the shadow. |
||
| 824 | * |
||
| 825 | * @return boolean|array Returns the shadow. |
||
| 826 | */ |
||
| 827 | public function getShadow() { |
||
| 830 | |||
| 831 | /** |
||
| 832 | * Get the show checkbox. |
||
| 833 | * |
||
| 834 | * @return boolean Returns the show checkbox. |
||
| 835 | */ |
||
| 836 | public function getShowCheckbox() { |
||
| 839 | |||
| 840 | /** |
||
| 841 | * Get the show in legend. |
||
| 842 | * |
||
| 843 | * @return boolean Returns the show in legend. |
||
| 844 | */ |
||
| 845 | public function getShowInLegend() { |
||
| 848 | |||
| 849 | /** |
||
| 850 | * Get the skip keyboard navigation. |
||
| 851 | * |
||
| 852 | * @return boolean Returns the skip keyboard navigation. |
||
| 853 | */ |
||
| 854 | public function getSkipKeyboardNavigation() { |
||
| 857 | |||
| 858 | /** |
||
| 859 | * Get the soft threshold. |
||
| 860 | * |
||
| 861 | * @return boolean Returns the soft threshold. |
||
| 862 | */ |
||
| 863 | public function getSoftThreshold() { |
||
| 866 | |||
| 867 | /** |
||
| 868 | * Get the stacking. |
||
| 869 | * |
||
| 870 | * @return string Returns the stacking. |
||
| 871 | */ |
||
| 872 | public function getStacking() { |
||
| 875 | |||
| 876 | /** |
||
| 877 | * Get the states. |
||
| 878 | * |
||
| 879 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsStates Returns the states. |
||
| 880 | */ |
||
| 881 | public function getStates() { |
||
| 884 | |||
| 885 | /** |
||
| 886 | * Get the step. |
||
| 887 | * |
||
| 888 | * @return string Returns the step. |
||
| 889 | */ |
||
| 890 | public function getStep() { |
||
| 893 | |||
| 894 | /** |
||
| 895 | * Get the sticky tracking. |
||
| 896 | * |
||
| 897 | * @return boolean Returns the sticky tracking. |
||
| 898 | */ |
||
| 899 | public function getStickyTracking() { |
||
| 902 | |||
| 903 | /** |
||
| 904 | * Get the threshold. |
||
| 905 | * |
||
| 906 | * @return integer Returns the threshold. |
||
| 907 | */ |
||
| 908 | public function getThreshold() { |
||
| 911 | |||
| 912 | /** |
||
| 913 | * Get the tooltip. |
||
| 914 | * |
||
| 915 | * @return array Returns the tooltip. |
||
| 916 | */ |
||
| 917 | public function getTooltip() { |
||
| 920 | |||
| 921 | /** |
||
| 922 | * Get the turbo threshold. |
||
| 923 | * |
||
| 924 | * @return integer Returns the turbo threshold. |
||
| 925 | */ |
||
| 926 | public function getTurboThreshold() { |
||
| 929 | |||
| 930 | /** |
||
| 931 | * Get the visible. |
||
| 932 | * |
||
| 933 | * @return boolean Returns the visible. |
||
| 934 | */ |
||
| 935 | public function getVisible() { |
||
| 938 | |||
| 939 | /** |
||
| 940 | * Get the zone axis. |
||
| 941 | * |
||
| 942 | * @return string Returns the zone axis. |
||
| 943 | */ |
||
| 944 | public function getZoneAxis() { |
||
| 947 | |||
| 948 | /** |
||
| 949 | * Get the zones. |
||
| 950 | * |
||
| 951 | * @return array Returns the zones. |
||
| 952 | */ |
||
| 953 | public function getZones() { |
||
| 956 | |||
| 957 | /** |
||
| 958 | * Serialize this instance. |
||
| 959 | * |
||
| 960 | * @return array Returns an array representing this instance. |
||
| 961 | */ |
||
| 962 | public function jsonSerialize() { |
||
| 965 | |||
| 966 | /** |
||
| 967 | * Create a new data labels. |
||
| 968 | * |
||
| 969 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsDataLabels Returns the data labels. |
||
| 970 | */ |
||
| 971 | public function newDataLabels() { |
||
| 975 | |||
| 976 | /** |
||
| 977 | * Create a new events. |
||
| 978 | * |
||
| 979 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsEvents Returns the events. |
||
| 980 | */ |
||
| 981 | public function newEvents() { |
||
| 985 | |||
| 986 | /** |
||
| 987 | * Create a new marker. |
||
| 988 | * |
||
| 989 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsMarker Returns the marker. |
||
| 990 | */ |
||
| 991 | public function newMarker() { |
||
| 995 | |||
| 996 | /** |
||
| 997 | * Create a new point. |
||
| 998 | * |
||
| 999 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsPoint Returns the point. |
||
| 1000 | */ |
||
| 1001 | public function newPoint() { |
||
| 1005 | |||
| 1006 | /** |
||
| 1007 | * Create a new states. |
||
| 1008 | * |
||
| 1009 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsStates Returns the states. |
||
| 1010 | */ |
||
| 1011 | public function newStates() { |
||
| 1015 | |||
| 1016 | /** |
||
| 1017 | * Set the allow point select. |
||
| 1018 | * |
||
| 1019 | * @param boolean $allowPointSelect The allow point select. |
||
| 1020 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1021 | */ |
||
| 1022 | public function setAllowPointSelect($allowPointSelect) { |
||
| 1026 | |||
| 1027 | /** |
||
| 1028 | * Set the animation. |
||
| 1029 | * |
||
| 1030 | * @param boolean $animation The animation. |
||
| 1031 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1032 | */ |
||
| 1033 | public function setAnimation($animation) { |
||
| 1037 | |||
| 1038 | /** |
||
| 1039 | * Set the animation limit. |
||
| 1040 | * |
||
| 1041 | * @param integer $animationLimit The animation limit. |
||
| 1042 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1043 | */ |
||
| 1044 | public function setAnimationLimit($animationLimit) { |
||
| 1048 | |||
| 1049 | /** |
||
| 1050 | * Set the class name. |
||
| 1051 | * |
||
| 1052 | * @param string $className The class name. |
||
| 1053 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1054 | */ |
||
| 1055 | public function setClassName($className) { |
||
| 1059 | |||
| 1060 | /** |
||
| 1061 | * Set the color. |
||
| 1062 | * |
||
| 1063 | * @param string $color The color. |
||
| 1064 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1065 | */ |
||
| 1066 | public function setColor($color) { |
||
| 1070 | |||
| 1071 | /** |
||
| 1072 | * Set the color index. |
||
| 1073 | * |
||
| 1074 | * @param integer $colorIndex The color index. |
||
| 1075 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1076 | */ |
||
| 1077 | public function setColorIndex($colorIndex) { |
||
| 1081 | |||
| 1082 | /** |
||
| 1083 | * Set the connect ends. |
||
| 1084 | * |
||
| 1085 | * @param boolean $connectEnds The connect ends. |
||
| 1086 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1087 | */ |
||
| 1088 | public function setConnectEnds($connectEnds) { |
||
| 1092 | |||
| 1093 | /** |
||
| 1094 | * Set the connect nulls. |
||
| 1095 | * |
||
| 1096 | * @param boolean $connectNulls The connect nulls. |
||
| 1097 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1098 | */ |
||
| 1099 | public function setConnectNulls($connectNulls) { |
||
| 1103 | |||
| 1104 | /** |
||
| 1105 | * Set the crop threshold. |
||
| 1106 | * |
||
| 1107 | * @param integer $cropThreshold The crop threshold. |
||
| 1108 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1109 | */ |
||
| 1110 | public function setCropThreshold($cropThreshold) { |
||
| 1114 | |||
| 1115 | /** |
||
| 1116 | * Set the cursor. |
||
| 1117 | * |
||
| 1118 | * @param string $cursor The cursor. |
||
| 1119 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1120 | */ |
||
| 1121 | public function setCursor($cursor) { |
||
| 1134 | |||
| 1135 | /** |
||
| 1136 | * Set the dash style. |
||
| 1137 | * |
||
| 1138 | * @param string $dashStyle The dash style. |
||
| 1139 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1140 | */ |
||
| 1141 | public function setDashStyle($dashStyle) { |
||
| 1159 | |||
| 1160 | /** |
||
| 1161 | * Set the data labels. |
||
| 1162 | * |
||
| 1163 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsDataLabels $dataLabels The data labels. |
||
| 1164 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1165 | */ |
||
| 1166 | public function setDataLabels(\WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsDataLabels $dataLabels = null) { |
||
| 1170 | |||
| 1171 | /** |
||
| 1172 | * Set the description. |
||
| 1173 | * |
||
| 1174 | * @param string $description The description. |
||
| 1175 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1176 | */ |
||
| 1177 | public function setDescription($description) { |
||
| 1181 | |||
| 1182 | /** |
||
| 1183 | * Set the enable mouse tracking. |
||
| 1184 | * |
||
| 1185 | * @param boolean $enableMouseTracking The enable mouse tracking. |
||
| 1186 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1187 | */ |
||
| 1188 | public function setEnableMouseTracking($enableMouseTracking) { |
||
| 1192 | |||
| 1193 | /** |
||
| 1194 | * Set the events. |
||
| 1195 | * |
||
| 1196 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsEvents $events The events. |
||
| 1197 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1198 | */ |
||
| 1199 | public function setEvents(\WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsEvents $events = null) { |
||
| 1203 | |||
| 1204 | /** |
||
| 1205 | * Set the expose element to a11y. |
||
| 1206 | * |
||
| 1207 | * @param boolean $exposeElementToA11y The expose element to a11y. |
||
| 1208 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1209 | */ |
||
| 1210 | public function setExposeElementToA11y($exposeElementToA11y) { |
||
| 1214 | |||
| 1215 | /** |
||
| 1216 | * Set the find nearest point by. |
||
| 1217 | * |
||
| 1218 | * @param string $findNearestPointBy The find nearest point by. |
||
| 1219 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1220 | */ |
||
| 1221 | public function setFindNearestPointBy($findNearestPointBy) { |
||
| 1230 | |||
| 1231 | /** |
||
| 1232 | * Set the get extremes from all. |
||
| 1233 | * |
||
| 1234 | * @param boolean $getExtremesFromAll The get extremes from all. |
||
| 1235 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1236 | */ |
||
| 1237 | public function setGetExtremesFromAll($getExtremesFromAll) { |
||
| 1241 | |||
| 1242 | /** |
||
| 1243 | * Set the keys. |
||
| 1244 | * |
||
| 1245 | * @param array $keys The keys. |
||
| 1246 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1247 | */ |
||
| 1248 | public function setKeys(array $keys = null) { |
||
| 1252 | |||
| 1253 | /** |
||
| 1254 | * Set the line width. |
||
| 1255 | * |
||
| 1256 | * @param integer $lineWidth The line width. |
||
| 1257 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1258 | */ |
||
| 1259 | public function setLineWidth($lineWidth) { |
||
| 1263 | |||
| 1264 | /** |
||
| 1265 | * Set the linecap. |
||
| 1266 | * |
||
| 1267 | * @param string $linecap The linecap. |
||
| 1268 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1269 | */ |
||
| 1270 | public function setLinecap($linecap) { |
||
| 1279 | |||
| 1280 | /** |
||
| 1281 | * Set the linked to. |
||
| 1282 | * |
||
| 1283 | * @param string $linkedTo The linked to. |
||
| 1284 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1285 | */ |
||
| 1286 | public function setLinkedTo($linkedTo) { |
||
| 1290 | |||
| 1291 | /** |
||
| 1292 | * Set the marker. |
||
| 1293 | * |
||
| 1294 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsMarker $marker The marker. |
||
| 1295 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1296 | */ |
||
| 1297 | public function setMarker(\WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsMarker $marker = null) { |
||
| 1301 | |||
| 1302 | /** |
||
| 1303 | * Set the negative color. |
||
| 1304 | * |
||
| 1305 | * @param string $negativeColor The negative color. |
||
| 1306 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1307 | */ |
||
| 1308 | public function setNegativeColor($negativeColor) { |
||
| 1312 | |||
| 1313 | /** |
||
| 1314 | * Set the point. |
||
| 1315 | * |
||
| 1316 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsPoint $point The point. |
||
| 1317 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1318 | */ |
||
| 1319 | public function setPoint(\WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsPoint $point = null) { |
||
| 1323 | |||
| 1324 | /** |
||
| 1325 | * Set the point description formatter. |
||
| 1326 | * |
||
| 1327 | * @param string $pointDescriptionFormatter The point description formatter. |
||
| 1328 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1329 | */ |
||
| 1330 | public function setPointDescriptionFormatter($pointDescriptionFormatter) { |
||
| 1334 | |||
| 1335 | /** |
||
| 1336 | * Set the point interval. |
||
| 1337 | * |
||
| 1338 | * @param integer $pointInterval The point interval. |
||
| 1339 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1340 | */ |
||
| 1341 | public function setPointInterval($pointInterval) { |
||
| 1345 | |||
| 1346 | /** |
||
| 1347 | * Set the point interval unit. |
||
| 1348 | * |
||
| 1349 | * @param string $pointIntervalUnit The point interval unit. |
||
| 1350 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1351 | */ |
||
| 1352 | public function setPointIntervalUnit($pointIntervalUnit) { |
||
| 1363 | |||
| 1364 | /** |
||
| 1365 | * Set the point placement. |
||
| 1366 | * |
||
| 1367 | * @param string|integer $pointPlacement The point placement. |
||
| 1368 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1369 | */ |
||
| 1370 | public function setPointPlacement($pointPlacement) { |
||
| 1380 | |||
| 1381 | /** |
||
| 1382 | * Set the point start. |
||
| 1383 | * |
||
| 1384 | * @param integer $pointStart The point start. |
||
| 1385 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1386 | */ |
||
| 1387 | public function setPointStart($pointStart) { |
||
| 1391 | |||
| 1392 | /** |
||
| 1393 | * Set the selected. |
||
| 1394 | * |
||
| 1395 | * @param boolean $selected The selected. |
||
| 1396 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1397 | */ |
||
| 1398 | public function setSelected($selected) { |
||
| 1402 | |||
| 1403 | /** |
||
| 1404 | * Set the shadow. |
||
| 1405 | * |
||
| 1406 | * @param boolean|array $shadow The shadow. |
||
| 1407 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1408 | */ |
||
| 1409 | public function setShadow($shadow) { |
||
| 1413 | |||
| 1414 | /** |
||
| 1415 | * Set the show checkbox. |
||
| 1416 | * |
||
| 1417 | * @param boolean $showCheckbox The show checkbox. |
||
| 1418 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1419 | */ |
||
| 1420 | public function setShowCheckbox($showCheckbox) { |
||
| 1424 | |||
| 1425 | /** |
||
| 1426 | * Set the show in legend. |
||
| 1427 | * |
||
| 1428 | * @param boolean $showInLegend The show in legend. |
||
| 1429 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1430 | */ |
||
| 1431 | public function setShowInLegend($showInLegend) { |
||
| 1435 | |||
| 1436 | /** |
||
| 1437 | * Set the skip keyboard navigation. |
||
| 1438 | * |
||
| 1439 | * @param boolean $skipKeyboardNavigation The skip keyboard navigation. |
||
| 1440 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1441 | */ |
||
| 1442 | public function setSkipKeyboardNavigation($skipKeyboardNavigation) { |
||
| 1446 | |||
| 1447 | /** |
||
| 1448 | * Set the soft threshold. |
||
| 1449 | * |
||
| 1450 | * @param boolean $softThreshold The soft threshold. |
||
| 1451 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1452 | */ |
||
| 1453 | public function setSoftThreshold($softThreshold) { |
||
| 1457 | |||
| 1458 | /** |
||
| 1459 | * Set the stacking. |
||
| 1460 | * |
||
| 1461 | * @param string $stacking The stacking. |
||
| 1462 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1463 | */ |
||
| 1464 | public function setStacking($stacking) { |
||
| 1474 | |||
| 1475 | /** |
||
| 1476 | * Set the states. |
||
| 1477 | * |
||
| 1478 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsStates $states The states. |
||
| 1479 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1480 | */ |
||
| 1481 | public function setStates(\WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Series\HighchartsStates $states = null) { |
||
| 1485 | |||
| 1486 | /** |
||
| 1487 | * Set the step. |
||
| 1488 | * |
||
| 1489 | * @param string $step The step. |
||
| 1490 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1491 | */ |
||
| 1492 | public function setStep($step) { |
||
| 1503 | |||
| 1504 | /** |
||
| 1505 | * Set the sticky tracking. |
||
| 1506 | * |
||
| 1507 | * @param boolean $stickyTracking The sticky tracking. |
||
| 1508 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1509 | */ |
||
| 1510 | public function setStickyTracking($stickyTracking) { |
||
| 1514 | |||
| 1515 | /** |
||
| 1516 | * Set the threshold. |
||
| 1517 | * |
||
| 1518 | * @param integer $threshold The threshold. |
||
| 1519 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1520 | */ |
||
| 1521 | public function setThreshold($threshold) { |
||
| 1525 | |||
| 1526 | /** |
||
| 1527 | * Set the tooltip. |
||
| 1528 | * |
||
| 1529 | * @param array $tooltip The tooltip. |
||
| 1530 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1531 | */ |
||
| 1532 | public function setTooltip(array $tooltip = null) { |
||
| 1536 | |||
| 1537 | /** |
||
| 1538 | * Set the turbo threshold. |
||
| 1539 | * |
||
| 1540 | * @param integer $turboThreshold The turbo threshold. |
||
| 1541 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1542 | */ |
||
| 1543 | public function setTurboThreshold($turboThreshold) { |
||
| 1547 | |||
| 1548 | /** |
||
| 1549 | * Set the visible. |
||
| 1550 | * |
||
| 1551 | * @param boolean $visible The visible. |
||
| 1552 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1553 | */ |
||
| 1554 | public function setVisible($visible) { |
||
| 1558 | |||
| 1559 | /** |
||
| 1560 | * Set the zone axis. |
||
| 1561 | * |
||
| 1562 | * @param string $zoneAxis The zone axis. |
||
| 1563 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1564 | */ |
||
| 1565 | public function setZoneAxis($zoneAxis) { |
||
| 1569 | |||
| 1570 | /** |
||
| 1571 | * Set the zones. |
||
| 1572 | * |
||
| 1573 | * @param array $zones The zones. |
||
| 1574 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsSeries Returns the highcharts series. |
||
| 1575 | */ |
||
| 1576 | public function setZones(array $zones = null) { |
||
| 1580 | |||
| 1581 | /** |
||
| 1582 | * Convert into an array representing this instance. |
||
| 1583 | * |
||
| 1584 | * @return array Returns an array representing this instance. |
||
| 1585 | */ |
||
| 1586 | public function toArray() { |
||
| 1742 | |||
| 1743 | } |
||
| 1744 |
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..