| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 66.67% |
| Changes | 6 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 8 | class TransactionStatusResponse extends AbstractResponse |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * {@inheritdoc} |
||
| 12 | */ |
||
| 13 | 2 | public function isSuccessful(): bool |
|
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * {@inheritdoc} |
||
| 20 | */ |
||
| 21 | 1 | public function isCancelled(): bool |
|
| 22 | { |
||
| 23 | 1 | return parent::isCancelled() || $this->data['statusCode'] === self::RESPONSE_STATUS_CANCELLED; |
|
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | public function getTransactionReference(): ?string |
||
| 32 | } |
||
| 33 | } |
||
| 34 |