1 | <?php |
||
8 | class RefundCapturedReservation extends Payload implements RefundCapturedReservationInterface |
||
9 | { |
||
10 | use OrderLineArrayTrait; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $transactionId; |
||
16 | |||
17 | /** |
||
18 | * @var int |
||
19 | */ |
||
20 | private $amountValue; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $amountCurrency; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $reconciliationIdentifier; |
||
31 | |||
32 | /** |
||
33 | * @var boolean |
||
34 | */ |
||
35 | private $allowOverRefund; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | private $invoiceNumber; |
||
41 | |||
42 | 9 | public function __construct(string $transactionId) |
|
47 | |||
48 | /** |
||
49 | * @return array |
||
50 | */ |
||
51 | 6 | public function getPayload() : array |
|
66 | |||
67 | 6 | public function validate() |
|
76 | |||
77 | /** |
||
78 | * @return string |
||
79 | */ |
||
80 | 3 | public function getTransactionId(): string |
|
84 | |||
85 | /** |
||
86 | * @param string $transactionId |
||
87 | * @return RefundCapturedReservation |
||
88 | */ |
||
89 | 3 | public function setTransactionId(string $transactionId) : self |
|
94 | |||
95 | /** |
||
96 | * @return Money |
||
97 | */ |
||
98 | 9 | public function getAmount(): ?Money |
|
102 | |||
103 | /** |
||
104 | * @param Money $amount |
||
105 | * @return RefundCapturedReservation |
||
106 | */ |
||
107 | 6 | public function setAmount(Money $amount) : self |
|
114 | |||
115 | /** |
||
116 | * @return string |
||
117 | */ |
||
118 | 3 | public function getReconciliationIdentifier(): ?string |
|
122 | |||
123 | /** |
||
124 | * @param string $reconciliationIdentifier |
||
125 | * @return RefundCapturedReservation |
||
126 | */ |
||
127 | 6 | public function setReconciliationIdentifier(string $reconciliationIdentifier) : self |
|
132 | |||
133 | /** |
||
134 | * @return bool |
||
135 | */ |
||
136 | 3 | public function isAllowOverRefund(): ?bool |
|
140 | |||
141 | /** |
||
142 | * @param bool $allowOverRefund |
||
143 | * @return RefundCapturedReservation |
||
144 | */ |
||
145 | 6 | public function setAllowOverRefund(bool $allowOverRefund) : self |
|
150 | |||
151 | /** |
||
152 | * @return string |
||
153 | */ |
||
154 | 3 | public function getInvoiceNumber(): ?string |
|
158 | |||
159 | /** |
||
160 | * @param string $invoiceNumber |
||
161 | * @return RefundCapturedReservation |
||
162 | */ |
||
163 | 6 | public function setInvoiceNumber(string $invoiceNumber) : self |
|
168 | } |
||
169 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.