Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
26 | 2 | public function send(ApiRequestInterface $apiRequest) |
|
27 | { |
||
28 | try { |
||
29 | 2 | return new ApiResponse( |
|
30 | 2 | $this->client->send($apiRequest->getRequest(), $apiRequest->getOptions()) |
|
31 | 1 | ); |
|
32 | 1 | } catch (RequestException $exception) { |
|
33 | 1 | throw new ApiException($exception); |
|
34 | } |
||
35 | } |
||
36 | } |
||
37 |