1 | <?php |
||
8 | class BrowserInfo //extends ResultObject |
||
9 | { |
||
10 | /** @type STRING */ |
||
11 | private $acceptHeader; |
||
12 | |||
13 | /** @type STRING */ |
||
14 | private $browserLanguage; |
||
15 | |||
16 | /** @type INT */ |
||
17 | private $screenWidth; |
||
18 | |||
19 | /** @type INT */ |
||
20 | private $screenHeight; |
||
21 | |||
22 | /** @type STRING */ |
||
23 | private $challengeWindowSize; |
||
24 | |||
25 | /** @type STRING */ |
||
26 | private $userAgent; |
||
27 | |||
28 | /** @type INT */ |
||
29 | private $colorDepth; |
||
30 | |||
31 | /** @type INT */ |
||
32 | private $timeZone; |
||
33 | |||
34 | /** @type STRING */ |
||
35 | private $ipAddress; |
||
36 | |||
37 | /** @type BOOL */ |
||
38 | private $javaEnabled; |
||
39 | |||
40 | /** @type BOOL */ |
||
41 | private $javascriptEnabled; |
||
42 | |||
43 | /** |
||
44 | * @return STRING header |
||
45 | */ |
||
46 | public function getAcceptHeader() |
||
50 | |||
51 | |||
52 | /** |
||
53 | * @param STRING accept header |
||
54 | * @return VOID |
||
55 | */ |
||
56 | public function setAcceptHeader(string $acceptHeader) : void |
||
60 | |||
61 | |||
62 | /** |
||
63 | * @return STRING of browser language |
||
64 | */ |
||
65 | public function getBrowserLanguage() |
||
69 | |||
70 | |||
71 | /** |
||
72 | * @param STRING of browser language |
||
73 | * @return VOID |
||
74 | */ |
||
75 | public function setBrowserLanguage(string $browserLanguage) : void |
||
79 | |||
80 | |||
81 | /** |
||
82 | * @return INT of browser screen width |
||
83 | */ |
||
84 | public function getScreenWidth() |
||
88 | |||
89 | |||
90 | /** |
||
91 | * @param INT browser screen width |
||
92 | * @return VOID |
||
93 | */ |
||
94 | public function setScreenWidth(int $screenWidth) : void |
||
98 | |||
99 | |||
100 | /** |
||
101 | * @return INT browser screen height |
||
102 | */ |
||
103 | public function getScreenHeight() |
||
107 | |||
108 | |||
109 | /** |
||
110 | * @param INT browser screen height |
||
111 | * @return VOID |
||
112 | */ |
||
113 | public function setScreenHeight(int $screenHeight) : void |
||
117 | |||
118 | |||
119 | /** |
||
120 | * @return STRING of window size |
||
121 | */ |
||
122 | public function getChallengeWindowSize() |
||
126 | |||
127 | |||
128 | /** |
||
129 | * @param STRING of window size |
||
130 | * @return VOID |
||
131 | */ |
||
132 | public function setChallengeWindowSize($challengeWindowSize) : void |
||
136 | |||
137 | |||
138 | /** |
||
139 | * @return STRING of user agent |
||
140 | */ |
||
141 | public function getUserAgent() |
||
145 | |||
146 | |||
147 | /** |
||
148 | * @param STRING of user agent |
||
149 | * @return VOID |
||
150 | */ |
||
151 | public function setUserAgent(string $userAgent) : void |
||
155 | |||
156 | |||
157 | /** |
||
158 | * @return INT of color depth |
||
159 | */ |
||
160 | public function getColorDepth() |
||
164 | |||
165 | |||
166 | /** |
||
167 | * @param INT of color depth |
||
168 | * @return VOID |
||
169 | */ |
||
170 | public function setColorDepth(int $colorDepth) : void |
||
174 | |||
175 | |||
176 | /** |
||
177 | * @return INT of time zone |
||
178 | */ |
||
179 | public function getTimeZone() |
||
183 | |||
184 | |||
185 | /** |
||
186 | * @param INT of time zone |
||
187 | * @return VOID |
||
188 | */ |
||
189 | public function setTimeZone(int $timeZone) : void |
||
193 | |||
194 | |||
195 | /** |
||
196 | * @return STRING ip adress |
||
197 | */ |
||
198 | public function getIpAddress() |
||
202 | |||
203 | |||
204 | /** |
||
205 | * @param STRING ip adress |
||
206 | * @return VOID |
||
207 | */ |
||
208 | public function setIpAddress(string $ipAddress) : void |
||
212 | |||
213 | |||
214 | /** |
||
215 | * @return BOOL is java enabled? |
||
216 | */ |
||
217 | public function getJavaEnabled() |
||
221 | |||
222 | |||
223 | /** |
||
224 | * @param BOOL is java enabled? |
||
225 | * @return VOID |
||
226 | */ |
||
227 | public function setJavaEnabled(bool $javaEnabled) : void |
||
231 | |||
232 | |||
233 | /** |
||
234 | * @return BOOL is javascript enabled? |
||
235 | */ |
||
236 | public function getJavascriptEnabled() |
||
240 | |||
241 | |||
242 | /** |
||
243 | * @param BOOL is javascript enabled? |
||
244 | * @return VOID |
||
245 | */ |
||
246 | public function setJavascriptEnabled(bool $javascriptEnabled) : void |
||
250 | } |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.