diff --git a/src/Identify.php b/src/Identify.php index 309cb11..9b8b51a 100644 --- a/src/Identify.php +++ b/src/Identify.php @@ -2,23 +2,30 @@ namespace Unicodeveloper\Identify; -use Sinergi\BrowserDetector\Browser; use Sinergi\BrowserDetector\Os; +use Sinergi\BrowserDetector\Device; +use Sinergi\BrowserDetector\Browser; use Sinergi\BrowserDetector\Language; class Identify { /** - * Store the browser object + * Store the os object * @var object */ - protected $browser; + protected $os; /** - * Store the os object + * Store the device object * @var object */ - protected $os; + protected $device; + + /** + * Store the browser object + * @var object + */ + protected $browser; /** * Store the language object @@ -32,28 +39,40 @@ class Identify { public function __construct() { $this->os = new Os(); + $this->device = new Device(); $this->browser = new Browser(); $this->language = new Language(); + } /** - * Get all the methods applicable to browser detection + * Get all the methods applicable to Os detection * e.g getName(), getVersion() - * @return \Sinergi\BrowserDetector\Browser + * @return \Sinergi\BrowserDetector\Os */ - public function browser() + public function os() { - return $this->browser; + return $this->os; } /** - * Get all the methods applicable to Os detection + * Get all the methods applicable to Device detection + * e.g getName() + * @return \Sinergi\BrowserDetector\Device + */ + public function device() + { + return $this->device; + } + + /** + * Get all the methods applicable to Browser detection * e.g getName(), getVersion() - * @return \Sinergi\BrowserDetector\Os + * @return \Sinergi\BrowserDetector\Browser */ - public function os() + public function browser() { - return $this->os; + return $this->browser; } /**