Complex classes like HighchartsGauge 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 HighchartsGauge, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 25 | final class HighchartsGauge implements JsonSerializable { |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Animation. |
||
| 29 | * |
||
| 30 | * @var boolean |
||
| 31 | */ |
||
| 32 | private $animation = true; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Animation limit. |
||
| 36 | * |
||
| 37 | * @var integer |
||
| 38 | */ |
||
| 39 | private $animationLimit; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Class name. |
||
| 43 | * |
||
| 44 | * @var string |
||
| 45 | * @since 5.0.0 |
||
| 46 | */ |
||
| 47 | private $className; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Color. |
||
| 51 | * |
||
| 52 | * @var string |
||
| 53 | */ |
||
| 54 | private $color; |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Color index. |
||
| 58 | * |
||
| 59 | * @var integer |
||
| 60 | * @since 5.0.0 |
||
| 61 | */ |
||
| 62 | private $colorIndex; |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Cursor. |
||
| 66 | * |
||
| 67 | * @var string |
||
| 68 | */ |
||
| 69 | private $cursor; |
||
| 70 | |||
| 71 | /** |
||
| 72 | * Data. |
||
| 73 | * |
||
| 74 | * @var array |
||
| 75 | */ |
||
| 76 | private $data; |
||
| 77 | |||
| 78 | /** |
||
| 79 | * Data labels. |
||
| 80 | * |
||
| 81 | * @var array |
||
| 82 | * @since 2.3.0 |
||
| 83 | */ |
||
| 84 | private $dataLabels; |
||
| 85 | |||
| 86 | /** |
||
| 87 | * Description. |
||
| 88 | * |
||
| 89 | * @var string |
||
| 90 | * @since 5.0.0 |
||
| 91 | */ |
||
| 92 | private $description; |
||
| 93 | |||
| 94 | /** |
||
| 95 | * Dial. |
||
| 96 | * |
||
| 97 | * @var array |
||
| 98 | * @since 2.3.0 |
||
| 99 | */ |
||
| 100 | private $dial; |
||
| 101 | |||
| 102 | /** |
||
| 103 | * Enable mouse tracking. |
||
| 104 | * |
||
| 105 | * @var boolean |
||
| 106 | */ |
||
| 107 | private $enableMouseTracking = true; |
||
| 108 | |||
| 109 | /** |
||
| 110 | * Events. |
||
| 111 | * |
||
| 112 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Gauge\HighchartsEvents |
||
| 113 | */ |
||
| 114 | private $events; |
||
| 115 | |||
| 116 | /** |
||
| 117 | * Expose element to a11y. |
||
| 118 | * |
||
| 119 | * @var boolean |
||
| 120 | * @since 5.0.12 |
||
| 121 | */ |
||
| 122 | private $exposeElementToA11y; |
||
| 123 | |||
| 124 | /** |
||
| 125 | * Find nearest point by. |
||
| 126 | * |
||
| 127 | * @var string |
||
| 128 | * @since 5.0.10 |
||
| 129 | */ |
||
| 130 | private $findNearestPointBy; |
||
| 131 | |||
| 132 | /** |
||
| 133 | * Get extremes from all. |
||
| 134 | * |
||
| 135 | * @var boolean |
||
| 136 | * @since 4.1.6 |
||
| 137 | */ |
||
| 138 | private $getExtremesFromAll = false; |
||
| 139 | |||
| 140 | /** |
||
| 141 | * Id. |
||
| 142 | * |
||
| 143 | * @var string |
||
| 144 | * @since 1.2.0 |
||
| 145 | */ |
||
| 146 | private $id; |
||
| 147 | |||
| 148 | /** |
||
| 149 | * Index. |
||
| 150 | * |
||
| 151 | * @var integer |
||
| 152 | * @since 2.3.0 |
||
| 153 | */ |
||
| 154 | private $index; |
||
| 155 | |||
| 156 | /** |
||
| 157 | * Keys. |
||
| 158 | * |
||
| 159 | * @var array |
||
| 160 | * @since 4.1.6 |
||
| 161 | */ |
||
| 162 | private $keys; |
||
| 163 | |||
| 164 | /** |
||
| 165 | * Legend index. |
||
| 166 | * |
||
| 167 | * @var integer |
||
| 168 | */ |
||
| 169 | private $legendIndex; |
||
| 170 | |||
| 171 | /** |
||
| 172 | * Linked to. |
||
| 173 | * |
||
| 174 | * @var string |
||
| 175 | * @since 3.0 |
||
| 176 | */ |
||
| 177 | private $linkedTo; |
||
| 178 | |||
| 179 | /** |
||
| 180 | * Name. |
||
| 181 | * |
||
| 182 | * @var string |
||
| 183 | */ |
||
| 184 | private $name; |
||
| 185 | |||
| 186 | /** |
||
| 187 | * Negative color. |
||
| 188 | * |
||
| 189 | * @var string |
||
| 190 | * @since 3.0 |
||
| 191 | */ |
||
| 192 | private $negativeColor; |
||
| 193 | |||
| 194 | /** |
||
| 195 | * Overshoot. |
||
| 196 | * |
||
| 197 | * @var integer |
||
| 198 | * @since 3.0.10 |
||
| 199 | */ |
||
| 200 | private $overshoot = 0; |
||
| 201 | |||
| 202 | /** |
||
| 203 | * Pivot. |
||
| 204 | * |
||
| 205 | * @var array |
||
| 206 | * @since 2.3.0 |
||
| 207 | */ |
||
| 208 | private $pivot; |
||
| 209 | |||
| 210 | /** |
||
| 211 | * Point. |
||
| 212 | * |
||
| 213 | * @var \WBW\Bundle\HighchartsBundle\API\Chart\Series\Gauge\HighchartsPoint |
||
| 214 | */ |
||
| 215 | private $point; |
||
| 216 | |||
| 217 | /** |
||
| 218 | * Point description formatter. |
||
| 219 | * |
||
| 220 | * @var string |
||
| 221 | * @since 5.0.12 |
||
| 222 | */ |
||
| 223 | private $pointDescriptionFormatter; |
||
| 224 | |||
| 225 | /** |
||
| 226 | * Selected. |
||
| 227 | * |
||
| 228 | * @var boolean |
||
| 229 | * @since 1.2.0 |
||
| 230 | */ |
||
| 231 | private $selected = false; |
||
| 232 | |||
| 233 | /** |
||
| 234 | * Show checkbox. |
||
| 235 | * |
||
| 236 | * @var boolean |
||
| 237 | * @since 1.2.0 |
||
| 238 | */ |
||
| 239 | private $showCheckbox = false; |
||
| 240 | |||
| 241 | /** |
||
| 242 | * Show in legend. |
||
| 243 | * |
||
| 244 | * @var boolean |
||
| 245 | * @since 2.3.0 |
||
| 246 | */ |
||
| 247 | private $showInLegend; |
||
| 248 | |||
| 249 | /** |
||
| 250 | * Skip keyboard navigation. |
||
| 251 | * |
||
| 252 | * @var boolean |
||
| 253 | * @since 5.0.12 |
||
| 254 | */ |
||
| 255 | private $skipKeyboardNavigation; |
||
| 256 | |||
| 257 | /** |
||
| 258 | * Sticky tracking. |
||
| 259 | * |
||
| 260 | * @var boolean |
||
| 261 | * @since 2.0 |
||
| 262 | */ |
||
| 263 | private $stickyTracking = true; |
||
| 264 | |||
| 265 | /** |
||
| 266 | * Threshold. |
||
| 267 | * |
||
| 268 | * @var integer |
||
| 269 | * @since 3.0 |
||
| 270 | */ |
||
| 271 | private $threshold = 0; |
||
| 272 | |||
| 273 | /** |
||
| 274 | * Tooltip. |
||
| 275 | * |
||
| 276 | * @var array |
||
| 277 | * @since 2.3 |
||
| 278 | */ |
||
| 279 | private $tooltip; |
||
| 280 | |||
| 281 | /** |
||
| 282 | * Type. |
||
| 283 | * |
||
| 284 | * @var string |
||
| 285 | */ |
||
| 286 | private $type; |
||
| 287 | |||
| 288 | /** |
||
| 289 | * Visible. |
||
| 290 | * |
||
| 291 | * @var boolean |
||
| 292 | */ |
||
| 293 | private $visible = true; |
||
| 294 | |||
| 295 | /** |
||
| 296 | * Wrap. |
||
| 297 | * |
||
| 298 | * @var boolean |
||
| 299 | * @since 3.0 |
||
| 300 | */ |
||
| 301 | private $wrap = true; |
||
| 302 | |||
| 303 | /** |
||
| 304 | * X axis. |
||
| 305 | * |
||
| 306 | * @var integer|string |
||
| 307 | */ |
||
| 308 | private $xAxis = "0"; |
||
| 309 | |||
| 310 | /** |
||
| 311 | * Y axis. |
||
| 312 | * |
||
| 313 | * @var integer|string |
||
| 314 | */ |
||
| 315 | private $yAxis = "0"; |
||
| 316 | |||
| 317 | /** |
||
| 318 | * Z index. |
||
| 319 | * |
||
| 320 | * @var integer |
||
| 321 | */ |
||
| 322 | private $zIndex; |
||
| 323 | |||
| 324 | /** |
||
| 325 | * Constructor. |
||
| 326 | * |
||
| 327 | * @param boolean $ignoreDefaultValues Ignore the default values. |
||
| 328 | */ |
||
| 329 | public function __construct($ignoreDefaultValues = true) { |
||
| 334 | |||
| 335 | /** |
||
| 336 | * Clear. |
||
| 337 | * |
||
| 338 | * @return void |
||
| 339 | */ |
||
| 340 | public function clear() { |
||
| 463 | |||
| 464 | /** |
||
| 465 | * Get the animation. |
||
| 466 | * |
||
| 467 | * @return boolean Returns the animation. |
||
| 468 | */ |
||
| 469 | public function getAnimation() { |
||
| 472 | |||
| 473 | /** |
||
| 474 | * Get the animation limit. |
||
| 475 | * |
||
| 476 | * @return integer Returns the animation limit. |
||
| 477 | */ |
||
| 478 | public function getAnimationLimit() { |
||
| 481 | |||
| 482 | /** |
||
| 483 | * Get the class name. |
||
| 484 | * |
||
| 485 | * @return string Returns the class name. |
||
| 486 | */ |
||
| 487 | public function getClassName() { |
||
| 490 | |||
| 491 | /** |
||
| 492 | * Get the color. |
||
| 493 | * |
||
| 494 | * @return string Returns the color. |
||
| 495 | */ |
||
| 496 | public function getColor() { |
||
| 499 | |||
| 500 | /** |
||
| 501 | * Get the color index. |
||
| 502 | * |
||
| 503 | * @return integer Returns the color index. |
||
| 504 | */ |
||
| 505 | public function getColorIndex() { |
||
| 508 | |||
| 509 | /** |
||
| 510 | * Get the cursor. |
||
| 511 | * |
||
| 512 | * @return string Returns the cursor. |
||
| 513 | */ |
||
| 514 | public function getCursor() { |
||
| 517 | |||
| 518 | /** |
||
| 519 | * Get the data. |
||
| 520 | * |
||
| 521 | * @return array Returns the data. |
||
| 522 | */ |
||
| 523 | public function getData() { |
||
| 526 | |||
| 527 | /** |
||
| 528 | * Get the data labels. |
||
| 529 | * |
||
| 530 | * @return array Returns the data labels. |
||
| 531 | */ |
||
| 532 | public function getDataLabels() { |
||
| 535 | |||
| 536 | /** |
||
| 537 | * Get the description. |
||
| 538 | * |
||
| 539 | * @return string Returns the description. |
||
| 540 | */ |
||
| 541 | public function getDescription() { |
||
| 544 | |||
| 545 | /** |
||
| 546 | * Get the dial. |
||
| 547 | * |
||
| 548 | * @return array Returns the dial. |
||
| 549 | */ |
||
| 550 | public function getDial() { |
||
| 553 | |||
| 554 | /** |
||
| 555 | * Get the enable mouse tracking. |
||
| 556 | * |
||
| 557 | * @return boolean Returns the enable mouse tracking. |
||
| 558 | */ |
||
| 559 | public function getEnableMouseTracking() { |
||
| 562 | |||
| 563 | /** |
||
| 564 | * Get the events. |
||
| 565 | * |
||
| 566 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Gauge\HighchartsEvents Returns the events. |
||
| 567 | */ |
||
| 568 | public function getEvents() { |
||
| 571 | |||
| 572 | /** |
||
| 573 | * Get the expose element to a11y. |
||
| 574 | * |
||
| 575 | * @return boolean Returns the expose element to a11y. |
||
| 576 | */ |
||
| 577 | public function getExposeElementToA11y() { |
||
| 580 | |||
| 581 | /** |
||
| 582 | * Get the find nearest point by. |
||
| 583 | * |
||
| 584 | * @return string Returns the find nearest point by. |
||
| 585 | */ |
||
| 586 | public function getFindNearestPointBy() { |
||
| 589 | |||
| 590 | /** |
||
| 591 | * Get the get extremes from all. |
||
| 592 | * |
||
| 593 | * @return boolean Returns the get extremes from all. |
||
| 594 | */ |
||
| 595 | public function getGetExtremesFromAll() { |
||
| 598 | |||
| 599 | /** |
||
| 600 | * Get the id. |
||
| 601 | * |
||
| 602 | * @return string Returns the id. |
||
| 603 | */ |
||
| 604 | public function getId() { |
||
| 607 | |||
| 608 | /** |
||
| 609 | * Get the index. |
||
| 610 | * |
||
| 611 | * @return integer Returns the index. |
||
| 612 | */ |
||
| 613 | public function getIndex() { |
||
| 616 | |||
| 617 | /** |
||
| 618 | * Get the keys. |
||
| 619 | * |
||
| 620 | * @return array Returns the keys. |
||
| 621 | */ |
||
| 622 | public function getKeys() { |
||
| 625 | |||
| 626 | /** |
||
| 627 | * Get the legend index. |
||
| 628 | * |
||
| 629 | * @return integer Returns the legend index. |
||
| 630 | */ |
||
| 631 | public function getLegendIndex() { |
||
| 634 | |||
| 635 | /** |
||
| 636 | * Get the linked to. |
||
| 637 | * |
||
| 638 | * @return string Returns the linked to. |
||
| 639 | */ |
||
| 640 | public function getLinkedTo() { |
||
| 643 | |||
| 644 | /** |
||
| 645 | * Get the name. |
||
| 646 | * |
||
| 647 | * @return string Returns the name. |
||
| 648 | */ |
||
| 649 | public function getName() { |
||
| 652 | |||
| 653 | /** |
||
| 654 | * Get the negative color. |
||
| 655 | * |
||
| 656 | * @return string Returns the negative color. |
||
| 657 | */ |
||
| 658 | public function getNegativeColor() { |
||
| 661 | |||
| 662 | /** |
||
| 663 | * Get the overshoot. |
||
| 664 | * |
||
| 665 | * @return integer Returns the overshoot. |
||
| 666 | */ |
||
| 667 | public function getOvershoot() { |
||
| 670 | |||
| 671 | /** |
||
| 672 | * Get the pivot. |
||
| 673 | * |
||
| 674 | * @return array Returns the pivot. |
||
| 675 | */ |
||
| 676 | public function getPivot() { |
||
| 679 | |||
| 680 | /** |
||
| 681 | * Get the point. |
||
| 682 | * |
||
| 683 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Gauge\HighchartsPoint Returns the point. |
||
| 684 | */ |
||
| 685 | public function getPoint() { |
||
| 688 | |||
| 689 | /** |
||
| 690 | * Get the point description formatter. |
||
| 691 | * |
||
| 692 | * @return string Returns the point description formatter. |
||
| 693 | */ |
||
| 694 | public function getPointDescriptionFormatter() { |
||
| 697 | |||
| 698 | /** |
||
| 699 | * Get the selected. |
||
| 700 | * |
||
| 701 | * @return boolean Returns the selected. |
||
| 702 | */ |
||
| 703 | public function getSelected() { |
||
| 706 | |||
| 707 | /** |
||
| 708 | * Get the show checkbox. |
||
| 709 | * |
||
| 710 | * @return boolean Returns the show checkbox. |
||
| 711 | */ |
||
| 712 | public function getShowCheckbox() { |
||
| 715 | |||
| 716 | /** |
||
| 717 | * Get the show in legend. |
||
| 718 | * |
||
| 719 | * @return boolean Returns the show in legend. |
||
| 720 | */ |
||
| 721 | public function getShowInLegend() { |
||
| 724 | |||
| 725 | /** |
||
| 726 | * Get the skip keyboard navigation. |
||
| 727 | * |
||
| 728 | * @return boolean Returns the skip keyboard navigation. |
||
| 729 | */ |
||
| 730 | public function getSkipKeyboardNavigation() { |
||
| 733 | |||
| 734 | /** |
||
| 735 | * Get the sticky tracking. |
||
| 736 | * |
||
| 737 | * @return boolean Returns the sticky tracking. |
||
| 738 | */ |
||
| 739 | public function getStickyTracking() { |
||
| 742 | |||
| 743 | /** |
||
| 744 | * Get the threshold. |
||
| 745 | * |
||
| 746 | * @return integer Returns the threshold. |
||
| 747 | */ |
||
| 748 | public function getThreshold() { |
||
| 751 | |||
| 752 | /** |
||
| 753 | * Get the tooltip. |
||
| 754 | * |
||
| 755 | * @return array Returns the tooltip. |
||
| 756 | */ |
||
| 757 | public function getTooltip() { |
||
| 760 | |||
| 761 | /** |
||
| 762 | * Get the type. |
||
| 763 | * |
||
| 764 | * @return string Returns the type. |
||
| 765 | */ |
||
| 766 | public function getType() { |
||
| 769 | |||
| 770 | /** |
||
| 771 | * Get the visible. |
||
| 772 | * |
||
| 773 | * @return boolean Returns the visible. |
||
| 774 | */ |
||
| 775 | public function getVisible() { |
||
| 778 | |||
| 779 | /** |
||
| 780 | * Get the wrap. |
||
| 781 | * |
||
| 782 | * @return boolean Returns the wrap. |
||
| 783 | */ |
||
| 784 | public function getWrap() { |
||
| 787 | |||
| 788 | /** |
||
| 789 | * Get the x axis. |
||
| 790 | * |
||
| 791 | * @return integer|string Returns the x axis. |
||
| 792 | */ |
||
| 793 | public function getXAxis() { |
||
| 796 | |||
| 797 | /** |
||
| 798 | * Get the y axis. |
||
| 799 | * |
||
| 800 | * @return integer|string Returns the y axis. |
||
| 801 | */ |
||
| 802 | public function getYAxis() { |
||
| 805 | |||
| 806 | /** |
||
| 807 | * Get the z index. |
||
| 808 | * |
||
| 809 | * @return integer Returns the z index. |
||
| 810 | */ |
||
| 811 | public function getZIndex() { |
||
| 814 | |||
| 815 | /** |
||
| 816 | * Serialize this instance. |
||
| 817 | * |
||
| 818 | * @return array Returns an array representing this instance. |
||
| 819 | */ |
||
| 820 | public function jsonSerialize() { |
||
| 823 | |||
| 824 | /** |
||
| 825 | * Create a new events. |
||
| 826 | * |
||
| 827 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Gauge\HighchartsEvents Returns the events. |
||
| 828 | */ |
||
| 829 | public function newEvents() { |
||
| 833 | |||
| 834 | /** |
||
| 835 | * Create a new point. |
||
| 836 | * |
||
| 837 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Gauge\HighchartsPoint Returns the point. |
||
| 838 | */ |
||
| 839 | public function newPoint() { |
||
| 843 | |||
| 844 | /** |
||
| 845 | * Set the animation. |
||
| 846 | * |
||
| 847 | * @param boolean $animation The animation. |
||
| 848 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 849 | */ |
||
| 850 | public function setAnimation($animation) { |
||
| 854 | |||
| 855 | /** |
||
| 856 | * Set the animation limit. |
||
| 857 | * |
||
| 858 | * @param integer $animationLimit The animation limit. |
||
| 859 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 860 | */ |
||
| 861 | public function setAnimationLimit($animationLimit) { |
||
| 865 | |||
| 866 | /** |
||
| 867 | * Set the class name. |
||
| 868 | * |
||
| 869 | * @param string $className The class name. |
||
| 870 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 871 | */ |
||
| 872 | public function setClassName($className) { |
||
| 876 | |||
| 877 | /** |
||
| 878 | * Set the color. |
||
| 879 | * |
||
| 880 | * @param string $color The color. |
||
| 881 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 882 | */ |
||
| 883 | public function setColor($color) { |
||
| 887 | |||
| 888 | /** |
||
| 889 | * Set the color index. |
||
| 890 | * |
||
| 891 | * @param integer $colorIndex The color index. |
||
| 892 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 893 | */ |
||
| 894 | public function setColorIndex($colorIndex) { |
||
| 898 | |||
| 899 | /** |
||
| 900 | * Set the cursor. |
||
| 901 | * |
||
| 902 | * @param string $cursor The cursor. |
||
| 903 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 904 | */ |
||
| 905 | public function setCursor($cursor) { |
||
| 918 | |||
| 919 | /** |
||
| 920 | * Set the data. |
||
| 921 | * |
||
| 922 | * @param array $data The data. |
||
| 923 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 924 | */ |
||
| 925 | public function setData(array $data = null) { |
||
| 929 | |||
| 930 | /** |
||
| 931 | * Set the data labels. |
||
| 932 | * |
||
| 933 | * @param array $dataLabels The data labels. |
||
| 934 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 935 | */ |
||
| 936 | public function setDataLabels(array $dataLabels = null) { |
||
| 940 | |||
| 941 | /** |
||
| 942 | * Set the description. |
||
| 943 | * |
||
| 944 | * @param string $description The description. |
||
| 945 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 946 | */ |
||
| 947 | public function setDescription($description) { |
||
| 951 | |||
| 952 | /** |
||
| 953 | * Set the dial. |
||
| 954 | * |
||
| 955 | * @param array $dial The dial. |
||
| 956 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 957 | */ |
||
| 958 | public function setDial(array $dial = null) { |
||
| 962 | |||
| 963 | /** |
||
| 964 | * Set the enable mouse tracking. |
||
| 965 | * |
||
| 966 | * @param boolean $enableMouseTracking The enable mouse tracking. |
||
| 967 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 968 | */ |
||
| 969 | public function setEnableMouseTracking($enableMouseTracking) { |
||
| 973 | |||
| 974 | /** |
||
| 975 | * Set the events. |
||
| 976 | * |
||
| 977 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Gauge\HighchartsEvents $events The events. |
||
| 978 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 979 | */ |
||
| 980 | public function setEvents(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Gauge\HighchartsEvents $events = null) { |
||
| 984 | |||
| 985 | /** |
||
| 986 | * Set the expose element to a11y. |
||
| 987 | * |
||
| 988 | * @param boolean $exposeElementToA11y The expose element to a11y. |
||
| 989 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 990 | */ |
||
| 991 | public function setExposeElementToA11y($exposeElementToA11y) { |
||
| 995 | |||
| 996 | /** |
||
| 997 | * Set the find nearest point by. |
||
| 998 | * |
||
| 999 | * @param string $findNearestPointBy The find nearest point by. |
||
| 1000 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1001 | */ |
||
| 1002 | public function setFindNearestPointBy($findNearestPointBy) { |
||
| 1011 | |||
| 1012 | /** |
||
| 1013 | * Set the get extremes from all. |
||
| 1014 | * |
||
| 1015 | * @param boolean $getExtremesFromAll The get extremes from all. |
||
| 1016 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1017 | */ |
||
| 1018 | public function setGetExtremesFromAll($getExtremesFromAll) { |
||
| 1022 | |||
| 1023 | /** |
||
| 1024 | * Set the id. |
||
| 1025 | * |
||
| 1026 | * @param string $id The id. |
||
| 1027 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1028 | */ |
||
| 1029 | public function setId($id) { |
||
| 1033 | |||
| 1034 | /** |
||
| 1035 | * Set the index. |
||
| 1036 | * |
||
| 1037 | * @param integer $index The index. |
||
| 1038 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1039 | */ |
||
| 1040 | public function setIndex($index) { |
||
| 1044 | |||
| 1045 | /** |
||
| 1046 | * Set the keys. |
||
| 1047 | * |
||
| 1048 | * @param array $keys The keys. |
||
| 1049 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1050 | */ |
||
| 1051 | public function setKeys(array $keys = null) { |
||
| 1055 | |||
| 1056 | /** |
||
| 1057 | * Set the legend index. |
||
| 1058 | * |
||
| 1059 | * @param integer $legendIndex The legend index. |
||
| 1060 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1061 | */ |
||
| 1062 | public function setLegendIndex($legendIndex) { |
||
| 1066 | |||
| 1067 | /** |
||
| 1068 | * Set the linked to. |
||
| 1069 | * |
||
| 1070 | * @param string $linkedTo The linked to. |
||
| 1071 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1072 | */ |
||
| 1073 | public function setLinkedTo($linkedTo) { |
||
| 1077 | |||
| 1078 | /** |
||
| 1079 | * Set the name. |
||
| 1080 | * |
||
| 1081 | * @param string $name The name. |
||
| 1082 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1083 | */ |
||
| 1084 | public function setName($name) { |
||
| 1088 | |||
| 1089 | /** |
||
| 1090 | * Set the negative color. |
||
| 1091 | * |
||
| 1092 | * @param string $negativeColor The negative color. |
||
| 1093 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1094 | */ |
||
| 1095 | public function setNegativeColor($negativeColor) { |
||
| 1099 | |||
| 1100 | /** |
||
| 1101 | * Set the overshoot. |
||
| 1102 | * |
||
| 1103 | * @param integer $overshoot The overshoot. |
||
| 1104 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1105 | */ |
||
| 1106 | public function setOvershoot($overshoot) { |
||
| 1110 | |||
| 1111 | /** |
||
| 1112 | * Set the pivot. |
||
| 1113 | * |
||
| 1114 | * @param array $pivot The pivot. |
||
| 1115 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1116 | */ |
||
| 1117 | public function setPivot(array $pivot = null) { |
||
| 1121 | |||
| 1122 | /** |
||
| 1123 | * Set the point. |
||
| 1124 | * |
||
| 1125 | * @param \WBW\Bundle\HighchartsBundle\API\Chart\Series\Gauge\HighchartsPoint $point The point. |
||
| 1126 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1127 | */ |
||
| 1128 | public function setPoint(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Gauge\HighchartsPoint $point = null) { |
||
| 1132 | |||
| 1133 | /** |
||
| 1134 | * Set the point description formatter. |
||
| 1135 | * |
||
| 1136 | * @param string $pointDescriptionFormatter The point description formatter. |
||
| 1137 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1138 | */ |
||
| 1139 | public function setPointDescriptionFormatter($pointDescriptionFormatter) { |
||
| 1143 | |||
| 1144 | /** |
||
| 1145 | * Set the selected. |
||
| 1146 | * |
||
| 1147 | * @param boolean $selected The selected. |
||
| 1148 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1149 | */ |
||
| 1150 | public function setSelected($selected) { |
||
| 1154 | |||
| 1155 | /** |
||
| 1156 | * Set the show checkbox. |
||
| 1157 | * |
||
| 1158 | * @param boolean $showCheckbox The show checkbox. |
||
| 1159 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1160 | */ |
||
| 1161 | public function setShowCheckbox($showCheckbox) { |
||
| 1165 | |||
| 1166 | /** |
||
| 1167 | * Set the show in legend. |
||
| 1168 | * |
||
| 1169 | * @param boolean $showInLegend The show in legend. |
||
| 1170 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1171 | */ |
||
| 1172 | public function setShowInLegend($showInLegend) { |
||
| 1176 | |||
| 1177 | /** |
||
| 1178 | * Set the skip keyboard navigation. |
||
| 1179 | * |
||
| 1180 | * @param boolean $skipKeyboardNavigation The skip keyboard navigation. |
||
| 1181 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1182 | */ |
||
| 1183 | public function setSkipKeyboardNavigation($skipKeyboardNavigation) { |
||
| 1187 | |||
| 1188 | /** |
||
| 1189 | * Set the sticky tracking. |
||
| 1190 | * |
||
| 1191 | * @param boolean $stickyTracking The sticky tracking. |
||
| 1192 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1193 | */ |
||
| 1194 | public function setStickyTracking($stickyTracking) { |
||
| 1198 | |||
| 1199 | /** |
||
| 1200 | * Set the threshold. |
||
| 1201 | * |
||
| 1202 | * @param integer $threshold The threshold. |
||
| 1203 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1204 | */ |
||
| 1205 | public function setThreshold($threshold) { |
||
| 1209 | |||
| 1210 | /** |
||
| 1211 | * Set the tooltip. |
||
| 1212 | * |
||
| 1213 | * @param array $tooltip The tooltip. |
||
| 1214 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1215 | */ |
||
| 1216 | public function setTooltip(array $tooltip = null) { |
||
| 1220 | |||
| 1221 | /** |
||
| 1222 | * Set the type. |
||
| 1223 | * |
||
| 1224 | * @param string $type The type. |
||
| 1225 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1226 | */ |
||
| 1227 | public function setType($type) { |
||
| 1251 | |||
| 1252 | /** |
||
| 1253 | * Set the visible. |
||
| 1254 | * |
||
| 1255 | * @param boolean $visible The visible. |
||
| 1256 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1257 | */ |
||
| 1258 | public function setVisible($visible) { |
||
| 1262 | |||
| 1263 | /** |
||
| 1264 | * Set the wrap. |
||
| 1265 | * |
||
| 1266 | * @param boolean $wrap The wrap. |
||
| 1267 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1268 | */ |
||
| 1269 | public function setWrap($wrap) { |
||
| 1273 | |||
| 1274 | /** |
||
| 1275 | * Set the x axis. |
||
| 1276 | * |
||
| 1277 | * @param integer|string $xAxis The x axis. |
||
| 1278 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1279 | */ |
||
| 1280 | public function setXAxis($xAxis) { |
||
| 1284 | |||
| 1285 | /** |
||
| 1286 | * Set the y axis. |
||
| 1287 | * |
||
| 1288 | * @param integer|string $yAxis The y axis. |
||
| 1289 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1290 | */ |
||
| 1291 | public function setYAxis($yAxis) { |
||
| 1295 | |||
| 1296 | /** |
||
| 1297 | * Set the z index. |
||
| 1298 | * |
||
| 1299 | * @param integer $zIndex The z index. |
||
| 1300 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsGauge Returns the highcharts gauge. |
||
| 1301 | */ |
||
| 1302 | public function setZIndex($zIndex) { |
||
| 1306 | |||
| 1307 | /** |
||
| 1308 | * Convert into an array representing this instance. |
||
| 1309 | * |
||
| 1310 | * @return array Returns an array representing this instance. |
||
| 1311 | */ |
||
| 1312 | public function toArray() { |
||
| 1441 | |||
| 1442 | } |
||
| 1443 |
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..