| Total Complexity | 5 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 75% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class CompleteAuthoriseAndCaptureResponse extends AbstractResponse |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * {@inheritdoc} |
||
| 15 | */ |
||
| 16 | 1 | public function isSuccessful(): bool |
|
| 17 | { |
||
| 18 | 1 | return isset($this->data['status']) && in_array($this->data['status'], [ |
|
| 19 | 1 | self::RESPONSE_STATUS_COMPLETED, |
|
| 20 | 1 | self::RESPONSE_STATUS_SETTLED, |
|
| 21 | ]); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | */ |
||
| 27 | 1 | public function isCancelled(): bool |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | public function getTransactionReference(): ?string |
||
| 38 | } |
||
| 39 | } |
||
| 40 |