Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 31 |
|
0.00% |
0 / 21 |
CRAP | |
0.00% |
0 / 1 |
EventsUpdateRequest | |
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 | |||
getLinkedId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setLinkedId | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
getTag | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setTag | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
getSuspect | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setSuspect | |
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 | * EventsUpdateRequest. |
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 | * EventsUpdateRequest 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 EventsUpdateRequest implements ModelInterface, \ArrayAccess |
42 | { |
43 | /** |
44 | * The original name of the model. |
45 | * |
46 | */ |
47 | protected static string $swaggerModelName = 'EventsUpdateRequest'; |
48 | |
49 | /** |
50 | * Array of property to type mappings. Used for (de)serialization. |
51 | * |
52 | * @var string[] |
53 | */ |
54 | protected static array $swaggerTypes = [ |
55 | 'linked_id' => 'string', |
56 | 'tag' => 'array', |
57 | 'suspect' => '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 | 'linked_id' => null, |
66 | 'tag' => null, |
67 | 'suspect' => 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 | 'linked_id' => 'linkedId', |
77 | 'tag' => 'tag', |
78 | 'suspect' => 'suspect']; |
79 | |
80 | /** |
81 | * Array of attributes to setter functions (for deserialization of responses). |
82 | * |
83 | * @var string[] |
84 | */ |
85 | protected static array $setters = [ |
86 | 'linked_id' => 'setLinkedId', |
87 | 'tag' => 'setTag', |
88 | 'suspect' => 'setSuspect']; |
89 | |
90 | /** |
91 | * Array of attributes to getter functions (for serialization of requests). |
92 | * |
93 | * @var string[] |
94 | */ |
95 | protected static array $getters = [ |
96 | 'linked_id' => 'getLinkedId', |
97 | 'tag' => 'getTag', |
98 | 'suspect' => 'getSuspect']; |
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['linked_id'] = isset($data['linked_id']) ? $data['linked_id'] : null; |
116 | $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; |
117 | $this->container['suspect'] = isset($data['suspect']) ? $data['suspect'] : 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 linked_id. |
201 | */ |
202 | public function getLinkedId(): ?string |
203 | { |
204 | return $this->container['linked_id']; |
205 | } |
206 | |
207 | /** |
208 | * Sets linked_id. |
209 | * |
210 | * @param ?string $linked_id LinkedID value to assign to the existing event |
211 | * |
212 | * @return $this |
213 | */ |
214 | public function setLinkedId(?string $linked_id): self |
215 | { |
216 | $this->container['linked_id'] = $linked_id; |
217 | |
218 | return $this; |
219 | } |
220 | |
221 | /** |
222 | * Gets tag. |
223 | */ |
224 | public function getTag(): ?array |
225 | { |
226 | return $this->container['tag']; |
227 | } |
228 | |
229 | /** |
230 | * Sets tag. |
231 | * |
232 | * @param ?array $tag tag |
233 | * |
234 | * @return $this |
235 | */ |
236 | public function setTag(?array $tag): self |
237 | { |
238 | $this->container['tag'] = $tag; |
239 | |
240 | return $this; |
241 | } |
242 | |
243 | /** |
244 | * Gets suspect. |
245 | */ |
246 | public function getSuspect(): ?bool |
247 | { |
248 | return $this->container['suspect']; |
249 | } |
250 | |
251 | /** |
252 | * Sets suspect. |
253 | * |
254 | * @param ?bool $suspect Suspect flag indicating observed suspicious or fraudulent event |
255 | * |
256 | * @return $this |
257 | */ |
258 | public function setSuspect(?bool $suspect): self |
259 | { |
260 | $this->container['suspect'] = $suspect; |
261 | |
262 | return $this; |
263 | } |
264 | |
265 | /** |
266 | * Returns true if offset exists. False otherwise. |
267 | * |
268 | * @param int $offset Offset |
269 | */ |
270 | public function offsetExists($offset): bool |
271 | { |
272 | return isset($this->container[$offset]); |
273 | } |
274 | |
275 | /** |
276 | * Gets offset. |
277 | * |
278 | * @param int $offset Offset |
279 | */ |
280 | public function offsetGet($offset): mixed |
281 | { |
282 | return isset($this->container[$offset]) ? $this->container[$offset] : null; |
283 | } |
284 | |
285 | /** |
286 | * Sets value based on offset. |
287 | * |
288 | * @param int $offset Offset |
289 | * @param mixed $value Value to be set |
290 | */ |
291 | public function offsetSet($offset, mixed $value): void |
292 | { |
293 | if (is_null($offset)) { |
294 | $this->container[] = $value; |
295 | } else { |
296 | $this->container[$offset] = $value; |
297 | } |
298 | } |
299 | |
300 | /** |
301 | * Unsets offset. |
302 | * |
303 | * @param int $offset Offset |
304 | */ |
305 | public function offsetUnset($offset): void |
306 | { |
307 | unset($this->container[$offset]); |
308 | } |
309 | |
310 | /** |
311 | * Gets the string presentation of the object in a pretty JSON format. |
312 | * |
313 | */ |
314 | public function toPrettyString(): string |
315 | { |
316 | return json_encode( |
317 | ObjectSerializer::sanitizeForSerialization($this), |
318 | JSON_PRETTY_PRINT |
319 | ); |
320 | } |
321 | } |