Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | 1 | public function sendData($data): ResponseInterface |
|
16 | { |
||
17 | 1 | $response = $this->sendRequest( |
|
18 | 1 | Request::METHOD_GET, |
|
19 | 1 | sprintf( |
|
20 | 1 | '/api/transaction/%s', |
|
21 | 1 | $this->getTransactionReference() |
|
22 | ) |
||
23 | ); |
||
24 | |||
25 | 1 | return new CompleteAuthorizeResponse( |
|
26 | 1 | $this, |
|
27 | 1 | $response->getStatusCode(), |
|
28 | 1 | $this->getResponseBody($response) |
|
29 | ); |
||
32 |