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