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