Complex classes like User 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 User, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 14 | class User |
||
| 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 \DateTime |
||
| 39 | * |
||
| 40 | * @ORM\Column(name="last_modified", type="datetime", nullable=false) |
||
| 41 | */ |
||
| 42 | private $lastModified; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @var \DateTime |
||
| 46 | * |
||
| 47 | * @ORM\Column(name="last_login", type="date", nullable=true) |
||
| 48 | */ |
||
| 49 | private $lastLogin; |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @var string |
||
| 53 | * |
||
| 54 | * @ORM\Column(name="username", type="string", length=60, nullable=false) |
||
| 55 | */ |
||
| 56 | private $username; |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @var string |
||
| 60 | * |
||
| 61 | * @ORM\Column(name="password", type="string", length=128, nullable=true) |
||
| 62 | */ |
||
| 63 | private $password; |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @var string |
||
| 67 | * |
||
| 68 | * @ORM\Column(name="email", type="string", length=60, nullable=true) |
||
| 69 | */ |
||
| 70 | private $email; |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @var int |
||
| 74 | * |
||
| 75 | * @ORM\Column(name="email_problems", type="integer", nullable=false) |
||
| 76 | */ |
||
| 77 | private $emailProblems = 0; |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @var \DateTime |
||
| 81 | * |
||
| 82 | * @ORM\Column(name="first_email_problem", type="date", nullable=true) |
||
| 83 | */ |
||
| 84 | private $firstEmailProblem; |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @var \DateTime |
||
| 88 | * |
||
| 89 | * @ORM\Column(name="last_email_problem", type="datetime", nullable=true) |
||
| 90 | */ |
||
| 91 | private $lastEmailProblem; |
||
| 92 | |||
| 93 | /** |
||
| 94 | * @var int |
||
| 95 | * |
||
| 96 | * @ORM\Column(name="mailing_problems", type="integer", nullable=false) |
||
| 97 | */ |
||
| 98 | private $mailingProblems = 0; |
||
| 99 | |||
| 100 | /** |
||
| 101 | * @var bool |
||
| 102 | * |
||
| 103 | * @ORM\Column(name="accept_mailing", type="boolean", nullable=false) |
||
| 104 | */ |
||
| 105 | private $acceptMailing = true; |
||
| 106 | |||
| 107 | /** |
||
| 108 | * @var bool |
||
| 109 | * |
||
| 110 | * @ORM\Column(name="usermail_send_addr", type="boolean", nullable=false) |
||
| 111 | */ |
||
| 112 | private $usermailSendAddr = false; |
||
| 113 | |||
| 114 | /** |
||
| 115 | * @var float |
||
| 116 | * |
||
| 117 | * @ORM\Column(name="latitude", type="float", precision=10, scale=0, nullable=false) |
||
| 118 | */ |
||
| 119 | private $latitude; |
||
| 120 | |||
| 121 | /** |
||
| 122 | * @var float |
||
| 123 | * |
||
| 124 | * @ORM\Column(name="longitude", type="float", precision=10, scale=0, nullable=false) |
||
| 125 | */ |
||
| 126 | private $longitude; |
||
| 127 | |||
| 128 | /** |
||
| 129 | * @var bool |
||
| 130 | * |
||
| 131 | * @ORM\Column(name="is_active_flag", type="boolean", nullable=false) |
||
| 132 | */ |
||
| 133 | private $isActiveFlag; |
||
| 134 | |||
| 135 | /** |
||
| 136 | * @var string |
||
| 137 | * |
||
| 138 | * @ORM\Column(name="last_name", type="string", length=60, nullable=false) |
||
| 139 | */ |
||
| 140 | private $lastName; |
||
| 141 | |||
| 142 | /** |
||
| 143 | * @var string |
||
| 144 | * |
||
| 145 | * @ORM\Column(name="first_name", type="string", length=60, nullable=false) |
||
| 146 | */ |
||
| 147 | private $firstName; |
||
| 148 | |||
| 149 | /** |
||
| 150 | * @var string |
||
| 151 | * |
||
| 152 | * @ORM\Column(name="country", type="string", length=2, nullable=true) |
||
| 153 | */ |
||
| 154 | private $country; |
||
| 155 | |||
| 156 | /** |
||
| 157 | * @var bool |
||
| 158 | * |
||
| 159 | * @ORM\Column(name="pmr_flag", type="boolean", nullable=false) |
||
| 160 | */ |
||
| 161 | private $pmrFlag; |
||
| 162 | |||
| 163 | /** |
||
| 164 | * @var string |
||
| 165 | * |
||
| 166 | * @ORM\Column(name="new_pw_code", type="string", length=13, nullable=true) |
||
| 167 | */ |
||
| 168 | private $newPwCode; |
||
| 169 | |||
| 170 | /** |
||
| 171 | * @var \DateTime |
||
| 172 | * |
||
| 173 | * @ORM\Column(name="new_pw_date", type="datetime", nullable=true) |
||
| 174 | */ |
||
| 175 | private $newPwDate; |
||
| 176 | |||
| 177 | /** |
||
| 178 | * @var string |
||
| 179 | * |
||
| 180 | * @ORM\Column(name="new_email_code", type="string", length=13, nullable=true) |
||
| 181 | */ |
||
| 182 | private $newEmailCode; |
||
| 183 | |||
| 184 | /** |
||
| 185 | * @var \DateTime |
||
| 186 | * |
||
| 187 | * @ORM\Column(name="new_email_date", type="datetime", nullable=true) |
||
| 188 | */ |
||
| 189 | private $newEmailDate; |
||
| 190 | |||
| 191 | /** |
||
| 192 | * @var string |
||
| 193 | * |
||
| 194 | * @ORM\Column(name="new_email", type="string", length=60, nullable=true) |
||
| 195 | */ |
||
| 196 | private $newEmail; |
||
| 197 | |||
| 198 | /** |
||
| 199 | * @var bool |
||
| 200 | * |
||
| 201 | * @ORM\Column(name="permanent_login_flag", type="boolean", nullable=false) |
||
| 202 | */ |
||
| 203 | private $permanentLoginFlag; |
||
| 204 | |||
| 205 | /** |
||
| 206 | * @var bool |
||
| 207 | * |
||
| 208 | * @ORM\Column(name="watchmail_mode", type="boolean", nullable=false) |
||
| 209 | */ |
||
| 210 | private $watchmailMode = true; |
||
| 211 | |||
| 212 | /** |
||
| 213 | * @var bool |
||
| 214 | * |
||
| 215 | * @ORM\Column(name="watchmail_hour", type="boolean", nullable=false) |
||
| 216 | */ |
||
| 217 | private $watchmailHour = false; |
||
| 218 | |||
| 219 | /** |
||
| 220 | * @var \DateTime|string |
||
| 221 | * |
||
| 222 | * @ORM\Column(name="watchmail_nextmail", type="datetime", nullable=false) |
||
| 223 | */ |
||
| 224 | private $watchmailNextmail = '0000-00-00 00:00:00'; |
||
| 225 | |||
| 226 | /** |
||
| 227 | * @var bool |
||
| 228 | * |
||
| 229 | * @ORM\Column(name="watchmail_day", type="boolean", nullable=false) |
||
| 230 | */ |
||
| 231 | private $watchmailDay = false; |
||
| 232 | |||
| 233 | /** |
||
| 234 | * @var string |
||
| 235 | * |
||
| 236 | * @ORM\Column(name="activation_code", type="string", length=13, nullable=false) |
||
| 237 | */ |
||
| 238 | private $activationCode; |
||
| 239 | |||
| 240 | /** |
||
| 241 | * @var bool |
||
| 242 | * |
||
| 243 | * @ORM\Column(name="statpic_logo", type="boolean", nullable=false) |
||
| 244 | */ |
||
| 245 | private $statpicLogo = false; |
||
| 246 | |||
| 247 | /** |
||
| 248 | * @var string |
||
| 249 | * |
||
| 250 | * @ORM\Column(name="statpic_text", type="string", length=30, nullable=false) |
||
| 251 | */ |
||
| 252 | private $statpicText = 'Opencaching'; |
||
| 253 | |||
| 254 | /** |
||
| 255 | * @var bool |
||
| 256 | * |
||
| 257 | * @ORM\Column(name="no_htmledit_flag", type="boolean", nullable=false) |
||
| 258 | */ |
||
| 259 | private $noHtmleditFlag = false; |
||
| 260 | |||
| 261 | /** |
||
| 262 | * @var int |
||
| 263 | * |
||
| 264 | * @ORM\Column(name="notify_radius", type="integer", nullable=false) |
||
| 265 | */ |
||
| 266 | private $notifyRadius = 0; |
||
| 267 | |||
| 268 | /** |
||
| 269 | * @var bool |
||
| 270 | * |
||
| 271 | * @ORM\Column(name="notify_oconly", type="boolean", nullable=false) |
||
| 272 | */ |
||
| 273 | private $notifyOconly = true; |
||
| 274 | |||
| 275 | /** |
||
| 276 | * @var string |
||
| 277 | * |
||
| 278 | * @ORM\Column(name="language", type="string", length=2, nullable=true) |
||
| 279 | */ |
||
| 280 | private $language; |
||
| 281 | |||
| 282 | /** |
||
| 283 | * @var bool |
||
| 284 | * |
||
| 285 | * @ORM\Column(name="language_guessed", type="boolean", nullable=false) |
||
| 286 | */ |
||
| 287 | private $languageGuessed = false; |
||
| 288 | |||
| 289 | /** |
||
| 290 | * @var string |
||
| 291 | * |
||
| 292 | * @ORM\Column(name="domain", type="string", length=40, nullable=true) |
||
| 293 | */ |
||
| 294 | private $domain; |
||
| 295 | |||
| 296 | /** |
||
| 297 | * @var int |
||
| 298 | * |
||
| 299 | * @ORM\Column(name="admin", type="smallint", nullable=false) |
||
| 300 | */ |
||
| 301 | private $admin = 0; |
||
| 302 | |||
| 303 | /** |
||
| 304 | * @var bool |
||
| 305 | * |
||
| 306 | * @ORM\Column(name="data_license", type="boolean", nullable=false) |
||
| 307 | */ |
||
| 308 | private $dataLicense = false; |
||
| 309 | |||
| 310 | /** |
||
| 311 | * @var string |
||
| 312 | * |
||
| 313 | * @ORM\Column(name="description", type="text", nullable=false) |
||
| 314 | */ |
||
| 315 | private $description; |
||
| 316 | |||
| 317 | /** |
||
| 318 | * @var bool |
||
| 319 | * |
||
| 320 | * @ORM\Column(name="desc_htmledit", type="boolean", nullable=false) |
||
| 321 | */ |
||
| 322 | private $descHtmledit = true; |
||
| 323 | |||
| 324 | /** |
||
| 325 | * @var int |
||
| 326 | * |
||
| 327 | * @ORM\Column(name="user_id", type="integer") |
||
| 328 | * @ORM\Id |
||
| 329 | * @ORM\GeneratedValue(strategy="IDENTITY") |
||
| 330 | */ |
||
| 331 | private $userId; |
||
| 332 | |||
| 333 | /** |
||
| 334 | * Set uuid |
||
| 335 | * |
||
| 336 | * @param string $uuid |
||
| 337 | * |
||
| 338 | * @return \AppBundle\Entity\User |
||
| 339 | */ |
||
| 340 | public function setUuid($uuid) |
||
| 346 | |||
| 347 | /** |
||
| 348 | * Get uuid |
||
| 349 | * |
||
| 350 | * @return string |
||
| 351 | */ |
||
| 352 | public function getUuid() |
||
| 356 | |||
| 357 | /** |
||
| 358 | * Set node |
||
| 359 | * |
||
| 360 | * @param int $node |
||
| 361 | * |
||
| 362 | * @return \AppBundle\Entity\User |
||
| 363 | */ |
||
| 364 | public function setNode($node) |
||
| 370 | |||
| 371 | /** |
||
| 372 | * Get node |
||
| 373 | * |
||
| 374 | * @return bool |
||
| 375 | */ |
||
| 376 | public function getNode() |
||
| 380 | |||
| 381 | /** |
||
| 382 | * Set dateCreated |
||
| 383 | * |
||
| 384 | * @param \DateTime $dateCreated |
||
| 385 | * |
||
| 386 | * @return \AppBundle\Entity\User |
||
| 387 | */ |
||
| 388 | public function setDateCreated(DateTime $dateCreated) |
||
| 394 | |||
| 395 | /** |
||
| 396 | * Get dateCreated |
||
| 397 | * |
||
| 398 | * @return \DateTime |
||
| 399 | */ |
||
| 400 | public function getDateCreated() |
||
| 404 | |||
| 405 | /** |
||
| 406 | * Set lastModified |
||
| 407 | * |
||
| 408 | * @param \DateTime $lastModified |
||
| 409 | * |
||
| 410 | * @return \AppBundle\Entity\User |
||
| 411 | */ |
||
| 412 | public function setLastModified(DateTime $lastModified) |
||
| 418 | |||
| 419 | /** |
||
| 420 | * Get lastModified |
||
| 421 | * |
||
| 422 | * @return \DateTime |
||
| 423 | */ |
||
| 424 | public function getLastModified() |
||
| 428 | |||
| 429 | /** |
||
| 430 | * Set lastLogin |
||
| 431 | * |
||
| 432 | * @param \DateTime $lastLogin |
||
| 433 | * |
||
| 434 | * @return \AppBundle\Entity\User |
||
| 435 | */ |
||
| 436 | public function setLastLogin(DateTime $lastLogin) |
||
| 442 | |||
| 443 | /** |
||
| 444 | * Get lastLogin |
||
| 445 | * |
||
| 446 | * @return \DateTime |
||
| 447 | */ |
||
| 448 | public function getLastLogin() |
||
| 452 | |||
| 453 | /** |
||
| 454 | * Set username |
||
| 455 | * |
||
| 456 | * @param string $username |
||
| 457 | * |
||
| 458 | * @return \AppBundle\Entity\User |
||
| 459 | */ |
||
| 460 | public function setUsername($username) |
||
| 466 | |||
| 467 | /** |
||
| 468 | * Get username |
||
| 469 | * |
||
| 470 | * @return string |
||
| 471 | */ |
||
| 472 | public function getUsername() |
||
| 476 | |||
| 477 | /** |
||
| 478 | * Set password |
||
| 479 | * |
||
| 480 | * @param string $password |
||
| 481 | * |
||
| 482 | * @return \AppBundle\Entity\User |
||
| 483 | */ |
||
| 484 | public function setPassword($password) |
||
| 490 | |||
| 491 | /** |
||
| 492 | * Get password |
||
| 493 | * |
||
| 494 | * @return string |
||
| 495 | */ |
||
| 496 | public function getPassword() |
||
| 500 | |||
| 501 | /** |
||
| 502 | * Set email |
||
| 503 | * |
||
| 504 | * @param string $email |
||
| 505 | * |
||
| 506 | * @return \AppBundle\Entity\User |
||
| 507 | */ |
||
| 508 | public function setEmail($email) |
||
| 509 | { |
||
| 510 | $this->email = $email; |
||
| 511 | |||
| 512 | return $this; |
||
| 513 | } |
||
| 514 | |||
| 515 | /** |
||
| 516 | * Get email |
||
| 517 | * |
||
| 518 | * @return string |
||
| 519 | */ |
||
| 520 | public function getEmail() |
||
| 524 | |||
| 525 | /** |
||
| 526 | * Set emailProblems |
||
| 527 | * |
||
| 528 | * @param int $emailProblems |
||
| 529 | * |
||
| 530 | * @return \AppBundle\Entity\User |
||
| 531 | */ |
||
| 532 | public function setEmailProblems($emailProblems) |
||
| 538 | |||
| 539 | /** |
||
| 540 | * Get emailProblems |
||
| 541 | * |
||
| 542 | * @return int |
||
| 543 | */ |
||
| 544 | public function getEmailProblems() |
||
| 548 | |||
| 549 | /** |
||
| 550 | * Set firstEmailProblem |
||
| 551 | * |
||
| 552 | * @param \DateTime $firstEmailProblem |
||
| 553 | * |
||
| 554 | * @return \AppBundle\Entity\User |
||
| 555 | */ |
||
| 556 | public function setFirstEmailProblem(DateTime $firstEmailProblem) |
||
| 562 | |||
| 563 | /** |
||
| 564 | * Get firstEmailProblem |
||
| 565 | * |
||
| 566 | * @return \DateTime |
||
| 567 | */ |
||
| 568 | public function getFirstEmailProblem() |
||
| 572 | |||
| 573 | /** |
||
| 574 | * Set lastEmailProblem |
||
| 575 | * |
||
| 576 | * @param \DateTime $lastEmailProblem |
||
| 577 | * |
||
| 578 | * @return \AppBundle\Entity\User |
||
| 579 | */ |
||
| 580 | public function setLastEmailProblem(DateTime $lastEmailProblem) |
||
| 586 | |||
| 587 | /** |
||
| 588 | * Get lastEmailProblem |
||
| 589 | * |
||
| 590 | * @return \DateTime |
||
| 591 | */ |
||
| 592 | public function getLastEmailProblem() |
||
| 596 | |||
| 597 | /** |
||
| 598 | * Set mailingProblems |
||
| 599 | * |
||
| 600 | * @param int $mailingProblems |
||
| 601 | * |
||
| 602 | * @return \AppBundle\Entity\User |
||
| 603 | */ |
||
| 604 | public function setMailingProblems($mailingProblems) |
||
| 610 | |||
| 611 | /** |
||
| 612 | * Get mailingProblems |
||
| 613 | * |
||
| 614 | * @return int |
||
| 615 | */ |
||
| 616 | public function getMailingProblems() |
||
| 620 | |||
| 621 | /** |
||
| 622 | * Set acceptMailing |
||
| 623 | * |
||
| 624 | * @param bool $acceptMailing |
||
| 625 | * |
||
| 626 | * @return \AppBundle\Entity\User |
||
| 627 | */ |
||
| 628 | public function setAcceptMailing($acceptMailing) |
||
| 634 | |||
| 635 | /** |
||
| 636 | * Get acceptMailing |
||
| 637 | * |
||
| 638 | * @return bool |
||
| 639 | */ |
||
| 640 | public function getAcceptMailing() |
||
| 644 | |||
| 645 | /** |
||
| 646 | * Set usermailSendAddr |
||
| 647 | * |
||
| 648 | * @param bool $usermailSendAddr |
||
| 649 | * |
||
| 650 | * @return \AppBundle\Entity\User |
||
| 651 | */ |
||
| 652 | public function setUsermailSendAddr($usermailSendAddr) |
||
| 658 | |||
| 659 | /** |
||
| 660 | * Get usermailSendAddr |
||
| 661 | * |
||
| 662 | * @return bool |
||
| 663 | */ |
||
| 664 | public function getUsermailSendAddr() |
||
| 668 | |||
| 669 | /** |
||
| 670 | * Set latitude |
||
| 671 | * |
||
| 672 | * @param float $latitude |
||
| 673 | * |
||
| 674 | * @return \AppBundle\Entity\User |
||
| 675 | */ |
||
| 676 | public function setLatitude($latitude) |
||
| 682 | |||
| 683 | /** |
||
| 684 | * Get latitude |
||
| 685 | * |
||
| 686 | * @return float |
||
| 687 | */ |
||
| 688 | public function getLatitude() |
||
| 692 | |||
| 693 | /** |
||
| 694 | * Set longitude |
||
| 695 | * |
||
| 696 | * @param float $longitude |
||
| 697 | * |
||
| 698 | * @return \AppBundle\Entity\User |
||
| 699 | */ |
||
| 700 | public function setLongitude($longitude) |
||
| 706 | |||
| 707 | /** |
||
| 708 | * Get longitude |
||
| 709 | * |
||
| 710 | * @return float |
||
| 711 | */ |
||
| 712 | public function getLongitude() |
||
| 716 | |||
| 717 | /** |
||
| 718 | * Set isActiveFlag |
||
| 719 | * |
||
| 720 | * @param bool $isActiveFlag |
||
| 721 | * |
||
| 722 | * @return \AppBundle\Entity\User |
||
| 723 | */ |
||
| 724 | public function setIsActiveFlag($isActiveFlag) |
||
| 730 | |||
| 731 | /** |
||
| 732 | * Get isActiveFlag |
||
| 733 | * |
||
| 734 | * @return bool |
||
| 735 | */ |
||
| 736 | public function getIsActiveFlag() |
||
| 740 | |||
| 741 | /** |
||
| 742 | * Set lastName |
||
| 743 | * |
||
| 744 | * @param string $lastName |
||
| 745 | * |
||
| 746 | * @return \AppBundle\Entity\User |
||
| 747 | */ |
||
| 748 | public function setLastName($lastName) |
||
| 749 | { |
||
| 750 | $this->lastName = $lastName; |
||
| 751 | |||
| 752 | return $this; |
||
| 753 | } |
||
| 754 | |||
| 755 | /** |
||
| 756 | * Get lastName |
||
| 757 | * |
||
| 758 | * @return string |
||
| 759 | */ |
||
| 760 | public function getLastName() |
||
| 761 | { |
||
| 762 | return $this->lastName; |
||
| 763 | } |
||
| 764 | |||
| 765 | /** |
||
| 766 | * Set firstName |
||
| 767 | * |
||
| 768 | * @param string $firstName |
||
| 769 | * |
||
| 770 | * @return \AppBundle\Entity\User |
||
| 771 | */ |
||
| 772 | public function setFirstName($firstName) |
||
| 773 | { |
||
| 774 | $this->firstName = $firstName; |
||
| 775 | |||
| 776 | return $this; |
||
| 777 | } |
||
| 778 | |||
| 779 | /** |
||
| 780 | * Get firstName |
||
| 781 | * |
||
| 782 | * @return string |
||
| 783 | */ |
||
| 784 | public function getFirstName() |
||
| 785 | { |
||
| 786 | return $this->firstName; |
||
| 787 | } |
||
| 788 | |||
| 789 | /** |
||
| 790 | * Set country |
||
| 791 | * |
||
| 792 | * @param string $country |
||
| 793 | * |
||
| 794 | * @return \AppBundle\Entity\User |
||
| 795 | */ |
||
| 796 | public function setCountry($country) |
||
| 797 | { |
||
| 798 | $this->country = $country; |
||
| 799 | |||
| 800 | return $this; |
||
| 801 | } |
||
| 802 | |||
| 803 | /** |
||
| 804 | * Get country |
||
| 805 | * |
||
| 806 | * @return string |
||
| 807 | */ |
||
| 808 | public function getCountry() |
||
| 809 | { |
||
| 810 | return $this->country; |
||
| 811 | } |
||
| 812 | |||
| 813 | /** |
||
| 814 | * Set pmrFlag |
||
| 815 | * |
||
| 816 | * @param bool $pmrFlag |
||
| 817 | * |
||
| 818 | * @return \AppBundle\Entity\User |
||
| 819 | */ |
||
| 820 | public function setPmrFlag($pmrFlag) |
||
| 826 | |||
| 827 | /** |
||
| 828 | * Get pmrFlag |
||
| 829 | * |
||
| 830 | * @return bool |
||
| 831 | */ |
||
| 832 | public function getPmrFlag() |
||
| 836 | |||
| 837 | /** |
||
| 838 | * Set newPwCode |
||
| 839 | * |
||
| 840 | * @param string $newPwCode |
||
| 841 | * |
||
| 842 | * @return \AppBundle\Entity\User |
||
| 843 | */ |
||
| 844 | public function setNewPwCode($newPwCode) |
||
| 850 | |||
| 851 | /** |
||
| 852 | * Get newPwCode |
||
| 853 | * |
||
| 854 | * @return string |
||
| 855 | */ |
||
| 856 | public function getNewPwCode() |
||
| 860 | |||
| 861 | /** |
||
| 862 | * Set newPwDate |
||
| 863 | * |
||
| 864 | * @param \DateTime $newPwDate |
||
| 865 | * |
||
| 866 | * @return \AppBundle\Entity\User |
||
| 867 | */ |
||
| 868 | public function setNewPwDate(DateTime $newPwDate) |
||
| 874 | |||
| 875 | /** |
||
| 876 | * Get newPwDate |
||
| 877 | * |
||
| 878 | * @return \DateTime |
||
| 879 | */ |
||
| 880 | public function getNewPwDate() |
||
| 884 | |||
| 885 | /** |
||
| 886 | * Set newEmailCode |
||
| 887 | * |
||
| 888 | * @param string $newEmailCode |
||
| 889 | * |
||
| 890 | * @return \AppBundle\Entity\User |
||
| 891 | */ |
||
| 892 | public function setNewEmailCode($newEmailCode) |
||
| 898 | |||
| 899 | /** |
||
| 900 | * Get newEmailCode |
||
| 901 | * |
||
| 902 | * @return string |
||
| 903 | */ |
||
| 904 | public function getNewEmailCode() |
||
| 908 | |||
| 909 | /** |
||
| 910 | * Set newEmailDate |
||
| 911 | * |
||
| 912 | * @param \DateTime $newEmailDate |
||
| 913 | * |
||
| 914 | * @return \AppBundle\Entity\User |
||
| 915 | */ |
||
| 916 | public function setNewEmailDate(DateTime $newEmailDate) |
||
| 922 | |||
| 923 | /** |
||
| 924 | * Get newEmailDate |
||
| 925 | * |
||
| 926 | * @return \DateTime |
||
| 927 | */ |
||
| 928 | public function getNewEmailDate() |
||
| 932 | |||
| 933 | /** |
||
| 934 | * Set newEmail |
||
| 935 | * |
||
| 936 | * @param string $newEmail |
||
| 937 | * |
||
| 938 | * @return \AppBundle\Entity\User |
||
| 939 | */ |
||
| 940 | public function setNewEmail($newEmail) |
||
| 941 | { |
||
| 942 | $this->newEmail = $newEmail; |
||
| 943 | |||
| 944 | return $this; |
||
| 945 | } |
||
| 946 | |||
| 947 | /** |
||
| 948 | * Get newEmail |
||
| 949 | * |
||
| 950 | * @return string |
||
| 951 | */ |
||
| 952 | public function getNewEmail() |
||
| 953 | { |
||
| 954 | return $this->newEmail; |
||
| 955 | } |
||
| 956 | |||
| 957 | /** |
||
| 958 | * Set permanentLoginFlag |
||
| 959 | * |
||
| 960 | * @param bool $permanentLoginFlag |
||
| 961 | * |
||
| 962 | * @return \AppBundle\Entity\User |
||
| 963 | */ |
||
| 964 | public function setPermanentLoginFlag($permanentLoginFlag) |
||
| 970 | |||
| 971 | /** |
||
| 972 | * Get permanentLoginFlag |
||
| 973 | * |
||
| 974 | * @return bool |
||
| 975 | */ |
||
| 976 | public function getPermanentLoginFlag() |
||
| 980 | |||
| 981 | /** |
||
| 982 | * Set watchmailMode |
||
| 983 | * |
||
| 984 | * @param bool $watchmailMode |
||
| 985 | * |
||
| 986 | * @return \AppBundle\Entity\User |
||
| 987 | */ |
||
| 988 | public function setWatchmailMode($watchmailMode) |
||
| 994 | |||
| 995 | /** |
||
| 996 | * Get watchmailMode |
||
| 997 | * |
||
| 998 | * @return bool |
||
| 999 | */ |
||
| 1000 | public function getWatchmailMode() |
||
| 1004 | |||
| 1005 | /** |
||
| 1006 | * Set watchmailHour |
||
| 1007 | * |
||
| 1008 | * @param bool $watchmailHour |
||
| 1009 | * |
||
| 1010 | * @return \AppBundle\Entity\User |
||
| 1011 | */ |
||
| 1012 | public function setWatchmailHour($watchmailHour) |
||
| 1018 | |||
| 1019 | /** |
||
| 1020 | * Get watchmailHour |
||
| 1021 | * |
||
| 1022 | * @return bool |
||
| 1023 | */ |
||
| 1024 | public function getWatchmailHour() |
||
| 1028 | |||
| 1029 | /** |
||
| 1030 | * Set watchmailNextmail |
||
| 1031 | * |
||
| 1032 | * @param \DateTime $watchmailNextmail |
||
| 1033 | * |
||
| 1034 | * @return \AppBundle\Entity\User |
||
| 1035 | */ |
||
| 1036 | public function setWatchmailNextmail(DateTime $watchmailNextmail) |
||
| 1042 | |||
| 1043 | /** |
||
| 1044 | * Get watchmailNextmail |
||
| 1045 | * |
||
| 1046 | * @return \DateTime|string |
||
| 1047 | */ |
||
| 1048 | public function getWatchmailNextmail() |
||
| 1052 | |||
| 1053 | /** |
||
| 1054 | * Set watchmailDay |
||
| 1055 | * |
||
| 1056 | * @param bool $watchmailDay |
||
| 1057 | * |
||
| 1058 | * @return \AppBundle\Entity\User |
||
| 1059 | */ |
||
| 1060 | public function setWatchmailDay($watchmailDay) |
||
| 1066 | |||
| 1067 | /** |
||
| 1068 | * Get watchmailDay |
||
| 1069 | * |
||
| 1070 | * @return bool |
||
| 1071 | */ |
||
| 1072 | public function getWatchmailDay() |
||
| 1076 | |||
| 1077 | /** |
||
| 1078 | * Set activationCode |
||
| 1079 | * |
||
| 1080 | * @param string $activationCode |
||
| 1081 | * |
||
| 1082 | * @return \AppBundle\Entity\User |
||
| 1083 | */ |
||
| 1084 | public function setActivationCode($activationCode) |
||
| 1090 | |||
| 1091 | /** |
||
| 1092 | * Get activationCode |
||
| 1093 | * |
||
| 1094 | * @return string |
||
| 1095 | */ |
||
| 1096 | public function getActivationCode() |
||
| 1100 | |||
| 1101 | /** |
||
| 1102 | * Set statpicLogo |
||
| 1103 | * |
||
| 1104 | * @param bool $statpicLogo |
||
| 1105 | * |
||
| 1106 | * @return \AppBundle\Entity\User |
||
| 1107 | */ |
||
| 1108 | public function setStatpicLogo($statpicLogo) |
||
| 1114 | |||
| 1115 | /** |
||
| 1116 | * Get statpicLogo |
||
| 1117 | * |
||
| 1118 | * @return bool |
||
| 1119 | */ |
||
| 1120 | public function getStatpicLogo() |
||
| 1124 | |||
| 1125 | /** |
||
| 1126 | * Set statpicText |
||
| 1127 | * |
||
| 1128 | * @param string $statpicText |
||
| 1129 | * |
||
| 1130 | * @return \AppBundle\Entity\User |
||
| 1131 | */ |
||
| 1132 | public function setStatpicText($statpicText) |
||
| 1138 | |||
| 1139 | /** |
||
| 1140 | * Get statpicText |
||
| 1141 | * |
||
| 1142 | * @return string |
||
| 1143 | */ |
||
| 1144 | public function getStatpicText() |
||
| 1148 | |||
| 1149 | /** |
||
| 1150 | * Set noHtmleditFlag |
||
| 1151 | * |
||
| 1152 | * @param bool $noHtmleditFlag |
||
| 1153 | * |
||
| 1154 | * @return \AppBundle\Entity\User |
||
| 1155 | */ |
||
| 1156 | public function setNoHtmleditFlag($noHtmleditFlag) |
||
| 1162 | |||
| 1163 | /** |
||
| 1164 | * Get noHtmleditFlag |
||
| 1165 | * |
||
| 1166 | * @return bool |
||
| 1167 | */ |
||
| 1168 | public function getNoHtmleditFlag() |
||
| 1172 | |||
| 1173 | /** |
||
| 1174 | * Set notifyRadius |
||
| 1175 | * |
||
| 1176 | * @param int $notifyRadius |
||
| 1177 | * |
||
| 1178 | * @return \AppBundle\Entity\User |
||
| 1179 | */ |
||
| 1180 | public function setNotifyRadius($notifyRadius) |
||
| 1186 | |||
| 1187 | /** |
||
| 1188 | * Get notifyRadius |
||
| 1189 | * |
||
| 1190 | * @return int |
||
| 1191 | */ |
||
| 1192 | public function getNotifyRadius() |
||
| 1196 | |||
| 1197 | /** |
||
| 1198 | * Set notifyOconly |
||
| 1199 | * |
||
| 1200 | * @param bool $notifyOconly |
||
| 1201 | * |
||
| 1202 | * @return \AppBundle\Entity\User |
||
| 1203 | */ |
||
| 1204 | public function setNotifyOconly($notifyOconly) |
||
| 1210 | |||
| 1211 | /** |
||
| 1212 | * Get notifyOconly |
||
| 1213 | * |
||
| 1214 | * @return bool |
||
| 1215 | */ |
||
| 1216 | public function getNotifyOconly() |
||
| 1220 | |||
| 1221 | /** |
||
| 1222 | * Set language |
||
| 1223 | * |
||
| 1224 | * @param string $language |
||
| 1225 | * |
||
| 1226 | * @return \AppBundle\Entity\User |
||
| 1227 | */ |
||
| 1228 | public function setLanguage($language) |
||
| 1234 | |||
| 1235 | /** |
||
| 1236 | * Get language |
||
| 1237 | * |
||
| 1238 | * @return string |
||
| 1239 | */ |
||
| 1240 | public function getLanguage() |
||
| 1244 | |||
| 1245 | /** |
||
| 1246 | * Set languageGuessed |
||
| 1247 | * |
||
| 1248 | * @param bool $languageGuessed |
||
| 1249 | * |
||
| 1250 | * @return \AppBundle\Entity\User |
||
| 1251 | */ |
||
| 1252 | public function setLanguageGuessed($languageGuessed) |
||
| 1258 | |||
| 1259 | /** |
||
| 1260 | * Get languageGuessed |
||
| 1261 | * |
||
| 1262 | * @return bool |
||
| 1263 | */ |
||
| 1264 | public function getLanguageGuessed() |
||
| 1268 | |||
| 1269 | /** |
||
| 1270 | * Set domain |
||
| 1271 | * |
||
| 1272 | * @param string $domain |
||
| 1273 | * |
||
| 1274 | * @return \AppBundle\Entity\User |
||
| 1275 | */ |
||
| 1276 | public function setDomain($domain) |
||
| 1282 | |||
| 1283 | /** |
||
| 1284 | * Get domain |
||
| 1285 | * |
||
| 1286 | * @return string |
||
| 1287 | */ |
||
| 1288 | public function getDomain() |
||
| 1292 | |||
| 1293 | /** |
||
| 1294 | * Set admin |
||
| 1295 | * |
||
| 1296 | * @param int $admin |
||
| 1297 | * |
||
| 1298 | * @return \AppBundle\Entity\User |
||
| 1299 | */ |
||
| 1300 | public function setAdmin($admin) |
||
| 1306 | |||
| 1307 | /** |
||
| 1308 | * Get admin |
||
| 1309 | * |
||
| 1310 | * @return int |
||
| 1311 | */ |
||
| 1312 | public function getAdmin() |
||
| 1316 | |||
| 1317 | /** |
||
| 1318 | * Set dataLicense |
||
| 1319 | * |
||
| 1320 | * @param bool $dataLicense |
||
| 1321 | * |
||
| 1322 | * @return \AppBundle\Entity\User |
||
| 1323 | */ |
||
| 1324 | public function setDataLicense($dataLicense) |
||
| 1330 | |||
| 1331 | /** |
||
| 1332 | * Get dataLicense |
||
| 1333 | * |
||
| 1334 | * @return bool |
||
| 1335 | */ |
||
| 1336 | public function getDataLicense() |
||
| 1340 | |||
| 1341 | /** |
||
| 1342 | * Set description |
||
| 1343 | * |
||
| 1344 | * @param string $description |
||
| 1345 | * |
||
| 1346 | * @return \AppBundle\Entity\User |
||
| 1347 | */ |
||
| 1348 | public function setDescription($description) |
||
| 1354 | |||
| 1355 | /** |
||
| 1356 | * Get description |
||
| 1357 | * |
||
| 1358 | * @return string |
||
| 1359 | */ |
||
| 1360 | public function getDescription() |
||
| 1364 | |||
| 1365 | /** |
||
| 1366 | * Set descHtmledit |
||
| 1367 | * |
||
| 1368 | * @param bool $descHtmledit |
||
| 1369 | * |
||
| 1370 | * @return \AppBundle\Entity\User |
||
| 1371 | */ |
||
| 1372 | public function setDescHtmledit($descHtmledit) |
||
| 1378 | |||
| 1379 | /** |
||
| 1380 | * Get descHtmledit |
||
| 1381 | * |
||
| 1382 | * @return bool |
||
| 1383 | */ |
||
| 1384 | public function getDescHtmledit() |
||
| 1388 | |||
| 1389 | /** |
||
| 1390 | * Get userId |
||
| 1391 | * |
||
| 1392 | * @return int |
||
| 1393 | */ |
||
| 1394 | public function getUserId() |
||
| 1398 | } |
||
| 1399 |