Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 31 |
|
0.00% |
0 / 21 |
CRAP | |
0.00% |
0 / 1 |
WebhookTampering | |
0.00% |
0 / 31 |
|
0.00% |
0 / 21 |
702 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
20 | |||
__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 / 1 |
|
0.00% |
0 / 1 |
2 | |||
valid | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getResult | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setResult | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
getAnomalyScore | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setAnomalyScore | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
getAntiDetectBrowser | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setAntiDetectBrowser | |
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 | * WebhookTampering. |
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 | * WebhookTampering 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 WebhookTampering implements ModelInterface, \ArrayAccess |
42 | { |
43 | /** |
44 | * The original name of the model. |
45 | * |
46 | */ |
47 | protected static string $swaggerModelName = 'WebhookTampering'; |
48 | |
49 | /** |
50 | * Array of property to type mappings. Used for (de)serialization. |
51 | * |
52 | * @var string[] |
53 | */ |
54 | protected static array $swaggerTypes = [ |
55 | 'result' => 'bool', |
56 | 'anomaly_score' => 'double', |
57 | 'anti_detect_browser' => 'bool']; |
58 | |
59 | /** |
60 | * Array of property to format mappings. Used for (de)serialization. |
61 | * |
62 | * @var string[] |
63 | */ |
64 | protected static array $swaggerFormats = [ |
65 | 'result' => null, |
66 | 'anomaly_score' => 'double', |
67 | 'anti_detect_browser' => null]; |
68 | |
69 | /** |
70 | * Array of attributes where the key is the local name, |
71 | * and the value is the original name. |
72 | * |
73 | * @var string[] |
74 | */ |
75 | protected static array $attributeMap = [ |
76 | 'result' => 'result', |
77 | 'anomaly_score' => 'anomalyScore', |
78 | 'anti_detect_browser' => 'antiDetectBrowser']; |
79 | |
80 | /** |
81 | * Array of attributes to setter functions (for deserialization of responses). |
82 | * |
83 | * @var string[] |
84 | */ |
85 | protected static array $setters = [ |
86 | 'result' => 'setResult', |
87 | 'anomaly_score' => 'setAnomalyScore', |
88 | 'anti_detect_browser' => 'setAntiDetectBrowser']; |
89 | |
90 | /** |
91 | * Array of attributes to getter functions (for serialization of requests). |
92 | * |
93 | * @var string[] |
94 | */ |
95 | protected static array $getters = [ |
96 | 'result' => 'getResult', |
97 | 'anomaly_score' => 'getAnomalyScore', |
98 | 'anti_detect_browser' => 'getAntiDetectBrowser']; |
99 | |
100 | /** |
101 | * Associative array for storing property values. |
102 | * |
103 | * @var mixed[] |
104 | */ |
105 | protected array $container = []; |
106 | |
107 | /** |
108 | * Constructor. |
109 | * |
110 | * @param mixed[] $data Associated array of property values |
111 | * initializing the model |
112 | */ |
113 | public function __construct(?array $data = null) |
114 | { |
115 | $this->container['result'] = isset($data['result']) ? $data['result'] : null; |
116 | $this->container['anomaly_score'] = isset($data['anomaly_score']) ? $data['anomaly_score'] : null; |
117 | $this->container['anti_detect_browser'] = isset($data['anti_detect_browser']) ? $data['anti_detect_browser'] : null; |
118 | } |
119 | |
120 | /** |
121 | * Gets the string presentation of the object. |
122 | * |
123 | */ |
124 | public function __toString(): string |
125 | { |
126 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); |
127 | } |
128 | |
129 | /** |
130 | * Array of property to type mappings. Used for (de)serialization. |
131 | */ |
132 | public static function swaggerTypes(): array |
133 | { |
134 | return self::$swaggerTypes; |
135 | } |
136 | |
137 | /** |
138 | * Array of property to format mappings. Used for (de)serialization. |
139 | */ |
140 | public static function swaggerFormats(): array |
141 | { |
142 | return self::$swaggerFormats; |
143 | } |
144 | |
145 | /** |
146 | * Array of attributes where the key is the local name, |
147 | * and the value is the original name. |
148 | */ |
149 | public static function attributeMap(): array |
150 | { |
151 | return self::$attributeMap; |
152 | } |
153 | |
154 | /** |
155 | * Array of attributes to setter functions (for deserialization of responses). |
156 | */ |
157 | public static function setters(): array |
158 | { |
159 | return self::$setters; |
160 | } |
161 | |
162 | /** |
163 | * Array of attributes to getter functions (for serialization of requests). |
164 | */ |
165 | public static function getters(): array |
166 | { |
167 | return self::$getters; |
168 | } |
169 | |
170 | /** |
171 | * The original name of the model. |
172 | */ |
173 | public function getModelName(): string |
174 | { |
175 | return self::$swaggerModelName; |
176 | } |
177 | |
178 | /** |
179 | * Show all the invalid properties with reasons. |
180 | * |
181 | * @return array invalid properties with reasons |
182 | */ |
183 | public function listInvalidProperties(): array |
184 | { |
185 | return []; |
186 | } |
187 | |
188 | /** |
189 | * Validate all the properties in the model |
190 | * return true if all passed. |
191 | * |
192 | * @return bool True if all properties are valid |
193 | */ |
194 | public function valid(): bool |
195 | { |
196 | return 0 === count($this->listInvalidProperties()); |
197 | } |
198 | |
199 | /** |
200 | * Gets result. |
201 | */ |
202 | public function getResult(): ?bool |
203 | { |
204 | return $this->container['result']; |
205 | } |
206 | |
207 | /** |
208 | * Sets result. |
209 | * |
210 | * @param ?bool $result Flag indicating browser tampering was detected. This happens when either of these conditions is true: * There are inconsistencies in the browser configuration that cross our internal tampering thresholds (indicated by `anomalyScore`). * The browser signature resembles one of \"anti-detect\" browsers specifically designed to evade identification and fingerprinting, for example, Incognition (indicated by `antiDetectBrowser`). |
211 | * |
212 | * @return $this |
213 | */ |
214 | public function setResult(?bool $result): self |
215 | { |
216 | $this->container['result'] = $result; |
217 | |
218 | return $this; |
219 | } |
220 | |
221 | /** |
222 | * Gets anomaly_score. |
223 | * |
224 | * @return ?double |
225 | */ |
226 | public function getAnomalyScore(): ?float |
227 | { |
228 | return $this->container['anomaly_score']; |
229 | } |
230 | |
231 | /** |
232 | * Sets anomaly_score. |
233 | * |
234 | * @param ?double $anomaly_score Confidence score (`0.0 - 1.0`) for tampering detection: * Values above `0.5` indicate that there was a tampering attempt * Values below `0.5` indicate genuine browsers. |
235 | * |
236 | * @return $this |
237 | */ |
238 | public function setAnomalyScore(?float $anomaly_score): self |
239 | { |
240 | $this->container['anomaly_score'] = $anomaly_score; |
241 | |
242 | return $this; |
243 | } |
244 | |
245 | /** |
246 | * Gets anti_detect_browser. |
247 | */ |
248 | public function getAntiDetectBrowser(): ?bool |
249 | { |
250 | return $this->container['anti_detect_browser']; |
251 | } |
252 | |
253 | /** |
254 | * Sets anti_detect_browser. |
255 | * |
256 | * @param ?bool $anti_detect_browser Is `true` if the identified browser resembles one of \"anti-detect\" browsers, for example, Incognition. Anti-detect browsers try to evade identification by masking or manipulating their fingerprint to imitate legitimate browser configurations. |
257 | * |
258 | * @return $this |
259 | */ |
260 | public function setAntiDetectBrowser(?bool $anti_detect_browser): self |
261 | { |
262 | $this->container['anti_detect_browser'] = $anti_detect_browser; |
263 | |
264 | return $this; |
265 | } |
266 | |
267 | /** |
268 | * Returns true if offset exists. False otherwise. |
269 | * |
270 | * @param int $offset Offset |
271 | */ |
272 | public function offsetExists($offset): bool |
273 | { |
274 | return isset($this->container[$offset]); |
275 | } |
276 | |
277 | /** |
278 | * Gets offset. |
279 | * |
280 | * @param int $offset Offset |
281 | */ |
282 | public function offsetGet($offset): mixed |
283 | { |
284 | return isset($this->container[$offset]) ? $this->container[$offset] : null; |
285 | } |
286 | |
287 | /** |
288 | * Sets value based on offset. |
289 | * |
290 | * @param int $offset Offset |
291 | * @param mixed $value Value to be set |
292 | */ |
293 | public function offsetSet($offset, mixed $value): void |
294 | { |
295 | if (is_null($offset)) { |
296 | $this->container[] = $value; |
297 | } else { |
298 | $this->container[$offset] = $value; |
299 | } |
300 | } |
301 | |
302 | /** |
303 | * Unsets offset. |
304 | * |
305 | * @param int $offset Offset |
306 | */ |
307 | public function offsetUnset($offset): void |
308 | { |
309 | unset($this->container[$offset]); |
310 | } |
311 | |
312 | /** |
313 | * Gets the string presentation of the object in a pretty JSON format. |
314 | * |
315 | */ |
316 | public function toPrettyString(): string |
317 | { |
318 | return json_encode( |
319 | ObjectSerializer::sanitizeForSerialization($this), |
320 | JSON_PRETTY_PRINT |
321 | ); |
322 | } |
323 | } |