1 | <?php namespace Arcanedev\LaravelTracker\Detectors; |
||
13 | class GeoIpDetector implements GeoIpDetectorContract |
||
14 | { |
||
15 | /* ------------------------------------------------------------------------------------------------ |
||
16 | | Properties |
||
17 | | ------------------------------------------------------------------------------------------------ |
||
18 | */ |
||
19 | private $reader; |
||
20 | |||
21 | /* ------------------------------------------------------------------------------------------------ |
||
22 | | Constructor |
||
23 | | ------------------------------------------------------------------------------------------------ |
||
24 | */ |
||
25 | public function __construct() |
||
29 | |||
30 | /* ------------------------------------------------------------------------------------------------ |
||
31 | | Main Functions |
||
32 | | ------------------------------------------------------------------------------------------------ |
||
33 | */ |
||
34 | /** |
||
35 | * Get the geoip data. |
||
36 | * |
||
37 | * @param string $ipAddress |
||
38 | * |
||
39 | * @return array|null |
||
40 | */ |
||
41 | public function search($ipAddress) |
||
54 | |||
55 | /* ------------------------------------------------------------------------------------------------ |
||
56 | | Other Functions |
||
57 | | ------------------------------------------------------------------------------------------------ |
||
58 | */ |
||
59 | /** |
||
60 | * Render the data. |
||
61 | * |
||
62 | * @param \GeoIp2\Model\City $cityModel |
||
63 | * |
||
64 | * @return array |
||
65 | */ |
||
66 | private function renderData($cityModel) |
||
83 | |||
84 | /** |
||
85 | * Get the GeoLiteFileName. |
||
86 | * |
||
87 | * @return string |
||
88 | */ |
||
89 | private function getGeoliteFileName() |
||
93 | } |
||
94 |