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 |
||
| 21 | abstract class Payment extends PaymentRequest |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var int |
||
| 25 | * |
||
| 26 | * @ORM\Column(type="integer") |
||
| 27 | */ |
||
| 28 | protected $id; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @ORM\Column(type="string") |
||
| 32 | */ |
||
| 33 | protected $apiKey; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @ORM\Column(type="string") |
||
| 37 | */ |
||
| 38 | protected $merchant; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @ORM\Column(type="integer") |
||
| 42 | */ |
||
| 43 | protected $orderId; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @ORM\Column(type="text") |
||
| 47 | */ |
||
| 48 | protected $sessionId; |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @ORM\Column(type="string") |
||
| 52 | */ |
||
| 53 | protected $currencySymbol; |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @ORM\Column(type="decimal", precision=12, scale=2) |
||
| 57 | */ |
||
| 58 | protected $totalAmount; |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @ORM\Column(type="string") |
||
| 62 | */ |
||
| 63 | protected $callBackUrl; |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @ORM\Column(type="string") |
||
| 67 | */ |
||
| 68 | protected $fullCallBackOkUrl; |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @ORM\Column(type="string") |
||
| 72 | */ |
||
| 73 | protected $callBackOkUrl; |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @ORM\Column(type="string") |
||
| 77 | */ |
||
| 78 | protected $callBackServerUrl; |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @ORM\Column(type="integer") |
||
| 82 | */ |
||
| 83 | protected $languageId; |
||
| 84 | |||
| 85 | /** |
||
| 86 | * @ORM\Column(type="string") |
||
| 87 | */ |
||
| 88 | protected $testMode; |
||
| 89 | |||
| 90 | /** |
||
| 91 | * @ORM\Column(type="integer") |
||
| 92 | */ |
||
| 93 | protected $paymentGatewayCurrencyCode; |
||
| 94 | |||
| 95 | /** |
||
| 96 | * @ORM\Column(type="integer") |
||
| 97 | */ |
||
| 98 | protected $cardTypeId; |
||
| 99 | |||
| 100 | /** |
||
| 101 | * @ORM\Column(type="string") |
||
| 102 | */ |
||
| 103 | protected $customerRekvNr; |
||
| 104 | |||
| 105 | /** |
||
| 106 | * @ORM\Column(type="string") |
||
| 107 | */ |
||
| 108 | protected $customerName; |
||
| 109 | |||
| 110 | /** |
||
| 111 | * @ORM\Column(type="string") |
||
| 112 | */ |
||
| 113 | protected $customerCompany; |
||
| 114 | |||
| 115 | /** |
||
| 116 | * @ORM\Column(type="string") |
||
| 117 | */ |
||
| 118 | protected $customerAddress; |
||
| 119 | |||
| 120 | /** |
||
| 121 | * @ORM\Column(type="string") |
||
| 122 | */ |
||
| 123 | protected $customerAddress2; |
||
| 124 | |||
| 125 | /** |
||
| 126 | * @ORM\Column(type="string") |
||
| 127 | */ |
||
| 128 | protected $customerZipCode; |
||
| 129 | |||
| 130 | /** |
||
| 131 | * @ORM\Column(type="string") |
||
| 132 | */ |
||
| 133 | protected $customerCity; |
||
| 134 | |||
| 135 | /** |
||
| 136 | * @ORM\Column(type="integer") |
||
| 137 | */ |
||
| 138 | protected $customerCountryId; |
||
| 139 | |||
| 140 | /** |
||
| 141 | * @ORM\Column(type="string") |
||
| 142 | */ |
||
| 143 | protected $customerCountry; |
||
| 144 | |||
| 145 | /** |
||
| 146 | * @ORM\Column(type="string") |
||
| 147 | */ |
||
| 148 | protected $customerPhone; |
||
| 149 | |||
| 150 | /** |
||
| 151 | * @ORM\Column(type="string") |
||
| 152 | */ |
||
| 153 | protected $customerFax; |
||
| 154 | |||
| 155 | /** |
||
| 156 | * @ORM\Column(type="string") |
||
| 157 | */ |
||
| 158 | protected $customerEmail; |
||
| 159 | |||
| 160 | /** |
||
| 161 | * @ORM\Column(type="string") |
||
| 162 | */ |
||
| 163 | protected $customerNote; |
||
| 164 | |||
| 165 | /** |
||
| 166 | * @ORM\Column(type="string") |
||
| 167 | */ |
||
| 168 | protected $customerCvrnr; |
||
| 169 | |||
| 170 | /** |
||
| 171 | * @ORM\Column(type="integer") |
||
| 172 | */ |
||
| 173 | protected $customerCustTypeId; |
||
| 174 | |||
| 175 | /** |
||
| 176 | * @ORM\Column(type="string") |
||
| 177 | */ |
||
| 178 | protected $customerEan; |
||
| 179 | |||
| 180 | /** |
||
| 181 | * @ORM\Column(type="string") |
||
| 182 | */ |
||
| 183 | protected $customerRes1; |
||
| 184 | |||
| 185 | /** |
||
| 186 | * @ORM\Column(type="string") |
||
| 187 | */ |
||
| 188 | protected $customerRes2; |
||
| 189 | |||
| 190 | /** |
||
| 191 | * @ORM\Column(type="string") |
||
| 192 | */ |
||
| 193 | protected $customerRes3; |
||
| 194 | |||
| 195 | /** |
||
| 196 | * @ORM\Column(type="string") |
||
| 197 | */ |
||
| 198 | protected $customerRes4; |
||
| 199 | |||
| 200 | /** |
||
| 201 | * @ORM\Column(type="string") |
||
| 202 | */ |
||
| 203 | protected $customerRes5; |
||
| 204 | |||
| 205 | /** |
||
| 206 | * @ORM\Column(type="string") |
||
| 207 | */ |
||
| 208 | protected $customerIp; |
||
| 209 | |||
| 210 | /** |
||
| 211 | * @ORM\Column(type="string") |
||
| 212 | */ |
||
| 213 | protected $deliveryName; |
||
| 214 | |||
| 215 | /** |
||
| 216 | * @ORM\Column(type="string") |
||
| 217 | */ |
||
| 218 | protected $deliveryCompany; |
||
| 219 | |||
| 220 | /** |
||
| 221 | * @ORM\Column(type="string") |
||
| 222 | */ |
||
| 223 | protected $deliveryAddress; |
||
| 224 | |||
| 225 | /** |
||
| 226 | * @ORM\Column(type="string") |
||
| 227 | */ |
||
| 228 | protected $deliveryAddress2; |
||
| 229 | |||
| 230 | /** |
||
| 231 | * @ORM\Column(type="string") |
||
| 232 | */ |
||
| 233 | protected $deliveryZipCode; |
||
| 234 | |||
| 235 | /** |
||
| 236 | * @ORM\Column(type="string") |
||
| 237 | */ |
||
| 238 | protected $deliveryCity; |
||
| 239 | |||
| 240 | /** |
||
| 241 | * @ORM\Column(type="integer") |
||
| 242 | */ |
||
| 243 | protected $deliveryCountryID; |
||
| 244 | |||
| 245 | /** |
||
| 246 | * @ORM\Column(type="string") |
||
| 247 | */ |
||
| 248 | protected $deliveryCountry; |
||
| 249 | |||
| 250 | /** |
||
| 251 | * @ORM\Column(type="string") |
||
| 252 | */ |
||
| 253 | protected $deliveryPhone; |
||
| 254 | |||
| 255 | /** |
||
| 256 | * @ORM\Column(type="string") |
||
| 257 | */ |
||
| 258 | protected $deliveryFax; |
||
| 259 | |||
| 260 | /** |
||
| 261 | * @ORM\Column(type="string") |
||
| 262 | */ |
||
| 263 | protected $deliveryEmail; |
||
| 264 | |||
| 265 | /** |
||
| 266 | * @ORM\Column(type="string") |
||
| 267 | */ |
||
| 268 | protected $deliveryEan; |
||
| 269 | |||
| 270 | /** |
||
| 271 | * @ORM\Column(type="string") |
||
| 272 | */ |
||
| 273 | protected $shippingMethod; |
||
| 274 | |||
| 275 | /** |
||
| 276 | * @ORM\Column(type="decimal", precision=12, scale=2) |
||
| 277 | */ |
||
| 278 | protected $shippingFee; |
||
| 279 | |||
| 280 | /** |
||
| 281 | * @ORM\Column(type="string") |
||
| 282 | */ |
||
| 283 | protected $paymentMethod; |
||
| 284 | |||
| 285 | /** |
||
| 286 | * @ORM\Column(type="decimal", precision=12, scale=2) |
||
| 287 | */ |
||
| 288 | protected $paymentFee; |
||
| 289 | |||
| 290 | /** |
||
| 291 | * @ORM\Column(type="string") |
||
| 292 | */ |
||
| 293 | protected $loadBalancerRealIp; |
||
| 294 | |||
| 295 | /** |
||
| 296 | * @var string |
||
| 297 | * |
||
| 298 | * @ORM\Column(type="string") |
||
| 299 | */ |
||
| 300 | protected $referrer; |
||
| 301 | |||
| 302 | /** |
||
| 303 | * @ORM\OneToMany(targetEntity="PaymentLine", mappedBy="payment") |
||
| 304 | */ |
||
| 305 | protected $paymentLines; |
||
| 306 | |||
| 307 | /********************************** |
||
| 308 | * Properties specific to Altapay * |
||
| 309 | *********************************/ |
||
| 310 | |||
| 311 | /** |
||
| 312 | * @var string|null |
||
| 313 | * |
||
| 314 | * @ORM\Column(type="string", nullable=true, unique=true) |
||
| 315 | */ |
||
| 316 | protected $altapayId; |
||
| 317 | |||
| 318 | /** |
||
| 319 | * @var string|null |
||
| 320 | * |
||
| 321 | * @ORM\Column(type="string", nullable=true) |
||
| 322 | */ |
||
| 323 | protected $cardStatus; |
||
| 324 | |||
| 325 | /** |
||
| 326 | * @var string|null |
||
| 327 | * |
||
| 328 | * @ORM\Column(type="string", nullable=true) |
||
| 329 | */ |
||
| 330 | protected $creditCardToken; |
||
| 331 | |||
| 332 | /** |
||
| 333 | * @var string|null |
||
| 334 | * |
||
| 335 | * @ORM\Column(type="string", nullable=true) |
||
| 336 | */ |
||
| 337 | protected $creditCardMaskedPan; |
||
| 338 | |||
| 339 | /** |
||
| 340 | * @var string|null |
||
| 341 | * |
||
| 342 | * @ORM\Column(type="string", nullable=true) |
||
| 343 | */ |
||
| 344 | protected $threeDSecureResult; |
||
| 345 | |||
| 346 | /** |
||
| 347 | * @var string|null |
||
| 348 | * |
||
| 349 | * @ORM\Column(type="string", nullable=true) |
||
| 350 | */ |
||
| 351 | protected $liableForChargeback; |
||
| 352 | |||
| 353 | /** |
||
| 354 | * @var string|null |
||
| 355 | * |
||
| 356 | * @ORM\Column(type="string", nullable=true) |
||
| 357 | */ |
||
| 358 | protected $blacklistToken; |
||
| 359 | |||
| 360 | /** |
||
| 361 | * @var string|null |
||
| 362 | * |
||
| 363 | * @ORM\Column(type="string", nullable=true) |
||
| 364 | */ |
||
| 365 | protected $shop; |
||
| 366 | |||
| 367 | /** |
||
| 368 | * @var string|null |
||
| 369 | * |
||
| 370 | * @ORM\Column(type="string", nullable=true) |
||
| 371 | */ |
||
| 372 | protected $terminal; |
||
| 373 | |||
| 374 | /** |
||
| 375 | * @var string|null |
||
| 376 | * |
||
| 377 | * @ORM\Column(type="string", nullable=true) |
||
| 378 | */ |
||
| 379 | protected $transactionStatus; |
||
| 380 | |||
| 381 | /** |
||
| 382 | * @var string|null |
||
| 383 | * |
||
| 384 | * @ORM\Column(type="string", nullable=true) |
||
| 385 | */ |
||
| 386 | protected $reasonCode; |
||
| 387 | |||
| 388 | /** |
||
| 389 | * @var int|null |
||
| 390 | * |
||
| 391 | * @ORM\Column(type="integer", nullable=true) |
||
| 392 | */ |
||
| 393 | protected $merchantCurrency; |
||
| 394 | |||
| 395 | /** |
||
| 396 | * @var string|null |
||
| 397 | * |
||
| 398 | * @ORM\Column(type="string", nullable=true) |
||
| 399 | */ |
||
| 400 | protected $merchantCurrencyAlpha; |
||
| 401 | |||
| 402 | /** |
||
| 403 | * @var int|null |
||
| 404 | * |
||
| 405 | * @ORM\Column(type="integer", nullable=true) |
||
| 406 | */ |
||
| 407 | protected $cardHolderCurrency; |
||
| 408 | |||
| 409 | /** |
||
| 410 | * @var string|null |
||
| 411 | * |
||
| 412 | * @ORM\Column(type="string", nullable=true) |
||
| 413 | */ |
||
| 414 | protected $cardHolderCurrencyAlpha; |
||
| 415 | |||
| 416 | /** |
||
| 417 | * @var float|null |
||
| 418 | * |
||
| 419 | * @ORM\Column(type="decimal", precision=10, scale=2) |
||
| 420 | */ |
||
| 421 | protected $reservedAmount; |
||
| 422 | |||
| 423 | /** |
||
| 424 | * @var float|null |
||
| 425 | * |
||
| 426 | * @ORM\Column(type="decimal", precision=10, scale=2) |
||
| 427 | */ |
||
| 428 | protected $capturedAmount; |
||
| 429 | |||
| 430 | /** |
||
| 431 | * @var float|null |
||
| 432 | * |
||
| 433 | * @ORM\Column(type="decimal", precision=10, scale=2) |
||
| 434 | */ |
||
| 435 | protected $refundedAmount; |
||
| 436 | |||
| 437 | /** |
||
| 438 | * @var float|null |
||
| 439 | * |
||
| 440 | * @ORM\Column(type="decimal", precision=10, scale=2) |
||
| 441 | */ |
||
| 442 | protected $recurringDefaultAmount; |
||
| 443 | |||
| 444 | /** |
||
| 445 | * @var \DateTime|null |
||
| 446 | * |
||
| 447 | * @ORM\Column(type="datetime", nullable=true) |
||
| 448 | */ |
||
| 449 | protected $createdDate; |
||
| 450 | |||
| 451 | /** |
||
| 452 | * @var \DateTime|null |
||
| 453 | * |
||
| 454 | * @ORM\Column(type="datetime", nullable=true) |
||
| 455 | */ |
||
| 456 | protected $updatedDate; |
||
| 457 | |||
| 458 | /** |
||
| 459 | * @var string|null |
||
| 460 | * |
||
| 461 | * @ORM\Column(type="string", nullable=true) |
||
| 462 | */ |
||
| 463 | protected $paymentNature; |
||
| 464 | |||
| 465 | /** |
||
| 466 | * @var bool|null |
||
| 467 | * |
||
| 468 | * @ORM\Column(type="boolean", nullable=true) |
||
| 469 | */ |
||
| 470 | protected $supportsRefunds; |
||
| 471 | |||
| 472 | /** |
||
| 473 | * @var bool|null |
||
| 474 | * |
||
| 475 | * @ORM\Column(type="boolean", nullable=true) |
||
| 476 | */ |
||
| 477 | protected $supportsRelease; |
||
| 478 | |||
| 479 | /** |
||
| 480 | * @var bool|null |
||
| 481 | * |
||
| 482 | * @ORM\Column(type="boolean", nullable=true) |
||
| 483 | */ |
||
| 484 | protected $supportsMultipleCaptures; |
||
| 485 | |||
| 486 | /** |
||
| 487 | * @var bool|null |
||
| 488 | * |
||
| 489 | * @ORM\Column(type="boolean", nullable=true) |
||
| 490 | */ |
||
| 491 | protected $supportsMultipleRefunds; |
||
| 492 | |||
| 493 | /** |
||
| 494 | * @var float|null |
||
| 495 | * |
||
| 496 | * @ORM\Column(type="float", nullable=true) |
||
| 497 | */ |
||
| 498 | protected $fraudRiskScore; |
||
| 499 | |||
| 500 | /** |
||
| 501 | * @var string|null |
||
| 502 | * |
||
| 503 | * @ORM\Column(type="string", nullable=true) |
||
| 504 | */ |
||
| 505 | protected $fraudExplanation; |
||
| 506 | |||
| 507 | public function __construct() |
||
| 517 | |||
| 518 | /** |
||
| 519 | * Returns true if the payment can be captured. |
||
| 520 | * |
||
| 521 | * @return bool |
||
| 522 | */ |
||
| 523 | public function isCaptureable(): bool |
||
| 535 | |||
| 536 | /** |
||
| 537 | * Returns true if the payment can be refunded. |
||
| 538 | * |
||
| 539 | * @return bool |
||
| 540 | */ |
||
| 541 | public function isRefundable(): bool |
||
| 553 | |||
| 554 | /** |
||
| 555 | * @return float |
||
| 556 | */ |
||
| 557 | public function refundableAmount() |
||
| 563 | |||
| 564 | /** |
||
| 565 | * @return float |
||
| 566 | */ |
||
| 567 | public function capturableAmount() |
||
| 574 | |||
| 575 | // @todo create type hints for getters and setters |
||
| 576 | |||
| 577 | /** |
||
| 578 | * @return int |
||
| 579 | */ |
||
| 580 | public function getId(): ?int |
||
| 584 | |||
| 585 | /** |
||
| 586 | * @param int $id |
||
| 587 | * |
||
| 588 | * @return Payment |
||
| 589 | */ |
||
| 590 | public function setId(int $id): self |
||
| 596 | |||
| 597 | /** |
||
| 598 | * @return null|string |
||
| 599 | */ |
||
| 600 | public function getAltapayId() |
||
| 604 | |||
| 605 | /** |
||
| 606 | * @param null|string $altapayId |
||
| 607 | * |
||
| 608 | * @return Payment |
||
| 609 | */ |
||
| 610 | public function setAltapayId($altapayId) |
||
| 616 | |||
| 617 | /** |
||
| 618 | * @return null|string |
||
| 619 | */ |
||
| 620 | public function getCardStatus() |
||
| 624 | |||
| 625 | /** |
||
| 626 | * @param null|string $cardStatus |
||
| 627 | * |
||
| 628 | * @return Payment |
||
| 629 | */ |
||
| 630 | public function setCardStatus($cardStatus) |
||
| 636 | |||
| 637 | /** |
||
| 638 | * @return null|string |
||
| 639 | */ |
||
| 640 | public function getCreditCardToken() |
||
| 644 | |||
| 645 | /** |
||
| 646 | * @param null|string $creditCardToken |
||
| 647 | * |
||
| 648 | * @return Payment |
||
| 649 | */ |
||
| 650 | public function setCreditCardToken($creditCardToken) |
||
| 656 | |||
| 657 | /** |
||
| 658 | * @return null|string |
||
| 659 | */ |
||
| 660 | public function getCreditCardMaskedPan() |
||
| 664 | |||
| 665 | /** |
||
| 666 | * @param null|string $creditCardMaskedPan |
||
| 667 | * |
||
| 668 | * @return Payment |
||
| 669 | */ |
||
| 670 | public function setCreditCardMaskedPan($creditCardMaskedPan) |
||
| 676 | |||
| 677 | /** |
||
| 678 | * @return null|string |
||
| 679 | */ |
||
| 680 | public function getThreeDSecureResult() |
||
| 684 | |||
| 685 | /** |
||
| 686 | * @param null|string $threeDSecureResult |
||
| 687 | * |
||
| 688 | * @return Payment |
||
| 689 | */ |
||
| 690 | public function setThreeDSecureResult($threeDSecureResult) |
||
| 696 | |||
| 697 | /** |
||
| 698 | * @return null|string |
||
| 699 | */ |
||
| 700 | public function getLiableForChargeback() |
||
| 704 | |||
| 705 | /** |
||
| 706 | * @param null|string $liableForChargeback |
||
| 707 | * |
||
| 708 | * @return Payment |
||
| 709 | */ |
||
| 710 | public function setLiableForChargeback($liableForChargeback) |
||
| 716 | |||
| 717 | /** |
||
| 718 | * @return null|string |
||
| 719 | */ |
||
| 720 | public function getBlacklistToken() |
||
| 724 | |||
| 725 | /** |
||
| 726 | * @param null|string $blacklistToken |
||
| 727 | * |
||
| 728 | * @return Payment |
||
| 729 | */ |
||
| 730 | public function setBlacklistToken($blacklistToken) |
||
| 736 | |||
| 737 | /** |
||
| 738 | * @return null|string |
||
| 739 | */ |
||
| 740 | public function getShop() |
||
| 744 | |||
| 745 | /** |
||
| 746 | * @param null|string $shop |
||
| 747 | * |
||
| 748 | * @return Payment |
||
| 749 | */ |
||
| 750 | public function setShop($shop) |
||
| 756 | |||
| 757 | /** |
||
| 758 | * @return null|string |
||
| 759 | */ |
||
| 760 | public function getTerminal() |
||
| 764 | |||
| 765 | /** |
||
| 766 | * @param null|string $terminal |
||
| 767 | * |
||
| 768 | * @return Payment |
||
| 769 | */ |
||
| 770 | public function setTerminal($terminal) |
||
| 776 | |||
| 777 | /** |
||
| 778 | * @return null|string |
||
| 779 | */ |
||
| 780 | public function getTransactionStatus() |
||
| 784 | |||
| 785 | /** |
||
| 786 | * @param null|string $transactionStatus |
||
| 787 | * |
||
| 788 | * @return Payment |
||
| 789 | */ |
||
| 790 | public function setTransactionStatus($transactionStatus) |
||
| 796 | |||
| 797 | /** |
||
| 798 | * @return null|string |
||
| 799 | */ |
||
| 800 | public function getReasonCode() |
||
| 804 | |||
| 805 | /** |
||
| 806 | * @param null|string $reasonCode |
||
| 807 | * |
||
| 808 | * @return Payment |
||
| 809 | */ |
||
| 810 | public function setReasonCode($reasonCode) |
||
| 816 | |||
| 817 | /** |
||
| 818 | * @return int|null |
||
| 819 | */ |
||
| 820 | public function getMerchantCurrency() |
||
| 824 | |||
| 825 | /** |
||
| 826 | * @param int|null $merchantCurrency |
||
| 827 | * |
||
| 828 | * @return Payment |
||
| 829 | */ |
||
| 830 | public function setMerchantCurrency($merchantCurrency) |
||
| 836 | |||
| 837 | /** |
||
| 838 | * @return null|string |
||
| 839 | */ |
||
| 840 | public function getMerchantCurrencyAlpha() |
||
| 844 | |||
| 845 | /** |
||
| 846 | * @param null|string $merchantCurrencyAlpha |
||
| 847 | * |
||
| 848 | * @return Payment |
||
| 849 | */ |
||
| 850 | public function setMerchantCurrencyAlpha($merchantCurrencyAlpha) |
||
| 856 | |||
| 857 | /** |
||
| 858 | * @return int|null |
||
| 859 | */ |
||
| 860 | public function getCardHolderCurrency() |
||
| 864 | |||
| 865 | /** |
||
| 866 | * @param int|null $cardHolderCurrency |
||
| 867 | * |
||
| 868 | * @return Payment |
||
| 869 | */ |
||
| 870 | public function setCardHolderCurrency($cardHolderCurrency) |
||
| 876 | |||
| 877 | /** |
||
| 878 | * @return null|string |
||
| 879 | */ |
||
| 880 | public function getCardHolderCurrencyAlpha() |
||
| 884 | |||
| 885 | /** |
||
| 886 | * @param null|string $cardHolderCurrencyAlpha |
||
| 887 | * |
||
| 888 | * @return Payment |
||
| 889 | */ |
||
| 890 | public function setCardHolderCurrencyAlpha($cardHolderCurrencyAlpha) |
||
| 896 | |||
| 897 | /** |
||
| 898 | * @return float|null |
||
| 899 | */ |
||
| 900 | public function getReservedAmount() |
||
| 904 | |||
| 905 | /** |
||
| 906 | * @param float|null $reservedAmount |
||
| 907 | * |
||
| 908 | * @return Payment |
||
| 909 | */ |
||
| 910 | public function setReservedAmount($reservedAmount) |
||
| 916 | |||
| 917 | /** |
||
| 918 | * @return float|null |
||
| 919 | */ |
||
| 920 | public function getCapturedAmount() |
||
| 924 | |||
| 925 | /** |
||
| 926 | * @param float|null $capturedAmount |
||
| 927 | * |
||
| 928 | * @return Payment |
||
| 929 | */ |
||
| 930 | public function setCapturedAmount($capturedAmount) |
||
| 936 | |||
| 937 | /** |
||
| 938 | * @return float|null |
||
| 939 | */ |
||
| 940 | public function getRefundedAmount() |
||
| 944 | |||
| 945 | /** |
||
| 946 | * @param float|null $refundedAmount |
||
| 947 | * |
||
| 948 | * @return Payment |
||
| 949 | */ |
||
| 950 | public function setRefundedAmount($refundedAmount) |
||
| 956 | |||
| 957 | /** |
||
| 958 | * @return float|null |
||
| 959 | */ |
||
| 960 | public function getRecurringDefaultAmount() |
||
| 964 | |||
| 965 | /** |
||
| 966 | * @param float|null $recurringDefaultAmount |
||
| 967 | * |
||
| 968 | * @return Payment |
||
| 969 | */ |
||
| 970 | public function setRecurringDefaultAmount($recurringDefaultAmount) |
||
| 976 | |||
| 977 | /** |
||
| 978 | * @return \DateTime|null |
||
| 979 | */ |
||
| 980 | public function getCreatedDate() |
||
| 984 | |||
| 985 | /** |
||
| 986 | * @param \DateTimeInterface|null $createdDate |
||
| 987 | * |
||
| 988 | * @return Payment |
||
| 989 | */ |
||
| 990 | public function setCreatedDate($createdDate) |
||
| 996 | |||
| 997 | /** |
||
| 998 | * @return \DateTime|null |
||
| 999 | */ |
||
| 1000 | public function getUpdatedDate() |
||
| 1004 | |||
| 1005 | /** |
||
| 1006 | * @param \DateTimeInterface|null $updatedDate |
||
| 1007 | * |
||
| 1008 | * @return Payment |
||
| 1009 | */ |
||
| 1010 | public function setUpdatedDate($updatedDate) |
||
| 1016 | |||
| 1017 | /** |
||
| 1018 | * @return null|string |
||
| 1019 | */ |
||
| 1020 | public function getPaymentNature() |
||
| 1024 | |||
| 1025 | /** |
||
| 1026 | * @param null|string $paymentNature |
||
| 1027 | * |
||
| 1028 | * @return Payment |
||
| 1029 | */ |
||
| 1030 | public function setPaymentNature($paymentNature) |
||
| 1036 | |||
| 1037 | /** |
||
| 1038 | * @return bool|null |
||
| 1039 | */ |
||
| 1040 | public function getSupportsRefunds() |
||
| 1044 | |||
| 1045 | /** |
||
| 1046 | * @param bool|null $supportsRefunds |
||
| 1047 | * |
||
| 1048 | * @return Payment |
||
| 1049 | */ |
||
| 1050 | public function setSupportsRefunds($supportsRefunds) |
||
| 1056 | |||
| 1057 | /** |
||
| 1058 | * @return bool|null |
||
| 1059 | */ |
||
| 1060 | public function getSupportsRelease() |
||
| 1064 | |||
| 1065 | /** |
||
| 1066 | * @param bool|null $supportsRelease |
||
| 1067 | * |
||
| 1068 | * @return Payment |
||
| 1069 | */ |
||
| 1070 | public function setSupportsRelease($supportsRelease) |
||
| 1076 | |||
| 1077 | /** |
||
| 1078 | * @return bool|null |
||
| 1079 | */ |
||
| 1080 | public function getSupportsMultipleCaptures() |
||
| 1084 | |||
| 1085 | /** |
||
| 1086 | * @param bool|null $supportsMultipleCaptures |
||
| 1087 | * |
||
| 1088 | * @return Payment |
||
| 1089 | */ |
||
| 1090 | public function setSupportsMultipleCaptures($supportsMultipleCaptures) |
||
| 1096 | |||
| 1097 | /** |
||
| 1098 | * @return bool|null |
||
| 1099 | */ |
||
| 1100 | public function getSupportsMultipleRefunds() |
||
| 1104 | |||
| 1105 | /** |
||
| 1106 | * @param bool|null $supportsMultipleRefunds |
||
| 1107 | * |
||
| 1108 | * @return Payment |
||
| 1109 | */ |
||
| 1110 | public function setSupportsMultipleRefunds($supportsMultipleRefunds) |
||
| 1116 | |||
| 1117 | /** |
||
| 1118 | * @return float|null |
||
| 1119 | */ |
||
| 1120 | public function getFraudRiskScore() |
||
| 1124 | |||
| 1125 | /** |
||
| 1126 | * @param float|null $fraudRiskScore |
||
| 1127 | * |
||
| 1128 | * @return Payment |
||
| 1129 | */ |
||
| 1130 | public function setFraudRiskScore($fraudRiskScore) |
||
| 1136 | |||
| 1137 | /** |
||
| 1138 | * @return null|string |
||
| 1139 | */ |
||
| 1140 | public function getFraudExplanation() |
||
| 1144 | |||
| 1145 | /** |
||
| 1146 | * @param null|string $fraudExplanation |
||
| 1147 | * |
||
| 1148 | * @return Payment |
||
| 1149 | */ |
||
| 1150 | public function setFraudExplanation($fraudExplanation) |
||
| 1156 | } |
||
| 1157 |
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..