1 | <?php namespace Arcanedev\GeoIP\Drivers; |
||
11 | class MaxmindApiDriver extends AbstractDriver |
||
12 | { |
||
13 | /* ----------------------------------------------------------------- |
||
14 | | Properties |
||
15 | | ----------------------------------------------------------------- |
||
16 | */ |
||
17 | |||
18 | /** |
||
19 | * Http client instance. |
||
20 | * |
||
21 | * @var \GeoIp2\WebService\Client |
||
22 | */ |
||
23 | protected $client; |
||
24 | |||
25 | /* ----------------------------------------------------------------- |
||
26 | | Main Methods |
||
27 | | ----------------------------------------------------------------- |
||
28 | */ |
||
29 | |||
30 | /** |
||
31 | * Init the driver. |
||
32 | */ |
||
33 | 3 | protected function init() |
|
41 | |||
42 | /** |
||
43 | * Locate the ip address. |
||
44 | * |
||
45 | * @param string $ipAddress |
||
46 | * |
||
47 | * @return \Arcanedev\GeoIP\Location |
||
48 | */ |
||
49 | public function locate($ipAddress) |
||
67 | } |
||
68 |