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