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