1 | <?php |
||
18 | class GeoPluginAdapter implements GeoAdapterInterface |
||
19 | { |
||
20 | /** |
||
21 | * Loads location data from source for $ip |
||
22 | * |
||
23 | * @param $ip |
||
24 | * |
||
25 | * @return bool|string |
||
26 | */ |
||
27 | public function loadLocationData($ip) |
||
33 | |||
34 | /** |
||
35 | * Gets location data from loaded data |
||
36 | * |
||
37 | * @param $ip |
||
38 | * |
||
39 | * @return GeoDataInterface |
||
40 | * |
||
41 | * @throws EmptyLocationDataException |
||
42 | */ |
||
43 | public function getLocationData($ip): GeoDataInterface |
||
67 | |||
68 | /** |
||
69 | * Gets adapter's name |
||
70 | * |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getName(): string |
||
77 | } |
||
78 |