| Total Complexity | 10 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class PurchaseResponse extends AbstractResponse implements RedirectResponseInterface |
||
| 12 | { |
||
| 13 | public function isSuccessful() |
||
| 16 | } |
||
| 17 | |||
| 18 | public function isRedirect() |
||
| 19 | { |
||
| 20 | return empty($this->data->errors); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getMessage() |
||
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getRedirectUrl() |
||
| 33 | { |
||
| 34 | if ($this->isRedirect()) { |
||
| 35 | return $this->data->redirectUrl; |
||
| 36 | } |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getRedirectMethod() |
||
| 40 | { |
||
| 41 | return 'GET'; |
||
| 42 | } |
||
| 43 | |||
| 44 | public function getRedirectData() |
||
| 47 | } |
||
| 48 | |||
| 49 | public function getHostedCheckoutId() |
||
| 54 |