Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 39 |
|
0.00% |
0 / 25 |
CRAP | |
0.00% |
0 / 1 |
| WebhookVPN | |
0.00% |
0 / 39 |
|
0.00% |
0 / 25 |
1056 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
42 | |||
| __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 | |||
| getConfidence | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setConfidence | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getOriginTimezone | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setOriginTimezone | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getOriginCountry | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setOriginCountry | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getMethods | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setMethods | |
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 | * WebhookVPN. |
| 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 | |
| 28 | namespace Fingerprint\ServerAPI\Model; |
| 29 | |
| 30 | use Fingerprint\ServerAPI\ObjectSerializer; |
| 31 | |
| 32 | /** |
| 33 | * WebhookVPN 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 WebhookVPN implements ModelInterface, \ArrayAccess |
| 42 | { |
| 43 | /** |
| 44 | * The original name of the model. |
| 45 | * |
| 46 | */ |
| 47 | protected static string $swaggerModelName = 'WebhookVPN'; |
| 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 | 'confidence' => '\Fingerprint\ServerAPI\Model\VPNConfidence', |
| 57 | 'origin_timezone' => 'string', |
| 58 | 'origin_country' => 'string', |
| 59 | 'methods' => '\Fingerprint\ServerAPI\Model\VPNMethods']; |
| 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 | 'confidence' => null, |
| 69 | 'origin_timezone' => null, |
| 70 | 'origin_country' => null, |
| 71 | 'methods' => null]; |
| 72 | |
| 73 | /** |
| 74 | * Array of attributes where the key is the local name, |
| 75 | * and the value is the original name. |
| 76 | * |
| 77 | * @var string[] |
| 78 | */ |
| 79 | protected static array $attributeMap = [ |
| 80 | 'result' => 'result', |
| 81 | 'confidence' => 'confidence', |
| 82 | 'origin_timezone' => 'originTimezone', |
| 83 | 'origin_country' => 'originCountry', |
| 84 | 'methods' => 'methods']; |
| 85 | |
| 86 | /** |
| 87 | * Array of attributes to setter functions (for deserialization of responses). |
| 88 | * |
| 89 | * @var string[] |
| 90 | */ |
| 91 | protected static array $setters = [ |
| 92 | 'result' => 'setResult', |
| 93 | 'confidence' => 'setConfidence', |
| 94 | 'origin_timezone' => 'setOriginTimezone', |
| 95 | 'origin_country' => 'setOriginCountry', |
| 96 | 'methods' => 'setMethods']; |
| 97 | |
| 98 | /** |
| 99 | * Array of attributes to getter functions (for serialization of requests). |
| 100 | * |
| 101 | * @var string[] |
| 102 | */ |
| 103 | protected static array $getters = [ |
| 104 | 'result' => 'getResult', |
| 105 | 'confidence' => 'getConfidence', |
| 106 | 'origin_timezone' => 'getOriginTimezone', |
| 107 | 'origin_country' => 'getOriginCountry', |
| 108 | 'methods' => 'getMethods']; |
| 109 | |
| 110 | /** |
| 111 | * Associative array for storing property values. |
| 112 | * |
| 113 | * @var mixed[] |
| 114 | */ |
| 115 | protected array $container = []; |
| 116 | |
| 117 | /** |
| 118 | * Constructor. |
| 119 | * |
| 120 | * @param mixed[] $data Associated array of property values |
| 121 | * initializing the model |
| 122 | */ |
| 123 | public function __construct(?array $data = null) |
| 124 | { |
| 125 | $this->container['result'] = isset($data['result']) ? $data['result'] : null; |
| 126 | $this->container['confidence'] = isset($data['confidence']) ? $data['confidence'] : null; |
| 127 | $this->container['origin_timezone'] = isset($data['origin_timezone']) ? $data['origin_timezone'] : null; |
| 128 | $this->container['origin_country'] = isset($data['origin_country']) ? $data['origin_country'] : null; |
| 129 | $this->container['methods'] = isset($data['methods']) ? $data['methods'] : null; |
| 130 | } |
| 131 | |
| 132 | /** |
| 133 | * Gets the string presentation of the object. |
| 134 | * |
| 135 | */ |
| 136 | public function __toString(): string |
| 137 | { |
| 138 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); |
| 139 | } |
| 140 | |
| 141 | /** |
| 142 | * Array of property to type mappings. Used for (de)serialization. |
| 143 | */ |
| 144 | public static function swaggerTypes(): array |
| 145 | { |
| 146 | return self::$swaggerTypes; |
| 147 | } |
| 148 | |
| 149 | /** |
| 150 | * Array of property to format mappings. Used for (de)serialization. |
| 151 | */ |
| 152 | public static function swaggerFormats(): array |
| 153 | { |
| 154 | return self::$swaggerFormats; |
| 155 | } |
| 156 | |
| 157 | /** |
| 158 | * Array of attributes where the key is the local name, |
| 159 | * and the value is the original name. |
| 160 | */ |
| 161 | public static function attributeMap(): array |
| 162 | { |
| 163 | return self::$attributeMap; |
| 164 | } |
| 165 | |
| 166 | /** |
| 167 | * Array of attributes to setter functions (for deserialization of responses). |
| 168 | */ |
| 169 | public static function setters(): array |
| 170 | { |
| 171 | return self::$setters; |
| 172 | } |
| 173 | |
| 174 | /** |
| 175 | * Array of attributes to getter functions (for serialization of requests). |
| 176 | */ |
| 177 | public static function getters(): array |
| 178 | { |
| 179 | return self::$getters; |
| 180 | } |
| 181 | |
| 182 | /** |
| 183 | * The original name of the model. |
| 184 | */ |
| 185 | public function getModelName(): string |
| 186 | { |
| 187 | return self::$swaggerModelName; |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * Show all the invalid properties with reasons. |
| 192 | * |
| 193 | * @return array invalid properties with reasons |
| 194 | */ |
| 195 | public function listInvalidProperties(): array |
| 196 | { |
| 197 | return []; |
| 198 | } |
| 199 | |
| 200 | /** |
| 201 | * Validate all the properties in the model |
| 202 | * return true if all passed. |
| 203 | * |
| 204 | * @return bool True if all properties are valid |
| 205 | */ |
| 206 | public function valid(): bool |
| 207 | { |
| 208 | return 0 === count($this->listInvalidProperties()); |
| 209 | } |
| 210 | |
| 211 | /** |
| 212 | * Gets result. |
| 213 | */ |
| 214 | public function getResult(): ?bool |
| 215 | { |
| 216 | return $this->container['result']; |
| 217 | } |
| 218 | |
| 219 | /** |
| 220 | * Sets result. |
| 221 | * |
| 222 | * @param ?bool $result VPN or other anonymizing service has been used when sending the request |
| 223 | * |
| 224 | * @return $this |
| 225 | */ |
| 226 | public function setResult(?bool $result): self |
| 227 | { |
| 228 | $this->container['result'] = $result; |
| 229 | |
| 230 | return $this; |
| 231 | } |
| 232 | |
| 233 | /** |
| 234 | * Gets confidence. |
| 235 | */ |
| 236 | public function getConfidence(): ?VPNConfidence |
| 237 | { |
| 238 | return $this->container['confidence']; |
| 239 | } |
| 240 | |
| 241 | /** |
| 242 | * Sets confidence. |
| 243 | * |
| 244 | * @param ?\Fingerprint\ServerAPI\Model\VPNConfidence $confidence confidence |
| 245 | * |
| 246 | * @return $this |
| 247 | */ |
| 248 | public function setConfidence(?VPNConfidence $confidence): self |
| 249 | { |
| 250 | $this->container['confidence'] = $confidence; |
| 251 | |
| 252 | return $this; |
| 253 | } |
| 254 | |
| 255 | /** |
| 256 | * Gets origin_timezone. |
| 257 | */ |
| 258 | public function getOriginTimezone(): ?string |
| 259 | { |
| 260 | return $this->container['origin_timezone']; |
| 261 | } |
| 262 | |
| 263 | /** |
| 264 | * Sets origin_timezone. |
| 265 | * |
| 266 | * @param ?string $origin_timezone local timezone which is used in timezoneMismatch method |
| 267 | * |
| 268 | * @return $this |
| 269 | */ |
| 270 | public function setOriginTimezone(?string $origin_timezone): self |
| 271 | { |
| 272 | $this->container['origin_timezone'] = $origin_timezone; |
| 273 | |
| 274 | return $this; |
| 275 | } |
| 276 | |
| 277 | /** |
| 278 | * Gets origin_country. |
| 279 | */ |
| 280 | public function getOriginCountry(): ?string |
| 281 | { |
| 282 | return $this->container['origin_country']; |
| 283 | } |
| 284 | |
| 285 | /** |
| 286 | * Sets origin_country. |
| 287 | * |
| 288 | * @param ?string $origin_country Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown). |
| 289 | * |
| 290 | * @return $this |
| 291 | */ |
| 292 | public function setOriginCountry(?string $origin_country): self |
| 293 | { |
| 294 | $this->container['origin_country'] = $origin_country; |
| 295 | |
| 296 | return $this; |
| 297 | } |
| 298 | |
| 299 | /** |
| 300 | * Gets methods. |
| 301 | */ |
| 302 | public function getMethods(): ?VPNMethods |
| 303 | { |
| 304 | return $this->container['methods']; |
| 305 | } |
| 306 | |
| 307 | /** |
| 308 | * Sets methods. |
| 309 | * |
| 310 | * @param ?\Fingerprint\ServerAPI\Model\VPNMethods $methods methods |
| 311 | * |
| 312 | * @return $this |
| 313 | */ |
| 314 | public function setMethods(?VPNMethods $methods): self |
| 315 | { |
| 316 | $this->container['methods'] = $methods; |
| 317 | |
| 318 | return $this; |
| 319 | } |
| 320 | |
| 321 | /** |
| 322 | * Returns true if offset exists. False otherwise. |
| 323 | * |
| 324 | * @param int $offset Offset |
| 325 | */ |
| 326 | public function offsetExists($offset): bool |
| 327 | { |
| 328 | return isset($this->container[$offset]); |
| 329 | } |
| 330 | |
| 331 | /** |
| 332 | * Gets offset. |
| 333 | * |
| 334 | * @param int $offset Offset |
| 335 | */ |
| 336 | public function offsetGet($offset): mixed |
| 337 | { |
| 338 | return isset($this->container[$offset]) ? $this->container[$offset] : null; |
| 339 | } |
| 340 | |
| 341 | /** |
| 342 | * Sets value based on offset. |
| 343 | * |
| 344 | * @param int $offset Offset |
| 345 | * @param mixed $value Value to be set |
| 346 | */ |
| 347 | public function offsetSet($offset, mixed $value): void |
| 348 | { |
| 349 | if (is_null($offset)) { |
| 350 | $this->container[] = $value; |
| 351 | } else { |
| 352 | $this->container[$offset] = $value; |
| 353 | } |
| 354 | } |
| 355 | |
| 356 | /** |
| 357 | * Unsets offset. |
| 358 | * |
| 359 | * @param int $offset Offset |
| 360 | */ |
| 361 | public function offsetUnset($offset): void |
| 362 | { |
| 363 | unset($this->container[$offset]); |
| 364 | } |
| 365 | |
| 366 | /** |
| 367 | * Gets the string presentation of the object in a pretty JSON format. |
| 368 | * |
| 369 | */ |
| 370 | public function toPrettyString(): string |
| 371 | { |
| 372 | return json_encode( |
| 373 | ObjectSerializer::sanitizeForSerialization($this), |
| 374 | JSON_PRETTY_PRINT |
| 375 | ); |
| 376 | } |
| 377 | } |