1 | <?php |
||
7 | class Identify { |
||
8 | |||
9 | /** |
||
10 | * Store the os object |
||
11 | * @var object |
||
12 | */ |
||
13 | protected $os; |
||
14 | |||
15 | /** |
||
16 | * Store the device object |
||
17 | * @var object |
||
18 | */ |
||
19 | protected $device; |
||
20 | |||
21 | /** |
||
22 | * Store the browser object |
||
23 | * @var object |
||
24 | */ |
||
25 | protected $browser; |
||
26 | |||
27 | /** |
||
28 | * Store the language object |
||
29 | * @var object |
||
30 | */ |
||
31 | protected $language; |
||
32 | |||
33 | /** |
||
34 | * Create an Instance of Browser and Os |
||
35 | */ |
||
36 | public function __construct() |
||
43 | |||
44 | /** |
||
45 | * Get all the methods applicable to Os detection |
||
46 | * e.g getName(), getVersion() |
||
47 | * @return \Sinergi\BrowserDetector\Os |
||
48 | */ |
||
49 | public function os() : Os |
||
53 | |||
54 | /** |
||
55 | * Get all the methods applicable to Device detection |
||
56 | * e.g getName() |
||
57 | * @return \Sinergi\BrowserDetector\Device |
||
58 | */ |
||
59 | public function device() : Device |
||
63 | |||
64 | /** |
||
65 | * Get all the methods applicable to Browser detection |
||
66 | * e.g getName(), getVersion() |
||
67 | * @return \Sinergi\BrowserDetector\Browser |
||
68 | */ |
||
69 | public function browser() : Browser |
||
73 | |||
74 | /** |
||
75 | * Get all the methods applicable to Language detection |
||
76 | * e.g getLanguage() |
||
77 | * @return \Sinergi\BrowserDetector\Language |
||
78 | */ |
||
79 | public function lang() : Language |
||
83 | |||
84 | } |