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 |
||
17 | 1 | public function sendData($data): ResponseInterface |
|
18 | { |
||
19 | 1 | $response = $this->sendRequest( |
|
20 | 1 | Request::METHOD_GET, |
|
21 | 1 | sprintf( |
|
22 | 1 | '/api/transaction/%s', |
|
23 | 1 | $this->getTransactionReference() |
|
24 | ) |
||
25 | ); |
||
26 | |||
27 | 1 | return new FetchTransactionResponse( |
|
28 | 1 | $this, |
|
29 | 1 | $response->getStatusCode(), |
|
30 | 1 | $this->getResponseBody($response) |
|
31 | ); |
||
34 |