1 | <?php |
||
13 | class CompletePurchaseResponse |
||
14 | { |
||
15 | /** |
||
16 | * @var bool |
||
17 | */ |
||
18 | protected $isSuccessful; |
||
19 | /** |
||
20 | * @var Currency |
||
21 | */ |
||
22 | protected $currency; |
||
23 | /** |
||
24 | * @var Money |
||
25 | */ |
||
26 | protected $amount; |
||
27 | /** |
||
28 | * @var Money |
||
29 | */ |
||
30 | protected $fee; |
||
31 | /** |
||
32 | * @var \DateTime |
||
33 | */ |
||
34 | protected $time; |
||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $transactionReference; |
||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | protected $transactionId; |
||
43 | /** |
||
44 | * @var string |
||
45 | */ |
||
46 | protected $payer; |
||
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | */ |
||
51 | public function getTransactionId() |
||
55 | |||
56 | /** |
||
57 | * @param string $transactionId |
||
58 | * @return CompletePurchaseResponse |
||
59 | */ |
||
60 | public function setTransactionId($transactionId) |
||
66 | |||
67 | /** |
||
68 | * @return Currency |
||
69 | */ |
||
70 | public function getCurrency() |
||
74 | |||
75 | /** |
||
76 | * @return Money |
||
77 | */ |
||
78 | public function getAmount(): Money |
||
82 | |||
83 | /** |
||
84 | * @param Money $amount |
||
85 | * @return CompletePurchaseResponse |
||
86 | */ |
||
87 | public function setAmount(Money $amount) |
||
94 | |||
95 | /** |
||
96 | * @return Money |
||
97 | */ |
||
98 | public function getFee() |
||
106 | |||
107 | /** |
||
108 | * @param Money $fee |
||
109 | * @return CompletePurchaseResponse |
||
110 | */ |
||
111 | public function setFee($fee) |
||
117 | |||
118 | /** |
||
119 | * @return \DateTime of purchase in UTC |
||
120 | */ |
||
121 | public function getTime() |
||
125 | |||
126 | /** |
||
127 | * @param \DateTime $time In UTC |
||
128 | * @return CompletePurchaseResponse |
||
129 | */ |
||
130 | public function setTime(\DateTime $time) |
||
136 | |||
137 | /** |
||
138 | * @return string |
||
139 | */ |
||
140 | public function getTransactionReference() |
||
144 | |||
145 | /** |
||
146 | * @param string $transactionReference |
||
147 | * @return CompletePurchaseResponse |
||
148 | */ |
||
149 | public function setTransactionReference($transactionReference) |
||
155 | |||
156 | /** |
||
157 | * @return string |
||
158 | */ |
||
159 | public function getPayer() |
||
163 | |||
164 | /** |
||
165 | * @param string $payer |
||
166 | * @return CompletePurchaseResponse |
||
167 | */ |
||
168 | public function setPayer($payer) |
||
174 | |||
175 | /** |
||
176 | * @param string $isSuccessful |
||
177 | * @return CompletePurchaseResponse |
||
178 | */ |
||
179 | public function setIsSuccessful($isSuccessful) |
||
185 | |||
186 | /** |
||
187 | * @return string |
||
188 | */ |
||
189 | public function getIsSuccessful() |
||
193 | } |
||
194 |
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.