Total Complexity | 5 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class AuthorizeResponse extends AbstractResponse |
||
10 | { |
||
11 | /** |
||
12 | * @inheritDoc |
||
13 | */ |
||
14 | public function getRedirectUrl() |
||
15 | { |
||
16 | return (string) $this->data->po_redirect_url; |
||
17 | } |
||
18 | |||
19 | |||
20 | /** |
||
21 | * @inheritdoc |
||
22 | */ |
||
23 | public function isSuccessful() |
||
24 | { |
||
25 | return $this->getCode() != 1; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @inheritDoc |
||
30 | */ |
||
31 | public function getMessage() |
||
32 | { |
||
33 | return (string) $this->data->po_error_reason; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @inheritDoc |
||
38 | */ |
||
39 | public function getCode() |
||
40 | { |
||
41 | return (string) $this->data->po_error_code; |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @inheritDoc |
||
46 | */ |
||
47 | public function getTransactionReference() |
||
50 | } |
||
51 | } |
||
52 |