@@ 28-37 (lines=10) @@ | ||
25 | return $this; |
|
26 | } |
|
27 | ||
28 | public function granularity(string $granularity): ReverseGeoCode |
|
29 | { |
|
30 | if (!in_array($granularity, ['poi', 'neighborhood', 'city', 'admin', 'county'], true)) { |
|
31 | throw new InvalidGranularityException(); |
|
32 | } |
|
33 | ||
34 | $this->parameters['granularity'] = $granularity; |
|
35 | ||
36 | return $this; |
|
37 | } |
|
38 | ||
39 | public function amount(int $amount): ReverseGeoCode |
|
40 | { |
@@ 45-54 (lines=10) @@ | ||
42 | return $this; |
|
43 | } |
|
44 | ||
45 | public function granularity(string $granularity): Search |
|
46 | { |
|
47 | if (!in_array($granularity, ['poi', 'neighborhood', 'city', 'admin', 'county'], true)) { |
|
48 | throw new InvalidGranularityException(); |
|
49 | } |
|
50 | ||
51 | $this->parameters['granularity'] = $granularity; |
|
52 | ||
53 | return $this; |
|
54 | } |
|
55 | ||
56 | public function accuracy(string $accuracy): Search |
|
57 | { |