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