| 1 | <?php namespace Arcanedev\LaravelTracker\Trackers; |
||
| 14 | class GeoIpTracker extends AbstractTracker implements GeoIpTrackerContract |
||
| 15 | { |
||
| 16 | /* ----------------------------------------------------------------- |
||
| 17 | | Getters and Setters |
||
| 18 | | ----------------------------------------------------------------- |
||
| 19 | */ |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Get the model. |
||
| 23 | * |
||
| 24 | * @return \Arcanedev\LaravelTracker\Models\GeoIp |
||
| 25 | */ |
||
| 26 | 9 | protected function getModel() |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @return \Arcanedev\LaravelTracker\Contracts\Detectors\GeoIpDetector |
||
| 33 | */ |
||
| 34 | 9 | private function getGeoIpDetector() |
|
| 38 | |||
| 39 | /* ----------------------------------------------------------------- |
||
| 40 | | Main Methods |
||
| 41 | | ----------------------------------------------------------------- |
||
| 42 | */ |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Track the ip address. |
||
| 46 | * |
||
| 47 | * @param string $ipAddress |
||
| 48 | * |
||
| 49 | * @return int|null |
||
| 50 | */ |
||
| 51 | 9 | public function track($ipAddress) |
|
| 62 | } |
||
| 63 |