Complex classes like Payment 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 Payment, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 10 | abstract class Payment implements PaymentInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $apiKey; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $merchant; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var int |
||
| 24 | */ |
||
| 25 | protected $orderId; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | protected $sessionId; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var string |
||
| 34 | */ |
||
| 35 | protected $currencySymbol; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var float |
||
| 39 | */ |
||
| 40 | protected $totalAmount; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @var string |
||
| 44 | */ |
||
| 45 | protected $callBackUrl; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @var string |
||
| 49 | */ |
||
| 50 | protected $fullCallBackOkUrl; |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @var string |
||
| 54 | */ |
||
| 55 | protected $callBackOkUrl; |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @var string |
||
| 59 | */ |
||
| 60 | protected $callBackServerUrl; |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @var int |
||
| 64 | */ |
||
| 65 | protected $languageId; |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @var boolean |
||
| 69 | */ |
||
| 70 | protected $testMode; |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @var int |
||
| 74 | */ |
||
| 75 | protected $paymentGatewayCurrencyCode; |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @var int |
||
| 79 | */ |
||
| 80 | protected $cardTypeId; |
||
| 81 | |||
| 82 | /** |
||
| 83 | * @var string |
||
| 84 | */ |
||
| 85 | protected $customerRekvNr; |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @var string |
||
| 89 | */ |
||
| 90 | protected $customerName; |
||
| 91 | |||
| 92 | /** |
||
| 93 | * @var string |
||
| 94 | */ |
||
| 95 | protected $customerCompany; |
||
| 96 | |||
| 97 | /** |
||
| 98 | * @var string |
||
| 99 | */ |
||
| 100 | protected $customerAddress; |
||
| 101 | |||
| 102 | /** |
||
| 103 | * @var string |
||
| 104 | */ |
||
| 105 | protected $customerAddress2; |
||
| 106 | |||
| 107 | /** |
||
| 108 | * @var string |
||
| 109 | */ |
||
| 110 | protected $customerZipCode; |
||
| 111 | |||
| 112 | /** |
||
| 113 | * @var string |
||
| 114 | */ |
||
| 115 | protected $customerCity; |
||
| 116 | |||
| 117 | /** |
||
| 118 | * @var int |
||
| 119 | */ |
||
| 120 | protected $customerCountryId; |
||
| 121 | |||
| 122 | /** |
||
| 123 | * @var string |
||
| 124 | */ |
||
| 125 | protected $customerCountry; |
||
| 126 | |||
| 127 | /** |
||
| 128 | * @var string |
||
| 129 | */ |
||
| 130 | protected $customerPhone; |
||
| 131 | |||
| 132 | /** |
||
| 133 | * @var string |
||
| 134 | */ |
||
| 135 | protected $customerFax; |
||
| 136 | |||
| 137 | /** |
||
| 138 | * @var string |
||
| 139 | */ |
||
| 140 | protected $customerEmail; |
||
| 141 | |||
| 142 | /** |
||
| 143 | * @var string |
||
| 144 | */ |
||
| 145 | protected $customerNote; |
||
| 146 | |||
| 147 | /** |
||
| 148 | * @var string |
||
| 149 | */ |
||
| 150 | protected $customerCvrnr; |
||
| 151 | |||
| 152 | /** |
||
| 153 | * @var int |
||
| 154 | */ |
||
| 155 | protected $customerCustTypeId; |
||
| 156 | |||
| 157 | /** |
||
| 158 | * @var string |
||
| 159 | */ |
||
| 160 | protected $customerEan; |
||
| 161 | |||
| 162 | /** |
||
| 163 | * @var string |
||
| 164 | */ |
||
| 165 | protected $customerRes1; |
||
| 166 | |||
| 167 | /** |
||
| 168 | * @var string |
||
| 169 | */ |
||
| 170 | protected $customerRes2; |
||
| 171 | |||
| 172 | /** |
||
| 173 | * @var string |
||
| 174 | */ |
||
| 175 | protected $customerRes3; |
||
| 176 | |||
| 177 | /** |
||
| 178 | * @var string |
||
| 179 | */ |
||
| 180 | protected $customerRes4; |
||
| 181 | |||
| 182 | /** |
||
| 183 | * @var string |
||
| 184 | */ |
||
| 185 | protected $customerRes5; |
||
| 186 | |||
| 187 | /** |
||
| 188 | * @var string |
||
| 189 | */ |
||
| 190 | protected $customerIp; |
||
| 191 | |||
| 192 | /** |
||
| 193 | * @var string |
||
| 194 | */ |
||
| 195 | protected $deliveryName; |
||
| 196 | |||
| 197 | /** |
||
| 198 | * @var string |
||
| 199 | */ |
||
| 200 | protected $deliveryCompany; |
||
| 201 | |||
| 202 | /** |
||
| 203 | * @var string |
||
| 204 | */ |
||
| 205 | protected $deliveryAddress; |
||
| 206 | |||
| 207 | /** |
||
| 208 | * @var string |
||
| 209 | */ |
||
| 210 | protected $deliveryAddress2; |
||
| 211 | |||
| 212 | /** |
||
| 213 | * @var string |
||
| 214 | */ |
||
| 215 | protected $deliveryZipCode; |
||
| 216 | |||
| 217 | /** |
||
| 218 | * @var string |
||
| 219 | */ |
||
| 220 | protected $deliveryCity; |
||
| 221 | |||
| 222 | /** |
||
| 223 | * @var int |
||
| 224 | */ |
||
| 225 | protected $deliveryCountryID; |
||
| 226 | |||
| 227 | /** |
||
| 228 | * @var string |
||
| 229 | */ |
||
| 230 | protected $deliveryCountry; |
||
| 231 | |||
| 232 | /** |
||
| 233 | * @var string |
||
| 234 | */ |
||
| 235 | protected $deliveryPhone; |
||
| 236 | |||
| 237 | /** |
||
| 238 | * @var string |
||
| 239 | */ |
||
| 240 | protected $deliveryFax; |
||
| 241 | |||
| 242 | /** |
||
| 243 | * @var string |
||
| 244 | */ |
||
| 245 | protected $deliveryEmail; |
||
| 246 | |||
| 247 | /** |
||
| 248 | * @var string |
||
| 249 | */ |
||
| 250 | protected $deliveryEan; |
||
| 251 | |||
| 252 | /** |
||
| 253 | * @var string |
||
| 254 | */ |
||
| 255 | protected $shippingMethod; |
||
| 256 | |||
| 257 | /** |
||
| 258 | * @var float |
||
| 259 | */ |
||
| 260 | protected $shippingFee; |
||
| 261 | |||
| 262 | /** |
||
| 263 | * @var string |
||
| 264 | */ |
||
| 265 | protected $paymentMethod; |
||
| 266 | |||
| 267 | /** |
||
| 268 | * @var float |
||
| 269 | */ |
||
| 270 | protected $paymentFee; |
||
| 271 | |||
| 272 | /** |
||
| 273 | * @var string |
||
| 274 | */ |
||
| 275 | protected $loadBalancerRealIp; |
||
| 276 | |||
| 277 | /** |
||
| 278 | * @var OrderLine[] |
||
| 279 | */ |
||
| 280 | protected $orderLines; |
||
| 281 | |||
| 282 | public function __construct() |
||
| 286 | |||
| 287 | /** |
||
| 288 | * @return string |
||
| 289 | */ |
||
| 290 | public function getApiKey() : string |
||
| 294 | |||
| 295 | /** |
||
| 296 | * @param string $apiKey |
||
| 297 | * @return PaymentInterface |
||
| 298 | */ |
||
| 299 | public function setApiKey(string $apiKey) : PaymentInterface |
||
| 304 | |||
| 305 | /** |
||
| 306 | * @return string |
||
| 307 | */ |
||
| 308 | public function getMerchant() : string |
||
| 312 | |||
| 313 | /** |
||
| 314 | * @param string $merchant |
||
| 315 | * @return PaymentInterface |
||
| 316 | */ |
||
| 317 | public function setMerchant(string $merchant) : PaymentInterface |
||
| 322 | |||
| 323 | /** |
||
| 324 | * @return int |
||
| 325 | */ |
||
| 326 | public function getOrderId() : int |
||
| 330 | |||
| 331 | /** |
||
| 332 | * @param int $orderId |
||
| 333 | * @return PaymentInterface |
||
| 334 | */ |
||
| 335 | public function setOrderId(int $orderId) : PaymentInterface |
||
| 340 | |||
| 341 | /** |
||
| 342 | * @return string |
||
| 343 | */ |
||
| 344 | public function getSessionId() : string |
||
| 348 | |||
| 349 | /** |
||
| 350 | * @param string $sessionId |
||
| 351 | * @return PaymentInterface |
||
| 352 | */ |
||
| 353 | public function setSessionId(string $sessionId) : PaymentInterface |
||
| 358 | |||
| 359 | /** |
||
| 360 | * @return string |
||
| 361 | */ |
||
| 362 | public function getCurrencySymbol() : string |
||
| 366 | |||
| 367 | /** |
||
| 368 | * @param string $currencySymbol |
||
| 369 | * @return PaymentInterface |
||
| 370 | */ |
||
| 371 | public function setCurrencySymbol(string $currencySymbol) : PaymentInterface |
||
| 376 | |||
| 377 | /** |
||
| 378 | * @return float |
||
| 379 | */ |
||
| 380 | public function getTotalAmount() : float |
||
| 384 | |||
| 385 | /** |
||
| 386 | * @param float $totalAmount |
||
| 387 | * @return PaymentInterface |
||
| 388 | */ |
||
| 389 | public function setTotalAmount(float $totalAmount) : PaymentInterface |
||
| 394 | |||
| 395 | /** |
||
| 396 | * @return string |
||
| 397 | */ |
||
| 398 | public function getCallBackUrl() : string |
||
| 402 | |||
| 403 | /** |
||
| 404 | * @param string $callBackUrl |
||
| 405 | * @return PaymentInterface |
||
| 406 | */ |
||
| 407 | public function setCallBackUrl(string $callBackUrl) : PaymentInterface |
||
| 412 | |||
| 413 | /** |
||
| 414 | * @return string |
||
| 415 | */ |
||
| 416 | public function getFullCallBackOkUrl() : string |
||
| 420 | |||
| 421 | /** |
||
| 422 | * @param string $fullCallBackOkUrl |
||
| 423 | * @return PaymentInterface |
||
| 424 | */ |
||
| 425 | public function setFullCallBackOkUrl(string $fullCallBackOkUrl) : PaymentInterface |
||
| 430 | |||
| 431 | /** |
||
| 432 | * @return string |
||
| 433 | */ |
||
| 434 | public function getCallBackOkUrl() : string |
||
| 438 | |||
| 439 | /** |
||
| 440 | * @param string $callBackOkUrl |
||
| 441 | * @return PaymentInterface |
||
| 442 | */ |
||
| 443 | public function setCallBackOkUrl(string $callBackOkUrl) : PaymentInterface |
||
| 448 | |||
| 449 | /** |
||
| 450 | * @return string |
||
| 451 | */ |
||
| 452 | public function getCallBackServerUrl() : string |
||
| 456 | |||
| 457 | /** |
||
| 458 | * @param string $callBackServerUrl |
||
| 459 | * @return PaymentInterface |
||
| 460 | */ |
||
| 461 | public function setCallBackServerUrl(string $callBackServerUrl) : PaymentInterface |
||
| 466 | |||
| 467 | /** |
||
| 468 | * @return int |
||
| 469 | */ |
||
| 470 | public function getLanguageId() : int |
||
| 474 | |||
| 475 | /** |
||
| 476 | * @param int $languageId |
||
| 477 | * @return PaymentInterface |
||
| 478 | */ |
||
| 479 | public function setLanguageId(int $languageId) : PaymentInterface |
||
| 484 | |||
| 485 | /** |
||
| 486 | * @return bool |
||
| 487 | */ |
||
| 488 | public function isTestMode(): bool |
||
| 492 | |||
| 493 | /** |
||
| 494 | * @param bool $testMode |
||
| 495 | * @return PaymentInterface |
||
| 496 | */ |
||
| 497 | public function setTestMode(bool $testMode) : PaymentInterface |
||
| 502 | |||
| 503 | /** |
||
| 504 | * @return int |
||
| 505 | */ |
||
| 506 | public function getPaymentGatewayCurrencyCode() |
||
| 510 | |||
| 511 | /** |
||
| 512 | * @param int $paymentGatewayCurrencyCode |
||
| 513 | * @return PaymentInterface |
||
| 514 | */ |
||
| 515 | public function setPaymentGatewayCurrencyCode(int $paymentGatewayCurrencyCode) : PaymentInterface |
||
| 520 | |||
| 521 | /** |
||
| 522 | * @return int |
||
| 523 | */ |
||
| 524 | public function getCardTypeId() |
||
| 528 | |||
| 529 | /** |
||
| 530 | * @param int $cardTypeId |
||
| 531 | * @return PaymentInterface |
||
| 532 | */ |
||
| 533 | public function setCardTypeId(int $cardTypeId) : PaymentInterface |
||
| 538 | |||
| 539 | /** |
||
| 540 | * @return string |
||
| 541 | */ |
||
| 542 | public function getCustomerRekvNr() : string |
||
| 546 | |||
| 547 | /** |
||
| 548 | * @param string $customerRekvNr |
||
| 549 | * @return PaymentInterface |
||
| 550 | */ |
||
| 551 | public function setCustomerRekvNr(string $customerRekvNr) : PaymentInterface |
||
| 556 | |||
| 557 | /** |
||
| 558 | * @return string |
||
| 559 | */ |
||
| 560 | public function getCustomerName() : string |
||
| 564 | |||
| 565 | /** |
||
| 566 | * @param string $customerName |
||
| 567 | * @return PaymentInterface |
||
| 568 | */ |
||
| 569 | public function setCustomerName(string $customerName) : PaymentInterface |
||
| 574 | |||
| 575 | /** |
||
| 576 | * @return string |
||
| 577 | */ |
||
| 578 | public function getCustomerCompany() : string |
||
| 582 | |||
| 583 | /** |
||
| 584 | * @param string $customerCompany |
||
| 585 | * @return PaymentInterface |
||
| 586 | */ |
||
| 587 | public function setCustomerCompany(string $customerCompany) : PaymentInterface |
||
| 592 | |||
| 593 | /** |
||
| 594 | * @return string |
||
| 595 | */ |
||
| 596 | public function getCustomerAddress() : string |
||
| 600 | |||
| 601 | /** |
||
| 602 | * @param string $customerAddress |
||
| 603 | * @return PaymentInterface |
||
| 604 | */ |
||
| 605 | public function setCustomerAddress(string $customerAddress) : PaymentInterface |
||
| 610 | |||
| 611 | /** |
||
| 612 | * @return string |
||
| 613 | */ |
||
| 614 | public function getCustomerAddress2() : string |
||
| 618 | |||
| 619 | /** |
||
| 620 | * @param string $customerAddress2 |
||
| 621 | * @return PaymentInterface |
||
| 622 | */ |
||
| 623 | public function setCustomerAddress2(string $customerAddress2) : PaymentInterface |
||
| 628 | |||
| 629 | /** |
||
| 630 | * @return string |
||
| 631 | */ |
||
| 632 | public function getCustomerZipCode() : string |
||
| 636 | |||
| 637 | /** |
||
| 638 | * @param string $customerZipCode |
||
| 639 | * @return PaymentInterface |
||
| 640 | */ |
||
| 641 | public function setCustomerZipCode(string $customerZipCode) : PaymentInterface |
||
| 646 | |||
| 647 | /** |
||
| 648 | * @return string |
||
| 649 | */ |
||
| 650 | public function getCustomerCity() : string |
||
| 654 | |||
| 655 | /** |
||
| 656 | * @param string $customerCity |
||
| 657 | * @return PaymentInterface |
||
| 658 | */ |
||
| 659 | public function setCustomerCity(string $customerCity) : PaymentInterface |
||
| 664 | |||
| 665 | /** |
||
| 666 | * @return int |
||
| 667 | */ |
||
| 668 | public function getCustomerCountryId() |
||
| 672 | |||
| 673 | /** |
||
| 674 | * @param int $customerCountryId |
||
| 675 | * @return PaymentInterface |
||
| 676 | */ |
||
| 677 | public function setCustomerCountryId(int $customerCountryId) : PaymentInterface |
||
| 682 | |||
| 683 | /** |
||
| 684 | * @return string |
||
| 685 | */ |
||
| 686 | public function getCustomerCountry() : string |
||
| 690 | |||
| 691 | /** |
||
| 692 | * @param string $customerCountry |
||
| 693 | * @return PaymentInterface |
||
| 694 | */ |
||
| 695 | public function setCustomerCountry(string $customerCountry) : PaymentInterface |
||
| 700 | |||
| 701 | /** |
||
| 702 | * @return string |
||
| 703 | */ |
||
| 704 | public function getCustomerPhone() : string |
||
| 708 | |||
| 709 | /** |
||
| 710 | * @param string $customerPhone |
||
| 711 | * @return PaymentInterface |
||
| 712 | */ |
||
| 713 | public function setCustomerPhone(string $customerPhone) : PaymentInterface |
||
| 718 | |||
| 719 | /** |
||
| 720 | * @return string |
||
| 721 | */ |
||
| 722 | public function getCustomerFax() : string |
||
| 726 | |||
| 727 | /** |
||
| 728 | * @param string $customerFax |
||
| 729 | * @return PaymentInterface |
||
| 730 | */ |
||
| 731 | public function setCustomerFax(string $customerFax) : PaymentInterface |
||
| 736 | |||
| 737 | /** |
||
| 738 | * @return string |
||
| 739 | */ |
||
| 740 | public function getCustomerEmail() : string |
||
| 744 | |||
| 745 | /** |
||
| 746 | * @param string $customerEmail |
||
| 747 | * @return PaymentInterface |
||
| 748 | */ |
||
| 749 | public function setCustomerEmail(string $customerEmail) : PaymentInterface |
||
| 754 | |||
| 755 | /** |
||
| 756 | * @return string |
||
| 757 | */ |
||
| 758 | public function getCustomerNote() : string |
||
| 762 | |||
| 763 | /** |
||
| 764 | * @param string $customerNote |
||
| 765 | * @return PaymentInterface |
||
| 766 | */ |
||
| 767 | public function setCustomerNote(string $customerNote) : PaymentInterface |
||
| 772 | |||
| 773 | /** |
||
| 774 | * @return string |
||
| 775 | */ |
||
| 776 | public function getCustomerCvrnr() : string |
||
| 780 | |||
| 781 | /** |
||
| 782 | * @param string $customerCvrnr |
||
| 783 | * @return PaymentInterface |
||
| 784 | */ |
||
| 785 | public function setCustomerCvrnr(string $customerCvrnr) : PaymentInterface |
||
| 790 | |||
| 791 | /** |
||
| 792 | * @return int |
||
| 793 | */ |
||
| 794 | public function getCustomerCustTypeId() : int |
||
| 798 | |||
| 799 | /** |
||
| 800 | * @param int $customerCustTypeId |
||
| 801 | * @return PaymentInterface |
||
| 802 | */ |
||
| 803 | public function setCustomerCustTypeId(int $customerCustTypeId) : PaymentInterface |
||
| 808 | |||
| 809 | /** |
||
| 810 | * @return string |
||
| 811 | */ |
||
| 812 | public function getCustomerEan() : string |
||
| 816 | |||
| 817 | /** |
||
| 818 | * @param string $customerEan |
||
| 819 | * @return PaymentInterface |
||
| 820 | */ |
||
| 821 | public function setCustomerEan(string $customerEan) : PaymentInterface |
||
| 826 | |||
| 827 | /** |
||
| 828 | * @return string |
||
| 829 | */ |
||
| 830 | public function getCustomerRes1() : string |
||
| 834 | |||
| 835 | /** |
||
| 836 | * @param string $customerRes1 |
||
| 837 | * @return PaymentInterface |
||
| 838 | */ |
||
| 839 | public function setCustomerRes1(string $customerRes1) : PaymentInterface |
||
| 844 | |||
| 845 | /** |
||
| 846 | * @return string |
||
| 847 | */ |
||
| 848 | public function getCustomerRes2() : string |
||
| 852 | |||
| 853 | /** |
||
| 854 | * @param string $customerRes2 |
||
| 855 | * @return PaymentInterface |
||
| 856 | */ |
||
| 857 | public function setCustomerRes2(string $customerRes2) : PaymentInterface |
||
| 862 | |||
| 863 | /** |
||
| 864 | * @return string |
||
| 865 | */ |
||
| 866 | public function getCustomerRes3() : string |
||
| 870 | |||
| 871 | /** |
||
| 872 | * @param string $customerRes3 |
||
| 873 | * @return PaymentInterface |
||
| 874 | */ |
||
| 875 | public function setCustomerRes3(string $customerRes3) : PaymentInterface |
||
| 880 | |||
| 881 | /** |
||
| 882 | * @return string |
||
| 883 | */ |
||
| 884 | public function getCustomerRes4() : string |
||
| 888 | |||
| 889 | /** |
||
| 890 | * @param string $customerRes4 |
||
| 891 | * @return PaymentInterface |
||
| 892 | */ |
||
| 893 | public function setCustomerRes4(string $customerRes4) : PaymentInterface |
||
| 898 | |||
| 899 | /** |
||
| 900 | * @return string |
||
| 901 | */ |
||
| 902 | public function getCustomerRes5() : string |
||
| 906 | |||
| 907 | /** |
||
| 908 | * @param string $customerRes5 |
||
| 909 | * @return PaymentInterface |
||
| 910 | */ |
||
| 911 | public function setCustomerRes5(string $customerRes5) : PaymentInterface |
||
| 916 | |||
| 917 | /** |
||
| 918 | * @return string |
||
| 919 | */ |
||
| 920 | public function getCustomerIp() : string |
||
| 924 | |||
| 925 | /** |
||
| 926 | * @param string $customerIp |
||
| 927 | * @return PaymentInterface |
||
| 928 | */ |
||
| 929 | public function setCustomerIp(string $customerIp) : PaymentInterface |
||
| 934 | |||
| 935 | /** |
||
| 936 | * @return string |
||
| 937 | */ |
||
| 938 | public function getDeliveryName() : string |
||
| 942 | |||
| 943 | /** |
||
| 944 | * @param string $deliveryName |
||
| 945 | * @return PaymentInterface |
||
| 946 | */ |
||
| 947 | public function setDeliveryName(string $deliveryName) : PaymentInterface |
||
| 952 | |||
| 953 | /** |
||
| 954 | * @return string |
||
| 955 | */ |
||
| 956 | public function getDeliveryCompany() : string |
||
| 960 | |||
| 961 | /** |
||
| 962 | * @param string $deliveryCompany |
||
| 963 | * @return PaymentInterface |
||
| 964 | */ |
||
| 965 | public function setDeliveryCompany(string $deliveryCompany) : PaymentInterface |
||
| 970 | |||
| 971 | /** |
||
| 972 | * @return string |
||
| 973 | */ |
||
| 974 | public function getDeliveryAddress() : string |
||
| 978 | |||
| 979 | /** |
||
| 980 | * @param string $deliveryAddress |
||
| 981 | * @return PaymentInterface |
||
| 982 | */ |
||
| 983 | public function setDeliveryAddress(string $deliveryAddress) : PaymentInterface |
||
| 988 | |||
| 989 | /** |
||
| 990 | * @return string |
||
| 991 | */ |
||
| 992 | public function getDeliveryAddress2() : string |
||
| 996 | |||
| 997 | /** |
||
| 998 | * @param string $deliveryAddress2 |
||
| 999 | * @return PaymentInterface |
||
| 1000 | */ |
||
| 1001 | public function setDeliveryAddress2(string $deliveryAddress2) : PaymentInterface |
||
| 1006 | |||
| 1007 | /** |
||
| 1008 | * @return string |
||
| 1009 | */ |
||
| 1010 | public function getDeliveryZipCode() : string |
||
| 1014 | |||
| 1015 | /** |
||
| 1016 | * @param string $deliveryZipCode |
||
| 1017 | * @return PaymentInterface |
||
| 1018 | */ |
||
| 1019 | public function setDeliveryZipCode(string $deliveryZipCode) : PaymentInterface |
||
| 1024 | |||
| 1025 | /** |
||
| 1026 | * @return string |
||
| 1027 | */ |
||
| 1028 | public function getDeliveryCity() : string |
||
| 1032 | |||
| 1033 | /** |
||
| 1034 | * @param string $deliveryCity |
||
| 1035 | * @return PaymentInterface |
||
| 1036 | */ |
||
| 1037 | public function setDeliveryCity(string $deliveryCity) : PaymentInterface |
||
| 1042 | |||
| 1043 | /** |
||
| 1044 | * @return int |
||
| 1045 | */ |
||
| 1046 | public function getDeliveryCountryID() : int |
||
| 1050 | |||
| 1051 | /** |
||
| 1052 | * @param int $deliveryCountryID |
||
| 1053 | * @return PaymentInterface |
||
| 1054 | */ |
||
| 1055 | public function setDeliveryCountryID(int $deliveryCountryID) : PaymentInterface |
||
| 1060 | |||
| 1061 | /** |
||
| 1062 | * @return string |
||
| 1063 | */ |
||
| 1064 | public function getDeliveryCountry() : string |
||
| 1068 | |||
| 1069 | /** |
||
| 1070 | * @param string $deliveryCountry |
||
| 1071 | * @return PaymentInterface |
||
| 1072 | */ |
||
| 1073 | public function setDeliveryCountry(string $deliveryCountry) : PaymentInterface |
||
| 1078 | |||
| 1079 | /** |
||
| 1080 | * @return string |
||
| 1081 | */ |
||
| 1082 | public function getDeliveryPhone() : string |
||
| 1086 | |||
| 1087 | /** |
||
| 1088 | * @param string $deliveryPhone |
||
| 1089 | * @return PaymentInterface |
||
| 1090 | */ |
||
| 1091 | public function setDeliveryPhone(string $deliveryPhone) : PaymentInterface |
||
| 1096 | |||
| 1097 | /** |
||
| 1098 | * @return string |
||
| 1099 | */ |
||
| 1100 | public function getDeliveryFax() : string |
||
| 1104 | |||
| 1105 | /** |
||
| 1106 | * @param string $deliveryFax |
||
| 1107 | * @return PaymentInterface |
||
| 1108 | */ |
||
| 1109 | public function setDeliveryFax(string $deliveryFax) : PaymentInterface |
||
| 1114 | |||
| 1115 | /** |
||
| 1116 | * @return string |
||
| 1117 | */ |
||
| 1118 | public function getDeliveryEmail() : string |
||
| 1122 | |||
| 1123 | /** |
||
| 1124 | * @param string $deliveryEmail |
||
| 1125 | * @return PaymentInterface |
||
| 1126 | */ |
||
| 1127 | public function setDeliveryEmail(string $deliveryEmail) : PaymentInterface |
||
| 1132 | |||
| 1133 | /** |
||
| 1134 | * @return string |
||
| 1135 | */ |
||
| 1136 | public function getDeliveryEan() : string |
||
| 1140 | |||
| 1141 | /** |
||
| 1142 | * @param string $deliveryEan |
||
| 1143 | * @return PaymentInterface |
||
| 1144 | */ |
||
| 1145 | public function setDeliveryEan(string $deliveryEan) : PaymentInterface |
||
| 1150 | |||
| 1151 | /** |
||
| 1152 | * @return string |
||
| 1153 | */ |
||
| 1154 | public function getShippingMethod() : string |
||
| 1158 | |||
| 1159 | /** |
||
| 1160 | * @param string $shippingMethod |
||
| 1161 | * @return PaymentInterface |
||
| 1162 | */ |
||
| 1163 | public function setShippingMethod(string $shippingMethod) : PaymentInterface |
||
| 1168 | |||
| 1169 | /** |
||
| 1170 | * @return float |
||
| 1171 | */ |
||
| 1172 | public function getShippingFee() : float |
||
| 1176 | |||
| 1177 | /** |
||
| 1178 | * @param float $shippingFee |
||
| 1179 | * @return PaymentInterface |
||
| 1180 | */ |
||
| 1181 | public function setShippingFee(float $shippingFee) : PaymentInterface |
||
| 1186 | |||
| 1187 | /** |
||
| 1188 | * @return string |
||
| 1189 | */ |
||
| 1190 | public function getPaymentMethod() : string |
||
| 1194 | |||
| 1195 | /** |
||
| 1196 | * @param string $paymentMethod |
||
| 1197 | * @return PaymentInterface |
||
| 1198 | */ |
||
| 1199 | public function setPaymentMethod(string $paymentMethod) : PaymentInterface |
||
| 1204 | |||
| 1205 | /** |
||
| 1206 | * @return float |
||
| 1207 | */ |
||
| 1208 | public function getPaymentFee() : float |
||
| 1212 | |||
| 1213 | /** |
||
| 1214 | * @param float $paymentFee |
||
| 1215 | * @return PaymentInterface |
||
| 1216 | */ |
||
| 1217 | public function setPaymentFee(float $paymentFee) : PaymentInterface |
||
| 1222 | |||
| 1223 | /** |
||
| 1224 | * @return string |
||
| 1225 | */ |
||
| 1226 | public function getLoadBalancerRealIp() : string |
||
| 1230 | |||
| 1231 | /** |
||
| 1232 | * @param string $loadBalancerRealIp |
||
| 1233 | * @return PaymentInterface |
||
| 1234 | */ |
||
| 1235 | public function setLoadBalancerRealIp(string $loadBalancerRealIp) : PaymentInterface |
||
| 1240 | |||
| 1241 | /** |
||
| 1242 | * @return OrderLineInterface[] |
||
| 1243 | */ |
||
| 1244 | public function getOrderLines() : array |
||
| 1248 | |||
| 1249 | /** |
||
| 1250 | * @param OrderLineInterface[] $orderLines |
||
| 1251 | * @return PaymentInterface |
||
| 1252 | */ |
||
| 1253 | public function setOrderLines(array $orderLines) : PaymentInterface |
||
| 1258 | |||
| 1259 | /** |
||
| 1260 | * @param OrderLineInterface $orderLine |
||
| 1261 | * @return PaymentInterface |
||
| 1262 | */ |
||
| 1263 | public function addOrderLine(OrderLineInterface $orderLine) : PaymentInterface |
||
| 1268 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..