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