Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class CompletePurchaseRequest extends AbstractRequest |
||
17 | { |
||
18 | /** |
||
19 | * Get the data for this request. |
||
20 | * |
||
21 | * @return array request data |
||
22 | */ |
||
23 | 2 | public function getData() |
|
24 | { |
||
25 | 2 | $this->validate('secret'); |
|
26 | |||
27 | 2 | return $this->httpRequest->request->all(); |
|
28 | } |
||
29 | |||
30 | /** |
||
31 | * Send the request with specified data. |
||
32 | * |
||
33 | * @param mixed $data The data to send |
||
34 | * @return CompletePurchaseResponse |
||
35 | */ |
||
36 | 1 | public function sendData($data) |
|
39 | } |
||
40 | } |
||
41 |