| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | class CreateTransactionResponse extends AbstractResponse |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * {@inheritdoc} |
||
| 11 | */ |
||
| 12 | public function isSuccessful(): bool |
||
| 13 | { |
||
| 14 | return $this->getTransactionStatus() === self::TRANSACTION_STATUS_STARTED; |
||
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * {@inheritdoc} |
||
| 19 | */ |
||
| 20 | public function isRedirect(): bool |
||
| 21 | { |
||
| 22 | return isset($this->data['acquirerRequestUri']); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | public function getRedirectUrl(): string |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | protected function getTransactionStatus(): ?string |
||
| 41 |