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