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 IP2LocationBinary extends AbstractProvider implements Provider
27
27
{
@@ -36,9 +36,6 @@ final class IP2LocationBinary extends AbstractProvider implements Provider
36
36
private $ openFlag ;
37
37
38
38
/**
39
- * @param string $binFile
40
- * @param int|null $openFlag
41
- *
42
39
* @throws FunctionNotFound if IP2Location's library not installed
43
40
* @throws InvalidArgument if dat file is not correct (optional)
44
41
*/
@@ -60,9 +57,6 @@ public function __construct(string $binFile, int $openFlag = null)
60
57
$ this ->openFlag = null === $ openFlag ? \IP2Location \Database::FILE_IO : $ openFlag ;
61
58
}
62
59
63
- /**
64
- * {@inheritdoc}
65
- */
66
60
public function geocodeQuery (GeocodeQuery $ query ): Collection
67
61
{
68
62
$ address = $ query ->getText ();
@@ -97,17 +91,11 @@ public function geocodeQuery(GeocodeQuery $query): Collection
97
91
]);
98
92
}
99
93
100
- /**
101
- * {@inheritdoc}
102
- */
103
94
public function reverseQuery (ReverseQuery $ query ): Collection
104
95
{
105
96
throw new UnsupportedOperation ('The IP2LocationBinary is not able to do reverse geocoding. ' );
106
97
}
107
98
108
- /**
109
- * {@inheritdoc}
110
- */
111
99
public function getName (): string
112
100
{
113
101
return 'ip2location_binary ' ;
0 commit comments