Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | public function sendGetRequest(string $gatewayUrl): ResponseInterface |
||
46 | { |
||
47 | try { |
||
48 | $response = $this->client->get($gatewayUrl); |
||
49 | } catch (RequestException $requestException) { |
||
50 | throw new ApiHttpRequestException( |
||
51 | $requestException->getMessage(), |
||
52 | $requestException->getCode(), |
||
53 | $requestException->getPrevious() |
||
54 | ); |
||
55 | } |
||
56 | |||
57 | return $response; |
||
58 | } |
||
60 |