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