| @@ 43-49 (lines=7) @@ | ||
| 40 | * |
|
| 41 | * @return ElevationResponse |
|
| 42 | */ |
|
| 43 | public function process(ElevationRequestInterface $request) |
|
| 44 | { |
|
| 45 | $response = $this->getClient()->sendRequest($this->createRequest($request->build())); |
|
| 46 | $data = $this->parse((string) $response->getBody()); |
|
| 47 | ||
| 48 | return $this->buildResponse($data); |
|
| 49 | } |
|
| 50 | ||
| 51 | /** |
|
| 52 | * @param mixed[] $data |
|
| @@ 53-59 (lines=7) @@ | ||
| 50 | * |
|
| 51 | * @return TimeZoneResponse |
|
| 52 | */ |
|
| 53 | public function process(TimeZoneRequestInterface $request) |
|
| 54 | { |
|
| 55 | $response = $this->getClient()->sendRequest($this->createRequest($request->build())); |
|
| 56 | $data = $this->parse((string) $response->getBody(), ['snake_to_camel' => true]); |
|
| 57 | ||
| 58 | return $this->buildResponse($data); |
|
| 59 | } |
|
| 60 | ||
| 61 | /** |
|
| 62 | * @param mixed[] $data |
|