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