Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 44 |
|
0.00% |
0 / 23 |
CRAP | |
0.00% |
0 / 1 |
VPNMethods | |
0.00% |
0 / 44 |
|
0.00% |
0 / 23 |
1122 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
30 | |||
__toString | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
swaggerTypes | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
swaggerFormats | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
attributeMap | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setters | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getters | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getModelName | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
listInvalidProperties | |
0.00% |
0 / 10 |
|
0.00% |
0 / 1 |
30 | |||
valid | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getTimezoneMismatch | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setTimezoneMismatch | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
getPublicVpn | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setPublicVpn | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
getAuxiliaryMobile | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setAuxiliaryMobile | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
getOsMismatch | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setOsMismatch | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
offsetExists | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
offsetGet | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
6 | |||
offsetSet | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
6 | |||
offsetUnset | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
toPrettyString | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | /** |
3 | * VPNMethods. |
4 | * |
5 | * @category Class |
6 | * |
7 | * @author Swagger Codegen team |
8 | * |
9 | * @see https://github.com/swagger-api/swagger-codegen |
10 | */ |
11 | |
12 | /** |
13 | * Fingerprint Pro Server API. |
14 | * |
15 | * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. |
16 | * |
17 | * OpenAPI spec version: 3 |
18 | * Contact: support@fingerprint.com |
19 | * Generated by: https://github.com/swagger-api/swagger-codegen.git |
20 | * Swagger Codegen version: 3.0.34 |
21 | */ |
22 | /** |
23 | * NOTE: This class is auto generated by the swagger code generator program. |
24 | * https://github.com/swagger-api/swagger-codegen |
25 | * Do not edit the class manually. |
26 | */ |
27 | |
28 | namespace Fingerprint\ServerAPI\Model; |
29 | |
30 | use Fingerprint\ServerAPI\ObjectSerializer; |
31 | |
32 | /** |
33 | * VPNMethods Class Doc Comment. |
34 | * |
35 | * @category Class |
36 | * |
37 | * @author Swagger Codegen team |
38 | * |
39 | * @see https://github.com/swagger-api/swagger-codegen |
40 | */ |
41 | class VPNMethods implements ModelInterface, \ArrayAccess |
42 | { |
43 | /** |
44 | * The original name of the model. |
45 | * |
46 | */ |
47 | protected static string $swaggerModelName = 'VPNMethods'; |
48 | |
49 | /** |
50 | * Array of property to type mappings. Used for (de)serialization. |
51 | * |
52 | * @var string[] |
53 | */ |
54 | protected static array $swaggerTypes = [ |
55 | 'timezone_mismatch' => 'bool', |
56 | 'public_vpn' => 'bool', |
57 | 'auxiliary_mobile' => 'bool', |
58 | 'os_mismatch' => 'bool']; |
59 | |
60 | /** |
61 | * Array of property to format mappings. Used for (de)serialization. |
62 | * |
63 | * @var string[] |
64 | */ |
65 | protected static array $swaggerFormats = [ |
66 | 'timezone_mismatch' => null, |
67 | 'public_vpn' => null, |
68 | 'auxiliary_mobile' => null, |
69 | 'os_mismatch' => null]; |
70 | |
71 | /** |
72 | * Array of attributes where the key is the local name, |
73 | * and the value is the original name. |
74 | * |
75 | * @var string[] |
76 | */ |
77 | protected static array $attributeMap = [ |
78 | 'timezone_mismatch' => 'timezoneMismatch', |
79 | 'public_vpn' => 'publicVPN', |
80 | 'auxiliary_mobile' => 'auxiliaryMobile', |
81 | 'os_mismatch' => 'osMismatch']; |
82 | |
83 | /** |
84 | * Array of attributes to setter functions (for deserialization of responses). |
85 | * |
86 | * @var string[] |
87 | */ |
88 | protected static array $setters = [ |
89 | 'timezone_mismatch' => 'setTimezoneMismatch', |
90 | 'public_vpn' => 'setPublicVpn', |
91 | 'auxiliary_mobile' => 'setAuxiliaryMobile', |
92 | 'os_mismatch' => 'setOsMismatch']; |
93 | |
94 | /** |
95 | * Array of attributes to getter functions (for serialization of requests). |
96 | * |
97 | * @var string[] |
98 | */ |
99 | protected static array $getters = [ |
100 | 'timezone_mismatch' => 'getTimezoneMismatch', |
101 | 'public_vpn' => 'getPublicVpn', |
102 | 'auxiliary_mobile' => 'getAuxiliaryMobile', |
103 | 'os_mismatch' => 'getOsMismatch']; |
104 | |
105 | /** |
106 | * Associative array for storing property values. |
107 | * |
108 | * @var mixed[] |
109 | */ |
110 | protected array $container = []; |
111 | |
112 | /** |
113 | * Constructor. |
114 | * |
115 | * @param mixed[] $data Associated array of property values |
116 | * initializing the model |
117 | */ |
118 | public function __construct(?array $data = null) |
119 | { |
120 | $this->container['timezone_mismatch'] = isset($data['timezone_mismatch']) ? $data['timezone_mismatch'] : null; |
121 | $this->container['public_vpn'] = isset($data['public_vpn']) ? $data['public_vpn'] : null; |
122 | $this->container['auxiliary_mobile'] = isset($data['auxiliary_mobile']) ? $data['auxiliary_mobile'] : null; |
123 | $this->container['os_mismatch'] = isset($data['os_mismatch']) ? $data['os_mismatch'] : null; |
124 | } |
125 | |
126 | /** |
127 | * Gets the string presentation of the object. |
128 | * |
129 | */ |
130 | public function __toString(): string |
131 | { |
132 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); |
133 | } |
134 | |
135 | /** |
136 | * Array of property to type mappings. Used for (de)serialization. |
137 | */ |
138 | public static function swaggerTypes(): array |
139 | { |
140 | return self::$swaggerTypes; |
141 | } |
142 | |
143 | /** |
144 | * Array of property to format mappings. Used for (de)serialization. |
145 | */ |
146 | public static function swaggerFormats(): array |
147 | { |
148 | return self::$swaggerFormats; |
149 | } |
150 | |
151 | /** |
152 | * Array of attributes where the key is the local name, |
153 | * and the value is the original name. |
154 | */ |
155 | public static function attributeMap(): array |
156 | { |
157 | return self::$attributeMap; |
158 | } |
159 | |
160 | /** |
161 | * Array of attributes to setter functions (for deserialization of responses). |
162 | */ |
163 | public static function setters(): array |
164 | { |
165 | return self::$setters; |
166 | } |
167 | |
168 | /** |
169 | * Array of attributes to getter functions (for serialization of requests). |
170 | */ |
171 | public static function getters(): array |
172 | { |
173 | return self::$getters; |
174 | } |
175 | |
176 | /** |
177 | * The original name of the model. |
178 | */ |
179 | public function getModelName(): string |
180 | { |
181 | return self::$swaggerModelName; |
182 | } |
183 | |
184 | /** |
185 | * Show all the invalid properties with reasons. |
186 | * |
187 | * @return array invalid properties with reasons |
188 | */ |
189 | public function listInvalidProperties(): array |
190 | { |
191 | $invalidProperties = []; |
192 | |
193 | if (null === $this->container['timezone_mismatch']) { |
194 | $invalidProperties[] = "'timezone_mismatch' can't be null"; |
195 | } |
196 | if (null === $this->container['public_vpn']) { |
197 | $invalidProperties[] = "'public_vpn' can't be null"; |
198 | } |
199 | if (null === $this->container['auxiliary_mobile']) { |
200 | $invalidProperties[] = "'auxiliary_mobile' can't be null"; |
201 | } |
202 | if (null === $this->container['os_mismatch']) { |
203 | $invalidProperties[] = "'os_mismatch' can't be null"; |
204 | } |
205 | |
206 | return $invalidProperties; |
207 | } |
208 | |
209 | /** |
210 | * Validate all the properties in the model |
211 | * return true if all passed. |
212 | * |
213 | * @return bool True if all properties are valid |
214 | */ |
215 | public function valid(): bool |
216 | { |
217 | return 0 === count($this->listInvalidProperties()); |
218 | } |
219 | |
220 | /** |
221 | * Gets timezone_mismatch. |
222 | */ |
223 | public function getTimezoneMismatch(): bool |
224 | { |
225 | return $this->container['timezone_mismatch']; |
226 | } |
227 | |
228 | /** |
229 | * Sets timezone_mismatch. |
230 | * |
231 | * @param bool $timezone_mismatch the browser timezone doesn't match the timezone inferred from the request IP address |
232 | * |
233 | * @return $this |
234 | */ |
235 | public function setTimezoneMismatch(bool $timezone_mismatch): self |
236 | { |
237 | $this->container['timezone_mismatch'] = $timezone_mismatch; |
238 | |
239 | return $this; |
240 | } |
241 | |
242 | /** |
243 | * Gets public_vpn. |
244 | */ |
245 | public function getPublicVpn(): bool |
246 | { |
247 | return $this->container['public_vpn']; |
248 | } |
249 | |
250 | /** |
251 | * Sets public_vpn. |
252 | * |
253 | * @param bool $public_vpn request IP address is owned and used by a public VPN service provider |
254 | * |
255 | * @return $this |
256 | */ |
257 | public function setPublicVpn(bool $public_vpn): self |
258 | { |
259 | $this->container['public_vpn'] = $public_vpn; |
260 | |
261 | return $this; |
262 | } |
263 | |
264 | /** |
265 | * Gets auxiliary_mobile. |
266 | */ |
267 | public function getAuxiliaryMobile(): bool |
268 | { |
269 | return $this->container['auxiliary_mobile']; |
270 | } |
271 | |
272 | /** |
273 | * Sets auxiliary_mobile. |
274 | * |
275 | * @param bool $auxiliary_mobile This method applies to mobile devices only. Indicates the result of additional methods used to detect a VPN in mobile devices. |
276 | * |
277 | * @return $this |
278 | */ |
279 | public function setAuxiliaryMobile(bool $auxiliary_mobile): self |
280 | { |
281 | $this->container['auxiliary_mobile'] = $auxiliary_mobile; |
282 | |
283 | return $this; |
284 | } |
285 | |
286 | /** |
287 | * Gets os_mismatch. |
288 | */ |
289 | public function getOsMismatch(): bool |
290 | { |
291 | return $this->container['os_mismatch']; |
292 | } |
293 | |
294 | /** |
295 | * Sets os_mismatch. |
296 | * |
297 | * @param bool $os_mismatch the browser runs on a different operating system than the operating system inferred from the request network signature |
298 | * |
299 | * @return $this |
300 | */ |
301 | public function setOsMismatch(bool $os_mismatch): self |
302 | { |
303 | $this->container['os_mismatch'] = $os_mismatch; |
304 | |
305 | return $this; |
306 | } |
307 | |
308 | /** |
309 | * Returns true if offset exists. False otherwise. |
310 | * |
311 | * @param int $offset Offset |
312 | */ |
313 | public function offsetExists($offset): bool |
314 | { |
315 | return isset($this->container[$offset]); |
316 | } |
317 | |
318 | /** |
319 | * Gets offset. |
320 | * |
321 | * @param int $offset Offset |
322 | */ |
323 | public function offsetGet($offset): mixed |
324 | { |
325 | return isset($this->container[$offset]) ? $this->container[$offset] : null; |
326 | } |
327 | |
328 | /** |
329 | * Sets value based on offset. |
330 | * |
331 | * @param int $offset Offset |
332 | * @param mixed $value Value to be set |
333 | */ |
334 | public function offsetSet($offset, mixed $value): void |
335 | { |
336 | if (is_null($offset)) { |
337 | $this->container[] = $value; |
338 | } else { |
339 | $this->container[$offset] = $value; |
340 | } |
341 | } |
342 | |
343 | /** |
344 | * Unsets offset. |
345 | * |
346 | * @param int $offset Offset |
347 | */ |
348 | public function offsetUnset($offset): void |
349 | { |
350 | unset($this->container[$offset]); |
351 | } |
352 | |
353 | /** |
354 | * Gets the string presentation of the object in a pretty JSON format. |
355 | * |
356 | */ |
357 | public function toPrettyString(): string |
358 | { |
359 | return json_encode( |
360 | ObjectSerializer::sanitizeForSerialization($this), |
361 | JSON_PRETTY_PRINT |
362 | ); |
363 | } |
364 | } |