| Total Complexity | 5 | 
| Total Lines | 27 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 10 | class CompletePurchaseRequest extends AbstractRequest | ||
| 11 | { | ||
| 12 | public function getHostedCheckoutId() | ||
| 15 | } | ||
| 16 | |||
| 17 | public function setHostedCheckoutId($value) | ||
| 20 | } | ||
| 21 | |||
| 22 | public function getData() | ||
| 23 |     { | ||
| 24 |         $this->validate('merchantId', 'hostedCheckoutId'); | ||
| 25 | |||
| 26 | return $this->httpRequest->request->all(); | ||
| 27 | } | ||
| 28 | |||
| 29 | protected function createResponse($data) | ||
| 30 |     { | ||
| 31 | return $this->response = new CompletePurchaseResponse($this, json_decode($data)); | ||
| 32 | } | ||
| 33 | |||
| 34 | protected function getAction() | ||
| 37 | } | ||
| 38 | } | ||
| 39 |