Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 23 |
|
0.00% |
0 / 17 |
CRAP | |
0.00% |
0 / 1 |
WebhookRemoteControl | |
0.00% |
0 / 23 |
|
0.00% |
0 / 17 |
420 | |
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 / 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 | |||
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 | * WebhookRemoteControl. |
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 | * WebhookRemoteControl 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 WebhookRemoteControl implements ModelInterface, \ArrayAccess |
42 | { |
43 | /** |
44 | * The original name of the model. |
45 | * |
46 | */ |
47 | protected static string $swaggerModelName = 'WebhookRemoteControl'; |
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 | return []; |
174 | } |
175 | |
176 | /** |
177 | * Validate all the properties in the model |
178 | * return true if all passed. |
179 | * |
180 | * @return bool True if all properties are valid |
181 | */ |
182 | public function valid(): bool |
183 | { |
184 | return 0 === count($this->listInvalidProperties()); |
185 | } |
186 | |
187 | /** |
188 | * Gets result. |
189 | */ |
190 | public function getResult(): ?bool |
191 | { |
192 | return $this->container['result']; |
193 | } |
194 | |
195 | /** |
196 | * Sets result. |
197 | * |
198 | * @param ?bool $result `true` if the request came from a machine being remotely controlled (e.g. TeamViewer), `false` otherwise. |
199 | * |
200 | * @return $this |
201 | */ |
202 | public function setResult(?bool $result): self |
203 | { |
204 | $this->container['result'] = $result; |
205 | |
206 | return $this; |
207 | } |
208 | |
209 | /** |
210 | * Returns true if offset exists. False otherwise. |
211 | * |
212 | * @param int $offset Offset |
213 | */ |
214 | public function offsetExists($offset): bool |
215 | { |
216 | return isset($this->container[$offset]); |
217 | } |
218 | |
219 | /** |
220 | * Gets offset. |
221 | * |
222 | * @param int $offset Offset |
223 | */ |
224 | public function offsetGet($offset): mixed |
225 | { |
226 | return isset($this->container[$offset]) ? $this->container[$offset] : null; |
227 | } |
228 | |
229 | /** |
230 | * Sets value based on offset. |
231 | * |
232 | * @param int $offset Offset |
233 | * @param mixed $value Value to be set |
234 | */ |
235 | public function offsetSet($offset, mixed $value): void |
236 | { |
237 | if (is_null($offset)) { |
238 | $this->container[] = $value; |
239 | } else { |
240 | $this->container[$offset] = $value; |
241 | } |
242 | } |
243 | |
244 | /** |
245 | * Unsets offset. |
246 | * |
247 | * @param int $offset Offset |
248 | */ |
249 | public function offsetUnset($offset): void |
250 | { |
251 | unset($this->container[$offset]); |
252 | } |
253 | |
254 | /** |
255 | * Gets the string presentation of the object in a pretty JSON format. |
256 | * |
257 | */ |
258 | public function toPrettyString(): string |
259 | { |
260 | return json_encode( |
261 | ObjectSerializer::sanitizeForSerialization($this), |
262 | JSON_PRETTY_PRINT |
263 | ); |
264 | } |
265 | } |