1818use Geocoder \Exception \UnsupportedOperation ;
1919use Geocoder \Model \Address ;
2020use Geocoder \Model \AddressCollection ;
21- use Geocoder \Query \GeocodeQuery ;
22- use Geocoder \Query \ReverseQuery ;
2321use Geocoder \Provider \AbstractProvider ;
2422use Geocoder \Provider \Provider ;
23+ use Geocoder \Query \GeocodeQuery ;
24+ use Geocoder \Query \ReverseQuery ;
2525
2626final class MaxMindBinary extends AbstractProvider implements Provider
2727{
@@ -36,9 +36,6 @@ final class MaxMindBinary extends AbstractProvider implements Provider
3636 private $ openFlag ;
3737
3838 /**
39- * @param string $datFile
40- * @param int|null $openFlag
41- *
4239 * @throws FunctionNotFound if maxmind's lib not installed
4340 * @throws InvalidArgument if dat file is not correct (optional)
4441 */
@@ -64,9 +61,6 @@ public function __construct(string $datFile, int $openFlag = null)
6461 $ this ->openFlag = null === $ openFlag ? GEOIP_STANDARD : $ openFlag ;
6562 }
6663
67- /**
68- * {@inheritdoc}
69- */
7064 public function geocodeQuery (GeocodeQuery $ query ): Collection
7165 {
7266 $ address = $ query ->getText ();
@@ -108,17 +102,11 @@ public function geocodeQuery(GeocodeQuery $query): Collection
108102 ]);
109103 }
110104
111- /**
112- * {@inheritdoc}
113- */
114105 public function reverseQuery (ReverseQuery $ query ): Collection
115106 {
116107 throw new UnsupportedOperation ('The MaxMindBinary is not able to do reverse geocoding. ' );
117108 }
118109
119- /**
120- * {@inheritdoc}
121- */
122110 public function getName (): string
123111 {
124112 return 'maxmind_binary ' ;
0 commit comments