Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
26.92% |
7 / 26 |
|
35.29% |
6 / 17 |
CRAP | |
0.00% |
0 / 1 |
EventsGetResponse | |
26.92% |
7 / 26 |
|
35.29% |
6 / 17 |
193.10 | |
0.00% |
0 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
2 | |||
__toString | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
swaggerTypes | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
swaggerFormats | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
attributeMap | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setters | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getters | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getModelName | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
listInvalidProperties | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
6 | |||
valid | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getProducts | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setProducts | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
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 | * EventsGetResponse. |
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 | * EventsGetResponse Class Doc Comment. |
34 | * |
35 | * @category Class |
36 | * |
37 | * @description Contains results from all activated products - Fingerprint Pro, Bot Detection, and others. |
38 | * |
39 | * @author Swagger Codegen team |
40 | * |
41 | * @see https://github.com/swagger-api/swagger-codegen |
42 | */ |
43 | class EventsGetResponse implements ModelInterface, \ArrayAccess |
44 | { |
45 | /** |
46 | * The original name of the model. |
47 | * |
48 | */ |
49 | protected static string $swaggerModelName = 'EventsGetResponse'; |
50 | |
51 | /** |
52 | * Array of property to type mappings. Used for (de)serialization. |
53 | * |
54 | * @var string[] |
55 | */ |
56 | protected static array $swaggerTypes = [ |
57 | 'products' => '\Fingerprint\ServerAPI\Model\Products']; |
58 | |
59 | /** |
60 | * Array of property to format mappings. Used for (de)serialization. |
61 | * |
62 | * @var string[] |
63 | */ |
64 | protected static array $swaggerFormats = [ |
65 | 'products' => null]; |
66 | |
67 | /** |
68 | * Array of attributes where the key is the local name, |
69 | * and the value is the original name. |
70 | * |
71 | * @var string[] |
72 | */ |
73 | protected static array $attributeMap = [ |
74 | 'products' => 'products']; |
75 | |
76 | /** |
77 | * Array of attributes to setter functions (for deserialization of responses). |
78 | * |
79 | * @var string[] |
80 | */ |
81 | protected static array $setters = [ |
82 | 'products' => 'setProducts']; |
83 | |
84 | /** |
85 | * Array of attributes to getter functions (for serialization of requests). |
86 | * |
87 | * @var string[] |
88 | */ |
89 | protected static array $getters = [ |
90 | 'products' => 'getProducts']; |
91 | |
92 | /** |
93 | * Associative array for storing property values. |
94 | * |
95 | * @var mixed[] |
96 | */ |
97 | protected array $container = []; |
98 | |
99 | /** |
100 | * Constructor. |
101 | * |
102 | * @param mixed[] $data Associated array of property values |
103 | * initializing the model |
104 | */ |
105 | public function __construct(?array $data = null) |
106 | { |
107 | $this->container['products'] = isset($data['products']) ? $data['products'] : null; |
108 | } |
109 | |
110 | /** |
111 | * Gets the string presentation of the object. |
112 | * |
113 | */ |
114 | public function __toString(): string |
115 | { |
116 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); |
117 | } |
118 | |
119 | /** |
120 | * Array of property to type mappings. Used for (de)serialization. |
121 | */ |
122 | public static function swaggerTypes(): array |
123 | { |
124 | return self::$swaggerTypes; |
125 | } |
126 | |
127 | /** |
128 | * Array of property to format mappings. Used for (de)serialization. |
129 | */ |
130 | public static function swaggerFormats(): array |
131 | { |
132 | return self::$swaggerFormats; |
133 | } |
134 | |
135 | /** |
136 | * Array of attributes where the key is the local name, |
137 | * and the value is the original name. |
138 | */ |
139 | public static function attributeMap(): array |
140 | { |
141 | return self::$attributeMap; |
142 | } |
143 | |
144 | /** |
145 | * Array of attributes to setter functions (for deserialization of responses). |
146 | */ |
147 | public static function setters(): array |
148 | { |
149 | return self::$setters; |
150 | } |
151 | |
152 | /** |
153 | * Array of attributes to getter functions (for serialization of requests). |
154 | */ |
155 | public static function getters(): array |
156 | { |
157 | return self::$getters; |
158 | } |
159 | |
160 | /** |
161 | * The original name of the model. |
162 | */ |
163 | public function getModelName(): string |
164 | { |
165 | return self::$swaggerModelName; |
166 | } |
167 | |
168 | /** |
169 | * Show all the invalid properties with reasons. |
170 | * |
171 | * @return array invalid properties with reasons |
172 | */ |
173 | public function listInvalidProperties(): array |
174 | { |
175 | $invalidProperties = []; |
176 | |
177 | if (null === $this->container['products']) { |
178 | $invalidProperties[] = "'products' can't be null"; |
179 | } |
180 | |
181 | return $invalidProperties; |
182 | } |
183 | |
184 | /** |
185 | * Validate all the properties in the model |
186 | * return true if all passed. |
187 | * |
188 | * @return bool True if all properties are valid |
189 | */ |
190 | public function valid(): bool |
191 | { |
192 | return 0 === count($this->listInvalidProperties()); |
193 | } |
194 | |
195 | /** |
196 | * Gets products. |
197 | */ |
198 | public function getProducts(): Products |
199 | { |
200 | return $this->container['products']; |
201 | } |
202 | |
203 | /** |
204 | * Sets products. |
205 | * |
206 | * @param Products $products products |
207 | * |
208 | * @return $this |
209 | */ |
210 | public function setProducts(Products $products): self |
211 | { |
212 | $this->container['products'] = $products; |
213 | |
214 | return $this; |
215 | } |
216 | |
217 | /** |
218 | * Returns true if offset exists. False otherwise. |
219 | * |
220 | * @param int $offset Offset |
221 | */ |
222 | public function offsetExists($offset): bool |
223 | { |
224 | return isset($this->container[$offset]); |
225 | } |
226 | |
227 | /** |
228 | * Gets offset. |
229 | * |
230 | * @param int $offset Offset |
231 | */ |
232 | public function offsetGet($offset): mixed |
233 | { |
234 | return isset($this->container[$offset]) ? $this->container[$offset] : null; |
235 | } |
236 | |
237 | /** |
238 | * Sets value based on offset. |
239 | * |
240 | * @param int $offset Offset |
241 | * @param mixed $value Value to be set |
242 | */ |
243 | public function offsetSet($offset, mixed $value): void |
244 | { |
245 | if (is_null($offset)) { |
246 | $this->container[] = $value; |
247 | } else { |
248 | $this->container[$offset] = $value; |
249 | } |
250 | } |
251 | |
252 | /** |
253 | * Unsets offset. |
254 | * |
255 | * @param int $offset Offset |
256 | */ |
257 | public function offsetUnset($offset): void |
258 | { |
259 | unset($this->container[$offset]); |
260 | } |
261 | |
262 | /** |
263 | * Gets the string presentation of the object in a pretty JSON format. |
264 | * |
265 | */ |
266 | public function toPrettyString(): string |
267 | { |
268 | return json_encode( |
269 | ObjectSerializer::sanitizeForSerialization($this), |
270 | JSON_PRETTY_PRINT |
271 | ); |
272 | } |
273 | } |