Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 26 |
|
0.00% |
0 / 17 |
CRAP | |
0.00% |
0 / 1 |
Jailbroken | |
0.00% |
0 / 26 |
|
0.00% |
0 / 17 |
462 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
6 | |||
__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 / 4 |
|
0.00% |
0 / 1 |
6 | |||
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 | |||
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 | * Jailbroken. |
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 | * Jailbroken 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 Jailbroken implements ModelInterface, \ArrayAccess |
42 | { |
43 | /** |
44 | * The original name of the model. |
45 | * |
46 | */ |
47 | protected static string $swaggerModelName = 'Jailbroken'; |
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 | |
57 | /** |
58 | * Array of property to format mappings. Used for (de)serialization. |
59 | * |
60 | * @var string[] |
61 | */ |
62 | protected static array $swaggerFormats = [ |
63 | 'result' => null]; |
64 | |
65 | /** |
66 | * Array of attributes where the key is the local name, |
67 | * and the value is the original name. |
68 | * |
69 | * @var string[] |
70 | */ |
71 | protected static array $attributeMap = [ |
72 | 'result' => 'result']; |
73 | |
74 | /** |
75 | * Array of attributes to setter functions (for deserialization of responses). |
76 | * |
77 | * @var string[] |
78 | */ |
79 | protected static array $setters = [ |
80 | 'result' => 'setResult']; |
81 | |
82 | /** |
83 | * Array of attributes to getter functions (for serialization of requests). |
84 | * |
85 | * @var string[] |
86 | */ |
87 | protected static array $getters = [ |
88 | 'result' => 'getResult']; |
89 | |
90 | /** |
91 | * Associative array for storing property values. |
92 | * |
93 | * @var mixed[] |
94 | */ |
95 | protected array $container = []; |
96 | |
97 | /** |
98 | * Constructor. |
99 | * |
100 | * @param mixed[] $data Associated array of property values |
101 | * initializing the model |
102 | */ |
103 | public function __construct(?array $data = null) |
104 | { |
105 | $this->container['result'] = isset($data['result']) ? $data['result'] : null; |
106 | } |
107 | |
108 | /** |
109 | * Gets the string presentation of the object. |
110 | * |
111 | */ |
112 | public function __toString(): string |
113 | { |
114 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); |
115 | } |
116 | |
117 | /** |
118 | * Array of property to type mappings. Used for (de)serialization. |
119 | */ |
120 | public static function swaggerTypes(): array |
121 | { |
122 | return self::$swaggerTypes; |
123 | } |
124 | |
125 | /** |
126 | * Array of property to format mappings. Used for (de)serialization. |
127 | */ |
128 | public static function swaggerFormats(): array |
129 | { |
130 | return self::$swaggerFormats; |
131 | } |
132 | |
133 | /** |
134 | * Array of attributes where the key is the local name, |
135 | * and the value is the original name. |
136 | */ |
137 | public static function attributeMap(): array |
138 | { |
139 | return self::$attributeMap; |
140 | } |
141 | |
142 | /** |
143 | * Array of attributes to setter functions (for deserialization of responses). |
144 | */ |
145 | public static function setters(): array |
146 | { |
147 | return self::$setters; |
148 | } |
149 | |
150 | /** |
151 | * Array of attributes to getter functions (for serialization of requests). |
152 | */ |
153 | public static function getters(): array |
154 | { |
155 | return self::$getters; |
156 | } |
157 | |
158 | /** |
159 | * The original name of the model. |
160 | */ |
161 | public function getModelName(): string |
162 | { |
163 | return self::$swaggerModelName; |
164 | } |
165 | |
166 | /** |
167 | * Show all the invalid properties with reasons. |
168 | * |
169 | * @return array invalid properties with reasons |
170 | */ |
171 | public function listInvalidProperties(): array |
172 | { |
173 | $invalidProperties = []; |
174 | |
175 | if (null === $this->container['result']) { |
176 | $invalidProperties[] = "'result' can't be null"; |
177 | } |
178 | |
179 | return $invalidProperties; |
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 result. |
195 | */ |
196 | public function getResult(): bool |
197 | { |
198 | return $this->container['result']; |
199 | } |
200 | |
201 | /** |
202 | * Sets result. |
203 | * |
204 | * @param bool $result iOS specific jailbreak detection. There are 2 values: * `true` - Jailbreak detected. * `false` - No signs of jailbreak or the client is not iOS. |
205 | * |
206 | * @return $this |
207 | */ |
208 | public function setResult(bool $result): self |
209 | { |
210 | $this->container['result'] = $result; |
211 | |
212 | return $this; |
213 | } |
214 | |
215 | /** |
216 | * Returns true if offset exists. False otherwise. |
217 | * |
218 | * @param int $offset Offset |
219 | */ |
220 | public function offsetExists($offset): bool |
221 | { |
222 | return isset($this->container[$offset]); |
223 | } |
224 | |
225 | /** |
226 | * Gets offset. |
227 | * |
228 | * @param int $offset Offset |
229 | */ |
230 | public function offsetGet($offset): mixed |
231 | { |
232 | return isset($this->container[$offset]) ? $this->container[$offset] : null; |
233 | } |
234 | |
235 | /** |
236 | * Sets value based on offset. |
237 | * |
238 | * @param int $offset Offset |
239 | * @param mixed $value Value to be set |
240 | */ |
241 | public function offsetSet($offset, mixed $value): void |
242 | { |
243 | if (is_null($offset)) { |
244 | $this->container[] = $value; |
245 | } else { |
246 | $this->container[$offset] = $value; |
247 | } |
248 | } |
249 | |
250 | /** |
251 | * Unsets offset. |
252 | * |
253 | * @param int $offset Offset |
254 | */ |
255 | public function offsetUnset($offset): void |
256 | { |
257 | unset($this->container[$offset]); |
258 | } |
259 | |
260 | /** |
261 | * Gets the string presentation of the object in a pretty JSON format. |
262 | * |
263 | */ |
264 | public function toPrettyString(): string |
265 | { |
266 | return json_encode( |
267 | ObjectSerializer::sanitizeForSerialization($this), |
268 | JSON_PRETTY_PRINT |
269 | ); |
270 | } |
271 | } |