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 |
||
26 | class Payment extends BasePayment |
||
27 | { |
||
28 | /** |
||
29 | * @var int |
||
30 | * |
||
31 | * @ORM\Id |
||
32 | * @ORM\Column(name="id", type="integer") |
||
33 | * @ORM\GeneratedValue(strategy="AUTO") |
||
34 | */ |
||
35 | protected $id; |
||
36 | |||
37 | /** |
||
38 | * @Assert\NotBlank() |
||
39 | * @Assert\Length(max="191") |
||
40 | * |
||
41 | * @ORM\Column(type="string", length=191) |
||
42 | */ |
||
43 | protected $apiKey; |
||
44 | |||
45 | /** |
||
46 | * @Assert\NotBlank() |
||
47 | * @Assert\Length(max="191") |
||
48 | * |
||
49 | * @ORM\Column(type="string", length=191) |
||
50 | */ |
||
51 | protected $merchant; |
||
52 | |||
53 | /** |
||
54 | * @ORM\Column(type="integer") |
||
55 | */ |
||
56 | protected $orderId; |
||
57 | |||
58 | /** |
||
59 | * @ORM\Column(type="text") |
||
60 | */ |
||
61 | protected $sessionId; |
||
62 | |||
63 | /** |
||
64 | * @Assert\NotBlank() |
||
65 | * @Assert\Length(max="191") |
||
66 | * |
||
67 | * @ORM\Column(type="string", length=191) |
||
68 | */ |
||
69 | protected $currencySymbol; |
||
70 | |||
71 | /** |
||
72 | * @Assert\NotBlank() |
||
73 | * |
||
74 | * @ORM\Column(type="integer") |
||
75 | */ |
||
76 | protected $totalAmountAmount; |
||
77 | |||
78 | /** |
||
79 | * @Assert\NotBlank() |
||
80 | * |
||
81 | * @ORM\Column(type="string") |
||
82 | */ |
||
83 | protected $totalAmountCurrency; |
||
84 | |||
85 | /** |
||
86 | * @Assert\NotBlank() |
||
87 | * @Assert\Length(max="191") |
||
88 | * |
||
89 | * @ORM\Column(type="string", length=191) |
||
90 | */ |
||
91 | protected $callBackUrl; |
||
92 | |||
93 | /** |
||
94 | * @Assert\NotBlank() |
||
95 | * @Assert\Length(max="191") |
||
96 | * |
||
97 | * @ORM\Column(type="string", length=191) |
||
98 | */ |
||
99 | protected $fullCallBackOkUrl; |
||
100 | |||
101 | /** |
||
102 | * @Assert\NotBlank() |
||
103 | * @Assert\Length(max="191") |
||
104 | * |
||
105 | * @ORM\Column(type="string", length=191) |
||
106 | */ |
||
107 | protected $callBackOkUrl; |
||
108 | |||
109 | /** |
||
110 | * @Assert\NotBlank() |
||
111 | * @Assert\Length(max="191") |
||
112 | * |
||
113 | * @ORM\Column(type="string", length=191) |
||
114 | */ |
||
115 | protected $callBackServerUrl; |
||
116 | |||
117 | /** |
||
118 | * @Assert\NotBlank() |
||
119 | * |
||
120 | * @ORM\Column(type="integer") |
||
121 | */ |
||
122 | protected $languageId; |
||
123 | |||
124 | /** |
||
125 | * @Assert\NotBlank() |
||
126 | * @Assert\Length(max="191") |
||
127 | * |
||
128 | * @ORM\Column(type="string", length=191) |
||
129 | */ |
||
130 | protected $testMode; |
||
131 | |||
132 | /** |
||
133 | * @Assert\NotBlank() |
||
134 | * |
||
135 | * @ORM\Column(type="integer") |
||
136 | */ |
||
137 | protected $paymentGatewayCurrencyCode; |
||
138 | |||
139 | /** |
||
140 | * @Assert\NotBlank() |
||
141 | * |
||
142 | * @ORM\Column(type="integer") |
||
143 | */ |
||
144 | protected $cardTypeId; |
||
145 | |||
146 | /** |
||
147 | * @Assert\NotBlank() |
||
148 | * @Assert\Length(max="191") |
||
149 | * |
||
150 | * @ORM\Column(type="string", length=191) |
||
151 | */ |
||
152 | protected $customerRekvNr; |
||
153 | |||
154 | /** |
||
155 | * @Assert\NotBlank() |
||
156 | * @Assert\Length(max="191") |
||
157 | * |
||
158 | * @ORM\Column(type="string", length=191) |
||
159 | */ |
||
160 | protected $customerName; |
||
161 | |||
162 | /** |
||
163 | * @ORM\Column(type="string", nullable=true) |
||
164 | */ |
||
165 | protected $customerCompany; |
||
166 | |||
167 | /** |
||
168 | * @Assert\NotBlank() |
||
169 | * @Assert\Length(max="191") |
||
170 | * |
||
171 | * @ORM\Column(type="string", length=191) |
||
172 | */ |
||
173 | protected $customerAddress; |
||
174 | |||
175 | /** |
||
176 | * @ORM\Column(type="string", nullable=true) |
||
177 | */ |
||
178 | protected $customerAddress2; |
||
179 | |||
180 | /** |
||
181 | * @Assert\NotBlank() |
||
182 | * @Assert\Length(max="191") |
||
183 | * |
||
184 | * @ORM\Column(type="string", length=191) |
||
185 | */ |
||
186 | protected $customerZipCode; |
||
187 | |||
188 | /** |
||
189 | * @Assert\NotBlank() |
||
190 | * @Assert\Length(max="191") |
||
191 | * |
||
192 | * @ORM\Column(type="string", length=191) |
||
193 | */ |
||
194 | protected $customerCity; |
||
195 | |||
196 | /** |
||
197 | * @Assert\NotBlank() |
||
198 | * |
||
199 | * @ORM\Column(type="integer") |
||
200 | */ |
||
201 | protected $customerCountryId; |
||
202 | |||
203 | /** |
||
204 | * @Assert\NotBlank() |
||
205 | * @Assert\Length(max="191") |
||
206 | * |
||
207 | * @ORM\Column(type="string", length=191) |
||
208 | */ |
||
209 | protected $customerCountry; |
||
210 | |||
211 | /** |
||
212 | * @Assert\NotBlank() |
||
213 | * @Assert\Length(max="191") |
||
214 | * |
||
215 | * @ORM\Column(type="string", length=191) |
||
216 | */ |
||
217 | protected $customerPhone; |
||
218 | |||
219 | /** |
||
220 | * @ORM\Column(type="string", nullable=true) |
||
221 | */ |
||
222 | protected $customerFax; |
||
223 | |||
224 | /** |
||
225 | * @Assert\NotBlank() |
||
226 | * @Assert\Length(max="191") |
||
227 | * |
||
228 | * @ORM\Column(type="string", length=191) |
||
229 | */ |
||
230 | protected $customerEmail; |
||
231 | |||
232 | /** |
||
233 | * @ORM\Column(type="text", nullable=true) |
||
234 | */ |
||
235 | protected $customerNote; |
||
236 | |||
237 | /** |
||
238 | * @ORM\Column(type="string", nullable=true, length=191) |
||
239 | */ |
||
240 | protected $customerCvrnr; |
||
241 | |||
242 | /** |
||
243 | * @Assert\NotBlank() |
||
244 | * |
||
245 | * @ORM\Column(type="integer") |
||
246 | */ |
||
247 | protected $customerCustTypeId; |
||
248 | |||
249 | /** |
||
250 | * @ORM\Column(type="string", nullable=true, length=191) |
||
251 | */ |
||
252 | protected $customerEan; |
||
253 | |||
254 | /** |
||
255 | * @ORM\Column(type="string", nullable=true, length=191) |
||
256 | */ |
||
257 | protected $customerRes1; |
||
258 | |||
259 | /** |
||
260 | * @ORM\Column(type="string", nullable=true, length=191) |
||
261 | */ |
||
262 | protected $customerRes2; |
||
263 | |||
264 | /** |
||
265 | * @ORM\Column(type="string", nullable=true, length=191) |
||
266 | */ |
||
267 | protected $customerRes3; |
||
268 | |||
269 | /** |
||
270 | * @ORM\Column(type="string", nullable=true, length=191) |
||
271 | */ |
||
272 | protected $customerRes4; |
||
273 | |||
274 | /** |
||
275 | * @ORM\Column(type="string", nullable=true, length=191) |
||
276 | */ |
||
277 | protected $customerRes5; |
||
278 | |||
279 | /** |
||
280 | * @Assert\NotBlank() |
||
281 | * @Assert\Length(max="191") |
||
282 | * |
||
283 | * @ORM\Column(type="string", length=191) |
||
284 | */ |
||
285 | protected $customerIp; |
||
286 | |||
287 | /** |
||
288 | * @ORM\Column(type="string", nullable=true, length=191) |
||
289 | */ |
||
290 | protected $deliveryName; |
||
291 | |||
292 | /** |
||
293 | * @ORM\Column(type="string", nullable=true, length=191) |
||
294 | */ |
||
295 | protected $deliveryCompany; |
||
296 | |||
297 | /** |
||
298 | * @ORM\Column(type="string", nullable=true, length=191) |
||
299 | */ |
||
300 | protected $deliveryAddress; |
||
301 | |||
302 | /** |
||
303 | * @ORM\Column(type="string", nullable=true, length=191) |
||
304 | */ |
||
305 | protected $deliveryAddress2; |
||
306 | |||
307 | /** |
||
308 | * @ORM\Column(type="string", nullable=true, length=191) |
||
309 | */ |
||
310 | protected $deliveryZipCode; |
||
311 | |||
312 | /** |
||
313 | * @ORM\Column(type="string", nullable=true, length=191) |
||
314 | */ |
||
315 | protected $deliveryCity; |
||
316 | |||
317 | /** |
||
318 | * @ORM\Column(type="integer", nullable=true) |
||
319 | */ |
||
320 | protected $deliveryCountryID; |
||
321 | |||
322 | /** |
||
323 | * @ORM\Column(type="string", nullable=true, length=191) |
||
324 | */ |
||
325 | protected $deliveryCountry; |
||
326 | |||
327 | /** |
||
328 | * @ORM\Column(type="string", nullable=true, length=191) |
||
329 | */ |
||
330 | protected $deliveryPhone; |
||
331 | |||
332 | /** |
||
333 | * @ORM\Column(type="string", nullable=true, length=191) |
||
334 | */ |
||
335 | protected $deliveryFax; |
||
336 | |||
337 | /** |
||
338 | * @ORM\Column(type="string", nullable=true, length=191) |
||
339 | */ |
||
340 | protected $deliveryEmail; |
||
341 | |||
342 | /** |
||
343 | * @ORM\Column(type="string", nullable=true, length=191) |
||
344 | */ |
||
345 | protected $deliveryEan; |
||
346 | |||
347 | /** |
||
348 | * @Assert\NotBlank() |
||
349 | * @Assert\Length(max="191") |
||
350 | * |
||
351 | * @ORM\Column(type="string", length=191) |
||
352 | */ |
||
353 | protected $shippingMethod; |
||
354 | |||
355 | /** |
||
356 | * @Assert\NotBlank() |
||
357 | * |
||
358 | * @ORM\Column(type="integer") |
||
359 | */ |
||
360 | protected $shippingFeeAmount; |
||
361 | |||
362 | /** |
||
363 | * @Assert\NotBlank() |
||
364 | * |
||
365 | * @ORM\Column(type="string") |
||
366 | */ |
||
367 | protected $shippingFeeCurrency; |
||
368 | |||
369 | /** |
||
370 | * @Assert\NotBlank() |
||
371 | * @Assert\Length(max="191") |
||
372 | * |
||
373 | * @ORM\Column(type="string", length=191) |
||
374 | */ |
||
375 | protected $paymentMethod; |
||
376 | |||
377 | /** |
||
378 | * @Assert\NotBlank() |
||
379 | * |
||
380 | * @ORM\Column(type="integer") |
||
381 | */ |
||
382 | protected $paymentFeeAmount; |
||
383 | |||
384 | /** |
||
385 | * @Assert\NotBlank() |
||
386 | * |
||
387 | * @ORM\Column(type="string") |
||
388 | */ |
||
389 | protected $paymentFeeCurrency; |
||
390 | |||
391 | /** |
||
392 | * @ORM\Column(type="string", nullable=true, length=191) |
||
393 | */ |
||
394 | protected $loadBalancerRealIp; |
||
395 | |||
396 | /** |
||
397 | * @var string |
||
398 | * |
||
399 | * @ORM\Column(type="string", nullable=true, length=191) |
||
400 | */ |
||
401 | protected $referrer; |
||
402 | |||
403 | /** |
||
404 | * @ORM\OneToMany(targetEntity="PaymentLine", mappedBy="payment", cascade={"persist", "remove"}, fetch="EAGER") |
||
405 | */ |
||
406 | protected $paymentLines; |
||
407 | |||
408 | /********************************** |
||
409 | * Properties specific to Altapay * |
||
410 | *********************************/ |
||
411 | |||
412 | /** |
||
413 | * @var string|null |
||
414 | * |
||
415 | * @ORM\Column(type="string", nullable=true, unique=true, length=191) |
||
416 | */ |
||
417 | protected $altapayId; |
||
418 | |||
419 | /** |
||
420 | * @var string|null |
||
421 | * |
||
422 | * @ORM\Column(type="string", nullable=true, length=191) |
||
423 | */ |
||
424 | protected $cardStatus; |
||
425 | |||
426 | /** |
||
427 | * @var string|null |
||
428 | * |
||
429 | * @ORM\Column(type="string", nullable=true, length=191) |
||
430 | */ |
||
431 | protected $creditCardToken; |
||
432 | |||
433 | /** |
||
434 | * @var string|null |
||
435 | * |
||
436 | * @ORM\Column(type="string", nullable=true, length=191) |
||
437 | */ |
||
438 | protected $creditCardMaskedPan; |
||
439 | |||
440 | /** |
||
441 | * @var string|null |
||
442 | * |
||
443 | * @ORM\Column(type="string", nullable=true, length=191) |
||
444 | */ |
||
445 | protected $threeDSecureResult; |
||
446 | |||
447 | /** |
||
448 | * @var string|null |
||
449 | * |
||
450 | * @ORM\Column(type="string", nullable=true, length=191) |
||
451 | */ |
||
452 | protected $liableForChargeback; |
||
453 | |||
454 | /** |
||
455 | * @var string|null |
||
456 | * |
||
457 | * @ORM\Column(type="string", nullable=true, length=191) |
||
458 | */ |
||
459 | protected $blacklistToken; |
||
460 | |||
461 | /** |
||
462 | * @var string|null |
||
463 | * |
||
464 | * @ORM\Column(type="string", nullable=true, length=191) |
||
465 | */ |
||
466 | protected $shop; |
||
467 | |||
468 | /** |
||
469 | * @var string|null |
||
470 | * |
||
471 | * @ORM\Column(type="string", nullable=true, length=191) |
||
472 | */ |
||
473 | protected $terminal; |
||
474 | |||
475 | /** |
||
476 | * @var string|null |
||
477 | * |
||
478 | * @ORM\Column(type="string", nullable=true, length=191) |
||
479 | */ |
||
480 | protected $transactionStatus; |
||
481 | |||
482 | /** |
||
483 | * @var string|null |
||
484 | * |
||
485 | * @ORM\Column(type="string", nullable=true, length=191) |
||
486 | */ |
||
487 | protected $reasonCode; |
||
488 | |||
489 | /** |
||
490 | * @var int|null |
||
491 | * |
||
492 | * @ORM\Column(type="integer", nullable=true) |
||
493 | */ |
||
494 | protected $merchantCurrency; |
||
495 | |||
496 | /** |
||
497 | * @var string|null |
||
498 | * |
||
499 | * @ORM\Column(type="string", nullable=true, length=191) |
||
500 | */ |
||
501 | protected $merchantCurrencyAlpha; |
||
502 | |||
503 | /** |
||
504 | * @var int|null |
||
505 | * |
||
506 | * @ORM\Column(type="integer", nullable=true) |
||
507 | */ |
||
508 | protected $cardHolderCurrency; |
||
509 | |||
510 | /** |
||
511 | * @var string|null |
||
512 | * |
||
513 | * @ORM\Column(type="string", nullable=true, length=191) |
||
514 | */ |
||
515 | protected $cardHolderCurrencyAlpha; |
||
516 | |||
517 | /** |
||
518 | * @var float|null |
||
519 | * |
||
520 | * @ORM\Column(type="decimal", precision=10, scale=2) |
||
521 | */ |
||
522 | protected $reservedAmount; |
||
523 | |||
524 | /** |
||
525 | * @var float|null |
||
526 | * |
||
527 | * @ORM\Column(type="decimal", precision=10, scale=2) |
||
528 | */ |
||
529 | protected $capturedAmount; |
||
530 | |||
531 | /** |
||
532 | * @var float|null |
||
533 | * |
||
534 | * @ORM\Column(type="decimal", precision=10, scale=2) |
||
535 | */ |
||
536 | protected $refundedAmount; |
||
537 | |||
538 | /** |
||
539 | * @var float|null |
||
540 | * |
||
541 | * @ORM\Column(type="decimal", precision=10, scale=2) |
||
542 | */ |
||
543 | protected $recurringDefaultAmount; |
||
544 | |||
545 | /** |
||
546 | * @var \DateTime|null |
||
547 | * |
||
548 | * @ORM\Column(type="datetime", nullable=true) |
||
549 | */ |
||
550 | protected $createdDate; |
||
551 | |||
552 | /** |
||
553 | * @var \DateTime|null |
||
554 | * |
||
555 | * @ORM\Column(type="datetime", nullable=true) |
||
556 | */ |
||
557 | protected $updatedDate; |
||
558 | |||
559 | /** |
||
560 | * @var string|null |
||
561 | * |
||
562 | * @ORM\Column(type="string", nullable=true, length=191) |
||
563 | */ |
||
564 | protected $paymentNature; |
||
565 | |||
566 | /** |
||
567 | * @var bool|null |
||
568 | * |
||
569 | * @ORM\Column(type="boolean", nullable=true) |
||
570 | */ |
||
571 | protected $supportsRefunds; |
||
572 | |||
573 | /** |
||
574 | * @var bool|null |
||
575 | * |
||
576 | * @ORM\Column(type="boolean", nullable=true) |
||
577 | */ |
||
578 | protected $supportsRelease; |
||
579 | |||
580 | /** |
||
581 | * @var bool|null |
||
582 | * |
||
583 | * @ORM\Column(type="boolean", nullable=true) |
||
584 | */ |
||
585 | protected $supportsMultipleCaptures; |
||
586 | |||
587 | /** |
||
588 | * @var bool|null |
||
589 | * |
||
590 | * @ORM\Column(type="boolean", nullable=true) |
||
591 | */ |
||
592 | protected $supportsMultipleRefunds; |
||
593 | |||
594 | /** |
||
595 | * @var float|null |
||
596 | * |
||
597 | * @ORM\Column(type="float", nullable=true) |
||
598 | */ |
||
599 | protected $fraudRiskScore; |
||
600 | |||
601 | /** |
||
602 | * @var string|null |
||
603 | * |
||
604 | * @ORM\Column(type="string", nullable=true, length=191) |
||
605 | */ |
||
606 | protected $fraudExplanation; |
||
607 | |||
608 | public function __construct() |
||
618 | |||
619 | /** |
||
620 | * This will transform a Dandomain Payment (parent) to a Payment (child). |
||
621 | * |
||
622 | * @param DandomainPayment $dandomainPayment |
||
623 | * |
||
624 | * @return Payment |
||
625 | */ |
||
626 | public static function createFromDandomainPayment(DandomainPayment $dandomainPayment) |
||
661 | |||
662 | /** |
||
663 | * Returns true if the payment can be captured. |
||
664 | * |
||
665 | * @return bool |
||
666 | */ |
||
667 | public function isCaptureable(): bool |
||
679 | |||
680 | /** |
||
681 | * Returns true if the payment can be refunded. |
||
682 | * |
||
683 | * @return bool |
||
684 | */ |
||
685 | public function isRefundable(): bool |
||
697 | |||
698 | /** |
||
699 | * @return float |
||
700 | */ |
||
701 | public function refundableAmount() |
||
707 | |||
708 | /** |
||
709 | * @return float |
||
710 | */ |
||
711 | public function capturableAmount() |
||
718 | |||
719 | // @todo create type hints for getters and setters |
||
720 | |||
721 | public function setTotalAmount(Money $totalAmount): DandomainPayment |
||
730 | |||
731 | public function getTotalAmount(): ?Money |
||
744 | |||
745 | public function setShippingFee(Money $shippingFee): DandomainPayment |
||
754 | |||
755 | public function getShippingFee(): ?Money |
||
768 | |||
769 | public function setPaymentFee(Money $paymentFee): DandomainPayment |
||
778 | |||
779 | public function getPaymentFee(): ?Money |
||
792 | |||
793 | /** |
||
794 | * @return int |
||
795 | */ |
||
796 | public function getId(): ?int |
||
800 | |||
801 | /** |
||
802 | * @param int $id |
||
803 | * |
||
804 | * @return Payment |
||
805 | */ |
||
806 | public function setId(int $id): self |
||
812 | |||
813 | /** |
||
814 | * @return null|string |
||
815 | */ |
||
816 | public function getAltapayId() |
||
820 | |||
821 | /** |
||
822 | * @param null|string $altapayId |
||
823 | * |
||
824 | * @return Payment |
||
825 | */ |
||
826 | public function setAltapayId($altapayId) |
||
832 | |||
833 | /** |
||
834 | * @return null|string |
||
835 | */ |
||
836 | public function getCardStatus() |
||
840 | |||
841 | /** |
||
842 | * @param null|string $cardStatus |
||
843 | * |
||
844 | * @return Payment |
||
845 | */ |
||
846 | public function setCardStatus($cardStatus) |
||
852 | |||
853 | /** |
||
854 | * @return null|string |
||
855 | */ |
||
856 | public function getCreditCardToken() |
||
860 | |||
861 | /** |
||
862 | * @param null|string $creditCardToken |
||
863 | * |
||
864 | * @return Payment |
||
865 | */ |
||
866 | public function setCreditCardToken($creditCardToken) |
||
872 | |||
873 | /** |
||
874 | * @return null|string |
||
875 | */ |
||
876 | public function getCreditCardMaskedPan() |
||
880 | |||
881 | /** |
||
882 | * @param null|string $creditCardMaskedPan |
||
883 | * |
||
884 | * @return Payment |
||
885 | */ |
||
886 | public function setCreditCardMaskedPan($creditCardMaskedPan) |
||
892 | |||
893 | /** |
||
894 | * @return null|string |
||
895 | */ |
||
896 | public function getThreeDSecureResult() |
||
900 | |||
901 | /** |
||
902 | * @param null|string $threeDSecureResult |
||
903 | * |
||
904 | * @return Payment |
||
905 | */ |
||
906 | public function setThreeDSecureResult($threeDSecureResult) |
||
912 | |||
913 | /** |
||
914 | * @return null|string |
||
915 | */ |
||
916 | public function getLiableForChargeback() |
||
920 | |||
921 | /** |
||
922 | * @param null|string $liableForChargeback |
||
923 | * |
||
924 | * @return Payment |
||
925 | */ |
||
926 | public function setLiableForChargeback($liableForChargeback) |
||
932 | |||
933 | /** |
||
934 | * @return null|string |
||
935 | */ |
||
936 | public function getBlacklistToken() |
||
940 | |||
941 | /** |
||
942 | * @param null|string $blacklistToken |
||
943 | * |
||
944 | * @return Payment |
||
945 | */ |
||
946 | public function setBlacklistToken($blacklistToken) |
||
952 | |||
953 | /** |
||
954 | * @return null|string |
||
955 | */ |
||
956 | public function getShop() |
||
960 | |||
961 | /** |
||
962 | * @param null|string $shop |
||
963 | * |
||
964 | * @return Payment |
||
965 | */ |
||
966 | public function setShop($shop) |
||
972 | |||
973 | /** |
||
974 | * @return null|string |
||
975 | */ |
||
976 | public function getTerminal() |
||
980 | |||
981 | /** |
||
982 | * @param null|string $terminal |
||
983 | * |
||
984 | * @return Payment |
||
985 | */ |
||
986 | public function setTerminal($terminal) |
||
992 | |||
993 | /** |
||
994 | * @return null|string |
||
995 | */ |
||
996 | public function getTransactionStatus() |
||
1000 | |||
1001 | /** |
||
1002 | * @param null|string $transactionStatus |
||
1003 | * |
||
1004 | * @return Payment |
||
1005 | */ |
||
1006 | public function setTransactionStatus($transactionStatus) |
||
1012 | |||
1013 | /** |
||
1014 | * @return null|string |
||
1015 | */ |
||
1016 | public function getReasonCode() |
||
1020 | |||
1021 | /** |
||
1022 | * @param null|string $reasonCode |
||
1023 | * |
||
1024 | * @return Payment |
||
1025 | */ |
||
1026 | public function setReasonCode($reasonCode) |
||
1032 | |||
1033 | /** |
||
1034 | * @return int|null |
||
1035 | */ |
||
1036 | public function getMerchantCurrency() |
||
1040 | |||
1041 | /** |
||
1042 | * @param int|null $merchantCurrency |
||
1043 | * |
||
1044 | * @return Payment |
||
1045 | */ |
||
1046 | public function setMerchantCurrency($merchantCurrency) |
||
1052 | |||
1053 | /** |
||
1054 | * @return null|string |
||
1055 | */ |
||
1056 | public function getMerchantCurrencyAlpha() |
||
1060 | |||
1061 | /** |
||
1062 | * @param null|string $merchantCurrencyAlpha |
||
1063 | * |
||
1064 | * @return Payment |
||
1065 | */ |
||
1066 | public function setMerchantCurrencyAlpha($merchantCurrencyAlpha) |
||
1072 | |||
1073 | /** |
||
1074 | * @return int|null |
||
1075 | */ |
||
1076 | public function getCardHolderCurrency() |
||
1080 | |||
1081 | /** |
||
1082 | * @param int|null $cardHolderCurrency |
||
1083 | * |
||
1084 | * @return Payment |
||
1085 | */ |
||
1086 | public function setCardHolderCurrency($cardHolderCurrency) |
||
1092 | |||
1093 | /** |
||
1094 | * @return null|string |
||
1095 | */ |
||
1096 | public function getCardHolderCurrencyAlpha() |
||
1100 | |||
1101 | /** |
||
1102 | * @param null|string $cardHolderCurrencyAlpha |
||
1103 | * |
||
1104 | * @return Payment |
||
1105 | */ |
||
1106 | public function setCardHolderCurrencyAlpha($cardHolderCurrencyAlpha) |
||
1112 | |||
1113 | /** |
||
1114 | * @return float|null |
||
1115 | */ |
||
1116 | public function getReservedAmount() |
||
1120 | |||
1121 | /** |
||
1122 | * @param float|null $reservedAmount |
||
1123 | * |
||
1124 | * @return Payment |
||
1125 | */ |
||
1126 | public function setReservedAmount($reservedAmount) |
||
1132 | |||
1133 | /** |
||
1134 | * @return float|null |
||
1135 | */ |
||
1136 | public function getCapturedAmount() |
||
1140 | |||
1141 | /** |
||
1142 | * @param float|null $capturedAmount |
||
1143 | * |
||
1144 | * @return Payment |
||
1145 | */ |
||
1146 | public function setCapturedAmount($capturedAmount) |
||
1152 | |||
1153 | /** |
||
1154 | * @return float|null |
||
1155 | */ |
||
1156 | public function getRefundedAmount() |
||
1160 | |||
1161 | /** |
||
1162 | * @param float|null $refundedAmount |
||
1163 | * |
||
1164 | * @return Payment |
||
1165 | */ |
||
1166 | public function setRefundedAmount($refundedAmount) |
||
1172 | |||
1173 | /** |
||
1174 | * @return float|null |
||
1175 | */ |
||
1176 | public function getRecurringDefaultAmount() |
||
1180 | |||
1181 | /** |
||
1182 | * @param float|null $recurringDefaultAmount |
||
1183 | * |
||
1184 | * @return Payment |
||
1185 | */ |
||
1186 | public function setRecurringDefaultAmount($recurringDefaultAmount) |
||
1192 | |||
1193 | /** |
||
1194 | * @return \DateTime|null |
||
1195 | */ |
||
1196 | public function getCreatedDate() |
||
1200 | |||
1201 | /** |
||
1202 | * @param \DateTimeInterface|null $createdDate |
||
1203 | * |
||
1204 | * @return Payment |
||
1205 | */ |
||
1206 | public function setCreatedDate($createdDate) |
||
1212 | |||
1213 | /** |
||
1214 | * @return \DateTime|null |
||
1215 | */ |
||
1216 | public function getUpdatedDate() |
||
1220 | |||
1221 | /** |
||
1222 | * @param \DateTimeInterface|null $updatedDate |
||
1223 | * |
||
1224 | * @return Payment |
||
1225 | */ |
||
1226 | public function setUpdatedDate($updatedDate) |
||
1232 | |||
1233 | /** |
||
1234 | * @return null|string |
||
1235 | */ |
||
1236 | public function getPaymentNature() |
||
1240 | |||
1241 | /** |
||
1242 | * @param null|string $paymentNature |
||
1243 | * |
||
1244 | * @return Payment |
||
1245 | */ |
||
1246 | public function setPaymentNature($paymentNature) |
||
1252 | |||
1253 | /** |
||
1254 | * @return bool|null |
||
1255 | */ |
||
1256 | public function getSupportsRefunds() |
||
1260 | |||
1261 | /** |
||
1262 | * @param bool|null $supportsRefunds |
||
1263 | * |
||
1264 | * @return Payment |
||
1265 | */ |
||
1266 | public function setSupportsRefunds($supportsRefunds) |
||
1272 | |||
1273 | /** |
||
1274 | * @return bool|null |
||
1275 | */ |
||
1276 | public function getSupportsRelease() |
||
1280 | |||
1281 | /** |
||
1282 | * @param bool|null $supportsRelease |
||
1283 | * |
||
1284 | * @return Payment |
||
1285 | */ |
||
1286 | public function setSupportsRelease($supportsRelease) |
||
1292 | |||
1293 | /** |
||
1294 | * @return bool|null |
||
1295 | */ |
||
1296 | public function getSupportsMultipleCaptures() |
||
1300 | |||
1301 | /** |
||
1302 | * @param bool|null $supportsMultipleCaptures |
||
1303 | * |
||
1304 | * @return Payment |
||
1305 | */ |
||
1306 | public function setSupportsMultipleCaptures($supportsMultipleCaptures) |
||
1312 | |||
1313 | /** |
||
1314 | * @return bool|null |
||
1315 | */ |
||
1316 | public function getSupportsMultipleRefunds() |
||
1320 | |||
1321 | /** |
||
1322 | * @param bool|null $supportsMultipleRefunds |
||
1323 | * |
||
1324 | * @return Payment |
||
1325 | */ |
||
1326 | public function setSupportsMultipleRefunds($supportsMultipleRefunds) |
||
1332 | |||
1333 | /** |
||
1334 | * @return float|null |
||
1335 | */ |
||
1336 | public function getFraudRiskScore() |
||
1340 | |||
1341 | /** |
||
1342 | * @param float|null $fraudRiskScore |
||
1343 | * |
||
1344 | * @return Payment |
||
1345 | */ |
||
1346 | public function setFraudRiskScore($fraudRiskScore) |
||
1352 | |||
1353 | /** |
||
1354 | * @return null|string |
||
1355 | */ |
||
1356 | public function getFraudExplanation() |
||
1360 | |||
1361 | /** |
||
1362 | * @param null|string $fraudExplanation |
||
1363 | * |
||
1364 | * @return Payment |
||
1365 | */ |
||
1366 | public function setFraudExplanation($fraudExplanation) |
||
1372 | } |
||
1373 |
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..