@@ 68-75 (lines=8) @@ | ||
65 | * |
|
66 | * @return ElevationResponse |
|
67 | */ |
|
68 | private function buildResponse(array $data) |
|
69 | { |
|
70 | $response = new ElevationResponse(); |
|
71 | $response->setStatus($data['status']); |
|
72 | $response->setResults($this->buildResults($data['results'])); |
|
73 | ||
74 | return $response; |
|
75 | } |
|
76 | ||
77 | /** |
|
78 | * @param mixed[] $data |
@@ 75-82 (lines=8) @@ | ||
72 | * |
|
73 | * @return GeocoderResponse |
|
74 | */ |
|
75 | private function buildResponse(array $data) |
|
76 | { |
|
77 | $response = new GeocoderResponse(); |
|
78 | $response->setStatus($data['status']); |
|
79 | $response->setResults($this->buildResults($data['results'])); |
|
80 | ||
81 | return $response; |
|
82 | } |
|
83 | ||
84 | /** |
|
85 | * @param mixed[] $data |