1 | <?php namespace Arcanedev\LaravelTracker\Trackers; |
||
13 | class DeviceTracker |
||
14 | { |
||
15 | /* ------------------------------------------------------------------------------------------------ |
||
16 | | Properties |
||
17 | | ------------------------------------------------------------------------------------------------ |
||
18 | */ |
||
19 | /** @var \Arcanedev\LaravelTracker\Contracts\Detectors\DeviceDetector */ |
||
20 | protected $detector; |
||
21 | |||
22 | /* ------------------------------------------------------------------------------------------------ |
||
23 | | Constructor |
||
24 | | ------------------------------------------------------------------------------------------------ |
||
25 | */ |
||
26 | 6 | public function __construct() |
|
30 | |||
31 | /* ------------------------------------------------------------------------------------------------ |
||
32 | | Getters & Setters |
||
33 | | ------------------------------------------------------------------------------------------------ |
||
34 | */ |
||
35 | /** |
||
36 | * Get the user agent parser. |
||
37 | * |
||
38 | * @return \Arcanedev\LaravelTracker\Contracts\Parsers\UserAgentParser |
||
39 | */ |
||
40 | 6 | private function getUserAgentParser() |
|
44 | |||
45 | /* ------------------------------------------------------------------------------------------------ |
||
46 | | Main Functions |
||
47 | | ------------------------------------------------------------------------------------------------ |
||
48 | */ |
||
49 | /** |
||
50 | * Track the device. |
||
51 | * |
||
52 | * @return int |
||
53 | */ |
||
54 | 6 | public function track() |
|
61 | |||
62 | /** |
||
63 | * Get the current device properties. |
||
64 | * |
||
65 | * @return array |
||
66 | */ |
||
67 | 6 | public function getCurrentDeviceProperties() |
|
78 | } |
||
79 |