| Total Complexity | 6 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 9 | class CompleteAuthoriseAndCaptureResponse extends AbstractResponse |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * {@inheritdoc} |
||
| 13 | */ |
||
| 14 | 2 | public function isSuccessful(): bool |
|
| 15 | { |
||
| 16 | 2 | return isset($this->data['status']) && in_array($this->data['status'], [ |
|
| 17 | 2 | self::RESPONSE_STATUS_COMPLETED, |
|
| 18 | 2 | self::RESPONSE_STATUS_SETTLED, |
|
| 19 | ]); |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * {@inheritdoc} |
||
| 24 | * |
||
| 25 | * In case there is no status 'cancelled' available yet, look up for a statusCode queryString in the HttpRequest. |
||
| 26 | * Icepay redirects you to the complete page with the statusCode query string. |
||
| 27 | */ |
||
| 28 | 1 | public function isCancelled(): bool |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | 1 | public function getTransactionReference(): ?string |
|
| 40 | } |
||
| 41 | } |
||
| 42 |