| 1 | <?php |
||
| 5 | class Result |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var Os |
||
| 9 | */ |
||
| 10 | protected $os; |
||
| 11 | /** |
||
| 12 | * @var Browser |
||
| 13 | */ |
||
| 14 | protected $browser; |
||
| 15 | /** |
||
| 16 | * @var Device |
||
| 17 | */ |
||
| 18 | protected $device; |
||
| 19 | /** |
||
| 20 | * @var Robot |
||
| 21 | */ |
||
| 22 | protected $robot; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var boolean |
||
| 26 | */ |
||
| 27 | protected $isRobot = false; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var boolean |
||
| 31 | */ |
||
| 32 | protected $isTouch = false; |
||
| 33 | /** |
||
| 34 | * @var boolean |
||
| 35 | */ |
||
| 36 | protected $isMobile = false; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return bool |
||
| 40 | */ |
||
| 41 | public function isRobot(): bool |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param bool $isRobot |
||
| 48 | */ |
||
| 49 | public function setIsRobot(bool $isRobot) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return bool |
||
| 56 | */ |
||
| 57 | public function isTouch(): bool |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @param bool $isTouch |
||
| 64 | */ |
||
| 65 | public function setIsTouch(bool $isTouch) |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @return bool |
||
| 72 | */ |
||
| 73 | public function isMobile(): bool |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @param bool $isMobile |
||
| 80 | */ |
||
| 81 | public function setIsMobile(bool $isMobile) |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @return bool |
||
| 88 | */ |
||
| 89 | public function isTablet(): bool |
||
| 93 | |||
| 94 | /** |
||
| 95 | * @param bool $isTablet |
||
| 96 | */ |
||
| 97 | public function setIsTablet(bool $isTablet) |
||
| 101 | |||
| 102 | /** @var boolean */ |
||
| 103 | protected $isTablet = false; |
||
| 104 | |||
| 105 | public function __construct() |
||
| 112 | |||
| 113 | /** |
||
| 114 | * @return Os |
||
| 115 | */ |
||
| 116 | public function getOs(): Os |
||
| 120 | |||
| 121 | /** |
||
| 122 | * @return Browser |
||
| 123 | */ |
||
| 124 | public function getBrowser(): Browser |
||
| 128 | |||
| 129 | /** |
||
| 130 | * @return Device |
||
| 131 | */ |
||
| 132 | public function getDevice(): Device |
||
| 136 | |||
| 137 | /** |
||
| 138 | * @return Robot |
||
| 139 | */ |
||
| 140 | public function getRobot(): Robot |
||
| 144 | } |