2
2
3
3
namespace Unicodeveloper \Identify ;
4
4
5
- use Sinergi \BrowserDetector \Browser ;
6
5
use Sinergi \BrowserDetector \Os ;
6
+ use Sinergi \BrowserDetector \Device ;
7
+ use Sinergi \BrowserDetector \Browser ;
7
8
use Sinergi \BrowserDetector \Language ;
8
9
9
10
class Identify {
10
11
11
12
/**
12
- * Store the browser object
13
+ * Store the os object
13
14
* @var object
14
15
*/
15
- protected $ browser ;
16
+ protected $ os ;
16
17
17
18
/**
18
- * Store the os object
19
+ * Store the device object
19
20
* @var object
20
21
*/
21
- protected $ os ;
22
+ protected $ device ;
23
+
24
+ /**
25
+ * Store the browser object
26
+ * @var object
27
+ */
28
+ protected $ browser ;
22
29
23
30
/**
24
31
* Store the language object
@@ -32,28 +39,40 @@ class Identify {
32
39
public function __construct ()
33
40
{
34
41
$ this ->os = new Os ();
42
+ $ this ->device = new Device ();
35
43
$ this ->browser = new Browser ();
36
44
$ this ->language = new Language ();
45
+
37
46
}
38
47
39
48
/**
40
- * Get all the methods applicable to browser detection
49
+ * Get all the methods applicable to Os detection
41
50
* e.g getName(), getVersion()
42
- * @return \Sinergi\BrowserDetector\Browser
51
+ * @return \Sinergi\BrowserDetector\Os
43
52
*/
44
- public function browser ()
53
+ public function os ()
45
54
{
46
- return $ this ->browser ;
55
+ return $ this ->os ;
47
56
}
48
57
49
58
/**
50
- * Get all the methods applicable to Os detection
59
+ * Get all the methods applicable to Device detection
60
+ * e.g getName()
61
+ * @return \Sinergi\BrowserDetector\Device
62
+ */
63
+ public function device ()
64
+ {
65
+ return $ this ->device ;
66
+ }
67
+
68
+ /**
69
+ * Get all the methods applicable to Browser detection
51
70
* e.g getName(), getVersion()
52
- * @return \Sinergi\BrowserDetector\Os
71
+ * @return \Sinergi\BrowserDetector\Browser
53
72
*/
54
- public function os ()
73
+ public function browser ()
55
74
{
56
- return $ this ->os ;
75
+ return $ this ->browser ;
57
76
}
58
77
59
78
/**
0 commit comments