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