| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | public function getResponse(string $endpoint, array $params = [], $method = 'GET', $body = null, $headers = []):GatewayResponse{ |
||
| 44 | $r = $this->client->fetch(new URL($endpoint, $params, $method, $body, $headers)); |
||
| 45 | |||
| 46 | $re = new GatewayResponse; |
||
| 47 | $re->code = $r->info->http_code; |
||
| 48 | $re->body = $r->body->content; |
||
| 49 | |||
| 50 | return $re; |
||
| 51 | } |
||
| 52 | |||
| 54 |