| 1 | <?php namespace Arcanedev\LaravelTracker\Trackers; |
||
| 13 | class GeoIpTracker |
||
| 14 | { |
||
| 15 | /* ------------------------------------------------------------------------------------------------ |
||
| 16 | | Properties |
||
| 17 | | ------------------------------------------------------------------------------------------------ |
||
| 18 | */ |
||
| 19 | /** @var \Arcanedev\LaravelTracker\Contracts\Detectors\GeoIpDetector */ |
||
| 20 | protected $detector; |
||
| 21 | |||
| 22 | /* ------------------------------------------------------------------------------------------------ |
||
| 23 | | Constructor |
||
| 24 | | ------------------------------------------------------------------------------------------------ |
||
| 25 | */ |
||
| 26 | /** |
||
| 27 | * GeoIpTracker constructor. |
||
| 28 | */ |
||
| 29 | public function __construct() |
||
| 33 | |||
| 34 | /* ------------------------------------------------------------------------------------------------ |
||
| 35 | | Main Functions |
||
| 36 | | ------------------------------------------------------------------------------------------------ |
||
| 37 | */ |
||
| 38 | /** |
||
| 39 | * Track the ip address. |
||
| 40 | * |
||
| 41 | * @param string $ipAddress |
||
| 42 | * |
||
| 43 | * @return int|null |
||
| 44 | */ |
||
| 45 | public function track($ipAddress) |
||
| 57 | } |
||
| 58 |