| Total Complexity | 11 | 
| Total Lines | 41 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 11 | class RedirectFlowResponse extends AbstractResponse implements RedirectResponseInterface | ||
| 12 | { | ||
| 13 | public function isSuccessful() | ||
| 14 |     { | ||
| 15 | return false; | ||
| 16 | } | ||
| 17 | |||
| 18 | public function isRedirect() | ||
| 19 |     { | ||
| 20 | return !isset($this->data['error']) && isset($this->data['redirect_flows']); | ||
| 21 | } | ||
| 22 | |||
| 23 | public function getTransactionReference() | ||
| 24 |     { | ||
| 25 |         if ($this->isRedirect()) { | ||
| 26 | return $this->data['redirect_flows']['id']; | ||
| 27 | } | ||
| 28 | } | ||
| 29 | |||
| 30 | public function getMessage() | ||
| 34 | } | ||
| 35 | } | ||
| 36 | |||
| 37 | public function getRedirectUrl() | ||
| 41 | } | ||
| 42 | } | ||
| 43 | |||
| 44 | public function getRedirectMethod() | ||
| 45 |     { | ||
| 46 | return 'GET'; | ||
| 47 | } | ||
| 48 | |||
| 49 | public function getRedirectData() | ||
| 52 | } | ||
| 53 | } | ||
| 54 |