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