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