Complex classes like Geocache 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 Geocache, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 14 | class Geocache |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | * |
||
| 19 | * @ORM\Column(name="uuid", type="string", length=36, nullable=false) |
||
| 20 | */ |
||
| 21 | private $uuid; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var int |
||
| 25 | * |
||
| 26 | * @ORM\Column(name="node", type="smallint", nullable=false) |
||
| 27 | */ |
||
| 28 | private $node = 0; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var \DateTime |
||
| 32 | * |
||
| 33 | * @ORM\Column(name="date_created", type="datetime", nullable=false) |
||
| 34 | */ |
||
| 35 | private $dateCreated; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var bool |
||
| 39 | * |
||
| 40 | * @ORM\Column(name="is_publishdate", type="boolean", nullable=false) |
||
| 41 | */ |
||
| 42 | private $isPublishdate = false; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @var \DateTime |
||
| 46 | * |
||
| 47 | * @ORM\Column(name="last_modified", type="datetime", nullable=false) |
||
| 48 | */ |
||
| 49 | private $lastModified; |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @var \DateTime |
||
| 53 | * |
||
| 54 | * @ORM\Column(name="listing_last_modified", type="datetime", nullable=false) |
||
| 55 | */ |
||
| 56 | private $listingLastModified; |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @var \DateTime |
||
| 60 | * |
||
| 61 | * @ORM\Column(name="meta_last_modified", type="datetime", nullable=false) |
||
| 62 | */ |
||
| 63 | private $metaLastModified; |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @var integer |
||
| 67 | * |
||
| 68 | * @ORM\Column(name="user_id", type="integer", nullable=false) |
||
| 69 | */ |
||
| 70 | private $userId; |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @var string |
||
| 74 | * |
||
| 75 | * @ORM\Column(name="name", type="string", length=255, nullable=false) |
||
| 76 | */ |
||
| 77 | private $name; |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @var float |
||
| 81 | * |
||
| 82 | * @ORM\Column(name="longitude", type="float", precision=10, scale=0, nullable=false) |
||
| 83 | */ |
||
| 84 | private $longitude; |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @var float |
||
| 88 | * |
||
| 89 | * @ORM\Column(name="latitude", type="float", precision=10, scale=0, nullable=false) |
||
| 90 | */ |
||
| 91 | private $latitude; |
||
| 92 | |||
| 93 | /** |
||
| 94 | * @var bool |
||
| 95 | * |
||
| 96 | * @ORM\Column(name="type", type="boolean", nullable=false) |
||
| 97 | */ |
||
| 98 | private $type; |
||
| 99 | |||
| 100 | /** |
||
| 101 | * @var bool |
||
| 102 | * |
||
| 103 | * @ORM\Column(name="status", type="boolean", nullable=false) |
||
| 104 | */ |
||
| 105 | private $status; |
||
| 106 | |||
| 107 | /** |
||
| 108 | * @var string |
||
| 109 | * |
||
| 110 | * @ORM\Column(name="country", type="string", length=2, nullable=false) |
||
| 111 | */ |
||
| 112 | private $country; |
||
| 113 | |||
| 114 | /** |
||
| 115 | * @var \DateTime |
||
| 116 | * |
||
| 117 | * @ORM\Column(name="date_hidden", type="date", nullable=false) |
||
| 118 | */ |
||
| 119 | private $dateHidden; |
||
| 120 | |||
| 121 | /** |
||
| 122 | * @var bool |
||
| 123 | * |
||
| 124 | * @ORM\Column(name="size", type="boolean", nullable=false) |
||
| 125 | */ |
||
| 126 | private $size; |
||
| 127 | |||
| 128 | /** |
||
| 129 | * @var bool |
||
| 130 | * |
||
| 131 | * @ORM\Column(name="difficulty", type="boolean", nullable=false) |
||
| 132 | */ |
||
| 133 | private $difficulty; |
||
| 134 | |||
| 135 | /** |
||
| 136 | * @var bool |
||
| 137 | * |
||
| 138 | * @ORM\Column(name="terrain", type="boolean", nullable=false) |
||
| 139 | */ |
||
| 140 | private $terrain; |
||
| 141 | |||
| 142 | /** |
||
| 143 | * @var string |
||
| 144 | * |
||
| 145 | * @ORM\Column(name="logpw", type="string", length=20, nullable=true) |
||
| 146 | */ |
||
| 147 | private $logpw; |
||
| 148 | |||
| 149 | /** |
||
| 150 | * @var float |
||
| 151 | * |
||
| 152 | * @ORM\Column(name="search_time", type="float", precision=10, scale=0, nullable=false) |
||
| 153 | */ |
||
| 154 | private $searchTime = 0.0; |
||
| 155 | |||
| 156 | /** |
||
| 157 | * @var float |
||
| 158 | * |
||
| 159 | * @ORM\Column(name="way_length", type="float", precision=10, scale=0, nullable=false) |
||
| 160 | */ |
||
| 161 | private $wayLength = 0.0; |
||
| 162 | |||
| 163 | /** |
||
| 164 | * @var string |
||
| 165 | * |
||
| 166 | * @ORM\Column(name="wp_gc", type="string", length=7, nullable=false) |
||
| 167 | */ |
||
| 168 | private $wpGc; |
||
| 169 | |||
| 170 | /** |
||
| 171 | * @var string |
||
| 172 | * |
||
| 173 | * @ORM\Column(name="wp_gc_maintained", type="string", length=7, nullable=false) |
||
| 174 | */ |
||
| 175 | private $wpGcMaintained; |
||
| 176 | |||
| 177 | /** |
||
| 178 | * @var string |
||
| 179 | * |
||
| 180 | * @ORM\Column(name="wp_nc", type="string", length=6, nullable=false) |
||
| 181 | */ |
||
| 182 | private $wpNc; |
||
| 183 | |||
| 184 | /** |
||
| 185 | * @var string |
||
| 186 | * |
||
| 187 | * @ORM\Column(name="wp_oc", type="string", length=6, nullable=true) |
||
| 188 | */ |
||
| 189 | private $wpOc; |
||
| 190 | |||
| 191 | /** |
||
| 192 | * @var string |
||
| 193 | * |
||
| 194 | * @ORM\Column(name="desc_languages", type="string", length=60, nullable=false) |
||
| 195 | */ |
||
| 196 | private $descLanguages; |
||
| 197 | |||
| 198 | /** |
||
| 199 | * @var string |
||
| 200 | * |
||
| 201 | * @ORM\Column(name="default_desclang", type="string", length=2, nullable=false) |
||
| 202 | */ |
||
| 203 | private $defaultDesclang; |
||
| 204 | |||
| 205 | /** |
||
| 206 | * @var \DateTime |
||
| 207 | * |
||
| 208 | * @ORM\Column(name="date_activate", type="datetime", nullable=true) |
||
| 209 | */ |
||
| 210 | private $dateActivate; |
||
| 211 | |||
| 212 | /** |
||
| 213 | * @var bool |
||
| 214 | * |
||
| 215 | * @ORM\Column(name="need_npa_recalc", type="boolean", nullable=false) |
||
| 216 | */ |
||
| 217 | private $needNpaRecalc; |
||
| 218 | |||
| 219 | /** |
||
| 220 | * @var bool |
||
| 221 | * |
||
| 222 | * @ORM\Column(name="show_cachelists", type="boolean", nullable=false) |
||
| 223 | */ |
||
| 224 | private $showCachelists = true; |
||
| 225 | |||
| 226 | /** |
||
| 227 | * @var bool |
||
| 228 | * |
||
| 229 | * @ORM\Column(name="protect_old_coords", type="boolean", nullable=false) |
||
| 230 | */ |
||
| 231 | private $protectOldCoords = false; |
||
| 232 | |||
| 233 | /** |
||
| 234 | * @var bool |
||
| 235 | * |
||
| 236 | * @ORM\Column(name="needs_maintenance", type="boolean", nullable=false) |
||
| 237 | */ |
||
| 238 | private $needsMaintenance = false; |
||
| 239 | |||
| 240 | /** |
||
| 241 | * @var bool |
||
| 242 | * |
||
| 243 | * @ORM\Column(name="listing_outdated", type="boolean", nullable=false) |
||
| 244 | */ |
||
| 245 | private $listingOutdated = false; |
||
| 246 | |||
| 247 | /** |
||
| 248 | * @var \DateTime |
||
| 249 | * |
||
| 250 | * @ORM\Column(name="flags_last_modified", type="datetime", nullable=false) |
||
| 251 | */ |
||
| 252 | private $flagsLastModified; |
||
| 253 | |||
| 254 | /** |
||
| 255 | * @var integer |
||
| 256 | * |
||
| 257 | * @ORM\Column(name="cache_id", type="integer") |
||
| 258 | * @ORM\Id |
||
| 259 | * @ORM\GeneratedValue(strategy="IDENTITY") |
||
| 260 | */ |
||
| 261 | private $cacheId; |
||
| 262 | |||
| 263 | /** |
||
| 264 | * Set uuid |
||
| 265 | * |
||
| 266 | * @param string $uuid |
||
| 267 | * |
||
| 268 | * @return \AppBundle\Entity\Geocache |
||
| 269 | */ |
||
| 270 | public function setUuid($uuid) |
||
| 276 | |||
| 277 | /** |
||
| 278 | * Get uuid |
||
| 279 | * |
||
| 280 | * @return string |
||
| 281 | */ |
||
| 282 | public function getUuid() |
||
| 286 | |||
| 287 | /** |
||
| 288 | * Set node |
||
| 289 | * |
||
| 290 | * @param bool $node |
||
| 291 | * |
||
| 292 | * @return \AppBundle\Entity\Geocache |
||
| 293 | */ |
||
| 294 | public function setNode($node) |
||
| 300 | |||
| 301 | /** |
||
| 302 | * Get node |
||
| 303 | * |
||
| 304 | * @return bool |
||
| 305 | */ |
||
| 306 | public function getNode() |
||
| 310 | |||
| 311 | /** |
||
| 312 | * Set dateCreated |
||
| 313 | * |
||
| 314 | * @param \DateTime $dateCreated |
||
| 315 | * |
||
| 316 | * @return \AppBundle\Entity\Geocache |
||
| 317 | */ |
||
| 318 | public function setDateCreated(DateTime $dateCreated) |
||
| 324 | |||
| 325 | /** |
||
| 326 | * Get dateCreated |
||
| 327 | * |
||
| 328 | * @return \DateTime |
||
| 329 | */ |
||
| 330 | public function getDateCreated() |
||
| 334 | |||
| 335 | /** |
||
| 336 | * Set isPublishdate |
||
| 337 | * |
||
| 338 | * @param bool $isPublishdate |
||
| 339 | * |
||
| 340 | * @return \AppBundle\Entity\Geocache |
||
| 341 | */ |
||
| 342 | public function setIsPublishdate($isPublishdate) |
||
| 348 | |||
| 349 | /** |
||
| 350 | * Get isPublishdate |
||
| 351 | * |
||
| 352 | * @return bool |
||
| 353 | */ |
||
| 354 | public function getIsPublishdate() |
||
| 358 | |||
| 359 | /** |
||
| 360 | * Set lastModified |
||
| 361 | * |
||
| 362 | * @param \DateTime $lastModified |
||
| 363 | * |
||
| 364 | * @return \AppBundle\Entity\Geocache |
||
| 365 | */ |
||
| 366 | public function setLastModified(DateTime $lastModified) |
||
| 372 | |||
| 373 | /** |
||
| 374 | * Get lastModified |
||
| 375 | * |
||
| 376 | * @return \DateTime |
||
| 377 | */ |
||
| 378 | public function getLastModified() |
||
| 382 | |||
| 383 | /** |
||
| 384 | * Set listingLastModified |
||
| 385 | * |
||
| 386 | * @param \DateTime $listingLastModified |
||
| 387 | * |
||
| 388 | * @return \AppBundle\Entity\Geocache |
||
| 389 | */ |
||
| 390 | public function setListingLastModified(DateTime $listingLastModified) |
||
| 396 | |||
| 397 | /** |
||
| 398 | * Get listingLastModified |
||
| 399 | * |
||
| 400 | * @return \DateTime |
||
| 401 | */ |
||
| 402 | public function getListingLastModified() |
||
| 406 | |||
| 407 | /** |
||
| 408 | * Set metaLastModified |
||
| 409 | * |
||
| 410 | * @param \DateTime $metaLastModified |
||
| 411 | * |
||
| 412 | * @return \AppBundle\Entity\Geocache |
||
| 413 | */ |
||
| 414 | public function setMetaLastModified(DateTime $metaLastModified) |
||
| 420 | |||
| 421 | /** |
||
| 422 | * Get metaLastModified |
||
| 423 | * |
||
| 424 | * @return \DateTime |
||
| 425 | */ |
||
| 426 | public function getMetaLastModified() |
||
| 430 | |||
| 431 | /** |
||
| 432 | * Set userId |
||
| 433 | * |
||
| 434 | * @param int $userId |
||
| 435 | * |
||
| 436 | * @return \AppBundle\Entity\Geocache |
||
| 437 | */ |
||
| 438 | public function setUserId($userId) |
||
| 444 | |||
| 445 | /** |
||
| 446 | * Get userId |
||
| 447 | * |
||
| 448 | * @return int |
||
| 449 | */ |
||
| 450 | public function getUserId() |
||
| 454 | |||
| 455 | /** |
||
| 456 | * Set name |
||
| 457 | * |
||
| 458 | * @param string $name |
||
| 459 | * |
||
| 460 | * @return \AppBundle\Entity\Geocache |
||
| 461 | */ |
||
| 462 | public function setName($name) |
||
| 468 | |||
| 469 | /** |
||
| 470 | * Get name |
||
| 471 | * |
||
| 472 | * @return string |
||
| 473 | */ |
||
| 474 | public function getName() |
||
| 478 | |||
| 479 | /** |
||
| 480 | * Set longitude |
||
| 481 | * |
||
| 482 | * @param float $longitude |
||
| 483 | * |
||
| 484 | * @return \AppBundle\Entity\Geocache |
||
| 485 | */ |
||
| 486 | public function setLongitude($longitude) |
||
| 492 | |||
| 493 | /** |
||
| 494 | * Get longitude |
||
| 495 | * |
||
| 496 | * @return float |
||
| 497 | */ |
||
| 498 | public function getLongitude() |
||
| 502 | |||
| 503 | /** |
||
| 504 | * Set latitude |
||
| 505 | * |
||
| 506 | * @param float $latitude |
||
| 507 | * |
||
| 508 | * @return \AppBundle\Entity\Geocache |
||
| 509 | */ |
||
| 510 | public function setLatitude($latitude) |
||
| 516 | |||
| 517 | /** |
||
| 518 | * Get latitude |
||
| 519 | * |
||
| 520 | * @return float |
||
| 521 | */ |
||
| 522 | public function getLatitude() |
||
| 526 | |||
| 527 | /** |
||
| 528 | * Set type |
||
| 529 | * |
||
| 530 | * @param bool $type |
||
| 531 | * |
||
| 532 | * @return \AppBundle\Entity\Geocache |
||
| 533 | */ |
||
| 534 | public function setType($type) |
||
| 540 | |||
| 541 | /** |
||
| 542 | * Get type |
||
| 543 | * |
||
| 544 | * @return bool |
||
| 545 | */ |
||
| 546 | public function getType() |
||
| 550 | |||
| 551 | /** |
||
| 552 | * Set status |
||
| 553 | * |
||
| 554 | * @param bool $status |
||
| 555 | * |
||
| 556 | * @return \AppBundle\Entity\Geocache |
||
| 557 | */ |
||
| 558 | public function setStatus($status) |
||
| 564 | |||
| 565 | /** |
||
| 566 | * Get status |
||
| 567 | * |
||
| 568 | * @return bool |
||
| 569 | */ |
||
| 570 | public function getStatus() |
||
| 574 | |||
| 575 | /** |
||
| 576 | * Set country |
||
| 577 | * |
||
| 578 | * @param string $country |
||
| 579 | * |
||
| 580 | * @return \AppBundle\Entity\Geocache |
||
| 581 | */ |
||
| 582 | public function setCountry($country) |
||
| 588 | |||
| 589 | /** |
||
| 590 | * Get country |
||
| 591 | * |
||
| 592 | * @return string |
||
| 593 | */ |
||
| 594 | public function getCountry() |
||
| 598 | |||
| 599 | /** |
||
| 600 | * Set dateHidden |
||
| 601 | * |
||
| 602 | * @param \DateTime $dateHidden |
||
| 603 | * |
||
| 604 | * @return \AppBundle\Entity\Geocache |
||
| 605 | */ |
||
| 606 | public function setDateHidden(DateTime $dateHidden) |
||
| 612 | |||
| 613 | /** |
||
| 614 | * Get dateHidden |
||
| 615 | * |
||
| 616 | * @return \DateTime |
||
| 617 | */ |
||
| 618 | public function getDateHidden() |
||
| 622 | |||
| 623 | /** |
||
| 624 | * Set size |
||
| 625 | * |
||
| 626 | * @param bool $size |
||
| 627 | * |
||
| 628 | * @return \AppBundle\Entity\Geocache |
||
| 629 | */ |
||
| 630 | public function setSize($size) |
||
| 636 | |||
| 637 | /** |
||
| 638 | * Get size |
||
| 639 | * |
||
| 640 | * @return bool |
||
| 641 | */ |
||
| 642 | public function getSize() |
||
| 646 | |||
| 647 | /** |
||
| 648 | * Set difficulty |
||
| 649 | * |
||
| 650 | * @param bool $difficulty |
||
| 651 | * |
||
| 652 | * @return \AppBundle\Entity\Geocache |
||
| 653 | */ |
||
| 654 | public function setDifficulty($difficulty) |
||
| 660 | |||
| 661 | /** |
||
| 662 | * Get difficulty |
||
| 663 | * |
||
| 664 | * @return bool |
||
| 665 | */ |
||
| 666 | public function getDifficulty() |
||
| 670 | |||
| 671 | /** |
||
| 672 | * Set terrain |
||
| 673 | * |
||
| 674 | * @param bool $terrain |
||
| 675 | * |
||
| 676 | * @return \AppBundle\Entity\Geocache |
||
| 677 | */ |
||
| 678 | public function setTerrain($terrain) |
||
| 684 | |||
| 685 | /** |
||
| 686 | * Get terrain |
||
| 687 | * |
||
| 688 | * @return bool |
||
| 689 | */ |
||
| 690 | public function getTerrain() |
||
| 694 | |||
| 695 | /** |
||
| 696 | * Set logpw |
||
| 697 | * |
||
| 698 | * @param string $logpw |
||
| 699 | * |
||
| 700 | * @return \AppBundle\Entity\Geocache |
||
| 701 | */ |
||
| 702 | public function setLogpw($logpw) |
||
| 708 | |||
| 709 | /** |
||
| 710 | * Get logpw |
||
| 711 | * |
||
| 712 | * @return string |
||
| 713 | */ |
||
| 714 | public function getLogpw() |
||
| 718 | |||
| 719 | /** |
||
| 720 | * Set searchTime |
||
| 721 | * |
||
| 722 | * @param float $searchTime |
||
| 723 | * |
||
| 724 | * @return \AppBundle\Entity\Geocache |
||
| 725 | */ |
||
| 726 | public function setSearchTime($searchTime) |
||
| 732 | |||
| 733 | /** |
||
| 734 | * Get searchTime |
||
| 735 | * |
||
| 736 | * @return float |
||
| 737 | */ |
||
| 738 | public function getSearchTime() |
||
| 742 | |||
| 743 | /** |
||
| 744 | * Set wayLength |
||
| 745 | * |
||
| 746 | * @param float $wayLength |
||
| 747 | * |
||
| 748 | * @return \AppBundle\Entity\Geocache |
||
| 749 | */ |
||
| 750 | public function setWayLength($wayLength) |
||
| 756 | |||
| 757 | /** |
||
| 758 | * Get wayLength |
||
| 759 | * |
||
| 760 | * @return float |
||
| 761 | */ |
||
| 762 | public function getWayLength() |
||
| 766 | |||
| 767 | /** |
||
| 768 | * Set wpGc |
||
| 769 | * |
||
| 770 | * @param string $wpGc |
||
| 771 | * |
||
| 772 | * @return \AppBundle\Entity\Geocache |
||
| 773 | */ |
||
| 774 | public function setWpGc($wpGc) |
||
| 780 | |||
| 781 | /** |
||
| 782 | * Get wpGc |
||
| 783 | * |
||
| 784 | * @return string |
||
| 785 | */ |
||
| 786 | public function getWpGc() |
||
| 790 | |||
| 791 | /** |
||
| 792 | * Set wpGcMaintained |
||
| 793 | * |
||
| 794 | * @param string $wpGcMaintained |
||
| 795 | * |
||
| 796 | * @return \AppBundle\Entity\Geocache |
||
| 797 | */ |
||
| 798 | public function setWpGcMaintained($wpGcMaintained) |
||
| 804 | |||
| 805 | /** |
||
| 806 | * Get wpGcMaintained |
||
| 807 | * |
||
| 808 | * @return string |
||
| 809 | */ |
||
| 810 | public function getWpGcMaintained() |
||
| 814 | |||
| 815 | /** |
||
| 816 | * Set wpNc |
||
| 817 | * |
||
| 818 | * @param string $wpNc |
||
| 819 | * |
||
| 820 | * @return \AppBundle\Entity\Geocache |
||
| 821 | */ |
||
| 822 | public function setWpNc($wpNc) |
||
| 828 | |||
| 829 | /** |
||
| 830 | * Get wpNc |
||
| 831 | * |
||
| 832 | * @return string |
||
| 833 | */ |
||
| 834 | public function getWpNc() |
||
| 838 | |||
| 839 | /** |
||
| 840 | * Set wpOc |
||
| 841 | * |
||
| 842 | * @param string $wpOc |
||
| 843 | * |
||
| 844 | * @return \AppBundle\Entity\Geocache |
||
| 845 | */ |
||
| 846 | public function setWpOc($wpOc) |
||
| 852 | |||
| 853 | /** |
||
| 854 | * Get wpOc |
||
| 855 | * |
||
| 856 | * @return string |
||
| 857 | */ |
||
| 858 | public function getWpOc() |
||
| 862 | |||
| 863 | /** |
||
| 864 | * Set descLanguages |
||
| 865 | * |
||
| 866 | * @param string $descLanguages |
||
| 867 | * |
||
| 868 | * @return \AppBundle\Entity\Geocache |
||
| 869 | */ |
||
| 870 | public function setDescLanguages($descLanguages) |
||
| 876 | |||
| 877 | /** |
||
| 878 | * Get descLanguages |
||
| 879 | * |
||
| 880 | * @return string |
||
| 881 | */ |
||
| 882 | public function getDescLanguages() |
||
| 886 | |||
| 887 | /** |
||
| 888 | * Set defaultDesclang |
||
| 889 | * |
||
| 890 | * @param string $defaultDesclang |
||
| 891 | * |
||
| 892 | * @return \AppBundle\Entity\Geocache |
||
| 893 | */ |
||
| 894 | public function setDefaultDesclang($defaultDesclang) |
||
| 900 | |||
| 901 | /** |
||
| 902 | * Get defaultDesclang |
||
| 903 | * |
||
| 904 | * @return string |
||
| 905 | */ |
||
| 906 | public function getDefaultDesclang() |
||
| 910 | |||
| 911 | /** |
||
| 912 | * Set dateActivate |
||
| 913 | * |
||
| 914 | * @param \DateTime $dateActivate |
||
| 915 | * |
||
| 916 | * @return \AppBundle\Entity\Geocache |
||
| 917 | */ |
||
| 918 | public function setDateActivate(DateTime $dateActivate) |
||
| 924 | |||
| 925 | /** |
||
| 926 | * Get dateActivate |
||
| 927 | * |
||
| 928 | * @return \DateTime |
||
| 929 | */ |
||
| 930 | public function getDateActivate() |
||
| 934 | |||
| 935 | /** |
||
| 936 | * Set needNpaRecalc |
||
| 937 | * |
||
| 938 | * @param bool $needNpaRecalc |
||
| 939 | * |
||
| 940 | * @return \AppBundle\Entity\Geocache |
||
| 941 | */ |
||
| 942 | public function setNeedNpaRecalc($needNpaRecalc) |
||
| 948 | |||
| 949 | /** |
||
| 950 | * Get needNpaRecalc |
||
| 951 | * |
||
| 952 | * @return bool |
||
| 953 | */ |
||
| 954 | public function getNeedNpaRecalc() |
||
| 958 | |||
| 959 | /** |
||
| 960 | * Set showCachelists |
||
| 961 | * |
||
| 962 | * @param bool $showCachelists |
||
| 963 | * |
||
| 964 | * @return \AppBundle\Entity\Geocache |
||
| 965 | */ |
||
| 966 | public function setShowCachelists($showCachelists) |
||
| 972 | |||
| 973 | /** |
||
| 974 | * Get showCachelists |
||
| 975 | * |
||
| 976 | * @return bool |
||
| 977 | */ |
||
| 978 | public function getShowCachelists() |
||
| 982 | |||
| 983 | /** |
||
| 984 | * Set protectOldCoords |
||
| 985 | * |
||
| 986 | * @param bool $protectOldCoords |
||
| 987 | * |
||
| 988 | * @return \AppBundle\Entity\Geocache |
||
| 989 | */ |
||
| 990 | public function setProtectOldCoords($protectOldCoords) |
||
| 996 | |||
| 997 | /** |
||
| 998 | * Get protectOldCoords |
||
| 999 | * |
||
| 1000 | * @return bool |
||
| 1001 | */ |
||
| 1002 | public function getProtectOldCoords() |
||
| 1006 | |||
| 1007 | /** |
||
| 1008 | * Set needsMaintenance |
||
| 1009 | * |
||
| 1010 | * @param bool $needsMaintenance |
||
| 1011 | * |
||
| 1012 | * @return \AppBundle\Entity\Geocache |
||
| 1013 | */ |
||
| 1014 | public function setNeedsMaintenance($needsMaintenance) |
||
| 1020 | |||
| 1021 | /** |
||
| 1022 | * Get needsMaintenance |
||
| 1023 | * |
||
| 1024 | * @return bool |
||
| 1025 | */ |
||
| 1026 | public function getNeedsMaintenance() |
||
| 1030 | |||
| 1031 | /** |
||
| 1032 | * Set listingOutdated |
||
| 1033 | * |
||
| 1034 | * @param bool $listingOutdated |
||
| 1035 | * |
||
| 1036 | * @return \AppBundle\Entity\Geocache |
||
| 1037 | */ |
||
| 1038 | public function setListingOutdated($listingOutdated) |
||
| 1044 | |||
| 1045 | /** |
||
| 1046 | * Get listingOutdated |
||
| 1047 | * |
||
| 1048 | * @return bool |
||
| 1049 | */ |
||
| 1050 | public function getListingOutdated() |
||
| 1054 | |||
| 1055 | /** |
||
| 1056 | * Set flagsLastModified |
||
| 1057 | * |
||
| 1058 | * @param \DateTime $flagsLastModified |
||
| 1059 | * |
||
| 1060 | * @return \AppBundle\Entity\Geocache |
||
| 1061 | */ |
||
| 1062 | public function setFlagsLastModified(DateTime $flagsLastModified) |
||
| 1068 | |||
| 1069 | /** |
||
| 1070 | * Get flagsLastModified |
||
| 1071 | * |
||
| 1072 | * @return \DateTime |
||
| 1073 | */ |
||
| 1074 | public function getFlagsLastModified() |
||
| 1078 | |||
| 1079 | /** |
||
| 1080 | * Get cacheId |
||
| 1081 | * |
||
| 1082 | * @return int |
||
| 1083 | */ |
||
| 1084 | public function getCacheId() |
||
| 1088 | } |
||
| 1089 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.