| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class RefundResponse extends AbstractResponse |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * {@inheritdoc} |
||
| 14 | */ |
||
| 15 | public function isSuccessful(): bool |
||
| 16 | { |
||
| 17 | return $this->getTransactionStatus() === self::TRANSACTION_STATUS_COMPLETED; |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * {@inheritdoc} |
||
| 22 | */ |
||
| 23 | public function isCancelled(): bool |
||
| 24 | { |
||
| 25 | return $this->getTransactionStatus() === self::TRANSACTION_STATUS_CANCELLED; |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritdoc} |
||
| 30 | */ |
||
| 31 | protected function getTransactionStatus(): ?string |
||
| 34 | } |
||
| 35 | } |
||
| 36 |