| Total Complexity | 6 | 
| Total Lines | 27 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 11 | class PurchaseResponse extends AbstractResponse implements RedirectResponseInterface { | ||
| 12 | public function isSuccessful() | ||
| 13 |     { | ||
| 14 | return false; | ||
| 15 | } | ||
| 16 | |||
| 17 | public function isRedirect() | ||
| 20 | } | ||
| 21 | |||
| 22 | public function getRedirectUrl() | ||
| 23 |     { | ||
| 24 | return $this->getRedirectMethod() === 'POST' ? $this->data['endpoint'] : $this->data['url']; | ||
| 25 | } | ||
| 26 | |||
| 27 | public function getRedirectData() | ||
| 32 | ]; | ||
| 33 | } | ||
| 34 | |||
| 35 | public function getRedirectMethod() | ||
| 38 | } | ||
| 39 | } |