18
18
use Geocoder \Exception \UnsupportedOperation ;
19
19
use Geocoder \Model \Address ;
20
20
use Geocoder \Model \AddressCollection ;
21
- use Geocoder \Query \GeocodeQuery ;
22
- use Geocoder \Query \ReverseQuery ;
23
21
use Geocoder \Provider \AbstractProvider ;
24
22
use Geocoder \Provider \Provider ;
23
+ use Geocoder \Query \GeocodeQuery ;
24
+ use Geocoder \Query \ReverseQuery ;
25
25
26
26
final class MaxMindBinary extends AbstractProvider implements Provider
27
27
{
@@ -36,9 +36,6 @@ final class MaxMindBinary extends AbstractProvider implements Provider
36
36
private $ openFlag ;
37
37
38
38
/**
39
- * @param string $datFile
40
- * @param int|null $openFlag
41
- *
42
39
* @throws FunctionNotFound if maxmind's lib not installed
43
40
* @throws InvalidArgument if dat file is not correct (optional)
44
41
*/
@@ -64,9 +61,6 @@ public function __construct(string $datFile, int $openFlag = null)
64
61
$ this ->openFlag = null === $ openFlag ? GEOIP_STANDARD : $ openFlag ;
65
62
}
66
63
67
- /**
68
- * {@inheritdoc}
69
- */
70
64
public function geocodeQuery (GeocodeQuery $ query ): Collection
71
65
{
72
66
$ address = $ query ->getText ();
@@ -108,17 +102,11 @@ public function geocodeQuery(GeocodeQuery $query): Collection
108
102
]);
109
103
}
110
104
111
- /**
112
- * {@inheritdoc}
113
- */
114
105
public function reverseQuery (ReverseQuery $ query ): Collection
115
106
{
116
107
throw new UnsupportedOperation ('The MaxMindBinary is not able to do reverse geocoding. ' );
117
108
}
118
109
119
- /**
120
- * {@inheritdoc}
121
- */
122
110
public function getName (): string
123
111
{
124
112
return 'maxmind_binary ' ;
0 commit comments