1 | <?php |
||
21 | class CompletePurchaseResponse |
||
22 | { |
||
23 | /** |
||
24 | * @var bool |
||
25 | */ |
||
26 | protected $isSuccessful; |
||
27 | /** |
||
28 | * @var Currency |
||
29 | */ |
||
30 | protected $currency; |
||
31 | /** |
||
32 | * @var Money |
||
33 | */ |
||
34 | protected $amount; |
||
35 | /** |
||
36 | * @var Money |
||
37 | */ |
||
38 | protected $fee; |
||
39 | /** |
||
40 | * @var \DateTime |
||
41 | */ |
||
42 | protected $time; |
||
43 | /** |
||
44 | * @var string |
||
45 | */ |
||
46 | protected $transactionReference; |
||
47 | /** |
||
48 | * @var string |
||
49 | */ |
||
50 | protected $transactionId; |
||
51 | /** |
||
52 | * @var string |
||
53 | */ |
||
54 | protected $payer; |
||
55 | |||
56 | /** |
||
57 | * @return string |
||
58 | */ |
||
59 | 10 | public function getTransactionId() |
|
63 | |||
64 | /** |
||
65 | * @param string $transactionId |
||
66 | * @return CompletePurchaseResponse |
||
67 | */ |
||
68 | 10 | public function setTransactionId($transactionId) |
|
74 | |||
75 | /** |
||
76 | * @return Currency |
||
77 | */ |
||
78 | 10 | public function getCurrency() |
|
82 | |||
83 | /** |
||
84 | * @return Money |
||
85 | */ |
||
86 | 10 | public function getAmount(): Money |
|
90 | |||
91 | /** |
||
92 | * @param Money $amount |
||
93 | * @return CompletePurchaseResponse |
||
94 | */ |
||
95 | 10 | public function setAmount(Money $amount) |
|
102 | |||
103 | /** |
||
104 | * @return Money |
||
105 | */ |
||
106 | 10 | public function getFee() |
|
114 | |||
115 | /** |
||
116 | * @param Money $fee |
||
117 | * @return CompletePurchaseResponse |
||
118 | */ |
||
119 | 4 | public function setFee($fee) |
|
125 | |||
126 | /** |
||
127 | * @return \DateTime of purchase in UTC |
||
128 | */ |
||
129 | 10 | public function getTime() |
|
133 | |||
134 | /** |
||
135 | * @param \DateTime $time In UTC |
||
136 | * @return CompletePurchaseResponse |
||
137 | */ |
||
138 | 10 | public function setTime(\DateTime $time) |
|
144 | |||
145 | /** |
||
146 | * @return string |
||
147 | */ |
||
148 | 10 | public function getTransactionReference() |
|
152 | |||
153 | /** |
||
154 | * @param string $transactionReference |
||
155 | * @return CompletePurchaseResponse |
||
156 | */ |
||
157 | 10 | public function setTransactionReference($transactionReference) |
|
163 | |||
164 | /** |
||
165 | * @return string |
||
166 | */ |
||
167 | 4 | public function getPayer() |
|
171 | |||
172 | /** |
||
173 | * @param string $payer |
||
174 | * @return CompletePurchaseResponse |
||
175 | */ |
||
176 | 10 | public function setPayer($payer) |
|
182 | |||
183 | /** |
||
184 | * @param string $isSuccessful |
||
185 | * @return CompletePurchaseResponse |
||
186 | */ |
||
187 | 10 | public function setIsSuccessful($isSuccessful) |
|
193 | |||
194 | /** |
||
195 | * @return string |
||
196 | */ |
||
197 | 10 | public function getIsSuccessful() |
|
201 | } |
||
202 |
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.