Total Complexity | 7 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 7 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
8 | class TransactionStatusResponse extends AbstractResponse |
||
9 | { |
||
10 | /** |
||
11 | * {@inheritdoc} |
||
12 | */ |
||
13 | 2 | public function isSuccessful(): bool |
|
14 | { |
||
15 | 2 | return (isset($this->data['status']) && in_array($this->data['status'], [ |
|
16 | 1 | self::RESPONSE_STATUS_COMPLETED, |
|
17 | 2 | self::RESPONSE_STATUS_SETTLED, |
|
18 | 2 | ])) && (isset($this->data['statusCode']) && $this->data['statusCode'] === 200); |
|
19 | } |
||
20 | |||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | 1 | public function isCancelled(): bool |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | 1 | public function getTransactionReference(): ?string |
|
37 |