Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
53 | public function get(string $url, ?string $query = null): GoogleMapsResponse |
||
54 | { |
||
55 | |||
56 | $client_params = $query ? [ |
||
57 | 'query' => $query |
||
58 | ] : null; |
||
59 | |||
60 | /** @var Response $res */ |
||
61 | $res = $this->client->request(GoogleMapsRequestMethodValues::GET, $url, $client_params); |
||
62 | |||
63 | return new GoogleMapsResponse($res); |
||
64 | } |
||
65 | } |