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 IP2LocationBinary extends AbstractProvider implements Provider
2727{
@@ -36,9 +36,6 @@ final class IP2LocationBinary extends AbstractProvider implements Provider
3636 private $ openFlag ;
3737
3838 /**
39- * @param string $binFile
40- * @param int|null $openFlag
41- *
4239 * @throws FunctionNotFound if IP2Location's library not installed
4340 * @throws InvalidArgument if dat file is not correct (optional)
4441 */
@@ -60,9 +57,6 @@ public function __construct(string $binFile, int $openFlag = null)
6057 $ this ->openFlag = null === $ openFlag ? \IP2Location \Database::FILE_IO : $ openFlag ;
6158 }
6259
63- /**
64- * {@inheritdoc}
65- */
6660 public function geocodeQuery (GeocodeQuery $ query ): Collection
6761 {
6862 $ address = $ query ->getText ();
@@ -97,17 +91,11 @@ public function geocodeQuery(GeocodeQuery $query): Collection
9791 ]);
9892 }
9993
100- /**
101- * {@inheritdoc}
102- */
10394 public function reverseQuery (ReverseQuery $ query ): Collection
10495 {
10596 throw new UnsupportedOperation ('The IP2LocationBinary is not able to do reverse geocoding. ' );
10697 }
10798
108- /**
109- * {@inheritdoc}
110- */
11199 public function getName (): string
112100 {
113101 return 'ip2location_binary ' ;
0 commit comments