| 1 | <?php namespace Arcanedev\LaravelTracker\Trackers; |
||
| 13 | class CookieTracker extends AbstractTracker implements CookieTrackerContract |
||
| 14 | { |
||
| 15 | /* ------------------------------------------------------------------------------------------------ |
||
| 16 | | Getters and Setters |
||
| 17 | | ------------------------------------------------------------------------------------------------ |
||
| 18 | */ |
||
| 19 | /** |
||
| 20 | * Get the model. |
||
| 21 | * |
||
| 22 | * @return \Arcanedev\LaravelTracker\Models\Cookie |
||
| 23 | */ |
||
| 24 | 6 | protected function getModel() |
|
| 28 | |||
| 29 | /* ------------------------------------------------------------------------------------------------ |
||
| 30 | | Main Functions |
||
| 31 | | ------------------------------------------------------------------------------------------------ |
||
| 32 | */ |
||
| 33 | /** |
||
| 34 | * Track the cookie. |
||
| 35 | * |
||
| 36 | * @param mixed $cookie |
||
| 37 | * |
||
| 38 | * @return int |
||
| 39 | */ |
||
| 40 | 6 | public function track($cookie) |
|
| 51 | |||
| 52 | /* ------------------------------------------------------------------------------------------------ |
||
| 53 | | Other Functions |
||
| 54 | | ------------------------------------------------------------------------------------------------ |
||
| 55 | */ |
||
| 56 | /** |
||
| 57 | * Get the cookie instance. |
||
| 58 | * |
||
| 59 | * @return \Illuminate\Cookie\CookieJar |
||
| 60 | */ |
||
| 61 | private function cookie() |
||
| 65 | } |
||
| 66 |