| Total Complexity | 65 |
| Total Lines | 854 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
Complex classes like Registration 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.
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 Registration, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 17 | class Registration extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Firstname |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $firstname = ''; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Lastname |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $lastname = ''; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Title |
||
| 35 | * |
||
| 36 | * @var string |
||
| 37 | */ |
||
| 38 | protected $title = ''; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Company |
||
| 42 | * |
||
| 43 | * @var string |
||
| 44 | */ |
||
| 45 | protected $company = ''; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Address |
||
| 49 | * |
||
| 50 | * @var string |
||
| 51 | */ |
||
| 52 | protected $address = ''; |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Zip |
||
| 56 | * |
||
| 57 | * @var string |
||
| 58 | */ |
||
| 59 | protected $zip = ''; |
||
| 60 | |||
| 61 | /** |
||
| 62 | * City |
||
| 63 | * |
||
| 64 | * @var string |
||
| 65 | */ |
||
| 66 | protected $city = ''; |
||
| 67 | |||
| 68 | /** |
||
| 69 | * Country |
||
| 70 | * |
||
| 71 | * @var string |
||
| 72 | */ |
||
| 73 | protected $country = ''; |
||
| 74 | |||
| 75 | /** |
||
| 76 | * Phone |
||
| 77 | * |
||
| 78 | * @var string |
||
| 79 | */ |
||
| 80 | protected $phone = ''; |
||
| 81 | |||
| 82 | /** |
||
| 83 | |||
| 84 | * |
||
| 85 | * @var string |
||
| 86 | */ |
||
| 87 | protected $email = ''; |
||
| 88 | |||
| 89 | /** |
||
| 90 | * Ignore notifications |
||
| 91 | * |
||
| 92 | * @var bool |
||
| 93 | */ |
||
| 94 | protected $ignoreNotifications = false; |
||
| 95 | |||
| 96 | /** |
||
| 97 | * Gender |
||
| 98 | * |
||
| 99 | * @var string |
||
| 100 | */ |
||
| 101 | protected $gender = ''; |
||
| 102 | |||
| 103 | /** |
||
| 104 | * Date of birth |
||
| 105 | * |
||
| 106 | * @var \DateTime |
||
| 107 | */ |
||
| 108 | protected $dateOfBirth; |
||
| 109 | |||
| 110 | /** |
||
| 111 | * Accept terms and conditions |
||
| 112 | * |
||
| 113 | * @var bool |
||
| 114 | */ |
||
| 115 | protected $accepttc = false; |
||
| 116 | |||
| 117 | /** |
||
| 118 | * Confirmed |
||
| 119 | * |
||
| 120 | * @var bool |
||
| 121 | */ |
||
| 122 | protected $confirmed = false; |
||
| 123 | |||
| 124 | /** |
||
| 125 | * Paid |
||
| 126 | * |
||
| 127 | * @var bool |
||
| 128 | */ |
||
| 129 | protected $paid = false; |
||
| 130 | |||
| 131 | /** |
||
| 132 | * Notes |
||
| 133 | * |
||
| 134 | * @var string |
||
| 135 | */ |
||
| 136 | protected $notes = ''; |
||
| 137 | |||
| 138 | /** |
||
| 139 | * Event |
||
| 140 | * |
||
| 141 | * @var \DERHANSEN\SfEventMgt\Domain\Model\Event |
||
| 142 | */ |
||
| 143 | protected $event; |
||
| 144 | |||
| 145 | /** |
||
| 146 | * Main registration (if available) |
||
| 147 | * |
||
| 148 | * @var \DERHANSEN\SfEventMgt\Domain\Model\Registration |
||
| 149 | */ |
||
| 150 | protected $mainRegistration; |
||
| 151 | |||
| 152 | /** |
||
| 153 | * DateTime until the registration must be confirmed |
||
| 154 | * |
||
| 155 | * @var \DateTime |
||
| 156 | */ |
||
| 157 | protected $confirmationUntil; |
||
| 158 | |||
| 159 | /** |
||
| 160 | * The registration date |
||
| 161 | * |
||
| 162 | * @var \DateTime |
||
| 163 | */ |
||
| 164 | protected $registrationDate; |
||
| 165 | |||
| 166 | /** |
||
| 167 | * Indicates if record is hidden |
||
| 168 | * |
||
| 169 | * @var bool |
||
| 170 | */ |
||
| 171 | protected $hidden = false; |
||
| 172 | |||
| 173 | /** |
||
| 174 | * Amount of registrations (if multiple registrations created by one user) |
||
| 175 | * |
||
| 176 | * @var int |
||
| 177 | */ |
||
| 178 | protected $amountOfRegistrations = 1; |
||
| 179 | |||
| 180 | /** |
||
| 181 | * The language (e.g. de) |
||
| 182 | * |
||
| 183 | * @var string |
||
| 184 | */ |
||
| 185 | protected $language = ''; |
||
| 186 | |||
| 187 | /** |
||
| 188 | * reCaptcha |
||
| 189 | * |
||
| 190 | * @var string |
||
| 191 | */ |
||
| 192 | protected $captcha = ''; |
||
| 193 | |||
| 194 | /** |
||
| 195 | * FrontendUser if available |
||
| 196 | * |
||
| 197 | * @var \DERHANSEN\SfEventMgt\Domain\Model\FrontendUser |
||
| 198 | */ |
||
| 199 | protected $feUser; |
||
| 200 | |||
| 201 | /** |
||
| 202 | * Payment method |
||
| 203 | * |
||
| 204 | * @var string |
||
| 205 | */ |
||
| 206 | protected $paymentmethod = ''; |
||
| 207 | |||
| 208 | /** |
||
| 209 | * Payment reference (e.g. from Payment provider) |
||
| 210 | * |
||
| 211 | * @var string |
||
| 212 | */ |
||
| 213 | protected $paymentReference = ''; |
||
| 214 | |||
| 215 | /** |
||
| 216 | * Flags if this is a registration on the waitlist |
||
| 217 | * |
||
| 218 | * @var bool |
||
| 219 | */ |
||
| 220 | protected $waitlist = false; |
||
| 221 | |||
| 222 | /** |
||
| 223 | * Registration fields |
||
| 224 | * |
||
| 225 | * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\DERHANSEN\SfEventMgt\Domain\Model\Registration\FieldValue> |
||
| 226 | * @Extbase\ORM\Cascade("remove") |
||
| 227 | * @Extbase\ORM\Lazy |
||
| 228 | */ |
||
| 229 | protected $fieldValues; |
||
| 230 | |||
| 231 | /** |
||
| 232 | * Registration constructor. |
||
| 233 | */ |
||
| 234 | public function __construct() |
||
| 235 | { |
||
| 236 | $this->fieldValues = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); |
||
| 237 | } |
||
| 238 | |||
| 239 | /** |
||
| 240 | * Returns the firstname |
||
| 241 | * |
||
| 242 | * @return string $firstname |
||
| 243 | */ |
||
| 244 | public function getFirstname() |
||
| 245 | { |
||
| 246 | return $this->firstname; |
||
| 247 | } |
||
| 248 | |||
| 249 | /** |
||
| 250 | * Sets the firstname |
||
| 251 | * |
||
| 252 | * @param string $firstname Firstname |
||
| 253 | */ |
||
| 254 | public function setFirstname($firstname) |
||
| 255 | { |
||
| 256 | $this->firstname = $firstname; |
||
| 257 | } |
||
| 258 | |||
| 259 | /** |
||
| 260 | * Returns the lastname |
||
| 261 | * |
||
| 262 | * @return string $lastname |
||
| 263 | */ |
||
| 264 | public function getLastname() |
||
| 265 | { |
||
| 266 | return $this->lastname; |
||
| 267 | } |
||
| 268 | |||
| 269 | /** |
||
| 270 | * Sets the lastname |
||
| 271 | * |
||
| 272 | * @param string $lastname Lastname |
||
| 273 | */ |
||
| 274 | public function setLastname($lastname) |
||
| 275 | { |
||
| 276 | $this->lastname = $lastname; |
||
| 277 | } |
||
| 278 | |||
| 279 | /** |
||
| 280 | * Returns the title |
||
| 281 | * |
||
| 282 | * @return string $title |
||
| 283 | */ |
||
| 284 | public function getTitle() |
||
| 285 | { |
||
| 286 | return $this->title; |
||
| 287 | } |
||
| 288 | |||
| 289 | /** |
||
| 290 | * Sets the title |
||
| 291 | * |
||
| 292 | * @param string $title Title |
||
| 293 | */ |
||
| 294 | public function setTitle($title) |
||
| 295 | { |
||
| 296 | $this->title = $title; |
||
| 297 | } |
||
| 298 | |||
| 299 | /** |
||
| 300 | * Returns the company |
||
| 301 | * |
||
| 302 | * @return string $company |
||
| 303 | */ |
||
| 304 | public function getCompany() |
||
| 305 | { |
||
| 306 | return $this->company; |
||
| 307 | } |
||
| 308 | |||
| 309 | /** |
||
| 310 | * Sets the company |
||
| 311 | * |
||
| 312 | * @param string $company Company |
||
| 313 | */ |
||
| 314 | public function setCompany($company) |
||
| 315 | { |
||
| 316 | $this->company = $company; |
||
| 317 | } |
||
| 318 | |||
| 319 | /** |
||
| 320 | * Returns the address |
||
| 321 | * |
||
| 322 | * @return string $address |
||
| 323 | */ |
||
| 324 | public function getAddress() |
||
| 325 | { |
||
| 326 | return $this->address; |
||
| 327 | } |
||
| 328 | |||
| 329 | /** |
||
| 330 | * Sets the address |
||
| 331 | * |
||
| 332 | * @param string $address Address |
||
| 333 | */ |
||
| 334 | public function setAddress($address) |
||
| 335 | { |
||
| 336 | $this->address = $address; |
||
| 337 | } |
||
| 338 | |||
| 339 | /** |
||
| 340 | * Returns the zip |
||
| 341 | * |
||
| 342 | * @return string $zip |
||
| 343 | */ |
||
| 344 | public function getZip() |
||
| 345 | { |
||
| 346 | return $this->zip; |
||
| 347 | } |
||
| 348 | |||
| 349 | /** |
||
| 350 | * Sets the zip |
||
| 351 | * |
||
| 352 | * @param string $zip Zip |
||
| 353 | */ |
||
| 354 | public function setZip($zip) |
||
| 355 | { |
||
| 356 | $this->zip = $zip; |
||
| 357 | } |
||
| 358 | |||
| 359 | /** |
||
| 360 | * Returns the city |
||
| 361 | * |
||
| 362 | * @return string $city |
||
| 363 | */ |
||
| 364 | public function getCity() |
||
| 365 | { |
||
| 366 | return $this->city; |
||
| 367 | } |
||
| 368 | |||
| 369 | /** |
||
| 370 | * Sets the city |
||
| 371 | * |
||
| 372 | * @param string $city City |
||
| 373 | */ |
||
| 374 | public function setCity($city) |
||
| 375 | { |
||
| 376 | $this->city = $city; |
||
| 377 | } |
||
| 378 | |||
| 379 | /** |
||
| 380 | * Returns the country |
||
| 381 | * |
||
| 382 | * @return string $country |
||
| 383 | */ |
||
| 384 | public function getCountry() |
||
| 385 | { |
||
| 386 | return $this->country; |
||
| 387 | } |
||
| 388 | |||
| 389 | /** |
||
| 390 | * Sets the country |
||
| 391 | * |
||
| 392 | * @param string $country Country |
||
| 393 | */ |
||
| 394 | public function setCountry($country) |
||
| 395 | { |
||
| 396 | $this->country = $country; |
||
| 397 | } |
||
| 398 | |||
| 399 | /** |
||
| 400 | * Returns the phone |
||
| 401 | * |
||
| 402 | * @return string $phone |
||
| 403 | */ |
||
| 404 | public function getPhone() |
||
| 405 | { |
||
| 406 | return $this->phone; |
||
| 407 | } |
||
| 408 | |||
| 409 | /** |
||
| 410 | * Sets the phone |
||
| 411 | * |
||
| 412 | * @param string $phone Phone |
||
| 413 | */ |
||
| 414 | public function setPhone($phone) |
||
| 415 | { |
||
| 416 | $this->phone = $phone; |
||
| 417 | } |
||
| 418 | |||
| 419 | /** |
||
| 420 | * Returns the email |
||
| 421 | * |
||
| 422 | * @return string $email |
||
| 423 | */ |
||
| 424 | public function getEmail() |
||
| 427 | } |
||
| 428 | |||
| 429 | /** |
||
| 430 | * Sets the email |
||
| 431 | * |
||
| 432 | * @param string $email E-Mail |
||
| 433 | */ |
||
| 434 | public function setEmail($email) |
||
| 435 | { |
||
| 436 | $this->email = trim($email); |
||
| 437 | } |
||
| 438 | |||
| 439 | /** |
||
| 440 | * Returns boolean state of ignoreNotifications |
||
| 441 | * |
||
| 442 | * @return bool |
||
| 443 | */ |
||
| 444 | public function isIgnoreNotifications() |
||
| 447 | } |
||
| 448 | |||
| 449 | /** |
||
| 450 | * Returns ignoreNotifications |
||
| 451 | * |
||
| 452 | * @return bool |
||
| 453 | */ |
||
| 454 | public function getIgnoreNotifications() |
||
| 455 | { |
||
| 456 | return $this->ignoreNotifications; |
||
| 457 | } |
||
| 458 | |||
| 459 | /** |
||
| 460 | * Sets ignoreNotifications |
||
| 461 | * |
||
| 462 | * @param bool $ignoreNotifications IgnoreNotifications |
||
| 463 | */ |
||
| 464 | public function setIgnoreNotifications($ignoreNotifications) |
||
| 465 | { |
||
| 466 | $this->ignoreNotifications = $ignoreNotifications; |
||
| 467 | } |
||
| 468 | |||
| 469 | /** |
||
| 470 | * Returns the gender |
||
| 471 | * |
||
| 472 | * @return string $gender |
||
| 473 | */ |
||
| 474 | public function getGender() |
||
| 475 | { |
||
| 476 | return $this->gender; |
||
| 477 | } |
||
| 478 | |||
| 479 | /** |
||
| 480 | * Sets the gender |
||
| 481 | * |
||
| 482 | * @param string $gender Gender |
||
| 483 | */ |
||
| 484 | public function setGender($gender) |
||
| 485 | { |
||
| 486 | $this->gender = $gender; |
||
| 487 | } |
||
| 488 | |||
| 489 | /** |
||
| 490 | * Sets the date of birth |
||
| 491 | * |
||
| 492 | * @param \DateTime $dateOfBirth DateOfBirth |
||
| 493 | */ |
||
| 494 | public function setDateOfBirth($dateOfBirth) |
||
| 495 | { |
||
| 496 | $this->dateOfBirth = $dateOfBirth; |
||
| 497 | } |
||
| 498 | |||
| 499 | /** |
||
| 500 | * Returns the date of birth |
||
| 501 | * |
||
| 502 | * @return \DateTime |
||
| 503 | */ |
||
| 504 | public function getDateOfBirth() |
||
| 505 | { |
||
| 506 | return $this->dateOfBirth; |
||
| 507 | } |
||
| 508 | |||
| 509 | /** |
||
| 510 | * Returns accept terms and conditions |
||
| 511 | * |
||
| 512 | * @return bool $accepttc |
||
| 513 | */ |
||
| 514 | public function getAccepttc() |
||
| 515 | { |
||
| 516 | return $this->accepttc; |
||
| 517 | } |
||
| 518 | |||
| 519 | /** |
||
| 520 | * Sets accept terms and conditions |
||
| 521 | * |
||
| 522 | * @param bool $accepttc Accept terms and conditions |
||
| 523 | */ |
||
| 524 | public function setAccepttc($accepttc) |
||
| 525 | { |
||
| 526 | $this->accepttc = $accepttc; |
||
| 527 | } |
||
| 528 | |||
| 529 | /** |
||
| 530 | * Returns the confirmed |
||
| 531 | * |
||
| 532 | * @return bool $confirmed Confirmed |
||
| 533 | */ |
||
| 534 | public function getConfirmed() |
||
| 535 | { |
||
| 536 | return $this->confirmed; |
||
| 537 | } |
||
| 538 | |||
| 539 | /** |
||
| 540 | * Sets the confirmed |
||
| 541 | * |
||
| 542 | * @param bool $confirmed Confirmed |
||
| 543 | */ |
||
| 544 | public function setConfirmed($confirmed) |
||
| 545 | { |
||
| 546 | $this->confirmed = $confirmed; |
||
| 547 | } |
||
| 548 | |||
| 549 | /** |
||
| 550 | * Returns the boolean state of confirmed |
||
| 551 | * |
||
| 552 | * @return bool |
||
| 553 | */ |
||
| 554 | public function isConfirmed() |
||
| 555 | { |
||
| 556 | return $this->confirmed; |
||
| 557 | } |
||
| 558 | |||
| 559 | /** |
||
| 560 | * Returns the paid |
||
| 561 | * |
||
| 562 | * @return bool $paid |
||
| 563 | */ |
||
| 564 | public function getPaid() |
||
| 565 | { |
||
| 566 | return $this->paid; |
||
| 567 | } |
||
| 568 | |||
| 569 | /** |
||
| 570 | * Sets the paid |
||
| 571 | * |
||
| 572 | * @param bool $paid Paid |
||
| 573 | */ |
||
| 574 | public function setPaid($paid) |
||
| 575 | { |
||
| 576 | $this->paid = $paid; |
||
| 577 | } |
||
| 578 | |||
| 579 | /** |
||
| 580 | * Returns the boolean state of paid |
||
| 581 | * |
||
| 582 | * @return bool |
||
| 583 | */ |
||
| 584 | public function isPaid() |
||
| 585 | { |
||
| 586 | return $this->paid; |
||
| 587 | } |
||
| 588 | |||
| 589 | /** |
||
| 590 | * Sets the event |
||
| 591 | * |
||
| 592 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event |
||
| 593 | */ |
||
| 594 | public function setEvent($event) |
||
| 595 | { |
||
| 596 | $this->event = $event; |
||
| 597 | } |
||
| 598 | |||
| 599 | /** |
||
| 600 | * Returns the event |
||
| 601 | * |
||
| 602 | * @return \DERHANSEN\SfEventMgt\Domain\Model\Event |
||
| 603 | */ |
||
| 604 | public function getEvent() |
||
| 605 | { |
||
| 606 | return $this->event; |
||
| 607 | } |
||
| 608 | |||
| 609 | /** |
||
| 610 | * Sets the mainRegistration |
||
| 611 | * |
||
| 612 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Registration $registration Registration |
||
| 613 | */ |
||
| 614 | public function setMainRegistration($registration) |
||
| 615 | { |
||
| 616 | $this->mainRegistration = $registration; |
||
| 617 | } |
||
| 618 | |||
| 619 | /** |
||
| 620 | * Returns the event |
||
| 621 | * |
||
| 622 | * @return \DERHANSEN\SfEventMgt\Domain\Model\Registration |
||
| 623 | */ |
||
| 624 | public function getMainRegistration() |
||
| 625 | { |
||
| 626 | return $this->mainRegistration; |
||
| 627 | } |
||
| 628 | |||
| 629 | /** |
||
| 630 | * Setter for notes |
||
| 631 | * |
||
| 632 | * @param string $notes Notes |
||
| 633 | */ |
||
| 634 | public function setNotes($notes) |
||
| 635 | { |
||
| 636 | $this->notes = $notes; |
||
| 637 | } |
||
| 638 | |||
| 639 | /** |
||
| 640 | * Getter for notes |
||
| 641 | * |
||
| 642 | * @return string |
||
| 643 | */ |
||
| 644 | public function getNotes() |
||
| 645 | { |
||
| 646 | return $this->notes; |
||
| 647 | } |
||
| 648 | |||
| 649 | /** |
||
| 650 | * Sets confirmUntil |
||
| 651 | * |
||
| 652 | * @param \DateTime $confirmationUntil Confirmation Until |
||
| 653 | */ |
||
| 654 | public function setConfirmationUntil($confirmationUntil) |
||
| 655 | { |
||
| 656 | $this->confirmationUntil = $confirmationUntil; |
||
| 657 | } |
||
| 658 | |||
| 659 | /** |
||
| 660 | * Returns confirmationUntil |
||
| 661 | * |
||
| 662 | * @return \DateTime |
||
| 663 | */ |
||
| 664 | public function getConfirmationUntil() |
||
| 665 | { |
||
| 666 | return $this->confirmationUntil; |
||
| 667 | } |
||
| 668 | |||
| 669 | /** |
||
| 670 | * Returns registrationDate |
||
| 671 | * |
||
| 672 | * @return \DateTime |
||
| 673 | */ |
||
| 674 | public function getRegistrationDate() |
||
| 675 | { |
||
| 676 | return $this->registrationDate; |
||
| 677 | } |
||
| 678 | |||
| 679 | /** |
||
| 680 | * Sets registrationDate |
||
| 681 | * |
||
| 682 | * @param \DateTime $registrationDate |
||
| 683 | */ |
||
| 684 | public function setRegistrationDate($registrationDate) |
||
| 685 | { |
||
| 686 | $this->registrationDate = $registrationDate; |
||
| 687 | } |
||
| 688 | |||
| 689 | /** |
||
| 690 | * Sets hidden |
||
| 691 | * |
||
| 692 | * @param bool $hidden Hidden |
||
| 693 | */ |
||
| 694 | public function setHidden($hidden) |
||
| 695 | { |
||
| 696 | $this->hidden = $hidden; |
||
| 697 | } |
||
| 698 | |||
| 699 | /** |
||
| 700 | * Returns hidden |
||
| 701 | * |
||
| 702 | * @return bool |
||
| 703 | */ |
||
| 704 | public function getHidden() |
||
| 705 | { |
||
| 706 | return $this->hidden; |
||
| 707 | } |
||
| 708 | |||
| 709 | /** |
||
| 710 | * Returns amountOfRegistrations |
||
| 711 | * |
||
| 712 | * @return int |
||
| 713 | */ |
||
| 714 | public function getAmountOfRegistrations() |
||
| 715 | { |
||
| 716 | return $this->amountOfRegistrations; |
||
| 717 | } |
||
| 718 | |||
| 719 | /** |
||
| 720 | * Sets amountOfRegistrations |
||
| 721 | * |
||
| 722 | * @param int $amountOfRegistrations AmountOfRegistrations |
||
| 723 | */ |
||
| 724 | public function setAmountOfRegistrations($amountOfRegistrations) |
||
| 725 | { |
||
| 726 | $this->amountOfRegistrations = $amountOfRegistrations; |
||
| 727 | } |
||
| 728 | |||
| 729 | /** |
||
| 730 | * Returns the language |
||
| 731 | * |
||
| 732 | * @return string |
||
| 733 | */ |
||
| 734 | public function getLanguage() |
||
| 735 | { |
||
| 736 | return $this->language; |
||
| 737 | } |
||
| 738 | |||
| 739 | /** |
||
| 740 | * Sets the language |
||
| 741 | * |
||
| 742 | * @param string $language |
||
| 743 | */ |
||
| 744 | public function setLanguage($language) |
||
| 745 | { |
||
| 746 | $this->language = $language; |
||
| 747 | } |
||
| 748 | |||
| 749 | /** |
||
| 750 | * Returns captcha |
||
| 751 | * |
||
| 752 | * @return string |
||
| 753 | */ |
||
| 754 | public function getCaptcha() |
||
| 755 | { |
||
| 756 | return $this->captcha; |
||
| 757 | } |
||
| 758 | |||
| 759 | /** |
||
| 760 | * Sets captcha |
||
| 761 | * |
||
| 762 | * @param string $captcha |
||
| 763 | */ |
||
| 764 | public function setCaptcha($captcha) |
||
| 765 | { |
||
| 766 | $this->captcha = $captcha; |
||
| 767 | } |
||
| 768 | |||
| 769 | /** |
||
| 770 | * Returns the frontenduser |
||
| 771 | * |
||
| 772 | * @return \DERHANSEN\SfEventMgt\Domain\Model\FrontendUser |
||
| 773 | */ |
||
| 774 | public function getFeUser() |
||
| 775 | { |
||
| 776 | return $this->feUser; |
||
| 777 | } |
||
| 778 | |||
| 779 | /** |
||
| 780 | * Sets the frontenduser |
||
| 781 | * |
||
| 782 | * @param \DERHANSEN\SfEventMgt\Domain\Model\FrontendUser $feUser |
||
| 783 | */ |
||
| 784 | public function setFeUser($feUser) |
||
| 785 | { |
||
| 786 | $this->feUser = $feUser; |
||
| 787 | } |
||
| 788 | |||
| 789 | /** |
||
| 790 | * Returns the payment method |
||
| 791 | * |
||
| 792 | * @return string |
||
| 793 | */ |
||
| 794 | public function getPaymentmethod() |
||
| 795 | { |
||
| 796 | return $this->paymentmethod; |
||
| 797 | } |
||
| 798 | |||
| 799 | /** |
||
| 800 | * Sets the payment method |
||
| 801 | * |
||
| 802 | * @param string $paymentmethod |
||
| 803 | */ |
||
| 804 | public function setPaymentmethod($paymentmethod) |
||
| 805 | { |
||
| 806 | $this->paymentmethod = $paymentmethod; |
||
| 807 | } |
||
| 808 | |||
| 809 | /** |
||
| 810 | * Returns paymentReference |
||
| 811 | * |
||
| 812 | * @return string |
||
| 813 | */ |
||
| 814 | public function getPaymentReference() |
||
| 815 | { |
||
| 816 | return $this->paymentReference; |
||
| 817 | } |
||
| 818 | |||
| 819 | /** |
||
| 820 | * Sets paymentReference |
||
| 821 | * |
||
| 822 | * @param string $paymentReference |
||
| 823 | */ |
||
| 824 | public function setPaymentReference($paymentReference) |
||
| 825 | { |
||
| 826 | $this->paymentReference = $paymentReference; |
||
| 827 | } |
||
| 828 | |||
| 829 | /** |
||
| 830 | * Returns waitlist |
||
| 831 | * |
||
| 832 | * @return bool |
||
| 833 | */ |
||
| 834 | public function getWaitlist() |
||
| 837 | } |
||
| 838 | |||
| 839 | /** |
||
| 840 | * Sets waitlist |
||
| 841 | * |
||
| 842 | * @param bool $waitlist |
||
| 843 | */ |
||
| 844 | public function setWaitlist($waitlist) |
||
| 845 | { |
||
| 846 | $this->waitlist = $waitlist; |
||
| 847 | } |
||
| 848 | |||
| 849 | /** |
||
| 850 | * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\DERHANSEN\SfEventMgt\Domain\Model\Registration\FieldValue> |
||
| 851 | */ |
||
| 852 | public function getFieldValues() |
||
| 855 | } |
||
| 856 | |||
| 857 | /** |
||
| 858 | * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage $fieldValues |
||
| 859 | */ |
||
| 860 | public function setFieldValues($fieldValues) |
||
| 863 | } |
||
| 864 | |||
| 865 | /** |
||
| 866 | * @return string |
||
| 867 | */ |
||
| 868 | public function getFullname() |
||
| 869 | { |
||
| 870 | return $this->getFirstname() . ' ' . $this->lastname; |
||
| 871 | } |
||
| 872 | } |
||
| 873 |