1 | <?php namespace Arcanedev\GeoIP\Drivers; |
||
12 | class FreeGeoIpDriver extends AbstractDriver |
||
13 | { |
||
14 | /* ----------------------------------------------------------------- |
||
15 | | Properties |
||
16 | | ----------------------------------------------------------------- |
||
17 | */ |
||
18 | |||
19 | /** |
||
20 | * Http client instance. |
||
21 | * |
||
22 | * @var \GuzzleHttp\Client |
||
23 | */ |
||
24 | protected $client; |
||
25 | |||
26 | /** |
||
27 | * A collection of continents. |
||
28 | * |
||
29 | * @var \Arcanedev\GeoIP\Entities\Continents |
||
30 | */ |
||
31 | protected $continents; |
||
32 | |||
33 | /* ----------------------------------------------------------------- |
||
34 | | Main Methods |
||
35 | | ----------------------------------------------------------------- |
||
36 | */ |
||
37 | |||
38 | /** |
||
39 | * Init the driver. |
||
40 | */ |
||
41 | 30 | protected function init() |
|
52 | |||
53 | /** |
||
54 | * Locate the ip address. |
||
55 | * |
||
56 | * @param string $ipAddress |
||
57 | * |
||
58 | * @return \Arcanedev\GeoIP\Location |
||
59 | */ |
||
60 | 9 | public function locate($ipAddress) |
|
80 | } |
||
81 |