From 1684e1ab02b3c44ad82c8ec04480dc1388b8e219 Mon Sep 17 00:00:00 2001 From: Orkun Date: Wed, 4 Sep 2024 12:38:38 +0300 Subject: [PATCH] chore: regenerate from template for v5 --- src/Api/FingerprintApi.php | 978 ++++++++++-------- src/ApiException.php | 28 +- src/Configuration.php | 161 +-- src/Model/ASN.php | 214 ++-- src/Model/BotdDetectionResult.php | 207 ++-- src/Model/BotdResult.php | 303 +++--- src/Model/BrowserDetails.php | 311 +++--- src/Model/ClonedAppResult.php | 188 ++-- src/Model/Common403ErrorResponse.php | 217 ++-- src/Model/Confidence.php | 197 ++-- src/Model/DataCenter.php | 195 ++-- src/Model/DeprecatedIPLocation.php | 332 +++--- src/Model/DeprecatedIPLocationCity.php | 189 ++-- src/Model/DeveloperToolsResult.php | 190 ++-- src/Model/EmulatorResult.php | 188 ++-- src/Model/ErrorCommon403Response.php | 193 ++-- src/Model/ErrorCommon429Response.php | 193 ++-- src/Model/ErrorCommon429ResponseError.php | 203 ++-- src/Model/ErrorEvent404Response.php | 193 ++-- src/Model/ErrorEvent404ResponseError.php | 201 ++-- src/Model/ErrorUpdateEvent400Response.php | 193 ++-- .../ErrorUpdateEvent400ResponseError.php | 205 ++-- src/Model/ErrorUpdateEvent409Response.php | 193 ++-- .../ErrorUpdateEvent409ResponseError.php | 201 ++-- src/Model/ErrorVisitor400Response.php | 193 ++-- src/Model/ErrorVisitor400ResponseError.php | 203 ++-- src/Model/ErrorVisitor404Response.php | 193 ++-- src/Model/ErrorVisitor404ResponseError.php | 201 ++-- src/Model/ErrorVisits403.php | 190 ++-- src/Model/EventResponse.php | 206 ++-- src/Model/EventUpdateRequest.php | 213 ++-- src/Model/FactoryResetResult.php | 197 ++-- src/Model/FridaResult.php | 188 ++-- src/Model/HighActivityResult.php | 199 ++-- src/Model/IPLocation.php | 331 +++--- src/Model/IPLocationCity.php | 189 ++-- src/Model/IdentificationError.php | 205 ++-- src/Model/IncognitoResult.php | 190 ++-- src/Model/IpBlockListResult.php | 205 ++-- src/Model/IpBlockListResultDetails.php | 201 ++-- src/Model/IpInfoResult.php | 205 ++-- src/Model/IpInfoResultV4.php | 245 +++-- src/Model/IpInfoResultV6.php | 245 +++-- src/Model/JailbrokenResult.php | 188 ++-- src/Model/Location.php | 197 ++-- src/Model/LocationSpoofingResult.php | 190 ++-- src/Model/ModelInterface.php | 22 +- src/Model/PrivacySettingsResult.php | 188 ++-- src/Model/ProductError.php | 205 ++-- src/Model/ProductsResponse.php | 667 ++++++------ src/Model/ProductsResponseBotd.php | 204 ++-- src/Model/ProductsResponseIdentification.php | 204 ++-- .../ProductsResponseIdentificationData.php | 494 +++++---- src/Model/ProxyResult.php | 190 ++-- src/Model/RawDeviceAttributesResult.php | 179 ++-- src/Model/RemoteControlResult.php | 188 ++-- src/Model/Response.php | 232 ++--- src/Model/ResponseVisits.php | 473 +++++---- src/Model/RootAppsResult.php | 188 ++-- src/Model/SeenAt.php | 197 ++-- src/Model/SignalResponseClonedApp.php | 204 ++-- src/Model/SignalResponseDeveloperTools.php | 204 ++-- src/Model/SignalResponseEmulator.php | 204 ++-- src/Model/SignalResponseFactoryReset.php | 204 ++-- src/Model/SignalResponseFrida.php | 204 ++-- src/Model/SignalResponseHighActivity.php | 204 ++-- src/Model/SignalResponseIncognito.php | 204 ++-- src/Model/SignalResponseIpBlocklist.php | 204 ++-- src/Model/SignalResponseIpInfo.php | 204 ++-- src/Model/SignalResponseJailbroken.php | 204 ++-- src/Model/SignalResponseLocationSpoofing.php | 204 ++-- src/Model/SignalResponsePrivacySettings.php | 204 ++-- src/Model/SignalResponseProxy.php | 204 ++-- .../SignalResponseRawDeviceAttributes.php | 204 ++-- src/Model/SignalResponseRemoteControl.php | 204 ++-- src/Model/SignalResponseRootApps.php | 204 ++-- src/Model/SignalResponseSuspectScore.php | 204 ++-- src/Model/SignalResponseTampering.php | 204 ++-- src/Model/SignalResponseTor.php | 204 ++-- src/Model/SignalResponseVelocity.php | 204 ++-- src/Model/SignalResponseVirtualMachine.php | 204 ++-- src/Model/SignalResponseVpn.php | 204 ++-- src/Model/Subdivision.php | 196 ++-- src/Model/SuspectScoreResult.php | 188 ++-- src/Model/TamperingResult.php | 199 ++-- src/Model/TooManyRequestsResponse.php | 190 ++-- src/Model/TorResult.php | 190 ++-- src/Model/VelocityIntervalResult.php | 215 ++-- src/Model/VelocityIntervals.php | 193 ++-- src/Model/VelocityResult.php | 260 +++-- src/Model/VirtualMachineResult.php | 188 ++-- src/Model/Visit.php | 471 +++++---- src/Model/VpnResult.php | 243 +++-- src/Model/VpnResultMethods.php | 241 +++-- src/Model/WebhookVisit.php | 944 ++++++++--------- 95 files changed, 10916 insertions(+), 11168 deletions(-) diff --git a/src/Api/FingerprintApi.php b/src/Api/FingerprintApi.php index efe7553b..444ed1d9 100644 --- a/src/Api/FingerprintApi.php +++ b/src/Api/FingerprintApi.php @@ -1,16 +1,17 @@ client = $client ?: new Client(); $this->config = $config ?: new Configuration(); @@ -67,18 +71,19 @@ public function getConfig(): Configuration return $this->config; } - /** - * Operation deleteVisitorData + * Operation deleteVisitorData. * * Delete data by visitor ID * - * @param string $visitor_id The [visitor ID](https://dev.fingerprint.com/docs/js-agent#visitorid) you want to delete. (required) + * @param string $visitor_id The [visitor ID](https://dev.fingerprint.com/docs/js-agent#visitorid) you want to delete. (required) + * + * @return array{ null, \Psr\Http\Message\ResponseInterface } + * * @throws \InvalidArgumentException * @throws SerializationException * @throws GuzzleException * @throws ApiException - * @return array{ null, \Psr\Http\Message\ResponseInterface } */ public function deleteVisitorData(string $visitor_id): array { @@ -87,6 +92,7 @@ public function deleteVisitorData(string $visitor_id): array try { $options = $this->createHttpClientOption(); + try { $response = $this->client->send($request, $options); } catch (RequestException $e) { @@ -95,6 +101,7 @@ public function deleteVisitorData(string $visitor_id): array $e->getCode() ); $apiException->setResponseObject($e->getResponse()); + throw $apiException; } @@ -110,60 +117,69 @@ public function deleteVisitorData(string $visitor_id): array $statusCode ); $apiException->setResponseObject($response); + throw $apiException; } return [null, $response]; - } catch (ApiException $e) { /** @var ResponseInterface $response */ $response = $e->getResponseObject(); + switch ($e->getCode()) { - case 400: - $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorVisitor400Response'); - $e->setErrorDetails($errorDetail); - $e->setResponseObject($response); - break; - case 403: - $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorCommon403Response'); - $e->setErrorDetails($errorDetail); - $e->setResponseObject($response); - break; - case 404: - $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorVisitor404Response'); - $e->setErrorDetails($errorDetail); - $e->setResponseObject($response); - break; - case 429: - $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorCommon429Response'); - $e->setErrorDetails($errorDetail); - $e->setResponseObject($response); - break; - } + case 400: + $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorVisitor400Response'); + $e->setErrorDetails($errorDetail); + $e->setResponseObject($response); - if ($e->getCode() === 429) { - $e->setRetryAfter(1); - if ($response->hasHeader('retry-after')) { - $e->setRetryAfter((int) $response->getHeader('retry-after')[0]); - } - } + break; + + case 403: + $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorCommon403Response'); + $e->setErrorDetails($errorDetail); + $e->setResponseObject($response); + + break; + + case 404: + $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorVisitor404Response'); + $e->setErrorDetails($errorDetail); + $e->setResponseObject($response); - throw $e; + break; + + case 429: + $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorCommon429Response'); + $e->setErrorDetails($errorDetail); + $e->setResponseObject($response); + + break; + } + + if (429 === $e->getCode()) { + $e->setRetryAfter(1); + if ($response->hasHeader('retry-after')) { + $e->setRetryAfter((int) $response->getHeader('retry-after')[0]); + } } + + throw $e; + } } /** - * Operation deleteVisitorDataAsync - * - * Delete data by visitor ID - * @param string $visitor_id The [visitor ID](https://dev.fingerprint.com/docs/js-agent#visitorid) you want to delete. (required) - * - * @throws \InvalidArgumentException - * @throws SerializationException - * @throws GuzzleException - * @throws ApiException - */ - public function deleteVisitorDataAsync(string $visitor_id): \GuzzleHttp\Promise\PromiseInterface + * Operation deleteVisitorDataAsync. + * + * Delete data by visitor ID + * + * @param string $visitor_id The [visitor ID](https://dev.fingerprint.com/docs/js-agent#visitorid) you want to delete. (required) + * + * @throws \InvalidArgumentException + * @throws SerializationException + * @throws GuzzleException + * @throws ApiException + */ + public function deleteVisitorDataAsync(string $visitor_id): PromiseInterface { $returnType = ''; $request = $this->deleteVisitorDataRequest($visitor_id); @@ -171,7 +187,7 @@ public function deleteVisitorDataAsync(string $visitor_id): \GuzzleHttp\Promise\ return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( - function ($response) use ($returnType, $request) { + function ($response) use ($request) { $statusCode = $response->getStatusCode(); if ($statusCode < 200 || $statusCode > 299) { @@ -184,37 +200,47 @@ function ($response) use ($returnType, $request) { $statusCode ); $apiException->setResponseObject($response); + throw $apiException; } + return [null, $response]; }, function ($e) { /** @var ResponseInterface $response */ $response = $e->getResponseObject(); + switch ($e->getCode()) { - case 400: + case 400: $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorVisitor400Response'); $e->setErrorDetails($errorDetail); $e->setResponseObject($response); + break; - case 403: + + case 403: $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorCommon403Response'); $e->setErrorDetails($errorDetail); $e->setResponseObject($response); + break; - case 404: + + case 404: $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorVisitor404Response'); $e->setErrorDetails($errorDetail); $e->setResponseObject($response); + break; - case 429: + + case 429: $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorCommon429Response'); $e->setErrorDetails($errorDetail); $e->setResponseObject($response); + break; } - if ($e->getCode() === 429) { + if (429 === $e->getCode()) { $e->setRetryAfter(1); if ($response->hasHeader('retry-after')) { $e->setRetryAfter((int) $response->getHeader('retry-after')[0]); @@ -227,86 +253,18 @@ function ($e) { } /** - * Create request for operation 'deleteVisitorData' + * Operation getEvent. * + * Get event by request ID * - * @throws \InvalidArgumentException - * @throws SerializationException - * @throws GuzzleException - * @throws ApiException - */ - protected function deleteVisitorDataRequest(string $visitor_id): \GuzzleHttp\Psr7\Request - { - // verify the required parameter 'visitor_id' is set - if ($visitor_id === null || (is_array($visitor_id) && count($visitor_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $visitor_id when calling deleteVisitorData' - ); - } - - $resourcePath = '/visitors/{visitor_id}'; - $headers = []; - $queryParams = ['ii' => $this->integration_info]; - $headerParams = []; - $httpBody = ''; - - - // path params - if ($visitor_id !== null) { - $resourcePath = str_replace( - '{' . 'visitor_id' . '}', - ObjectSerializer::toPathValue($visitor_id), - $resourcePath - ); - } - - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('Auth-API-Key'); - if ($apiKey !== null) { - $headers['Auth-API-Key'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('api_key'); - if ($apiKey !== null) { - $queryParams['api_key'] = $apiKey; - } - - $defaultHeaders = [ - 'Content-Type' => 'application/json', - 'Accept' => 'application/json', - ]; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = http_build_query($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - - /** - * Operation getEvent + * @param string $request_id The unique [identifier](https://dev.fingerprint.com/docs/js-agent#requestid) of each identification request. (required) * - * Get event by request ID + * @return array{ null|\Fingerprint\ServerAPI\Model\EventResponse, \Psr\Http\Message\ResponseInterface } * - * @param string $request_id The unique [identifier](https://dev.fingerprint.com/docs/js-agent#requestid) of each identification request. (required) * @throws \InvalidArgumentException * @throws SerializationException * @throws GuzzleException * @throws ApiException - * @return array{ \Fingerprint\ServerAPI\Model\EventResponse|null, \Psr\Http\Message\ResponseInterface } */ public function getEvent(string $request_id): array { @@ -315,6 +273,7 @@ public function getEvent(string $request_id): array try { $options = $this->createHttpClientOption(); + try { $response = $this->client->send($request, $options); } catch (RequestException $e) { @@ -323,6 +282,7 @@ public function getEvent(string $request_id): array $e->getCode() ); $apiException->setResponseObject($e->getResponse()); + throw $apiException; } @@ -338,58 +298,64 @@ public function getEvent(string $request_id): array $statusCode ); $apiException->setResponseObject($response); + throw $apiException; } - $serialized = ObjectSerializer::deserialize($response, $returnType); return [$serialized, $response]; - } catch (ApiException $e) { /** @var ResponseInterface $response */ $response = $e->getResponseObject(); + switch ($e->getCode()) { - case 200: - $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\EventResponse'); - $e->setErrorDetails($errorDetail); - $e->setResponseObject($response); - break; - case 403: - $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorCommon403Response'); - $e->setErrorDetails($errorDetail); - $e->setResponseObject($response); - break; - case 404: - $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorEvent404Response'); - $e->setErrorDetails($errorDetail); - $e->setResponseObject($response); - break; - } + case 200: + $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\EventResponse'); + $e->setErrorDetails($errorDetail); + $e->setResponseObject($response); - if ($e->getCode() === 429) { - $e->setRetryAfter(1); - if ($response->hasHeader('retry-after')) { - $e->setRetryAfter((int) $response->getHeader('retry-after')[0]); - } - } + break; + + case 403: + $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorCommon403Response'); + $e->setErrorDetails($errorDetail); + $e->setResponseObject($response); + + break; + + case 404: + $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorEvent404Response'); + $e->setErrorDetails($errorDetail); + $e->setResponseObject($response); - throw $e; + break; } + + if (429 === $e->getCode()) { + $e->setRetryAfter(1); + if ($response->hasHeader('retry-after')) { + $e->setRetryAfter((int) $response->getHeader('retry-after')[0]); + } + } + + throw $e; + } } /** - * Operation getEventAsync - * - * Get event by request ID - * @param string $request_id The unique [identifier](https://dev.fingerprint.com/docs/js-agent#requestid) of each identification request. (required) - * - * @throws \InvalidArgumentException - * @throws SerializationException - * @throws GuzzleException - * @throws ApiException - */ - public function getEventAsync(string $request_id): \GuzzleHttp\Promise\PromiseInterface + * Operation getEventAsync. + * + * Get event by request ID + * + * @param string $request_id The unique [identifier](https://dev.fingerprint.com/docs/js-agent#requestid) of each identification request. (required) + * + * @throws \InvalidArgumentException + * @throws SerializationException + * @throws GuzzleException + * @throws ApiException + */ + public function getEventAsync(string $request_id): PromiseInterface { $returnType = '\Fingerprint\ServerAPI\Model\EventResponse'; $request = $this->getEventRequest($request_id); @@ -410,6 +376,7 @@ function ($response) use ($returnType, $request) { $statusCode ); $apiException->setResponseObject($response); + throw $apiException; } @@ -420,25 +387,31 @@ function ($response) use ($returnType, $request) { function ($e) { /** @var ResponseInterface $response */ $response = $e->getResponseObject(); + switch ($e->getCode()) { - case 200: + case 200: $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\EventResponse'); $e->setErrorDetails($errorDetail); $e->setResponseObject($response); + break; - case 403: + + case 403: $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorCommon403Response'); $e->setErrorDetails($errorDetail); $e->setResponseObject($response); + break; - case 404: + + case 404: $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorEvent404Response'); $e->setErrorDetails($errorDetail); $e->setResponseObject($response); + break; } - if ($e->getCode() === 429) { + if (429 === $e->getCode()) { $e->setRetryAfter(1); if ($response->hasHeader('retry-after')) { $e->setRetryAfter((int) $response->getHeader('retry-after')[0]); @@ -451,99 +424,32 @@ function ($e) { } /** - * Create request for operation 'getEvent' + * Operation getVisits. * + * Get visits by visitor ID * - * @throws \InvalidArgumentException - * @throws SerializationException - * @throws GuzzleException - * @throws ApiException - */ - protected function getEventRequest(string $request_id): \GuzzleHttp\Psr7\Request - { - // verify the required parameter 'request_id' is set - if ($request_id === null || (is_array($request_id) && count($request_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $request_id when calling getEvent' - ); - } - - $resourcePath = '/events/{request_id}'; - $headers = []; - $queryParams = ['ii' => $this->integration_info]; - $headerParams = []; - $httpBody = ''; - - - // path params - if ($request_id !== null) { - $resourcePath = str_replace( - '{' . 'request_id' . '}', - ObjectSerializer::toPathValue($request_id), - $resourcePath - ); - } - - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('Auth-API-Key'); - if ($apiKey !== null) { - $headers['Auth-API-Key'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('api_key'); - if ($apiKey !== null) { - $queryParams['api_key'] = $apiKey; - } - - $defaultHeaders = [ - 'Content-Type' => 'application/json', - 'Accept' => 'application/json', - ]; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = http_build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - - /** - * Operation getVisits + * @param string $visitor_id Unique [visitor identifier](https://dev.fingerprint.com/docs/js-agent#visitorid) issued by Fingerprint Pro. (required) + * @param string $request_id Filter visits by `requestId`. Every identification request has a unique identifier associated with it called `requestId`. This identifier is returned to the client in the identification [result](https://dev.fingerprint.com/docs/js-agent#requestid). When you filter visits by `requestId`, only one visit will be returned. (optional) + * @param string $linked_id Filter visits by your custom identifier. You can use [`linkedId`](https://dev.fingerprint.com/docs/js-agent#linkedid) to associate identification requests with your own identifier, for example: session ID, purchase ID, or transaction ID. You can then use this `linked_id` parameter to retrieve all events associated with your custom identifier. (optional) + * @param int $limit Limit scanned results. For performance reasons, the API first scans some number of events before filtering them. Use `limit` to specify how many events are scanned before they are filtered by `requestId` or `linkedId`. Results are always returned sorted by the timestamp (most recent first). By default, the most recent 100 visits are scanned, the maximum is 500. (optional) + * @param string $pagination_key Use `paginationKey` to get the next page of results. When more results are available (e.g., you requested 200 results using `limit` parameter, but a total of 600 results are available), the `paginationKey` top-level attribute is added to the response. The key corresponds to the `requestId` of the last returned event. In the following request, use that value in the `paginationKey` parameter to get the next page of results: 1. First request, returning most recent 200 events: `GET api-base-url/visitors/:visitorId?limit=200` 2. Use `response.paginationKey` to get the next page of results: `GET api-base-url/visitors/:visitorId?limit=200&paginationKey=1683900801733.Ogvu1j` Pagination happens during scanning and before filtering, so you can get less visits than the `limit` you specified with more available on the next page. When there are no more results available for scanning, the `paginationKey` attribute is not returned. (optional) + * @param int $before ⚠️ Deprecated pagination method, please use `paginationKey` instead. Timestamp (in milliseconds since epoch) used to paginate results. (optional) * - * Get visits by visitor ID + * @return array{ null|\Fingerprint\ServerAPI\Model\Response, \Psr\Http\Message\ResponseInterface } * - * @param string $visitor_id Unique [visitor identifier](https://dev.fingerprint.com/docs/js-agent#visitorid) issued by Fingerprint Pro. (required) - * @param string $request_id Filter visits by `requestId`. Every identification request has a unique identifier associated with it called `requestId`. This identifier is returned to the client in the identification [result](https://dev.fingerprint.com/docs/js-agent#requestid). When you filter visits by `requestId`, only one visit will be returned. (optional) - * @param string $linked_id Filter visits by your custom identifier. You can use [`linkedId`](https://dev.fingerprint.com/docs/js-agent#linkedid) to associate identification requests with your own identifier, for example: session ID, purchase ID, or transaction ID. You can then use this `linked_id` parameter to retrieve all events associated with your custom identifier. (optional) - * @param int $limit Limit scanned results. For performance reasons, the API first scans some number of events before filtering them. Use `limit` to specify how many events are scanned before they are filtered by `requestId` or `linkedId`. Results are always returned sorted by the timestamp (most recent first). By default, the most recent 100 visits are scanned, the maximum is 500. (optional) - * @param string $pagination_key Use `paginationKey` to get the next page of results. When more results are available (e.g., you requested 200 results using `limit` parameter, but a total of 600 results are available), the `paginationKey` top-level attribute is added to the response. The key corresponds to the `requestId` of the last returned event. In the following request, use that value in the `paginationKey` parameter to get the next page of results: 1. First request, returning most recent 200 events: `GET api-base-url/visitors/:visitorId?limit=200` 2. Use `response.paginationKey` to get the next page of results: `GET api-base-url/visitors/:visitorId?limit=200&paginationKey=1683900801733.Ogvu1j` Pagination happens during scanning and before filtering, so you can get less visits than the `limit` you specified with more available on the next page. When there are no more results available for scanning, the `paginationKey` attribute is not returned. (optional) - * @param int $before ⚠️ Deprecated pagination method, please use `paginationKey` instead. Timestamp (in milliseconds since epoch) used to paginate results. (optional) * @throws \InvalidArgumentException * @throws SerializationException * @throws GuzzleException * @throws ApiException - * @return array{ \Fingerprint\ServerAPI\Model\Response|null, \Psr\Http\Message\ResponseInterface } */ - public function getVisits(string $visitor_id, string $request_id = null, string $linked_id = null, int $limit = null, string $pagination_key = null, int $before = null): array + public function getVisits(string $visitor_id, ?string $request_id = null, ?string $linked_id = null, ?int $limit = null, ?string $pagination_key = null, ?int $before = null): array { $returnType = '\Fingerprint\ServerAPI\Model\Response'; $request = $this->getVisitsRequest($visitor_id, $request_id, $linked_id, $limit, $pagination_key, $before); try { $options = $this->createHttpClientOption(); + try { $response = $this->client->send($request, $options); } catch (RequestException $e) { @@ -552,6 +458,7 @@ public function getVisits(string $visitor_id, string $request_id = null, string $e->getCode() ); $apiException->setResponseObject($e->getResponse()); + throw $apiException; } @@ -567,63 +474,69 @@ public function getVisits(string $visitor_id, string $request_id = null, string $statusCode ); $apiException->setResponseObject($response); + throw $apiException; } - $serialized = ObjectSerializer::deserialize($response, $returnType); return [$serialized, $response]; - } catch (ApiException $e) { /** @var ResponseInterface $response */ $response = $e->getResponseObject(); + switch ($e->getCode()) { - case 200: - $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\Response'); - $e->setErrorDetails($errorDetail); - $e->setResponseObject($response); - break; - case 403: - $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorVisits403'); - $e->setErrorDetails($errorDetail); - $e->setResponseObject($response); - break; - case 429: - $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\TooManyRequestsResponse'); - $e->setErrorDetails($errorDetail); - $e->setResponseObject($response); - break; - } + case 200: + $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\Response'); + $e->setErrorDetails($errorDetail); + $e->setResponseObject($response); - if ($e->getCode() === 429) { - $e->setRetryAfter(1); - if ($response->hasHeader('retry-after')) { - $e->setRetryAfter((int) $response->getHeader('retry-after')[0]); - } - } + break; + + case 403: + $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorVisits403'); + $e->setErrorDetails($errorDetail); + $e->setResponseObject($response); + + break; - throw $e; + case 429: + $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\TooManyRequestsResponse'); + $e->setErrorDetails($errorDetail); + $e->setResponseObject($response); + + break; + } + + if (429 === $e->getCode()) { + $e->setRetryAfter(1); + if ($response->hasHeader('retry-after')) { + $e->setRetryAfter((int) $response->getHeader('retry-after')[0]); + } } + + throw $e; + } } /** - * Operation getVisitsAsync - * - * Get visits by visitor ID - * @param string $visitor_id Unique [visitor identifier](https://dev.fingerprint.com/docs/js-agent#visitorid) issued by Fingerprint Pro. (required) - * @param string $request_id Filter visits by `requestId`. Every identification request has a unique identifier associated with it called `requestId`. This identifier is returned to the client in the identification [result](https://dev.fingerprint.com/docs/js-agent#requestid). When you filter visits by `requestId`, only one visit will be returned. (optional) - * @param string $linked_id Filter visits by your custom identifier. You can use [`linkedId`](https://dev.fingerprint.com/docs/js-agent#linkedid) to associate identification requests with your own identifier, for example: session ID, purchase ID, or transaction ID. You can then use this `linked_id` parameter to retrieve all events associated with your custom identifier. (optional) - * @param int $limit Limit scanned results. For performance reasons, the API first scans some number of events before filtering them. Use `limit` to specify how many events are scanned before they are filtered by `requestId` or `linkedId`. Results are always returned sorted by the timestamp (most recent first). By default, the most recent 100 visits are scanned, the maximum is 500. (optional) - * @param string $pagination_key Use `paginationKey` to get the next page of results. When more results are available (e.g., you requested 200 results using `limit` parameter, but a total of 600 results are available), the `paginationKey` top-level attribute is added to the response. The key corresponds to the `requestId` of the last returned event. In the following request, use that value in the `paginationKey` parameter to get the next page of results: 1. First request, returning most recent 200 events: `GET api-base-url/visitors/:visitorId?limit=200` 2. Use `response.paginationKey` to get the next page of results: `GET api-base-url/visitors/:visitorId?limit=200&paginationKey=1683900801733.Ogvu1j` Pagination happens during scanning and before filtering, so you can get less visits than the `limit` you specified with more available on the next page. When there are no more results available for scanning, the `paginationKey` attribute is not returned. (optional) - * @param int $before ⚠️ Deprecated pagination method, please use `paginationKey` instead. Timestamp (in milliseconds since epoch) used to paginate results. (optional) - * - * @throws \InvalidArgumentException - * @throws SerializationException - * @throws GuzzleException - * @throws ApiException - */ - public function getVisitsAsync(string $visitor_id, string $request_id = null, string $linked_id = null, int $limit = null, string $pagination_key = null, int $before = null): \GuzzleHttp\Promise\PromiseInterface + * Operation getVisitsAsync. + * + * Get visits by visitor ID + * + * @param string $visitor_id Unique [visitor identifier](https://dev.fingerprint.com/docs/js-agent#visitorid) issued by Fingerprint Pro. (required) + * @param string $request_id Filter visits by `requestId`. Every identification request has a unique identifier associated with it called `requestId`. This identifier is returned to the client in the identification [result](https://dev.fingerprint.com/docs/js-agent#requestid). When you filter visits by `requestId`, only one visit will be returned. (optional) + * @param string $linked_id Filter visits by your custom identifier. You can use [`linkedId`](https://dev.fingerprint.com/docs/js-agent#linkedid) to associate identification requests with your own identifier, for example: session ID, purchase ID, or transaction ID. You can then use this `linked_id` parameter to retrieve all events associated with your custom identifier. (optional) + * @param int $limit Limit scanned results. For performance reasons, the API first scans some number of events before filtering them. Use `limit` to specify how many events are scanned before they are filtered by `requestId` or `linkedId`. Results are always returned sorted by the timestamp (most recent first). By default, the most recent 100 visits are scanned, the maximum is 500. (optional) + * @param string $pagination_key Use `paginationKey` to get the next page of results. When more results are available (e.g., you requested 200 results using `limit` parameter, but a total of 600 results are available), the `paginationKey` top-level attribute is added to the response. The key corresponds to the `requestId` of the last returned event. In the following request, use that value in the `paginationKey` parameter to get the next page of results: 1. First request, returning most recent 200 events: `GET api-base-url/visitors/:visitorId?limit=200` 2. Use `response.paginationKey` to get the next page of results: `GET api-base-url/visitors/:visitorId?limit=200&paginationKey=1683900801733.Ogvu1j` Pagination happens during scanning and before filtering, so you can get less visits than the `limit` you specified with more available on the next page. When there are no more results available for scanning, the `paginationKey` attribute is not returned. (optional) + * @param int $before ⚠️ Deprecated pagination method, please use `paginationKey` instead. Timestamp (in milliseconds since epoch) used to paginate results. (optional) + * + * @throws \InvalidArgumentException + * @throws SerializationException + * @throws GuzzleException + * @throws ApiException + */ + public function getVisitsAsync(string $visitor_id, ?string $request_id = null, ?string $linked_id = null, ?int $limit = null, ?string $pagination_key = null, ?int $before = null): PromiseInterface { $returnType = '\Fingerprint\ServerAPI\Model\Response'; $request = $this->getVisitsRequest($visitor_id, $request_id, $linked_id, $limit, $pagination_key, $before); @@ -644,6 +557,7 @@ function ($response) use ($returnType, $request) { $statusCode ); $apiException->setResponseObject($response); + throw $apiException; } @@ -654,25 +568,31 @@ function ($response) use ($returnType, $request) { function ($e) { /** @var ResponseInterface $response */ $response = $e->getResponseObject(); + switch ($e->getCode()) { - case 200: + case 200: $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\Response'); $e->setErrorDetails($errorDetail); $e->setResponseObject($response); + break; - case 403: + + case 403: $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorVisits403'); $e->setErrorDetails($errorDetail); $e->setResponseObject($response); + break; - case 429: + + case 429: $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\TooManyRequestsResponse'); $e->setErrorDetails($errorDetail); $e->setResponseObject($response); + break; } - if ($e->getCode() === 429) { + if (429 === $e->getCode()) { $e->setRetryAfter(1); if ($response->hasHeader('retry-after')) { $e->setRetryAfter((int) $response->getHeader('retry-after')[0]); @@ -685,115 +605,28 @@ function ($e) { } /** - * Create request for operation 'getVisits' + * Operation updateEvent. * + * Update an event with a given request ID * - * @throws \InvalidArgumentException - * @throws SerializationException - * @throws GuzzleException - * @throws ApiException - */ - protected function getVisitsRequest(string $visitor_id, string|null $request_id = null, string|null $linked_id = null, int|null $limit = null, string|null $pagination_key = null, int|null $before = null): \GuzzleHttp\Psr7\Request - { - // verify the required parameter 'visitor_id' is set - if ($visitor_id === null || (is_array($visitor_id) && count($visitor_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $visitor_id when calling getVisits' - ); - } - - $resourcePath = '/visitors/{visitor_id}'; - $headers = []; - $queryParams = ['ii' => $this->integration_info]; - $headerParams = []; - $httpBody = ''; - - // query params - if ($request_id !== null) { - $queryParams['request_id'] = ObjectSerializer::toQueryValue($request_id, null); - } - // query params - if ($linked_id !== null) { - $queryParams['linked_id'] = ObjectSerializer::toQueryValue($linked_id, null); - } - // query params - if ($limit !== null) { - $queryParams['limit'] = ObjectSerializer::toQueryValue($limit, 'int32'); - } - // query params - if ($pagination_key !== null) { - $queryParams['paginationKey'] = ObjectSerializer::toQueryValue($pagination_key, null); - } - // query params - if ($before !== null) { - $queryParams['before'] = ObjectSerializer::toQueryValue($before, 'int64'); - } - - // path params - if ($visitor_id !== null) { - $resourcePath = str_replace( - '{' . 'visitor_id' . '}', - ObjectSerializer::toPathValue($visitor_id), - $resourcePath - ); - } - - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('Auth-API-Key'); - if ($apiKey !== null) { - $headers['Auth-API-Key'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('api_key'); - if ($apiKey !== null) { - $queryParams['api_key'] = $apiKey; - } - - $defaultHeaders = [ - 'Content-Type' => 'application/json', - 'Accept' => 'application/json', - ]; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = http_build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - - /** - * Operation updateEvent + * @param EventUpdateRequest $body (required) + * @param string $request_id The unique event [identifier](https://dev.fingerprint.com/docs/js-agent#requestid). (required) * - * Update an event with a given request ID + * @return array{ null, \Psr\Http\Message\ResponseInterface } * - * @param \Fingerprint\ServerAPI\Model\EventUpdateRequest $body (required) - * @param string $request_id The unique event [identifier](https://dev.fingerprint.com/docs/js-agent#requestid). (required) * @throws \InvalidArgumentException * @throws SerializationException * @throws GuzzleException * @throws ApiException - * @return array{ null, \Psr\Http\Message\ResponseInterface } */ - public function updateEvent(\Fingerprint\ServerAPI\Model\EventUpdateRequest $body, string $request_id): array + public function updateEvent(EventUpdateRequest $body, string $request_id): array { $returnType = ''; $request = $this->updateEventRequest($body, $request_id); try { $options = $this->createHttpClientOption(); + try { $response = $this->client->send($request, $options); } catch (RequestException $e) { @@ -802,6 +635,7 @@ public function updateEvent(\Fingerprint\ServerAPI\Model\EventUpdateRequest $bod $e->getCode() ); $apiException->setResponseObject($e->getResponse()); + throw $apiException; } @@ -817,61 +651,70 @@ public function updateEvent(\Fingerprint\ServerAPI\Model\EventUpdateRequest $bod $statusCode ); $apiException->setResponseObject($response); + throw $apiException; } return [null, $response]; - } catch (ApiException $e) { /** @var ResponseInterface $response */ $response = $e->getResponseObject(); + switch ($e->getCode()) { - case 400: - $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorUpdateEvent400Response'); - $e->setErrorDetails($errorDetail); - $e->setResponseObject($response); - break; - case 403: - $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorCommon403Response'); - $e->setErrorDetails($errorDetail); - $e->setResponseObject($response); - break; - case 404: - $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorEvent404Response'); - $e->setErrorDetails($errorDetail); - $e->setResponseObject($response); - break; - case 409: - $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorUpdateEvent409Response'); - $e->setErrorDetails($errorDetail); - $e->setResponseObject($response); - break; - } + case 400: + $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorUpdateEvent400Response'); + $e->setErrorDetails($errorDetail); + $e->setResponseObject($response); - if ($e->getCode() === 429) { - $e->setRetryAfter(1); - if ($response->hasHeader('retry-after')) { - $e->setRetryAfter((int) $response->getHeader('retry-after')[0]); - } - } + break; + + case 403: + $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorCommon403Response'); + $e->setErrorDetails($errorDetail); + $e->setResponseObject($response); + + break; + + case 404: + $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorEvent404Response'); + $e->setErrorDetails($errorDetail); + $e->setResponseObject($response); - throw $e; + break; + + case 409: + $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorUpdateEvent409Response'); + $e->setErrorDetails($errorDetail); + $e->setResponseObject($response); + + break; + } + + if (429 === $e->getCode()) { + $e->setRetryAfter(1); + if ($response->hasHeader('retry-after')) { + $e->setRetryAfter((int) $response->getHeader('retry-after')[0]); + } } + + throw $e; + } } /** - * Operation updateEventAsync - * - * Update an event with a given request ID - * @param \Fingerprint\ServerAPI\Model\EventUpdateRequest $body (required) - * @param string $request_id The unique event [identifier](https://dev.fingerprint.com/docs/js-agent#requestid). (required) - * - * @throws \InvalidArgumentException - * @throws SerializationException - * @throws GuzzleException - * @throws ApiException - */ - public function updateEventAsync(\Fingerprint\ServerAPI\Model\EventUpdateRequest $body, string $request_id): \GuzzleHttp\Promise\PromiseInterface + * Operation updateEventAsync. + * + * Update an event with a given request ID + * + * @param EventUpdateRequest $body (required) + * @param string $request_id The unique event [identifier](https://dev.fingerprint.com/docs/js-agent#requestid). (required) + * + * @throws \InvalidArgumentException + * @throws SerializationException + * @throws GuzzleException + * @throws ApiException + */ + public function updateEventAsync(EventUpdateRequest $body, string $request_id): PromiseInterface { $returnType = ''; $request = $this->updateEventRequest($body, $request_id); @@ -879,7 +722,7 @@ public function updateEventAsync(\Fingerprint\ServerAPI\Model\EventUpdateRequest return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( - function ($response) use ($returnType, $request) { + function ($response) use ($request) { $statusCode = $response->getStatusCode(); if ($statusCode < 200 || $statusCode > 299) { @@ -892,37 +735,47 @@ function ($response) use ($returnType, $request) { $statusCode ); $apiException->setResponseObject($response); + throw $apiException; } + return [null, $response]; }, function ($e) { /** @var ResponseInterface $response */ $response = $e->getResponseObject(); + switch ($e->getCode()) { - case 400: + case 400: $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorUpdateEvent400Response'); $e->setErrorDetails($errorDetail); $e->setResponseObject($response); + break; - case 403: + + case 403: $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorCommon403Response'); $e->setErrorDetails($errorDetail); $e->setResponseObject($response); + break; - case 404: + + case 404: $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorEvent404Response'); $e->setErrorDetails($errorDetail); $e->setResponseObject($response); + break; - case 409: + + case 409: $errorDetail = ObjectSerializer::deserialize($response, '\Fingerprint\ServerAPI\Model\ErrorUpdateEvent409Response'); $e->setErrorDetails($errorDetail); $e->setResponseObject($response); + break; } - if ($e->getCode() === 429) { + if (429 === $e->getCode()) { $e->setRetryAfter(1); if ($response->hasHeader('retry-after')) { $e->setRetryAfter((int) $response->getHeader('retry-after')[0]); @@ -935,24 +788,245 @@ function ($e) { } /** - * Create request for operation 'updateEvent' + * Create request for operation 'deleteVisitorData'. + * + * @throws \InvalidArgumentException + * @throws SerializationException + * @throws GuzzleException + * @throws ApiException + */ + protected function deleteVisitorDataRequest(string $visitor_id): Request + { + // verify the required parameter 'visitor_id' is set + if (null === $visitor_id || (is_array($visitor_id) && 0 === count($visitor_id))) { + throw new \InvalidArgumentException( + 'Missing the required parameter $visitor_id when calling deleteVisitorData' + ); + } + + $resourcePath = '/visitors/{visitor_id}'; + $headers = []; + $queryParams = ['ii' => $this->integration_info]; + $headerParams = []; + $httpBody = ''; + + // path params + if (null !== $visitor_id) { + $resourcePath = str_replace( + '{visitor_id}', + ObjectSerializer::toPathValue($visitor_id), + $resourcePath + ); + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('Auth-API-Key'); + if (null !== $apiKey) { + $headers['Auth-API-Key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api_key'); + if (null !== $apiKey) { + $queryParams['api_key'] = $apiKey; + } + + $defaultHeaders = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = http_build_query($queryParams); + + return new Request( + 'DELETE', + $this->config->getHost().$resourcePath.($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create request for operation 'getEvent'. + * + * @throws \InvalidArgumentException + * @throws SerializationException + * @throws GuzzleException + * @throws ApiException + */ + protected function getEventRequest(string $request_id): Request + { + // verify the required parameter 'request_id' is set + if (null === $request_id || (is_array($request_id) && 0 === count($request_id))) { + throw new \InvalidArgumentException( + 'Missing the required parameter $request_id when calling getEvent' + ); + } + + $resourcePath = '/events/{request_id}'; + $headers = []; + $queryParams = ['ii' => $this->integration_info]; + $headerParams = []; + $httpBody = ''; + + // path params + if (null !== $request_id) { + $resourcePath = str_replace( + '{request_id}', + ObjectSerializer::toPathValue($request_id), + $resourcePath + ); + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('Auth-API-Key'); + if (null !== $apiKey) { + $headers['Auth-API-Key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api_key'); + if (null !== $apiKey) { + $queryParams['api_key'] = $apiKey; + } + + $defaultHeaders = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = http_build_query($queryParams); + + return new Request( + 'GET', + $this->config->getHost().$resourcePath.($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create request for operation 'getVisits'. * + * @throws \InvalidArgumentException + * @throws SerializationException + * @throws GuzzleException + * @throws ApiException + */ + protected function getVisitsRequest(string $visitor_id, ?string $request_id = null, ?string $linked_id = null, ?int $limit = null, ?string $pagination_key = null, ?int $before = null): Request + { + // verify the required parameter 'visitor_id' is set + if (null === $visitor_id || (is_array($visitor_id) && 0 === count($visitor_id))) { + throw new \InvalidArgumentException( + 'Missing the required parameter $visitor_id when calling getVisits' + ); + } + + $resourcePath = '/visitors/{visitor_id}'; + $headers = []; + $queryParams = ['ii' => $this->integration_info]; + $headerParams = []; + $httpBody = ''; + + // query params + if (null !== $request_id) { + $queryParams['request_id'] = ObjectSerializer::toQueryValue($request_id, null); + } + // query params + if (null !== $linked_id) { + $queryParams['linked_id'] = ObjectSerializer::toQueryValue($linked_id, null); + } + // query params + if (null !== $limit) { + $queryParams['limit'] = ObjectSerializer::toQueryValue($limit, 'int32'); + } + // query params + if (null !== $pagination_key) { + $queryParams['paginationKey'] = ObjectSerializer::toQueryValue($pagination_key, null); + } + // query params + if (null !== $before) { + $queryParams['before'] = ObjectSerializer::toQueryValue($before, 'int64'); + } + + // path params + if (null !== $visitor_id) { + $resourcePath = str_replace( + '{visitor_id}', + ObjectSerializer::toPathValue($visitor_id), + $resourcePath + ); + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('Auth-API-Key'); + if (null !== $apiKey) { + $headers['Auth-API-Key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api_key'); + if (null !== $apiKey) { + $queryParams['api_key'] = $apiKey; + } + + $defaultHeaders = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = http_build_query($queryParams); + + return new Request( + 'GET', + $this->config->getHost().$resourcePath.($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create request for operation 'updateEvent'. * * @throws \InvalidArgumentException * @throws SerializationException * @throws GuzzleException * @throws ApiException */ - protected function updateEventRequest(\Fingerprint\ServerAPI\Model\EventUpdateRequest $body, string $request_id): \GuzzleHttp\Psr7\Request + protected function updateEventRequest(EventUpdateRequest $body, string $request_id): Request { // verify the required parameter 'body' is set - if ($body === null || (is_array($body) && count($body) === 0)) { + if (null === $body || (is_array($body) && 0 === count($body))) { throw new \InvalidArgumentException( 'Missing the required parameter $body when calling updateEvent' ); } // verify the required parameter 'request_id' is set - if ($request_id === null || (is_array($request_id) && count($request_id) === 0)) { + if (null === $request_id || (is_array($request_id) && 0 === count($request_id))) { throw new \InvalidArgumentException( 'Missing the required parameter $request_id when calling updateEvent' ); @@ -964,11 +1038,10 @@ protected function updateEventRequest(\Fingerprint\ServerAPI\Model\EventUpdateRe $headerParams = []; $httpBody = ''; - // path params - if ($request_id !== null) { + if (null !== $request_id) { $resourcePath = str_replace( - '{' . 'request_id' . '}', + '{request_id}', ObjectSerializer::toPathValue($request_id), $resourcePath ); @@ -987,12 +1060,12 @@ protected function updateEventRequest(\Fingerprint\ServerAPI\Model\EventUpdateRe // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('Auth-API-Key'); - if ($apiKey !== null) { + if (null !== $apiKey) { $headers['Auth-API-Key'] = $apiKey; } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api_key'); - if ($apiKey !== null) { + if (null !== $apiKey) { $queryParams['api_key'] = $apiKey; } @@ -1011,16 +1084,17 @@ protected function updateEventRequest(\Fingerprint\ServerAPI\Model\EventUpdateRe ); $query = http_build_query($queryParams); + return new Request( 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $this->config->getHost().$resourcePath.($query ? "?{$query}" : ''), $headers, $httpBody ); } /** - * Create http client option + * Create http client option. * * @throws \RuntimeException on file opening failure */ @@ -1030,7 +1104,7 @@ protected function createHttpClientOption(): array if ($this->config->getDebug()) { $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + throw new \RuntimeException('Failed to open the debug file: '.$this->config->getDebugFile()); } } diff --git a/src/ApiException.php b/src/ApiException.php index 289293d3..1905ffe8 100644 --- a/src/ApiException.php +++ b/src/ApiException.php @@ -1,16 +1,17 @@ responseObject = $obj; @@ -83,4 +83,4 @@ public function setRetryAfter(?int $retryAfter): void { $this->retryAfter = $retryAfter; } -} \ No newline at end of file +} diff --git a/src/Configuration.php b/src/Configuration.php index 74227554..7d7ce356 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -1,16 +1,17 @@ apiKeys[$apiKeyIdentifier] = $key; + return $this; } /** - * Gets API key + * Gets API key. * * @param string $apiKeyIdentifier API key identifier (authentication scheme) * - * @return string|null API key or token + * @return null|string API key or token */ public function getApiKey(string $apiKeyIdentifier): ?string { @@ -129,25 +132,24 @@ public function getApiKey(string $apiKeyIdentifier): ?string } /** - * Sets the prefix for API key (e.g. Bearer) + * Sets the prefix for API key (e.g. Bearer). * * @param string $apiKeyIdentifier API key identifier (authentication scheme) - * @param string $prefix API key prefix, e.g. Bearer + * @param string $prefix API key prefix, e.g. Bearer * * @return $this */ public function setApiKeyPrefix(string $apiKeyIdentifier, string $prefix): self { $this->apiKeyPrefixes[$apiKeyIdentifier] = $prefix; + return $this; } /** - * Gets API key prefix + * Gets API key prefix. * * @param string $apiKeyIdentifier API key identifier (authentication scheme) - * - * @return string|null */ public function getApiKeyPrefix(string $apiKeyIdentifier): ?string { @@ -155,7 +157,7 @@ public function getApiKeyPrefix(string $apiKeyIdentifier): ?string } /** - * Sets the access token for OAuth + * Sets the access token for OAuth. * * @param string $accessToken Token for OAuth * @@ -164,11 +166,12 @@ public function getApiKeyPrefix(string $apiKeyIdentifier): ?string public function setAccessToken(string $accessToken): self { $this->accessToken = $accessToken; + return $this; } /** - * Gets the access token for OAuth + * Gets the access token for OAuth. * * @return string Access token for OAuth */ @@ -178,7 +181,7 @@ public function getAccessToken(): string } /** - * Sets the username for HTTP basic authentication + * Sets the username for HTTP basic authentication. * * @param string $username Username for HTTP basic authentication * @@ -187,11 +190,12 @@ public function getAccessToken(): string public function setUsername(string $username): self { $this->username = $username; + return $this; } /** - * Gets the username for HTTP basic authentication + * Gets the username for HTTP basic authentication. * * @return string Username for HTTP basic authentication */ @@ -201,7 +205,7 @@ public function getUsername(): string } /** - * Sets the password for HTTP basic authentication + * Sets the password for HTTP basic authentication. * * @param string $password Password for HTTP basic authentication * @@ -210,11 +214,12 @@ public function getUsername(): string public function setPassword(string $password): self { $this->password = $password; + return $this; } /** - * Gets the password for HTTP basic authentication + * Gets the password for HTTP basic authentication. * * @return string Password for HTTP basic authentication */ @@ -224,7 +229,7 @@ public function getPassword(): string } /** - * Sets the host + * Sets the host. * * @param string $host Host * @@ -233,11 +238,12 @@ public function getPassword(): string public function setHost(string $host): self { $this->host = $host; + return $this; } /** - * Gets the host + * Gets the host. * * @return string Host */ @@ -247,26 +253,30 @@ public function getHost(): string } /** - * @param $region * @return $this */ public function setRegion(?string $region = self::REGION_GLOBAL): self { switch (trim(strtolower($region))) { case self::REGION_ASIA: - case "as": - case "asia": + case 'as': + case 'asia': $this->setHost(self::REGION_ASIA); + break; + case self::REGION_EUROPE: - case "eu": - case "europe": + case 'eu': + case 'europe': $this->setHost(self::REGION_EUROPE); + break; + default: case self::REGION_GLOBAL: - case "global": + case 'global': $this->setHost(self::REGION_GLOBAL); + break; } @@ -274,11 +284,12 @@ public function setRegion(?string $region = self::REGION_GLOBAL): self } /** - * Sets the user agent of the api client + * Sets the user agent of the api client. * * @param string $userAgent the user agent of the api client * * @return $this + * * @throws \InvalidArgumentException */ public function setUserAgent(string $userAgent): self @@ -288,11 +299,12 @@ public function setUserAgent(string $userAgent): self } $this->userAgent = $userAgent; + return $this; } /** - * Gets the user agent of the api client + * Gets the user agent of the api client. * * @return string user agent */ @@ -302,7 +314,7 @@ public function getUserAgent(): string } /** - * Sets debug flag + * Sets debug flag. * * @param bool $debug Debug flag * @@ -311,13 +323,12 @@ public function getUserAgent(): string public function setDebug(bool $debug): self { $this->debug = $debug; + return $this; } /** - * Gets the debug flag - * - * @return bool + * Gets the debug flag. */ public function getDebug(): bool { @@ -325,7 +336,7 @@ public function getDebug(): bool } /** - * Sets the debug file + * Sets the debug file. * * @param string $debugFile Debug file * @@ -334,13 +345,12 @@ public function getDebug(): bool public function setDebugFile(string $debugFile): self { $this->debugFile = $debugFile; + return $this; } /** - * Gets the debug file - * - * @return string + * Gets the debug file. */ public function getDebugFile(): string { @@ -348,7 +358,7 @@ public function getDebugFile(): string } /** - * Sets the temp folder path + * Sets the temp folder path. * * @param string $tempFolderPath Temp folder path * @@ -357,11 +367,12 @@ public function getDebugFile(): string public function setTempFolderPath(string $tempFolderPath): self { $this->tempFolderPath = $tempFolderPath; + return $this; } /** - * Gets the temp folder path + * Gets the temp folder path. * * @return string Temp folder path */ @@ -371,15 +382,11 @@ public function getTempFolderPath(): string } /** - * Gets the default configuration instance, with apiKey and host params - * - * @param $api_key - * @param $region - * @return Configuration + * Gets the default configuration instance, with apiKey and host params. */ public static function getDefaultConfiguration(?string $api_key = null, ?string $region = self::REGION_GLOBAL): self { - if (self::$defaultConfiguration === null) { + if (null === self::$defaultConfiguration) { self::$defaultConfiguration = new Configuration(); } @@ -390,11 +397,9 @@ public static function getDefaultConfiguration(?string $api_key = null, ?string } /** - * Sets the detault configuration instance + * Sets the detault configuration instance. * * @param Configuration $config An instance of the Configuration Object - * - * @return void */ public static function setDefaultConfiguration(Configuration $config): void { @@ -402,44 +407,44 @@ public static function setDefaultConfiguration(Configuration $config): void } /** - * Gets the essential information for debugging + * Gets the essential information for debugging. * * @return string The report for debugging */ public static function toDebugReport(): string { - $report = 'PHP SDK (Fingerprint\ServerAPI) Debug Report:' . PHP_EOL; - $report .= ' OS: ' . php_uname() . PHP_EOL; - $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; - $report .= ' OpenAPI Spec Version: 3' . PHP_EOL; - $report .= ' SDK Package Version: dev-5.0.0-1' . PHP_EOL; - $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; + $report = 'PHP SDK (Fingerprint\ServerAPI) Debug Report:'.PHP_EOL; + $report .= ' OS: '.php_uname().PHP_EOL; + $report .= ' PHP Version: '.PHP_VERSION.PHP_EOL; + $report .= ' OpenAPI Spec Version: 3'.PHP_EOL; + $report .= ' SDK Package Version: dev-5.0.0-1'.PHP_EOL; + $report .= ' Temp Folder Path: '.self::getDefaultConfiguration()->getTempFolderPath().PHP_EOL; return $report; } /** - * Get API key (with prefix if set) + * Get API key (with prefix if set). * * @param string $apiKeyIdentifier name of apikey * - * @return string|null API key with the prefix + * @return null|string API key with the prefix */ public function getApiKeyWithPrefix(string $apiKeyIdentifier): ?string { $prefix = $this->getApiKeyPrefix($apiKeyIdentifier); $apiKey = $this->getApiKey($apiKeyIdentifier); - if ($apiKey === null) { + if (null === $apiKey) { return null; } - if ($prefix === null) { + if (null === $prefix) { $keyWithPrefix = $apiKey; } else { - $keyWithPrefix = $prefix . ' ' . $apiKey; + $keyWithPrefix = $prefix.' '.$apiKey; } return $keyWithPrefix; } -} \ No newline at end of file +} diff --git a/src/Model/ASN.php b/src/Model/ASN.php index 047feb46..6e544e45 100644 --- a/src/Model/ASN.php +++ b/src/Model/ASN.php @@ -1,14 +1,16 @@ 'string', -'network' => 'string', -'name' => 'string' ]; + 'network' => 'string', + 'name' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'asn' => null, -'network' => null, -'name' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'network' => null, + 'name' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'asn' => 'asn', -'network' => 'network', -'name' => 'name' ]; + 'network' => 'network', + 'name' => 'name']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'asn' => 'setAsn', -'network' => 'setNetwork', -'name' => 'setName' ]; + 'network' => 'setNetwork', + 'name' => 'setName']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'asn' => 'getAsn', -'network' => 'getNetwork', -'name' => 'getName' ]; + 'network' => 'getNetwork', + 'name' => 'getName']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['asn'] = isset($data['asn']) ? $data['asn'] : null; + $this->container['network'] = isset($data['network']) ? $data['network'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -122,7 +157,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -130,7 +165,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -145,28 +180,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['asn'] = isset($data['asn']) ? $data['asn'] : null; - $this->container['network'] = isset($data['network']) ? $data['network'] : null; - $this->container['name'] = isset($data['name']) ? $data['name'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -176,30 +189,29 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['asn'] === null) { + if (null === $this->container['asn']) { $invalidProperties[] = "'asn' can't be null"; } - if ($this->container['network'] === null) { + if (null === $this->container['network']) { $invalidProperties[] = "'network' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets asn - * @return string + * Gets asn. */ public function getAsn(): string { @@ -207,7 +219,7 @@ public function getAsn(): string } /** - * Sets asn + * Sets asn. * * @param string $asn asn * @@ -221,8 +233,7 @@ public function setAsn(string $asn): self } /** - * Gets network - * @return string + * Gets network. */ public function getNetwork(): string { @@ -230,7 +241,7 @@ public function getNetwork(): string } /** - * Sets network + * Sets network. * * @param string $network network * @@ -244,7 +255,8 @@ public function setNetwork(string $network): self } /** - * Gets name + * Gets name. + * * @return ?string */ public function getName(): ?string @@ -253,7 +265,7 @@ public function getName(): ?string } /** - * Sets name + * Sets name. * * @param ?string $name name * @@ -265,10 +277,11 @@ public function setName(?string $name): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -278,7 +291,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -288,8 +301,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -303,27 +316,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/BotdDetectionResult.php b/src/Model/BotdDetectionResult.php index a10a0694..27120931 100644 --- a/src/Model/BotdDetectionResult.php +++ b/src/Model/BotdDetectionResult.php @@ -1,14 +1,16 @@ 'string', -'type' => 'string' ]; + 'type' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'result' => null, -'type' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'type' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'result' => 'result', -'type' => 'type' ]; + 'type' => 'type']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'result' => 'setResult', -'type' => 'setType' ]; + 'type' => 'setType']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'result' => 'getResult', -'type' => 'getType' ]; + 'type' => 'getType']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -118,7 +157,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -126,7 +165,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -141,12 +180,8 @@ public function getModelName(): string return self::$swaggerModelName; } - const RESULT_NOT_DETECTED = 'notDetected'; -const RESULT_GOOD = 'good'; -const RESULT_BAD = 'bad'; - /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -154,27 +189,8 @@ public function getResultAllowableValues(): array { return [ self::RESULT_NOT_DETECTED, -self::RESULT_GOOD, -self::RESULT_BAD, ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['result'] = isset($data['result']) ? $data['result'] : null; - $this->container['type'] = isset($data['type']) ? $data['type'] : null; + self::RESULT_GOOD, + self::RESULT_BAD, ]; } /** @@ -186,7 +202,7 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } $allowedValues = $this->getResultAllowableValues(); @@ -202,19 +218,17 @@ public function listInvalidProperties(): array /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result - * @return string + * Gets result. */ public function getResult(): string { @@ -222,7 +236,7 @@ public function getResult(): string } /** - * Sets result + * Sets result. * * @param string $result Bot detection result: * `notDetected` - the visitor is not a bot * `good` - good bot detected, such as Google bot, Baidu Spider, AlexaBot and so on * `bad` - bad bot detected, such as Selenium, Puppeteer, Playwright, headless browsers, and so on * @@ -245,7 +259,8 @@ public function setResult(string $result): self } /** - * Gets type + * Gets type. + * * @return ?string */ public function getType(): ?string @@ -254,7 +269,7 @@ public function getType(): ?string } /** - * Sets type + * Sets type. * * @param ?string $type type * @@ -266,10 +281,11 @@ public function setType(?string $type): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -279,7 +295,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -289,8 +305,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -304,27 +320,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/BotdResult.php b/src/Model/BotdResult.php index fa60626e..178a37d2 100644 --- a/src/Model/BotdResult.php +++ b/src/Model/BotdResult.php @@ -1,14 +1,16 @@ 'string', -'time' => '\DateTime', -'url' => 'string', -'user_agent' => 'string', -'request_id' => 'string', -'linked_id' => 'string', -'bot' => '\Fingerprint\ServerAPI\Model\BotdDetectionResult' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'ip' => 'ipv4', -'time' => 'date-time', -'url' => null, -'user_agent' => null, -'request_id' => null, -'linked_id' => null, -'bot' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + 'time' => '\DateTime', + 'url' => 'string', + 'user_agent' => 'string', + 'request_id' => 'string', + 'linked_id' => 'string', + 'bot' => '\Fingerprint\ServerAPI\Model\BotdDetectionResult']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'ip' => 'ipv4', + 'time' => 'date-time', + 'url' => null, + 'user_agent' => null, + 'request_id' => null, + 'linked_id' => null, + 'bot' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'ip' => 'ip', -'time' => 'time', -'url' => 'url', -'user_agent' => 'userAgent', -'request_id' => 'requestId', -'linked_id' => 'linkedId', -'bot' => 'bot' ]; + 'time' => 'time', + 'url' => 'url', + 'user_agent' => 'userAgent', + 'request_id' => 'requestId', + 'linked_id' => 'linkedId', + 'bot' => 'bot']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'ip' => 'setIp', -'time' => 'setTime', -'url' => 'setUrl', -'user_agent' => 'setUserAgent', -'request_id' => 'setRequestId', -'linked_id' => 'setLinkedId', -'bot' => 'setBot' ]; + 'time' => 'setTime', + 'url' => 'setUrl', + 'user_agent' => 'setUserAgent', + 'request_id' => 'setRequestId', + 'linked_id' => 'setLinkedId', + 'bot' => 'setBot']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'ip' => 'getIp', -'time' => 'getTime', -'url' => 'getUrl', -'user_agent' => 'getUserAgent', -'request_id' => 'getRequestId', -'linked_id' => 'getLinkedId', -'bot' => 'getBot' ]; + 'time' => 'getTime', + 'url' => 'getUrl', + 'user_agent' => 'getUserAgent', + 'request_id' => 'getRequestId', + 'linked_id' => 'getLinkedId', + 'bot' => 'getBot']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['ip'] = isset($data['ip']) ? $data['ip'] : null; + $this->container['time'] = isset($data['time']) ? $data['time'] : null; + $this->container['url'] = isset($data['url']) ? $data['url'] : null; + $this->container['user_agent'] = isset($data['user_agent']) ? $data['user_agent'] : null; + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['linked_id'] = isset($data['linked_id']) ? $data['linked_id'] : null; + $this->container['bot'] = isset($data['bot']) ? $data['bot'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -143,7 +183,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -151,7 +191,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -166,32 +206,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['ip'] = isset($data['ip']) ? $data['ip'] : null; - $this->container['time'] = isset($data['time']) ? $data['time'] : null; - $this->container['url'] = isset($data['url']) ? $data['url'] : null; - $this->container['user_agent'] = isset($data['user_agent']) ? $data['user_agent'] : null; - $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; - $this->container['linked_id'] = isset($data['linked_id']) ? $data['linked_id'] : null; - $this->container['bot'] = isset($data['bot']) ? $data['bot'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -201,42 +215,41 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['ip'] === null) { + if (null === $this->container['ip']) { $invalidProperties[] = "'ip' can't be null"; } - if ($this->container['time'] === null) { + if (null === $this->container['time']) { $invalidProperties[] = "'time' can't be null"; } - if ($this->container['url'] === null) { + if (null === $this->container['url']) { $invalidProperties[] = "'url' can't be null"; } - if ($this->container['user_agent'] === null) { + if (null === $this->container['user_agent']) { $invalidProperties[] = "'user_agent' can't be null"; } - if ($this->container['request_id'] === null) { + if (null === $this->container['request_id']) { $invalidProperties[] = "'request_id' can't be null"; } - if ($this->container['bot'] === null) { + if (null === $this->container['bot']) { $invalidProperties[] = "'bot' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets ip - * @return string + * Gets ip. */ public function getIp(): string { @@ -244,9 +257,9 @@ public function getIp(): string } /** - * Sets ip + * Sets ip. * - * @param string $ip IP address of the requesting browser or bot. + * @param string $ip IP address of the requesting browser or bot * * @return $this */ @@ -258,8 +271,7 @@ public function setIp(string $ip): self } /** - * Gets time - * @return \DateTime + * Gets time. */ public function getTime(): \DateTime { @@ -267,7 +279,7 @@ public function getTime(): \DateTime } /** - * Sets time + * Sets time. * * @param \DateTime $time Time in UTC when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible * @@ -281,8 +293,7 @@ public function setTime(\DateTime $time): self } /** - * Gets url - * @return string + * Gets url. */ public function getUrl(): string { @@ -290,9 +301,9 @@ public function getUrl(): string } /** - * Sets url + * Sets url. * - * @param string $url Page URL from which identification request was sent. + * @param string $url page URL from which identification request was sent * * @return $this */ @@ -304,8 +315,7 @@ public function setUrl(string $url): self } /** - * Gets user_agent - * @return string + * Gets user_agent. */ public function getUserAgent(): string { @@ -313,7 +323,7 @@ public function getUserAgent(): string } /** - * Sets user_agent + * Sets user_agent. * * @param string $user_agent user_agent * @@ -327,8 +337,7 @@ public function setUserAgent(string $user_agent): self } /** - * Gets request_id - * @return string + * Gets request_id. */ public function getRequestId(): string { @@ -336,7 +345,7 @@ public function getRequestId(): string } /** - * Sets request_id + * Sets request_id. * * @param string $request_id request_id * @@ -350,7 +359,8 @@ public function setRequestId(string $request_id): self } /** - * Gets linked_id + * Gets linked_id. + * * @return ?string */ public function getLinkedId(): ?string @@ -359,7 +369,7 @@ public function getLinkedId(): ?string } /** - * Sets linked_id + * Sets linked_id. * * @param ?string $linked_id linked_id * @@ -373,31 +383,31 @@ public function setLinkedId(?string $linked_id): self } /** - * Gets bot - * @return \Fingerprint\ServerAPI\Model\BotdDetectionResult + * Gets bot. */ - public function getBot(): \Fingerprint\ServerAPI\Model\BotdDetectionResult + public function getBot(): BotdDetectionResult { return $this->container['bot']; } /** - * Sets bot + * Sets bot. * - * @param \Fingerprint\ServerAPI\Model\BotdDetectionResult $bot bot + * @param BotdDetectionResult $bot bot * * @return $this */ - public function setBot(\Fingerprint\ServerAPI\Model\BotdDetectionResult $bot): self + public function setBot(BotdDetectionResult $bot): self { $this->container['bot'] = $bot; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -407,7 +417,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -417,8 +427,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -432,27 +442,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/BrowserDetails.php b/src/Model/BrowserDetails.php index cdfa5fa6..d04d9bc8 100644 --- a/src/Model/BrowserDetails.php +++ b/src/Model/BrowserDetails.php @@ -1,14 +1,16 @@ 'string', -'browser_major_version' => 'string', -'browser_full_version' => 'string', -'os' => 'string', -'os_version' => 'string', -'device' => 'string', -'user_agent' => 'string', -'bot_probability' => 'int' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'browser_name' => null, -'browser_major_version' => null, -'browser_full_version' => null, -'os' => null, -'os_version' => null, -'device' => null, -'user_agent' => null, -'bot_probability' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + 'browser_major_version' => 'string', + 'browser_full_version' => 'string', + 'os' => 'string', + 'os_version' => 'string', + 'device' => 'string', + 'user_agent' => 'string', + 'bot_probability' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'browser_name' => null, + 'browser_major_version' => null, + 'browser_full_version' => null, + 'os' => null, + 'os_version' => null, + 'device' => null, + 'user_agent' => null, + 'bot_probability' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'browser_name' => 'browserName', -'browser_major_version' => 'browserMajorVersion', -'browser_full_version' => 'browserFullVersion', -'os' => 'os', -'os_version' => 'osVersion', -'device' => 'device', -'user_agent' => 'userAgent', -'bot_probability' => 'botProbability' ]; + 'browser_major_version' => 'browserMajorVersion', + 'browser_full_version' => 'browserFullVersion', + 'os' => 'os', + 'os_version' => 'osVersion', + 'device' => 'device', + 'user_agent' => 'userAgent', + 'bot_probability' => 'botProbability']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'browser_name' => 'setBrowserName', -'browser_major_version' => 'setBrowserMajorVersion', -'browser_full_version' => 'setBrowserFullVersion', -'os' => 'setOs', -'os_version' => 'setOsVersion', -'device' => 'setDevice', -'user_agent' => 'setUserAgent', -'bot_probability' => 'setBotProbability' ]; + 'browser_major_version' => 'setBrowserMajorVersion', + 'browser_full_version' => 'setBrowserFullVersion', + 'os' => 'setOs', + 'os_version' => 'setOsVersion', + 'device' => 'setDevice', + 'user_agent' => 'setUserAgent', + 'bot_probability' => 'setBotProbability']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'browser_name' => 'getBrowserName', -'browser_major_version' => 'getBrowserMajorVersion', -'browser_full_version' => 'getBrowserFullVersion', -'os' => 'getOs', -'os_version' => 'getOsVersion', -'device' => 'getDevice', -'user_agent' => 'getUserAgent', -'bot_probability' => 'getBotProbability' ]; + 'browser_major_version' => 'getBrowserMajorVersion', + 'browser_full_version' => 'getBrowserFullVersion', + 'os' => 'getOs', + 'os_version' => 'getOsVersion', + 'device' => 'getDevice', + 'user_agent' => 'getUserAgent', + 'bot_probability' => 'getBotProbability']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['browser_name'] = isset($data['browser_name']) ? $data['browser_name'] : null; + $this->container['browser_major_version'] = isset($data['browser_major_version']) ? $data['browser_major_version'] : null; + $this->container['browser_full_version'] = isset($data['browser_full_version']) ? $data['browser_full_version'] : null; + $this->container['os'] = isset($data['os']) ? $data['os'] : null; + $this->container['os_version'] = isset($data['os_version']) ? $data['os_version'] : null; + $this->container['device'] = isset($data['device']) ? $data['device'] : null; + $this->container['user_agent'] = isset($data['user_agent']) ? $data['user_agent'] : null; + $this->container['bot_probability'] = isset($data['bot_probability']) ? $data['bot_probability'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -147,7 +187,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -155,7 +195,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -170,33 +210,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['browser_name'] = isset($data['browser_name']) ? $data['browser_name'] : null; - $this->container['browser_major_version'] = isset($data['browser_major_version']) ? $data['browser_major_version'] : null; - $this->container['browser_full_version'] = isset($data['browser_full_version']) ? $data['browser_full_version'] : null; - $this->container['os'] = isset($data['os']) ? $data['os'] : null; - $this->container['os_version'] = isset($data['os_version']) ? $data['os_version'] : null; - $this->container['device'] = isset($data['device']) ? $data['device'] : null; - $this->container['user_agent'] = isset($data['user_agent']) ? $data['user_agent'] : null; - $this->container['bot_probability'] = isset($data['bot_probability']) ? $data['bot_probability'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -206,45 +219,44 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['browser_name'] === null) { + if (null === $this->container['browser_name']) { $invalidProperties[] = "'browser_name' can't be null"; } - if ($this->container['browser_major_version'] === null) { + if (null === $this->container['browser_major_version']) { $invalidProperties[] = "'browser_major_version' can't be null"; } - if ($this->container['browser_full_version'] === null) { + if (null === $this->container['browser_full_version']) { $invalidProperties[] = "'browser_full_version' can't be null"; } - if ($this->container['os'] === null) { + if (null === $this->container['os']) { $invalidProperties[] = "'os' can't be null"; } - if ($this->container['os_version'] === null) { + if (null === $this->container['os_version']) { $invalidProperties[] = "'os_version' can't be null"; } - if ($this->container['device'] === null) { + if (null === $this->container['device']) { $invalidProperties[] = "'device' can't be null"; } - if ($this->container['user_agent'] === null) { + if (null === $this->container['user_agent']) { $invalidProperties[] = "'user_agent' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets browser_name - * @return string + * Gets browser_name. */ public function getBrowserName(): string { @@ -252,7 +264,7 @@ public function getBrowserName(): string } /** - * Sets browser_name + * Sets browser_name. * * @param string $browser_name browser_name * @@ -266,8 +278,7 @@ public function setBrowserName(string $browser_name): self } /** - * Gets browser_major_version - * @return string + * Gets browser_major_version. */ public function getBrowserMajorVersion(): string { @@ -275,7 +286,7 @@ public function getBrowserMajorVersion(): string } /** - * Sets browser_major_version + * Sets browser_major_version. * * @param string $browser_major_version browser_major_version * @@ -289,8 +300,7 @@ public function setBrowserMajorVersion(string $browser_major_version): self } /** - * Gets browser_full_version - * @return string + * Gets browser_full_version. */ public function getBrowserFullVersion(): string { @@ -298,7 +308,7 @@ public function getBrowserFullVersion(): string } /** - * Sets browser_full_version + * Sets browser_full_version. * * @param string $browser_full_version browser_full_version * @@ -312,8 +322,7 @@ public function setBrowserFullVersion(string $browser_full_version): self } /** - * Gets os - * @return string + * Gets os. */ public function getOs(): string { @@ -321,7 +330,7 @@ public function getOs(): string } /** - * Sets os + * Sets os. * * @param string $os os * @@ -335,8 +344,7 @@ public function setOs(string $os): self } /** - * Gets os_version - * @return string + * Gets os_version. */ public function getOsVersion(): string { @@ -344,7 +352,7 @@ public function getOsVersion(): string } /** - * Sets os_version + * Sets os_version. * * @param string $os_version os_version * @@ -358,8 +366,7 @@ public function setOsVersion(string $os_version): self } /** - * Gets device - * @return string + * Gets device. */ public function getDevice(): string { @@ -367,7 +374,7 @@ public function getDevice(): string } /** - * Sets device + * Sets device. * * @param string $device device * @@ -381,8 +388,7 @@ public function setDevice(string $device): self } /** - * Gets user_agent - * @return string + * Gets user_agent. */ public function getUserAgent(): string { @@ -390,7 +396,7 @@ public function getUserAgent(): string } /** - * Sets user_agent + * Sets user_agent. * * @param string $user_agent user_agent * @@ -404,7 +410,8 @@ public function setUserAgent(string $user_agent): self } /** - * Gets bot_probability + * Gets bot_probability. + * * @return ?int */ public function getBotProbability(): ?int @@ -413,7 +420,7 @@ public function getBotProbability(): ?int } /** - * Sets bot_probability + * Sets bot_probability. * * @param ?int $bot_probability bot_probability * @@ -425,10 +432,11 @@ public function setBotProbability(?int $bot_probability): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -438,7 +446,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -448,8 +456,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -463,27 +471,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ClonedAppResult.php b/src/Model/ClonedAppResult.php index c8fe6616..61fd7c2d 100644 --- a/src/Model/ClonedAppResult.php +++ b/src/Model/ClonedAppResult.php @@ -1,14 +1,16 @@ 'bool' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'result' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'result' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'result' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'result' => 'result' ]; + 'result' => 'result']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'result' => 'setResult' ]; + 'result' => 'setResult']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'result' => 'getResult' ]; + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['result'] = isset($data['result']) ? $data['result'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -164,27 +177,26 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result - * @return bool + * Gets result. */ public function getResult(): bool { @@ -192,7 +204,7 @@ public function getResult(): bool } /** - * Sets result + * Sets result. * * @param bool $result Android specific cloned application detection. There are 2 values: • `true` - Presence of app cloners work detected (e.g. fully cloned application found or launch of it inside of a not main working profile detected). • `false` - No signs of cloned application detected or the client is not Android. * @@ -204,10 +216,11 @@ public function setResult(bool $result): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -217,7 +230,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -227,8 +240,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -242,27 +255,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/Common403ErrorResponse.php b/src/Model/Common403ErrorResponse.php index d6eb6180..f8e5fd06 100644 --- a/src/Model/Common403ErrorResponse.php +++ b/src/Model/Common403ErrorResponse.php @@ -1,14 +1,16 @@ 'string', -'message' => 'string' ]; + 'message' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'code' => null, -'message' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'message' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'code' => 'code', -'message' => 'message' ]; + 'message' => 'message']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'code' => 'setCode', -'message' => 'setMessage' ]; + 'message' => 'setMessage']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'code' => 'getCode', -'message' => 'getMessage' ]; + 'message' => 'getMessage']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +157,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +165,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,14 +180,8 @@ public function getModelName(): string return self::$swaggerModelName; } - const CODE_TOKEN_REQUIRED = 'TokenRequired'; -const CODE_TOKEN_NOT_FOUND = 'TokenNotFound'; -const CODE_SUBSCRIPTION_NOT_ACTIVE = 'SubscriptionNotActive'; -const CODE_WRONG_REGION = 'WrongRegion'; -const CODE_FEATURE_NOT_ENABLED = 'FeatureNotEnabled'; - /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -155,29 +189,10 @@ public function getCodeAllowableValues(): array { return [ self::CODE_TOKEN_REQUIRED, -self::CODE_TOKEN_NOT_FOUND, -self::CODE_SUBSCRIPTION_NOT_ACTIVE, -self::CODE_WRONG_REGION, -self::CODE_FEATURE_NOT_ENABLED, ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = isset($data['code']) ? $data['code'] : null; - $this->container['message'] = isset($data['message']) ? $data['message'] : null; + self::CODE_TOKEN_NOT_FOUND, + self::CODE_SUBSCRIPTION_NOT_ACTIVE, + self::CODE_WRONG_REGION, + self::CODE_FEATURE_NOT_ENABLED, ]; } /** @@ -189,7 +204,7 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['code'] === null) { + if (null === $this->container['code']) { $invalidProperties[] = "'code' can't be null"; } $allowedValues = $this->getCodeAllowableValues(); @@ -200,27 +215,26 @@ public function listInvalidProperties(): array ); } - if ($this->container['message'] === null) { + if (null === $this->container['message']) { $invalidProperties[] = "'message' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets code - * @return string + * Gets code. */ public function getCode(): string { @@ -228,7 +242,7 @@ public function getCode(): string } /** - * Sets code + * Sets code. * * @param string $code Error code: * `TokenRequired` - `Auth-API-Key` header is missing or empty * `TokenNotFound` - No Fingerprint application found for specified secret key * `SubscriptionNotActive` - Fingerprint application is not active * `WrongRegion` - server and application region differ * `FeatureNotEnabled` - this feature (for example, Delete API) is not enabled for your application * @@ -251,8 +265,7 @@ public function setCode(string $code): self } /** - * Gets message - * @return string + * Gets message. */ public function getMessage(): string { @@ -260,7 +273,7 @@ public function getMessage(): string } /** - * Sets message + * Sets message. * * @param string $message message * @@ -272,10 +285,11 @@ public function setMessage(string $message): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -285,7 +299,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -295,8 +309,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -310,27 +324,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/Confidence.php b/src/Model/Confidence.php index aaf47b96..9aeb20db 100644 --- a/src/Model/Confidence.php +++ b/src/Model/Confidence.php @@ -1,14 +1,16 @@ 'float', -'revision' => 'string' ]; + 'revision' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'score' => 'float', -'revision' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'revision' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'score' => 'score', -'revision' => 'revision' ]; + 'revision' => 'revision']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'score' => 'setScore', -'revision' => 'setRevision' ]; + 'revision' => 'setRevision']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'score' => 'getScore', -'revision' => 'getRevision' ]; + 'revision' => 'getRevision']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['score'] = isset($data['score']) ? $data['score'] : null; + $this->container['revision'] = isset($data['revision']) ? $data['revision'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['score'] = isset($data['score']) ? $data['score'] : null; - $this->container['revision'] = isset($data['revision']) ? $data['revision'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -170,27 +183,26 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['score'] === null) { + if (null === $this->container['score']) { $invalidProperties[] = "'score' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets score - * @return float + * Gets score. */ public function getScore(): float { @@ -198,9 +210,9 @@ public function getScore(): float } /** - * Sets score + * Sets score. * - * @param float $score The confidence score is a floating-point number between 0 and 1 that represents the probability of accurate identification. + * @param float $score the confidence score is a floating-point number between 0 and 1 that represents the probability of accurate identification * * @return $this */ @@ -212,7 +224,8 @@ public function setScore(float $score): self } /** - * Gets revision + * Gets revision. + * * @return ?string */ public function getRevision(): ?string @@ -221,7 +234,7 @@ public function getRevision(): ?string } /** - * Sets revision + * Sets revision. * * @param ?string $revision The revision name of the method used to calculate the Confidence score. This field is only present for customers who opted in to an alternative calculation method. * @@ -233,10 +246,11 @@ public function setRevision(?string $revision): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -246,7 +260,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -256,8 +270,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -271,27 +285,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/DataCenter.php b/src/Model/DataCenter.php index 1030a02d..1b8c9294 100644 --- a/src/Model/DataCenter.php +++ b/src/Model/DataCenter.php @@ -1,14 +1,16 @@ 'bool', -'name' => 'string' ]; + 'name' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'result' => null, -'name' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'name' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'result' => 'result', -'name' => 'name' ]; + 'name' => 'name']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'result' => 'setResult', -'name' => 'setName' ]; + 'name' => 'setName']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'result' => 'getResult', -'name' => 'getName' ]; + 'name' => 'getName']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['result'] = isset($data['result']) ? $data['result'] : null; - $this->container['name'] = isset($data['name']) ? $data['name'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -170,27 +183,26 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result - * @return bool + * Gets result. */ public function getResult(): bool { @@ -198,7 +210,7 @@ public function getResult(): bool } /** - * Sets result + * Sets result. * * @param bool $result result * @@ -212,7 +224,8 @@ public function setResult(bool $result): self } /** - * Gets name + * Gets name. + * * @return ?string */ public function getName(): ?string @@ -221,7 +234,7 @@ public function getName(): ?string } /** - * Sets name + * Sets name. * * @param ?string $name name * @@ -233,10 +246,11 @@ public function setName(?string $name): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -246,7 +260,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -256,8 +270,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -271,27 +285,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/DeprecatedIPLocation.php b/src/Model/DeprecatedIPLocation.php index af591b58..9739584c 100644 --- a/src/Model/DeprecatedIPLocation.php +++ b/src/Model/DeprecatedIPLocation.php @@ -1,14 +1,16 @@ 'int', -'latitude' => 'double', -'longitude' => 'double', -'postal_code' => 'string', -'timezone' => 'string', -'city' => '\Fingerprint\ServerAPI\Model\DeprecatedIPLocationCity', -'country' => '\Fingerprint\ServerAPI\Model\Location', -'continent' => '\Fingerprint\ServerAPI\Model\Location', -'subdivisions' => '\Fingerprint\ServerAPI\Model\Subdivision[]' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'accuracy_radius' => null, -'latitude' => 'double', -'longitude' => 'double', -'postal_code' => null, -'timezone' => 'timezone', -'city' => null, -'country' => null, -'continent' => null, -'subdivisions' => null ]; + 'latitude' => 'double', + 'longitude' => 'double', + 'postal_code' => 'string', + 'timezone' => 'string', + 'city' => '\Fingerprint\ServerAPI\Model\DeprecatedIPLocationCity', + 'country' => '\Fingerprint\ServerAPI\Model\Location', + 'continent' => '\Fingerprint\ServerAPI\Model\Location', + 'subdivisions' => '\Fingerprint\ServerAPI\Model\Subdivision[]']; /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'accuracy_radius' => null, + 'latitude' => 'double', + 'longitude' => 'double', + 'postal_code' => null, + 'timezone' => 'timezone', + 'city' => null, + 'country' => null, + 'continent' => null, + 'subdivisions' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'accuracy_radius' => 'accuracyRadius', -'latitude' => 'latitude', -'longitude' => 'longitude', -'postal_code' => 'postalCode', -'timezone' => 'timezone', -'city' => 'city', -'country' => 'country', -'continent' => 'continent', -'subdivisions' => 'subdivisions' ]; + 'latitude' => 'latitude', + 'longitude' => 'longitude', + 'postal_code' => 'postalCode', + 'timezone' => 'timezone', + 'city' => 'city', + 'country' => 'country', + 'continent' => 'continent', + 'subdivisions' => 'subdivisions']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'accuracy_radius' => 'setAccuracyRadius', -'latitude' => 'setLatitude', -'longitude' => 'setLongitude', -'postal_code' => 'setPostalCode', -'timezone' => 'setTimezone', -'city' => 'setCity', -'country' => 'setCountry', -'continent' => 'setContinent', -'subdivisions' => 'setSubdivisions' ]; + 'latitude' => 'setLatitude', + 'longitude' => 'setLongitude', + 'postal_code' => 'setPostalCode', + 'timezone' => 'setTimezone', + 'city' => 'setCity', + 'country' => 'setCountry', + 'continent' => 'setContinent', + 'subdivisions' => 'setSubdivisions']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'accuracy_radius' => 'getAccuracyRadius', -'latitude' => 'getLatitude', -'longitude' => 'getLongitude', -'postal_code' => 'getPostalCode', -'timezone' => 'getTimezone', -'city' => 'getCity', -'country' => 'getCountry', -'continent' => 'getContinent', -'subdivisions' => 'getSubdivisions' ]; + 'latitude' => 'getLatitude', + 'longitude' => 'getLongitude', + 'postal_code' => 'getPostalCode', + 'timezone' => 'getTimezone', + 'city' => 'getCity', + 'country' => 'getCountry', + 'continent' => 'getContinent', + 'subdivisions' => 'getSubdivisions']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['accuracy_radius'] = isset($data['accuracy_radius']) ? $data['accuracy_radius'] : null; + $this->container['latitude'] = isset($data['latitude']) ? $data['latitude'] : null; + $this->container['longitude'] = isset($data['longitude']) ? $data['longitude'] : null; + $this->container['postal_code'] = isset($data['postal_code']) ? $data['postal_code'] : null; + $this->container['timezone'] = isset($data['timezone']) ? $data['timezone'] : null; + $this->container['city'] = isset($data['city']) ? $data['city'] : null; + $this->container['country'] = isset($data['country']) ? $data['country'] : null; + $this->container['continent'] = isset($data['continent']) ? $data['continent'] : null; + $this->container['subdivisions'] = isset($data['subdivisions']) ? $data['subdivisions'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -153,7 +195,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -161,7 +203,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -176,34 +218,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['accuracy_radius'] = isset($data['accuracy_radius']) ? $data['accuracy_radius'] : null; - $this->container['latitude'] = isset($data['latitude']) ? $data['latitude'] : null; - $this->container['longitude'] = isset($data['longitude']) ? $data['longitude'] : null; - $this->container['postal_code'] = isset($data['postal_code']) ? $data['postal_code'] : null; - $this->container['timezone'] = isset($data['timezone']) ? $data['timezone'] : null; - $this->container['city'] = isset($data['city']) ? $data['city'] : null; - $this->container['country'] = isset($data['country']) ? $data['country'] : null; - $this->container['continent'] = isset($data['continent']) ? $data['continent'] : null; - $this->container['subdivisions'] = isset($data['subdivisions']) ? $data['subdivisions'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -211,25 +225,23 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets accuracy_radius + * Gets accuracy_radius. + * * @return ?int */ public function getAccuracyRadius(): ?int @@ -238,9 +250,9 @@ public function getAccuracyRadius(): ?int } /** - * Sets accuracy_radius + * Sets accuracy_radius. * - * @param ?int $accuracy_radius The IP address is likely to be within this radius (in km) of the specified location. + * @param ?int $accuracy_radius the IP address is likely to be within this radius (in km) of the specified location * * @return $this */ @@ -252,7 +264,8 @@ public function setAccuracyRadius(?int $accuracy_radius): self } /** - * Gets latitude + * Gets latitude. + * * @return ?double */ public function getLatitude(): ?float @@ -261,7 +274,7 @@ public function getLatitude(): ?float } /** - * Sets latitude + * Sets latitude. * * @param ?double $latitude latitude * @@ -275,7 +288,8 @@ public function setLatitude(?float $latitude): self } /** - * Gets longitude + * Gets longitude. + * * @return ?double */ public function getLongitude(): ?float @@ -284,7 +298,7 @@ public function getLongitude(): ?float } /** - * Sets longitude + * Sets longitude. * * @param ?double $longitude longitude * @@ -298,7 +312,8 @@ public function setLongitude(?float $longitude): self } /** - * Gets postal_code + * Gets postal_code. + * * @return ?string */ public function getPostalCode(): ?string @@ -307,7 +322,7 @@ public function getPostalCode(): ?string } /** - * Sets postal_code + * Sets postal_code. * * @param ?string $postal_code postal_code * @@ -321,7 +336,8 @@ public function setPostalCode(?string $postal_code): self } /** - * Gets timezone + * Gets timezone. + * * @return ?string */ public function getTimezone(): ?string @@ -330,7 +346,7 @@ public function getTimezone(): ?string } /** - * Sets timezone + * Sets timezone. * * @param ?string $timezone timezone * @@ -344,22 +360,23 @@ public function setTimezone(?string $timezone): self } /** - * Gets city + * Gets city. + * * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocationCity */ - public function getCity(): ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocationCity + public function getCity(): ?DeprecatedIPLocationCity { return $this->container['city']; } /** - * Sets city + * Sets city. * * @param ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocationCity $city city * * @return $this */ - public function setCity(?\Fingerprint\ServerAPI\Model\DeprecatedIPLocationCity $city): self + public function setCity(?DeprecatedIPLocationCity $city): self { $this->container['city'] = $city; @@ -367,22 +384,23 @@ public function setCity(?\Fingerprint\ServerAPI\Model\DeprecatedIPLocationCity $ } /** - * Gets country + * Gets country. + * * @return ?\Fingerprint\ServerAPI\Model\Location */ - public function getCountry(): ?\Fingerprint\ServerAPI\Model\Location + public function getCountry(): ?Location { return $this->container['country']; } /** - * Sets country + * Sets country. * * @param ?\Fingerprint\ServerAPI\Model\Location $country country * * @return $this */ - public function setCountry(?\Fingerprint\ServerAPI\Model\Location $country): self + public function setCountry(?Location $country): self { $this->container['country'] = $country; @@ -390,22 +408,23 @@ public function setCountry(?\Fingerprint\ServerAPI\Model\Location $country): sel } /** - * Gets continent + * Gets continent. + * * @return ?\Fingerprint\ServerAPI\Model\Location */ - public function getContinent(): ?\Fingerprint\ServerAPI\Model\Location + public function getContinent(): ?Location { return $this->container['continent']; } /** - * Sets continent + * Sets continent. * * @param ?\Fingerprint\ServerAPI\Model\Location $continent continent * * @return $this */ - public function setContinent(?\Fingerprint\ServerAPI\Model\Location $continent): self + public function setContinent(?Location $continent): self { $this->container['continent'] = $continent; @@ -413,7 +432,8 @@ public function setContinent(?\Fingerprint\ServerAPI\Model\Location $continent): } /** - * Gets subdivisions + * Gets subdivisions. + * * @return ?\Fingerprint\ServerAPI\Model\Subdivision[] */ public function getSubdivisions(): ?array @@ -422,7 +442,7 @@ public function getSubdivisions(): ?array } /** - * Sets subdivisions + * Sets subdivisions. * * @param ?\Fingerprint\ServerAPI\Model\Subdivision[] $subdivisions subdivisions * @@ -434,10 +454,11 @@ public function setSubdivisions(?array $subdivisions): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -447,7 +468,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -457,8 +478,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -472,27 +493,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/DeprecatedIPLocationCity.php b/src/Model/DeprecatedIPLocationCity.php index 97c9f39d..fdffb4e1 100644 --- a/src/Model/DeprecatedIPLocationCity.php +++ b/src/Model/DeprecatedIPLocationCity.php @@ -1,14 +1,16 @@ 'string' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'name' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'name' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'name' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'name' => 'name' ]; + 'name' => 'name']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'name' => 'setName' ]; + 'name' => 'setName']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'name' => 'getName' ]; + 'name' => 'getName']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = isset($data['name']) ? $data['name'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -162,25 +175,23 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets name + * Gets name. + * * @return ?string */ public function getName(): ?string @@ -189,7 +200,7 @@ public function getName(): ?string } /** - * Sets name + * Sets name. * * @param ?string $name name * @@ -201,10 +212,11 @@ public function setName(?string $name): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -214,7 +226,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -224,8 +236,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -239,27 +251,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/DeveloperToolsResult.php b/src/Model/DeveloperToolsResult.php index 6342ba3d..2047bf72 100644 --- a/src/Model/DeveloperToolsResult.php +++ b/src/Model/DeveloperToolsResult.php @@ -1,14 +1,16 @@ 'bool' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'result' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'result' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'result' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'result' => 'result' ]; + 'result' => 'result']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'result' => 'setResult' ]; + 'result' => 'setResult']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'result' => 'getResult' ]; + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['result'] = isset($data['result']) ? $data['result'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -164,27 +177,26 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result - * @return bool + * Gets result. */ public function getResult(): bool { @@ -192,9 +204,9 @@ public function getResult(): bool } /** - * Sets result + * Sets result. * - * @param bool $result `true` if the browser is Chrome with DevTools open or Firefox with Developer Tools open, `false` otherwise. + * @param bool $result `true` if the browser is Chrome with DevTools open or Firefox with Developer Tools open, `false` otherwise * * @return $this */ @@ -204,10 +216,11 @@ public function setResult(bool $result): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -217,7 +230,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -227,8 +240,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -242,27 +255,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/EmulatorResult.php b/src/Model/EmulatorResult.php index 9e48be6a..0a4398fd 100644 --- a/src/Model/EmulatorResult.php +++ b/src/Model/EmulatorResult.php @@ -1,14 +1,16 @@ 'bool' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'result' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'result' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'result' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'result' => 'result' ]; + 'result' => 'result']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'result' => 'setResult' ]; + 'result' => 'setResult']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'result' => 'getResult' ]; + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['result'] = isset($data['result']) ? $data['result'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -164,27 +177,26 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result - * @return bool + * Gets result. */ public function getResult(): bool { @@ -192,7 +204,7 @@ public function getResult(): bool } /** - * Sets result + * Sets result. * * @param bool $result Android specific emulator detection. There are 2 values: • `true` - Emulated environment detected (e.g. launch inside of AVD) • `false` - No signs of emulated environment detected or the client is not Android. * @@ -204,10 +216,11 @@ public function setResult(bool $result): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -217,7 +230,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -227,8 +240,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -242,27 +255,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ErrorCommon403Response.php b/src/Model/ErrorCommon403Response.php index ae7cf089..1afa5e6e 100644 --- a/src/Model/ErrorCommon403Response.php +++ b/src/Model/ErrorCommon403Response.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\Common403ErrorResponse' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'error' => '\Fingerprint\ServerAPI\Model\Common403ErrorResponse']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -162,49 +175,48 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\Common403ErrorResponse */ - public function getError(): ?\Fingerprint\ServerAPI\Model\Common403ErrorResponse + public function getError(): ?Common403ErrorResponse { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\Common403ErrorResponse $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\Common403ErrorResponse $error): self + public function setError(?Common403ErrorResponse $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -214,7 +226,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -224,8 +236,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -239,27 +251,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ErrorCommon429Response.php b/src/Model/ErrorCommon429Response.php index d8a8849b..d2dc070d 100644 --- a/src/Model/ErrorCommon429Response.php +++ b/src/Model/ErrorCommon429Response.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\ErrorCommon429ResponseError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'error' => '\Fingerprint\ServerAPI\Model\ErrorCommon429ResponseError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -162,49 +175,48 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ErrorCommon429ResponseError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ErrorCommon429ResponseError + public function getError(): ?ErrorCommon429ResponseError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ErrorCommon429ResponseError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ErrorCommon429ResponseError $error): self + public function setError(?ErrorCommon429ResponseError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -214,7 +226,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -224,8 +236,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -239,27 +251,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ErrorCommon429ResponseError.php b/src/Model/ErrorCommon429ResponseError.php index 2c0876f3..f214c931 100644 --- a/src/Model/ErrorCommon429ResponseError.php +++ b/src/Model/ErrorCommon429ResponseError.php @@ -1,14 +1,16 @@ 'string', -'message' => 'string' ]; + 'message' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'code' => null, -'message' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'message' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'code' => 'code', -'message' => 'message' ]; + 'message' => 'message']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'code' => 'setCode', -'message' => 'setMessage' ]; + 'message' => 'setMessage']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'code' => 'getCode', -'message' => 'getMessage' ]; + 'message' => 'getMessage']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +153,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +161,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,10 +176,8 @@ public function getModelName(): string return self::$swaggerModelName; } - const CODE_TOO_MANY_REQUESTS = 'TooManyRequests'; - /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -153,25 +187,6 @@ public function getCodeAllowableValues(): array self::CODE_TOO_MANY_REQUESTS, ]; } - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = isset($data['code']) ? $data['code'] : null; - $this->container['message'] = isset($data['message']) ? $data['message'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -181,7 +196,7 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['code'] === null) { + if (null === $this->container['code']) { $invalidProperties[] = "'code' can't be null"; } $allowedValues = $this->getCodeAllowableValues(); @@ -192,27 +207,26 @@ public function listInvalidProperties(): array ); } - if ($this->container['message'] === null) { + if (null === $this->container['message']) { $invalidProperties[] = "'message' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets code - * @return string + * Gets code. */ public function getCode(): string { @@ -220,9 +234,9 @@ public function getCode(): string } /** - * Sets code + * Sets code. * - * @param string $code Error code: * `TooManyRequests` - The request is throttled. + * @param string $code error code: * `TooManyRequests` - The request is throttled * * @return $this */ @@ -243,8 +257,7 @@ public function setCode(string $code): self } /** - * Gets message - * @return string + * Gets message. */ public function getMessage(): string { @@ -252,7 +265,7 @@ public function getMessage(): string } /** - * Sets message + * Sets message. * * @param string $message message * @@ -264,10 +277,11 @@ public function setMessage(string $message): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -277,7 +291,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -287,8 +301,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -302,27 +316,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ErrorEvent404Response.php b/src/Model/ErrorEvent404Response.php index 15bee5ac..b03ce283 100644 --- a/src/Model/ErrorEvent404Response.php +++ b/src/Model/ErrorEvent404Response.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\ErrorEvent404ResponseError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'error' => '\Fingerprint\ServerAPI\Model\ErrorEvent404ResponseError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -162,49 +175,48 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ErrorEvent404ResponseError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ErrorEvent404ResponseError + public function getError(): ?ErrorEvent404ResponseError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ErrorEvent404ResponseError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ErrorEvent404ResponseError $error): self + public function setError(?ErrorEvent404ResponseError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -214,7 +226,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -224,8 +236,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -239,27 +251,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ErrorEvent404ResponseError.php b/src/Model/ErrorEvent404ResponseError.php index e661426b..0337f0bd 100644 --- a/src/Model/ErrorEvent404ResponseError.php +++ b/src/Model/ErrorEvent404ResponseError.php @@ -1,14 +1,16 @@ 'string', -'message' => 'string' ]; + 'message' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'code' => null, -'message' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'message' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'code' => 'code', -'message' => 'message' ]; + 'message' => 'message']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'code' => 'setCode', -'message' => 'setMessage' ]; + 'message' => 'setMessage']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'code' => 'getCode', -'message' => 'getMessage' ]; + 'message' => 'getMessage']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +153,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +161,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,10 +176,8 @@ public function getModelName(): string return self::$swaggerModelName; } - const CODE_REQUEST_NOT_FOUND = 'RequestNotFound'; - /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -153,25 +187,6 @@ public function getCodeAllowableValues(): array self::CODE_REQUEST_NOT_FOUND, ]; } - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = isset($data['code']) ? $data['code'] : null; - $this->container['message'] = isset($data['message']) ? $data['message'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -181,7 +196,7 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['code'] === null) { + if (null === $this->container['code']) { $invalidProperties[] = "'code' can't be null"; } $allowedValues = $this->getCodeAllowableValues(); @@ -192,27 +207,26 @@ public function listInvalidProperties(): array ); } - if ($this->container['message'] === null) { + if (null === $this->container['message']) { $invalidProperties[] = "'message' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets code - * @return string + * Gets code. */ public function getCode(): string { @@ -220,7 +234,7 @@ public function getCode(): string } /** - * Sets code + * Sets code. * * @param string $code Error code: * `RequestNotFound` - The specified request ID was not found. It never existed, expired, or it has been deleted. * @@ -243,8 +257,7 @@ public function setCode(string $code): self } /** - * Gets message - * @return string + * Gets message. */ public function getMessage(): string { @@ -252,7 +265,7 @@ public function getMessage(): string } /** - * Sets message + * Sets message. * * @param string $message message * @@ -264,10 +277,11 @@ public function setMessage(string $message): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -277,7 +291,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -287,8 +301,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -302,27 +316,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ErrorUpdateEvent400Response.php b/src/Model/ErrorUpdateEvent400Response.php index 60fe57f8..06737e39 100644 --- a/src/Model/ErrorUpdateEvent400Response.php +++ b/src/Model/ErrorUpdateEvent400Response.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\ErrorUpdateEvent400ResponseError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'error' => '\Fingerprint\ServerAPI\Model\ErrorUpdateEvent400ResponseError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -162,49 +175,48 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ErrorUpdateEvent400ResponseError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ErrorUpdateEvent400ResponseError + public function getError(): ?ErrorUpdateEvent400ResponseError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ErrorUpdateEvent400ResponseError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ErrorUpdateEvent400ResponseError $error): self + public function setError(?ErrorUpdateEvent400ResponseError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -214,7 +226,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -224,8 +236,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -239,27 +251,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ErrorUpdateEvent400ResponseError.php b/src/Model/ErrorUpdateEvent400ResponseError.php index f925dc06..ec5eedb8 100644 --- a/src/Model/ErrorUpdateEvent400ResponseError.php +++ b/src/Model/ErrorUpdateEvent400ResponseError.php @@ -1,14 +1,16 @@ 'string', -'message' => 'string' ]; + 'message' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'code' => null, -'message' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'message' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'code' => 'code', -'message' => 'message' ]; + 'message' => 'message']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'code' => 'setCode', -'message' => 'setMessage' ]; + 'message' => 'setMessage']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'code' => 'getCode', -'message' => 'getMessage' ]; + 'message' => 'getMessage']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +154,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +162,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,11 +177,8 @@ public function getModelName(): string return self::$swaggerModelName; } - const CODE_REQUEST_CANNOT_BE_PARSED = 'RequestCannotBeParsed'; -const CODE_FAILED = 'Failed'; - /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -152,26 +186,7 @@ public function getCodeAllowableValues(): array { return [ self::CODE_REQUEST_CANNOT_BE_PARSED, -self::CODE_FAILED, ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = isset($data['code']) ? $data['code'] : null; - $this->container['message'] = isset($data['message']) ? $data['message'] : null; + self::CODE_FAILED, ]; } /** @@ -183,7 +198,7 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['code'] === null) { + if (null === $this->container['code']) { $invalidProperties[] = "'code' can't be null"; } $allowedValues = $this->getCodeAllowableValues(); @@ -194,27 +209,26 @@ public function listInvalidProperties(): array ); } - if ($this->container['message'] === null) { + if (null === $this->container['message']) { $invalidProperties[] = "'message' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets code - * @return string + * Gets code. */ public function getCode(): string { @@ -222,7 +236,7 @@ public function getCode(): string } /** - * Sets code + * Sets code. * * @param string $code Error code: * `RequestCannotBeParsed` - the JSON content of the request contains some errors that prevented us from parsing it (wrong type/surpassed limits) * `Failed` - the event is more than 10 days old and cannot be updated * @@ -245,8 +259,7 @@ public function setCode(string $code): self } /** - * Gets message - * @return string + * Gets message. */ public function getMessage(): string { @@ -254,7 +267,7 @@ public function getMessage(): string } /** - * Sets message + * Sets message. * * @param string $message Details about the underlying issue with the input payload * @@ -266,10 +279,11 @@ public function setMessage(string $message): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -279,7 +293,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -289,8 +303,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -304,27 +318,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ErrorUpdateEvent409Response.php b/src/Model/ErrorUpdateEvent409Response.php index da9fa971..5e1a0590 100644 --- a/src/Model/ErrorUpdateEvent409Response.php +++ b/src/Model/ErrorUpdateEvent409Response.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\ErrorUpdateEvent409ResponseError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'error' => '\Fingerprint\ServerAPI\Model\ErrorUpdateEvent409ResponseError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -162,49 +175,48 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ErrorUpdateEvent409ResponseError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ErrorUpdateEvent409ResponseError + public function getError(): ?ErrorUpdateEvent409ResponseError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ErrorUpdateEvent409ResponseError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ErrorUpdateEvent409ResponseError $error): self + public function setError(?ErrorUpdateEvent409ResponseError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -214,7 +226,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -224,8 +236,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -239,27 +251,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ErrorUpdateEvent409ResponseError.php b/src/Model/ErrorUpdateEvent409ResponseError.php index b4751b36..7104bb91 100644 --- a/src/Model/ErrorUpdateEvent409ResponseError.php +++ b/src/Model/ErrorUpdateEvent409ResponseError.php @@ -1,14 +1,16 @@ 'string', -'message' => 'string' ]; + 'message' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'code' => null, -'message' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'message' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'code' => 'code', -'message' => 'message' ]; + 'message' => 'message']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'code' => 'setCode', -'message' => 'setMessage' ]; + 'message' => 'setMessage']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'code' => 'getCode', -'message' => 'getMessage' ]; + 'message' => 'getMessage']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +153,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +161,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,10 +176,8 @@ public function getModelName(): string return self::$swaggerModelName; } - const CODE_STATE_NOT_READY = 'StateNotReady'; - /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -153,25 +187,6 @@ public function getCodeAllowableValues(): array self::CODE_STATE_NOT_READY, ]; } - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = isset($data['code']) ? $data['code'] : null; - $this->container['message'] = isset($data['message']) ? $data['message'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -181,7 +196,7 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['code'] === null) { + if (null === $this->container['code']) { $invalidProperties[] = "'code' can't be null"; } $allowedValues = $this->getCodeAllowableValues(); @@ -192,27 +207,26 @@ public function listInvalidProperties(): array ); } - if ($this->container['message'] === null) { + if (null === $this->container['message']) { $invalidProperties[] = "'message' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets code - * @return string + * Gets code. */ public function getCode(): string { @@ -220,7 +234,7 @@ public function getCode(): string } /** - * Sets code + * Sets code. * * @param string $code Error code: * `StateNotReady` - The event specified with request id is not ready for updates yet. Try again. This error happens in rare cases when update API is called immediately after receiving the request id on the client. In case you need to send information right away, we recommend using the JS agent API instead. * @@ -243,8 +257,7 @@ public function setCode(string $code): self } /** - * Gets message - * @return string + * Gets message. */ public function getMessage(): string { @@ -252,7 +265,7 @@ public function getMessage(): string } /** - * Sets message + * Sets message. * * @param string $message message * @@ -264,10 +277,11 @@ public function setMessage(string $message): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -277,7 +291,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -287,8 +301,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -302,27 +316,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ErrorVisitor400Response.php b/src/Model/ErrorVisitor400Response.php index 512678d4..8add5b42 100644 --- a/src/Model/ErrorVisitor400Response.php +++ b/src/Model/ErrorVisitor400Response.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\ErrorVisitor400ResponseError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'error' => '\Fingerprint\ServerAPI\Model\ErrorVisitor400ResponseError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -162,49 +175,48 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ErrorVisitor400ResponseError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ErrorVisitor400ResponseError + public function getError(): ?ErrorVisitor400ResponseError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ErrorVisitor400ResponseError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ErrorVisitor400ResponseError $error): self + public function setError(?ErrorVisitor400ResponseError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -214,7 +226,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -224,8 +236,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -239,27 +251,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ErrorVisitor400ResponseError.php b/src/Model/ErrorVisitor400ResponseError.php index 54b82983..f3a7511d 100644 --- a/src/Model/ErrorVisitor400ResponseError.php +++ b/src/Model/ErrorVisitor400ResponseError.php @@ -1,14 +1,16 @@ 'string', -'message' => 'string' ]; + 'message' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'code' => null, -'message' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'message' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'code' => 'code', -'message' => 'message' ]; + 'message' => 'message']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'code' => 'setCode', -'message' => 'setMessage' ]; + 'message' => 'setMessage']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'code' => 'getCode', -'message' => 'getMessage' ]; + 'message' => 'getMessage']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +153,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +161,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,10 +176,8 @@ public function getModelName(): string return self::$swaggerModelName; } - const CODE_REQUEST_CANNOT_BE_PARSED = 'RequestCannotBeParsed'; - /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -153,25 +187,6 @@ public function getCodeAllowableValues(): array self::CODE_REQUEST_CANNOT_BE_PARSED, ]; } - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = isset($data['code']) ? $data['code'] : null; - $this->container['message'] = isset($data['message']) ? $data['message'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -181,7 +196,7 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['code'] === null) { + if (null === $this->container['code']) { $invalidProperties[] = "'code' can't be null"; } $allowedValues = $this->getCodeAllowableValues(); @@ -192,27 +207,26 @@ public function listInvalidProperties(): array ); } - if ($this->container['message'] === null) { + if (null === $this->container['message']) { $invalidProperties[] = "'message' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets code - * @return string + * Gets code. */ public function getCode(): string { @@ -220,9 +234,9 @@ public function getCode(): string } /** - * Sets code + * Sets code. * - * @param string $code Error code: * `RequestCannotBeParsed` - The visitor ID parameter is missing or in the wrong format. + * @param string $code error code: * `RequestCannotBeParsed` - The visitor ID parameter is missing or in the wrong format * * @return $this */ @@ -243,8 +257,7 @@ public function setCode(string $code): self } /** - * Gets message - * @return string + * Gets message. */ public function getMessage(): string { @@ -252,7 +265,7 @@ public function getMessage(): string } /** - * Sets message + * Sets message. * * @param string $message message * @@ -264,10 +277,11 @@ public function setMessage(string $message): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -277,7 +291,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -287,8 +301,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -302,27 +316,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ErrorVisitor404Response.php b/src/Model/ErrorVisitor404Response.php index d158162e..d0eac080 100644 --- a/src/Model/ErrorVisitor404Response.php +++ b/src/Model/ErrorVisitor404Response.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\ErrorVisitor404ResponseError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'error' => '\Fingerprint\ServerAPI\Model\ErrorVisitor404ResponseError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -162,49 +175,48 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ErrorVisitor404ResponseError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ErrorVisitor404ResponseError + public function getError(): ?ErrorVisitor404ResponseError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ErrorVisitor404ResponseError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ErrorVisitor404ResponseError $error): self + public function setError(?ErrorVisitor404ResponseError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -214,7 +226,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -224,8 +236,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -239,27 +251,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ErrorVisitor404ResponseError.php b/src/Model/ErrorVisitor404ResponseError.php index 760519e8..6365d384 100644 --- a/src/Model/ErrorVisitor404ResponseError.php +++ b/src/Model/ErrorVisitor404ResponseError.php @@ -1,14 +1,16 @@ 'string', -'message' => 'string' ]; + 'message' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'code' => null, -'message' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'message' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'code' => 'code', -'message' => 'message' ]; + 'message' => 'message']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'code' => 'setCode', -'message' => 'setMessage' ]; + 'message' => 'setMessage']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'code' => 'getCode', -'message' => 'getMessage' ]; + 'message' => 'getMessage']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +153,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +161,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,10 +176,8 @@ public function getModelName(): string return self::$swaggerModelName; } - const CODE_VISITOR_NOT_FOUND = 'VisitorNotFound'; - /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -153,25 +187,6 @@ public function getCodeAllowableValues(): array self::CODE_VISITOR_NOT_FOUND, ]; } - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = isset($data['code']) ? $data['code'] : null; - $this->container['message'] = isset($data['message']) ? $data['message'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -181,7 +196,7 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['code'] === null) { + if (null === $this->container['code']) { $invalidProperties[] = "'code' can't be null"; } $allowedValues = $this->getCodeAllowableValues(); @@ -192,27 +207,26 @@ public function listInvalidProperties(): array ); } - if ($this->container['message'] === null) { + if (null === $this->container['message']) { $invalidProperties[] = "'message' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets code - * @return string + * Gets code. */ public function getCode(): string { @@ -220,7 +234,7 @@ public function getCode(): string } /** - * Sets code + * Sets code. * * @param string $code Error code: * `VisitorNotFound` - The specified visitor ID was not found. It never existed or it may have already been deleted. * @@ -243,8 +257,7 @@ public function setCode(string $code): self } /** - * Gets message - * @return string + * Gets message. */ public function getMessage(): string { @@ -252,7 +265,7 @@ public function getMessage(): string } /** - * Sets message + * Sets message. * * @param string $message message * @@ -264,10 +277,11 @@ public function setMessage(string $message): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -277,7 +291,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -287,8 +301,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -302,27 +316,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ErrorVisits403.php b/src/Model/ErrorVisits403.php index c1456afa..297998f3 100644 --- a/src/Model/ErrorVisits403.php +++ b/src/Model/ErrorVisits403.php @@ -1,14 +1,16 @@ 'string' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'error' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -164,27 +177,26 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['error'] === null) { + if (null === $this->container['error']) { $invalidProperties[] = "'error' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets error - * @return string + * Gets error. */ public function getError(): string { @@ -192,9 +204,9 @@ public function getError(): string } /** - * Sets error + * Sets error. * - * @param string $error Error text. + * @param string $error error text * * @return $this */ @@ -204,10 +216,11 @@ public function setError(string $error): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -217,7 +230,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -227,8 +240,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -242,27 +255,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/EventResponse.php b/src/Model/EventResponse.php index 281763ee..ee5b3fbe 100644 --- a/src/Model/EventResponse.php +++ b/src/Model/EventResponse.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\ProductsResponse', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'products' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'products' => 'products', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'products' => 'setProducts', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'products' => 'getProducts', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['products'] = isset($data['products']) ? $data['products'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -118,7 +153,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -126,7 +161,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -141,27 +176,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['products'] = isset($data['products']) ? $data['products'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -171,41 +185,40 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['products'] === null) { + if (null === $this->container['products']) { $invalidProperties[] = "'products' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets products - * @return \Fingerprint\ServerAPI\Model\ProductsResponse + * Gets products. */ - public function getProducts(): \Fingerprint\ServerAPI\Model\ProductsResponse + public function getProducts(): ProductsResponse { return $this->container['products']; } /** - * Sets products + * Sets products. * - * @param \Fingerprint\ServerAPI\Model\ProductsResponse $products products + * @param ProductsResponse $products products * * @return $this */ - public function setProducts(\Fingerprint\ServerAPI\Model\ProductsResponse $products): self + public function setProducts(ProductsResponse $products): self { $this->container['products'] = $products; @@ -213,31 +226,33 @@ public function setProducts(\Fingerprint\ServerAPI\Model\ProductsResponse $produ } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -247,7 +262,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -257,8 +272,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -272,27 +287,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/EventUpdateRequest.php b/src/Model/EventUpdateRequest.php index ce14cc6a..ebcd6941 100644 --- a/src/Model/EventUpdateRequest.php +++ b/src/Model/EventUpdateRequest.php @@ -1,14 +1,16 @@ 'string', -'tag' => 'object', -'suspect' => 'bool' ]; + 'tag' => 'object', + 'suspect' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'linked_id' => null, -'tag' => null, -'suspect' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'tag' => null, + 'suspect' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'linked_id' => 'linkedId', -'tag' => 'tag', -'suspect' => 'suspect' ]; + 'tag' => 'tag', + 'suspect' => 'suspect']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'linked_id' => 'setLinkedId', -'tag' => 'setTag', -'suspect' => 'setSuspect' ]; + 'tag' => 'setTag', + 'suspect' => 'setSuspect']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'linked_id' => 'getLinkedId', -'tag' => 'getTag', -'suspect' => 'getSuspect' ]; + 'tag' => 'getTag', + 'suspect' => 'getSuspect']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['linked_id'] = isset($data['linked_id']) ? $data['linked_id'] : null; + $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; + $this->container['suspect'] = isset($data['suspect']) ? $data['suspect'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -122,7 +157,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -130,7 +165,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -145,28 +180,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['linked_id'] = isset($data['linked_id']) ? $data['linked_id'] : null; - $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; - $this->container['suspect'] = isset($data['suspect']) ? $data['suspect'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -174,25 +187,23 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets linked_id + * Gets linked_id. + * * @return ?string */ public function getLinkedId(): ?string @@ -201,7 +212,7 @@ public function getLinkedId(): ?string } /** - * Sets linked_id + * Sets linked_id. * * @param ?string $linked_id LinkedID value to assign to the existing event * @@ -215,7 +226,8 @@ public function setLinkedId(?string $linked_id): self } /** - * Gets tag + * Gets tag. + * * @return ?object */ public function getTag(): ?object @@ -224,7 +236,7 @@ public function getTag(): ?object } /** - * Sets tag + * Sets tag. * * @param ?object $tag Full `tag` value to be set to the existing event. Replaces any existing `tag` payload completely. * @@ -238,7 +250,8 @@ public function setTag(?object $tag): self } /** - * Gets suspect + * Gets suspect. + * * @return ?bool */ public function getSuspect(): ?bool @@ -247,7 +260,7 @@ public function getSuspect(): ?bool } /** - * Sets suspect + * Sets suspect. * * @param ?bool $suspect Suspect flag indicating observed suspicious or fraudulent event * @@ -259,10 +272,11 @@ public function setSuspect(?bool $suspect): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -272,7 +286,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -282,8 +296,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -297,27 +311,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/FactoryResetResult.php b/src/Model/FactoryResetResult.php index d055ab72..8d6872fa 100644 --- a/src/Model/FactoryResetResult.php +++ b/src/Model/FactoryResetResult.php @@ -1,14 +1,16 @@ '\DateTime', -'timestamp' => 'int' ]; + 'timestamp' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'time' => 'date-time', -'timestamp' => 'int64' ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'timestamp' => 'int64']; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'time' => 'time', -'timestamp' => 'timestamp' ]; + 'timestamp' => 'timestamp']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'time' => 'setTime', -'timestamp' => 'setTimestamp' ]; + 'timestamp' => 'setTimestamp']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'time' => 'getTime', -'timestamp' => 'getTimestamp' ]; + 'timestamp' => 'getTimestamp']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['time'] = isset($data['time']) ? $data['time'] : null; + $this->container['timestamp'] = isset($data['timestamp']) ? $data['timestamp'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['time'] = isset($data['time']) ? $data['time'] : null; - $this->container['timestamp'] = isset($data['timestamp']) ? $data['timestamp'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -170,30 +183,29 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['time'] === null) { + if (null === $this->container['time']) { $invalidProperties[] = "'time' can't be null"; } - if ($this->container['timestamp'] === null) { + if (null === $this->container['timestamp']) { $invalidProperties[] = "'timestamp' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets time - * @return \DateTime + * Gets time. */ public function getTime(): \DateTime { @@ -201,7 +213,7 @@ public function getTime(): \DateTime } /** - * Sets time + * Sets time. * * @param \DateTime $time Indicates the time (in UTC) of the most recent factory reset that happened on the **mobile device**. When a factory reset cannot be detected on the mobile device or when the request is initiated from a browser, this field will correspond to the *epoch* time (i.e 1 Jan 1970 UTC). See [Factory Reset Detection](https://dev.fingerprint.com/docs/smart-signals-overview#factory-reset-detection) to learn more about this Smart Signal. * @@ -215,8 +227,7 @@ public function setTime(\DateTime $time): self } /** - * Gets timestamp - * @return int + * Gets timestamp. */ public function getTimestamp(): int { @@ -224,7 +235,7 @@ public function getTimestamp(): int } /** - * Sets timestamp + * Sets timestamp. * * @param int $timestamp This field is just another representation of the value in the `time` field. The time of the most recent factory reset that happened on the **mobile device** is expressed as Unix epoch time. * @@ -236,10 +247,11 @@ public function setTimestamp(int $timestamp): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -249,7 +261,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -259,8 +271,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -274,27 +286,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/FridaResult.php b/src/Model/FridaResult.php index 639f1c72..ad511bad 100644 --- a/src/Model/FridaResult.php +++ b/src/Model/FridaResult.php @@ -1,14 +1,16 @@ 'bool' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'result' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'result' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'result' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'result' => 'result' ]; + 'result' => 'result']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'result' => 'setResult' ]; + 'result' => 'setResult']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'result' => 'getResult' ]; + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['result'] = isset($data['result']) ? $data['result'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -164,27 +177,26 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result - * @return bool + * Gets result. */ public function getResult(): bool { @@ -192,7 +204,7 @@ public function getResult(): bool } /** - * Sets result + * Sets result. * * @param bool $result [Frida](https://frida.re/docs/) detection for Android and iOS devices. There are 2 values: • `true` - Frida detected • `false` - No signs of Frida or the client is not a mobile device. * @@ -204,10 +216,11 @@ public function setResult(bool $result): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -217,7 +230,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -227,8 +240,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -242,27 +255,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/HighActivityResult.php b/src/Model/HighActivityResult.php index cb7d57d5..20879925 100644 --- a/src/Model/HighActivityResult.php +++ b/src/Model/HighActivityResult.php @@ -1,14 +1,16 @@ 'bool', -'daily_requests' => 'float' ]; + 'daily_requests' => 'float']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'result' => null, -'daily_requests' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'daily_requests' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'result' => 'result', -'daily_requests' => 'dailyRequests' ]; + 'daily_requests' => 'dailyRequests']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'result' => 'setResult', -'daily_requests' => 'setDailyRequests' ]; + 'daily_requests' => 'setDailyRequests']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'result' => 'getResult', -'daily_requests' => 'getDailyRequests' ]; + 'daily_requests' => 'getDailyRequests']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + $this->container['daily_requests'] = isset($data['daily_requests']) ? $data['daily_requests'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['result'] = isset($data['result']) ? $data['result'] : null; - $this->container['daily_requests'] = isset($data['daily_requests']) ? $data['daily_requests'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -170,27 +183,26 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result - * @return bool + * Gets result. */ public function getResult(): bool { @@ -198,9 +210,9 @@ public function getResult(): bool } /** - * Sets result + * Sets result. * - * @param bool $result Flag indicating whether the request came from a high activity visitor. + * @param bool $result flag indicating whether the request came from a high activity visitor * * @return $this */ @@ -212,7 +224,8 @@ public function setResult(bool $result): self } /** - * Gets daily_requests + * Gets daily_requests. + * * @return ?float */ public function getDailyRequests(): ?float @@ -221,9 +234,9 @@ public function getDailyRequests(): ?float } /** - * Sets daily_requests + * Sets daily_requests. * - * @param ?float $daily_requests Number of requests from the same visitor in the previous day. + * @param ?float $daily_requests number of requests from the same visitor in the previous day * * @return $this */ @@ -233,10 +246,11 @@ public function setDailyRequests(?float $daily_requests): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -246,7 +260,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -256,8 +270,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -271,27 +285,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/IPLocation.php b/src/Model/IPLocation.php index 04335f39..6f769e05 100644 --- a/src/Model/IPLocation.php +++ b/src/Model/IPLocation.php @@ -1,14 +1,16 @@ 'int', -'latitude' => 'double', -'longitude' => 'double', -'postal_code' => 'string', -'timezone' => 'string', -'city' => '\Fingerprint\ServerAPI\Model\IPLocationCity', -'country' => '\Fingerprint\ServerAPI\Model\Location', -'continent' => '\Fingerprint\ServerAPI\Model\Location', -'subdivisions' => '\Fingerprint\ServerAPI\Model\Subdivision[]' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'accuracy_radius' => null, -'latitude' => 'double', -'longitude' => 'double', -'postal_code' => null, -'timezone' => 'timezone', -'city' => null, -'country' => null, -'continent' => null, -'subdivisions' => null ]; + 'latitude' => 'double', + 'longitude' => 'double', + 'postal_code' => 'string', + 'timezone' => 'string', + 'city' => '\Fingerprint\ServerAPI\Model\IPLocationCity', + 'country' => '\Fingerprint\ServerAPI\Model\Location', + 'continent' => '\Fingerprint\ServerAPI\Model\Location', + 'subdivisions' => '\Fingerprint\ServerAPI\Model\Subdivision[]']; /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'accuracy_radius' => null, + 'latitude' => 'double', + 'longitude' => 'double', + 'postal_code' => null, + 'timezone' => 'timezone', + 'city' => null, + 'country' => null, + 'continent' => null, + 'subdivisions' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'accuracy_radius' => 'accuracyRadius', -'latitude' => 'latitude', -'longitude' => 'longitude', -'postal_code' => 'postalCode', -'timezone' => 'timezone', -'city' => 'city', -'country' => 'country', -'continent' => 'continent', -'subdivisions' => 'subdivisions' ]; + 'latitude' => 'latitude', + 'longitude' => 'longitude', + 'postal_code' => 'postalCode', + 'timezone' => 'timezone', + 'city' => 'city', + 'country' => 'country', + 'continent' => 'continent', + 'subdivisions' => 'subdivisions']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'accuracy_radius' => 'setAccuracyRadius', -'latitude' => 'setLatitude', -'longitude' => 'setLongitude', -'postal_code' => 'setPostalCode', -'timezone' => 'setTimezone', -'city' => 'setCity', -'country' => 'setCountry', -'continent' => 'setContinent', -'subdivisions' => 'setSubdivisions' ]; + 'latitude' => 'setLatitude', + 'longitude' => 'setLongitude', + 'postal_code' => 'setPostalCode', + 'timezone' => 'setTimezone', + 'city' => 'setCity', + 'country' => 'setCountry', + 'continent' => 'setContinent', + 'subdivisions' => 'setSubdivisions']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'accuracy_radius' => 'getAccuracyRadius', -'latitude' => 'getLatitude', -'longitude' => 'getLongitude', -'postal_code' => 'getPostalCode', -'timezone' => 'getTimezone', -'city' => 'getCity', -'country' => 'getCountry', -'continent' => 'getContinent', -'subdivisions' => 'getSubdivisions' ]; + 'latitude' => 'getLatitude', + 'longitude' => 'getLongitude', + 'postal_code' => 'getPostalCode', + 'timezone' => 'getTimezone', + 'city' => 'getCity', + 'country' => 'getCountry', + 'continent' => 'getContinent', + 'subdivisions' => 'getSubdivisions']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['accuracy_radius'] = isset($data['accuracy_radius']) ? $data['accuracy_radius'] : null; + $this->container['latitude'] = isset($data['latitude']) ? $data['latitude'] : null; + $this->container['longitude'] = isset($data['longitude']) ? $data['longitude'] : null; + $this->container['postal_code'] = isset($data['postal_code']) ? $data['postal_code'] : null; + $this->container['timezone'] = isset($data['timezone']) ? $data['timezone'] : null; + $this->container['city'] = isset($data['city']) ? $data['city'] : null; + $this->container['country'] = isset($data['country']) ? $data['country'] : null; + $this->container['continent'] = isset($data['continent']) ? $data['continent'] : null; + $this->container['subdivisions'] = isset($data['subdivisions']) ? $data['subdivisions'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -152,7 +193,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -160,7 +201,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -175,34 +216,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['accuracy_radius'] = isset($data['accuracy_radius']) ? $data['accuracy_radius'] : null; - $this->container['latitude'] = isset($data['latitude']) ? $data['latitude'] : null; - $this->container['longitude'] = isset($data['longitude']) ? $data['longitude'] : null; - $this->container['postal_code'] = isset($data['postal_code']) ? $data['postal_code'] : null; - $this->container['timezone'] = isset($data['timezone']) ? $data['timezone'] : null; - $this->container['city'] = isset($data['city']) ? $data['city'] : null; - $this->container['country'] = isset($data['country']) ? $data['country'] : null; - $this->container['continent'] = isset($data['continent']) ? $data['continent'] : null; - $this->container['subdivisions'] = isset($data['subdivisions']) ? $data['subdivisions'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -210,25 +223,23 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets accuracy_radius + * Gets accuracy_radius. + * * @return ?int */ public function getAccuracyRadius(): ?int @@ -237,9 +248,9 @@ public function getAccuracyRadius(): ?int } /** - * Sets accuracy_radius + * Sets accuracy_radius. * - * @param ?int $accuracy_radius The IP address is likely to be within this radius (in km) of the specified location. + * @param ?int $accuracy_radius the IP address is likely to be within this radius (in km) of the specified location * * @return $this */ @@ -251,7 +262,8 @@ public function setAccuracyRadius(?int $accuracy_radius): self } /** - * Gets latitude + * Gets latitude. + * * @return ?double */ public function getLatitude(): ?float @@ -260,7 +272,7 @@ public function getLatitude(): ?float } /** - * Sets latitude + * Sets latitude. * * @param ?double $latitude latitude * @@ -274,7 +286,8 @@ public function setLatitude(?float $latitude): self } /** - * Gets longitude + * Gets longitude. + * * @return ?double */ public function getLongitude(): ?float @@ -283,7 +296,7 @@ public function getLongitude(): ?float } /** - * Sets longitude + * Sets longitude. * * @param ?double $longitude longitude * @@ -297,7 +310,8 @@ public function setLongitude(?float $longitude): self } /** - * Gets postal_code + * Gets postal_code. + * * @return ?string */ public function getPostalCode(): ?string @@ -306,7 +320,7 @@ public function getPostalCode(): ?string } /** - * Sets postal_code + * Sets postal_code. * * @param ?string $postal_code postal_code * @@ -320,7 +334,8 @@ public function setPostalCode(?string $postal_code): self } /** - * Gets timezone + * Gets timezone. + * * @return ?string */ public function getTimezone(): ?string @@ -329,7 +344,7 @@ public function getTimezone(): ?string } /** - * Sets timezone + * Sets timezone. * * @param ?string $timezone timezone * @@ -343,22 +358,23 @@ public function setTimezone(?string $timezone): self } /** - * Gets city + * Gets city. + * * @return ?\Fingerprint\ServerAPI\Model\IPLocationCity */ - public function getCity(): ?\Fingerprint\ServerAPI\Model\IPLocationCity + public function getCity(): ?IPLocationCity { return $this->container['city']; } /** - * Sets city + * Sets city. * * @param ?\Fingerprint\ServerAPI\Model\IPLocationCity $city city * * @return $this */ - public function setCity(?\Fingerprint\ServerAPI\Model\IPLocationCity $city): self + public function setCity(?IPLocationCity $city): self { $this->container['city'] = $city; @@ -366,22 +382,23 @@ public function setCity(?\Fingerprint\ServerAPI\Model\IPLocationCity $city): sel } /** - * Gets country + * Gets country. + * * @return ?\Fingerprint\ServerAPI\Model\Location */ - public function getCountry(): ?\Fingerprint\ServerAPI\Model\Location + public function getCountry(): ?Location { return $this->container['country']; } /** - * Sets country + * Sets country. * * @param ?\Fingerprint\ServerAPI\Model\Location $country country * * @return $this */ - public function setCountry(?\Fingerprint\ServerAPI\Model\Location $country): self + public function setCountry(?Location $country): self { $this->container['country'] = $country; @@ -389,22 +406,23 @@ public function setCountry(?\Fingerprint\ServerAPI\Model\Location $country): sel } /** - * Gets continent + * Gets continent. + * * @return ?\Fingerprint\ServerAPI\Model\Location */ - public function getContinent(): ?\Fingerprint\ServerAPI\Model\Location + public function getContinent(): ?Location { return $this->container['continent']; } /** - * Sets continent + * Sets continent. * * @param ?\Fingerprint\ServerAPI\Model\Location $continent continent * * @return $this */ - public function setContinent(?\Fingerprint\ServerAPI\Model\Location $continent): self + public function setContinent(?Location $continent): self { $this->container['continent'] = $continent; @@ -412,7 +430,8 @@ public function setContinent(?\Fingerprint\ServerAPI\Model\Location $continent): } /** - * Gets subdivisions + * Gets subdivisions. + * * @return ?\Fingerprint\ServerAPI\Model\Subdivision[] */ public function getSubdivisions(): ?array @@ -421,7 +440,7 @@ public function getSubdivisions(): ?array } /** - * Sets subdivisions + * Sets subdivisions. * * @param ?\Fingerprint\ServerAPI\Model\Subdivision[] $subdivisions subdivisions * @@ -433,10 +452,11 @@ public function setSubdivisions(?array $subdivisions): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -446,7 +466,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -456,8 +476,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -471,27 +491,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/IPLocationCity.php b/src/Model/IPLocationCity.php index 483126fd..c0637bf3 100644 --- a/src/Model/IPLocationCity.php +++ b/src/Model/IPLocationCity.php @@ -1,14 +1,16 @@ 'string' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'name' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'name' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'name' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'name' => 'name' ]; + 'name' => 'name']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'name' => 'setName' ]; + 'name' => 'setName']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'name' => 'getName' ]; + 'name' => 'getName']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = isset($data['name']) ? $data['name'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -162,25 +175,23 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets name + * Gets name. + * * @return ?string */ public function getName(): ?string @@ -189,7 +200,7 @@ public function getName(): ?string } /** - * Sets name + * Sets name. * * @param ?string $name name * @@ -201,10 +212,11 @@ public function setName(?string $name): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -214,7 +226,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -224,8 +236,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -239,27 +251,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/IdentificationError.php b/src/Model/IdentificationError.php index 6756d091..c8890cc4 100644 --- a/src/Model/IdentificationError.php +++ b/src/Model/IdentificationError.php @@ -1,14 +1,16 @@ 'string', -'message' => 'string' ]; + 'message' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'code' => null, -'message' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'message' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'code' => 'code', -'message' => 'message' ]; + 'message' => 'message']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'code' => 'setCode', -'message' => 'setMessage' ]; + 'message' => 'setMessage']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'code' => 'getCode', -'message' => 'getMessage' ]; + 'message' => 'getMessage']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +154,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +162,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,11 +177,8 @@ public function getModelName(): string return self::$swaggerModelName; } - const CODE__429_TOO_MANY_REQUESTS = '429 Too Many Requests'; -const CODE_FAILED = 'Failed'; - /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -152,26 +186,7 @@ public function getCodeAllowableValues(): array { return [ self::CODE__429_TOO_MANY_REQUESTS, -self::CODE_FAILED, ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = isset($data['code']) ? $data['code'] : null; - $this->container['message'] = isset($data['message']) ? $data['message'] : null; + self::CODE_FAILED, ]; } /** @@ -183,7 +198,7 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['code'] === null) { + if (null === $this->container['code']) { $invalidProperties[] = "'code' can't be null"; } $allowedValues = $this->getCodeAllowableValues(); @@ -194,27 +209,26 @@ public function listInvalidProperties(): array ); } - if ($this->container['message'] === null) { + if (null === $this->container['message']) { $invalidProperties[] = "'message' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets code - * @return string + * Gets code. */ public function getCode(): string { @@ -222,7 +236,7 @@ public function getCode(): string } /** - * Sets code + * Sets code. * * @param string $code Error code: * `429 Too Many Requests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error * @@ -245,8 +259,7 @@ public function setCode(string $code): self } /** - * Gets message - * @return string + * Gets message. */ public function getMessage(): string { @@ -254,7 +267,7 @@ public function getMessage(): string } /** - * Sets message + * Sets message. * * @param string $message message * @@ -266,10 +279,11 @@ public function setMessage(string $message): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -279,7 +293,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -289,8 +303,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -304,27 +318,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/IncognitoResult.php b/src/Model/IncognitoResult.php index f162b8f7..6299cc93 100644 --- a/src/Model/IncognitoResult.php +++ b/src/Model/IncognitoResult.php @@ -1,14 +1,16 @@ 'bool' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'result' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'result' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'result' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'result' => 'result' ]; + 'result' => 'result']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'result' => 'setResult' ]; + 'result' => 'setResult']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'result' => 'getResult' ]; + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['result'] = isset($data['result']) ? $data['result'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -164,27 +177,26 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result - * @return bool + * Gets result. */ public function getResult(): bool { @@ -192,9 +204,9 @@ public function getResult(): bool } /** - * Sets result + * Sets result. * - * @param bool $result `true` if we detected incognito mode used in the browser, `false` otherwise. + * @param bool $result `true` if we detected incognito mode used in the browser, `false` otherwise * * @return $this */ @@ -204,10 +216,11 @@ public function setResult(bool $result): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -217,7 +230,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -227,8 +240,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -242,27 +255,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/IpBlockListResult.php b/src/Model/IpBlockListResult.php index 0a5308d6..c6131829 100644 --- a/src/Model/IpBlockListResult.php +++ b/src/Model/IpBlockListResult.php @@ -1,14 +1,16 @@ 'bool', -'details' => '\Fingerprint\ServerAPI\Model\IpBlockListResultDetails' ]; + 'details' => '\Fingerprint\ServerAPI\Model\IpBlockListResultDetails']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'result' => null, -'details' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'details' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'result' => 'result', -'details' => 'details' ]; + 'details' => 'details']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'result' => 'setResult', -'details' => 'setDetails' ]; + 'details' => 'setDetails']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'result' => 'getResult', -'details' => 'getDetails' ]; + 'details' => 'getDetails']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + $this->container['details'] = isset($data['details']) ? $data['details'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['result'] = isset($data['result']) ? $data['result'] : null; - $this->container['details'] = isset($data['details']) ? $data['details'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -170,30 +183,29 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } - if ($this->container['details'] === null) { + if (null === $this->container['details']) { $invalidProperties[] = "'details' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result - * @return bool + * Gets result. */ public function getResult(): bool { @@ -201,9 +213,9 @@ public function getResult(): bool } /** - * Sets result + * Sets result. * - * @param bool $result `true` if request IP address is part of any database that we use to search for known malicious actors, `false` otherwise. + * @param bool $result `true` if request IP address is part of any database that we use to search for known malicious actors, `false` otherwise * * @return $this */ @@ -215,31 +227,31 @@ public function setResult(bool $result): self } /** - * Gets details - * @return \Fingerprint\ServerAPI\Model\IpBlockListResultDetails + * Gets details. */ - public function getDetails(): \Fingerprint\ServerAPI\Model\IpBlockListResultDetails + public function getDetails(): IpBlockListResultDetails { return $this->container['details']; } /** - * Sets details + * Sets details. * - * @param \Fingerprint\ServerAPI\Model\IpBlockListResultDetails $details details + * @param IpBlockListResultDetails $details details * * @return $this */ - public function setDetails(\Fingerprint\ServerAPI\Model\IpBlockListResultDetails $details): self + public function setDetails(IpBlockListResultDetails $details): self { $this->container['details'] = $details; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -249,7 +261,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -259,8 +271,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -274,27 +286,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/IpBlockListResultDetails.php b/src/Model/IpBlockListResultDetails.php index 572299c8..0695fbc1 100644 --- a/src/Model/IpBlockListResultDetails.php +++ b/src/Model/IpBlockListResultDetails.php @@ -1,14 +1,16 @@ 'bool', -'attack_source' => 'bool' ]; + 'attack_source' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'email_spam' => null, -'attack_source' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'attack_source' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'email_spam' => 'emailSpam', -'attack_source' => 'attackSource' ]; + 'attack_source' => 'attackSource']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'email_spam' => 'setEmailSpam', -'attack_source' => 'setAttackSource' ]; + 'attack_source' => 'setAttackSource']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'email_spam' => 'getEmailSpam', -'attack_source' => 'getAttackSource' ]; + 'attack_source' => 'getAttackSource']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['email_spam'] = isset($data['email_spam']) ? $data['email_spam'] : null; + $this->container['attack_source'] = isset($data['attack_source']) ? $data['attack_source'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['email_spam'] = isset($data['email_spam']) ? $data['email_spam'] : null; - $this->container['attack_source'] = isset($data['attack_source']) ? $data['attack_source'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -170,30 +183,29 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['email_spam'] === null) { + if (null === $this->container['email_spam']) { $invalidProperties[] = "'email_spam' can't be null"; } - if ($this->container['attack_source'] === null) { + if (null === $this->container['attack_source']) { $invalidProperties[] = "'attack_source' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets email_spam - * @return bool + * Gets email_spam. */ public function getEmailSpam(): bool { @@ -201,9 +213,9 @@ public function getEmailSpam(): bool } /** - * Sets email_spam + * Sets email_spam. * - * @param bool $email_spam IP address was part of a known email spam attack (SMTP). + * @param bool $email_spam IP address was part of a known email spam attack (SMTP) * * @return $this */ @@ -215,8 +227,7 @@ public function setEmailSpam(bool $email_spam): self } /** - * Gets attack_source - * @return bool + * Gets attack_source. */ public function getAttackSource(): bool { @@ -224,9 +235,9 @@ public function getAttackSource(): bool } /** - * Sets attack_source + * Sets attack_source. * - * @param bool $attack_source IP address was part of a known network attack (SSH/HTTPS). + * @param bool $attack_source IP address was part of a known network attack (SSH/HTTPS) * * @return $this */ @@ -236,10 +247,11 @@ public function setAttackSource(bool $attack_source): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -249,7 +261,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -259,8 +271,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -274,27 +286,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/IpInfoResult.php b/src/Model/IpInfoResult.php index d67942e8..2a6a7d98 100644 --- a/src/Model/IpInfoResult.php +++ b/src/Model/IpInfoResult.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\IpInfoResultV4', -'v6' => '\Fingerprint\ServerAPI\Model\IpInfoResultV6' ]; + 'v6' => '\Fingerprint\ServerAPI\Model\IpInfoResultV6']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'v4' => null, -'v6' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'v6' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'v4' => 'v4', -'v6' => 'v6' ]; + 'v6' => 'v6']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'v4' => 'setV4', -'v6' => 'setV6' ]; + 'v6' => 'setV6']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'v4' => 'getV4', -'v6' => 'getV6' ]; + 'v6' => 'getV6']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['v4'] = isset($data['v4']) ? $data['v4'] : null; + $this->container['v6'] = isset($data['v6']) ? $data['v6'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -118,7 +153,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -126,7 +161,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -141,27 +176,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['v4'] = isset($data['v4']) ? $data['v4'] : null; - $this->container['v6'] = isset($data['v6']) ? $data['v6'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -169,40 +183,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets v4 + * Gets v4. + * * @return ?\Fingerprint\ServerAPI\Model\IpInfoResultV4 */ - public function getV4(): ?\Fingerprint\ServerAPI\Model\IpInfoResultV4 + public function getV4(): ?IpInfoResultV4 { return $this->container['v4']; } /** - * Sets v4 + * Sets v4. * * @param ?\Fingerprint\ServerAPI\Model\IpInfoResultV4 $v4 v4 * * @return $this */ - public function setV4(?\Fingerprint\ServerAPI\Model\IpInfoResultV4 $v4): self + public function setV4(?IpInfoResultV4 $v4): self { $this->container['v4'] = $v4; @@ -210,31 +222,33 @@ public function setV4(?\Fingerprint\ServerAPI\Model\IpInfoResultV4 $v4): self } /** - * Gets v6 + * Gets v6. + * * @return ?\Fingerprint\ServerAPI\Model\IpInfoResultV6 */ - public function getV6(): ?\Fingerprint\ServerAPI\Model\IpInfoResultV6 + public function getV6(): ?IpInfoResultV6 { return $this->container['v6']; } /** - * Sets v6 + * Sets v6. * * @param ?\Fingerprint\ServerAPI\Model\IpInfoResultV6 $v6 v6 * * @return $this */ - public function setV6(?\Fingerprint\ServerAPI\Model\IpInfoResultV6 $v6): self + public function setV6(?IpInfoResultV6 $v6): self { $this->container['v6'] = $v6; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -244,7 +258,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -254,8 +268,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -269,27 +283,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/IpInfoResultV4.php b/src/Model/IpInfoResultV4.php index 2b1613c0..8a2f36d3 100644 --- a/src/Model/IpInfoResultV4.php +++ b/src/Model/IpInfoResultV4.php @@ -1,14 +1,16 @@ 'string', -'geolocation' => '\Fingerprint\ServerAPI\Model\IPLocation', -'asn' => '\Fingerprint\ServerAPI\Model\ASN', -'datacenter' => '\Fingerprint\ServerAPI\Model\DataCenter' ]; + 'geolocation' => '\Fingerprint\ServerAPI\Model\IPLocation', + 'asn' => '\Fingerprint\ServerAPI\Model\ASN', + 'datacenter' => '\Fingerprint\ServerAPI\Model\DataCenter']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'address' => 'ipv4', -'geolocation' => null, -'asn' => null, -'datacenter' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'geolocation' => null, + 'asn' => null, + 'datacenter' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'address' => 'address', -'geolocation' => 'geolocation', -'asn' => 'asn', -'datacenter' => 'datacenter' ]; + 'geolocation' => 'geolocation', + 'asn' => 'asn', + 'datacenter' => 'datacenter']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'address' => 'setAddress', -'geolocation' => 'setGeolocation', -'asn' => 'setAsn', -'datacenter' => 'setDatacenter' ]; + 'geolocation' => 'setGeolocation', + 'asn' => 'setAsn', + 'datacenter' => 'setDatacenter']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'address' => 'getAddress', -'geolocation' => 'getGeolocation', -'asn' => 'getAsn', -'datacenter' => 'getDatacenter' ]; + 'geolocation' => 'getGeolocation', + 'asn' => 'getAsn', + 'datacenter' => 'getDatacenter']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['address'] = isset($data['address']) ? $data['address'] : null; + $this->container['geolocation'] = isset($data['geolocation']) ? $data['geolocation'] : null; + $this->container['asn'] = isset($data['asn']) ? $data['asn'] : null; + $this->container['datacenter'] = isset($data['datacenter']) ? $data['datacenter'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -127,7 +163,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -135,7 +171,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -150,29 +186,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['address'] = isset($data['address']) ? $data['address'] : null; - $this->container['geolocation'] = isset($data['geolocation']) ? $data['geolocation'] : null; - $this->container['asn'] = isset($data['asn']) ? $data['asn'] : null; - $this->container['datacenter'] = isset($data['datacenter']) ? $data['datacenter'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -182,30 +195,29 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['address'] === null) { + if (null === $this->container['address']) { $invalidProperties[] = "'address' can't be null"; } - if ($this->container['geolocation'] === null) { + if (null === $this->container['geolocation']) { $invalidProperties[] = "'geolocation' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets address - * @return string + * Gets address. */ public function getAddress(): string { @@ -213,7 +225,7 @@ public function getAddress(): string } /** - * Sets address + * Sets address. * * @param string $address address * @@ -227,22 +239,21 @@ public function setAddress(string $address): self } /** - * Gets geolocation - * @return \Fingerprint\ServerAPI\Model\IPLocation + * Gets geolocation. */ - public function getGeolocation(): \Fingerprint\ServerAPI\Model\IPLocation + public function getGeolocation(): IPLocation { return $this->container['geolocation']; } /** - * Sets geolocation + * Sets geolocation. * - * @param \Fingerprint\ServerAPI\Model\IPLocation $geolocation geolocation + * @param IPLocation $geolocation geolocation * * @return $this */ - public function setGeolocation(\Fingerprint\ServerAPI\Model\IPLocation $geolocation): self + public function setGeolocation(IPLocation $geolocation): self { $this->container['geolocation'] = $geolocation; @@ -250,22 +261,23 @@ public function setGeolocation(\Fingerprint\ServerAPI\Model\IPLocation $geolocat } /** - * Gets asn + * Gets asn. + * * @return ?\Fingerprint\ServerAPI\Model\ASN */ - public function getAsn(): ?\Fingerprint\ServerAPI\Model\ASN + public function getAsn(): ?ASN { return $this->container['asn']; } /** - * Sets asn + * Sets asn. * * @param ?\Fingerprint\ServerAPI\Model\ASN $asn asn * * @return $this */ - public function setAsn(?\Fingerprint\ServerAPI\Model\ASN $asn): self + public function setAsn(?ASN $asn): self { $this->container['asn'] = $asn; @@ -273,31 +285,33 @@ public function setAsn(?\Fingerprint\ServerAPI\Model\ASN $asn): self } /** - * Gets datacenter + * Gets datacenter. + * * @return ?\Fingerprint\ServerAPI\Model\DataCenter */ - public function getDatacenter(): ?\Fingerprint\ServerAPI\Model\DataCenter + public function getDatacenter(): ?DataCenter { return $this->container['datacenter']; } /** - * Sets datacenter + * Sets datacenter. * * @param ?\Fingerprint\ServerAPI\Model\DataCenter $datacenter datacenter * * @return $this */ - public function setDatacenter(?\Fingerprint\ServerAPI\Model\DataCenter $datacenter): self + public function setDatacenter(?DataCenter $datacenter): self { $this->container['datacenter'] = $datacenter; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -307,7 +321,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -317,8 +331,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -332,27 +346,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/IpInfoResultV6.php b/src/Model/IpInfoResultV6.php index a4778893..0774ae9c 100644 --- a/src/Model/IpInfoResultV6.php +++ b/src/Model/IpInfoResultV6.php @@ -1,14 +1,16 @@ 'string', -'geolocation' => '\Fingerprint\ServerAPI\Model\IPLocation', -'asn' => '\Fingerprint\ServerAPI\Model\ASN', -'datacenter' => '\Fingerprint\ServerAPI\Model\DataCenter' ]; + 'geolocation' => '\Fingerprint\ServerAPI\Model\IPLocation', + 'asn' => '\Fingerprint\ServerAPI\Model\ASN', + 'datacenter' => '\Fingerprint\ServerAPI\Model\DataCenter']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'address' => 'ipv6', -'geolocation' => null, -'asn' => null, -'datacenter' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'geolocation' => null, + 'asn' => null, + 'datacenter' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'address' => 'address', -'geolocation' => 'geolocation', -'asn' => 'asn', -'datacenter' => 'datacenter' ]; + 'geolocation' => 'geolocation', + 'asn' => 'asn', + 'datacenter' => 'datacenter']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'address' => 'setAddress', -'geolocation' => 'setGeolocation', -'asn' => 'setAsn', -'datacenter' => 'setDatacenter' ]; + 'geolocation' => 'setGeolocation', + 'asn' => 'setAsn', + 'datacenter' => 'setDatacenter']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'address' => 'getAddress', -'geolocation' => 'getGeolocation', -'asn' => 'getAsn', -'datacenter' => 'getDatacenter' ]; + 'geolocation' => 'getGeolocation', + 'asn' => 'getAsn', + 'datacenter' => 'getDatacenter']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['address'] = isset($data['address']) ? $data['address'] : null; + $this->container['geolocation'] = isset($data['geolocation']) ? $data['geolocation'] : null; + $this->container['asn'] = isset($data['asn']) ? $data['asn'] : null; + $this->container['datacenter'] = isset($data['datacenter']) ? $data['datacenter'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -127,7 +163,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -135,7 +171,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -150,29 +186,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['address'] = isset($data['address']) ? $data['address'] : null; - $this->container['geolocation'] = isset($data['geolocation']) ? $data['geolocation'] : null; - $this->container['asn'] = isset($data['asn']) ? $data['asn'] : null; - $this->container['datacenter'] = isset($data['datacenter']) ? $data['datacenter'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -182,30 +195,29 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['address'] === null) { + if (null === $this->container['address']) { $invalidProperties[] = "'address' can't be null"; } - if ($this->container['geolocation'] === null) { + if (null === $this->container['geolocation']) { $invalidProperties[] = "'geolocation' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets address - * @return string + * Gets address. */ public function getAddress(): string { @@ -213,7 +225,7 @@ public function getAddress(): string } /** - * Sets address + * Sets address. * * @param string $address address * @@ -227,22 +239,21 @@ public function setAddress(string $address): self } /** - * Gets geolocation - * @return \Fingerprint\ServerAPI\Model\IPLocation + * Gets geolocation. */ - public function getGeolocation(): \Fingerprint\ServerAPI\Model\IPLocation + public function getGeolocation(): IPLocation { return $this->container['geolocation']; } /** - * Sets geolocation + * Sets geolocation. * - * @param \Fingerprint\ServerAPI\Model\IPLocation $geolocation geolocation + * @param IPLocation $geolocation geolocation * * @return $this */ - public function setGeolocation(\Fingerprint\ServerAPI\Model\IPLocation $geolocation): self + public function setGeolocation(IPLocation $geolocation): self { $this->container['geolocation'] = $geolocation; @@ -250,22 +261,23 @@ public function setGeolocation(\Fingerprint\ServerAPI\Model\IPLocation $geolocat } /** - * Gets asn + * Gets asn. + * * @return ?\Fingerprint\ServerAPI\Model\ASN */ - public function getAsn(): ?\Fingerprint\ServerAPI\Model\ASN + public function getAsn(): ?ASN { return $this->container['asn']; } /** - * Sets asn + * Sets asn. * * @param ?\Fingerprint\ServerAPI\Model\ASN $asn asn * * @return $this */ - public function setAsn(?\Fingerprint\ServerAPI\Model\ASN $asn): self + public function setAsn(?ASN $asn): self { $this->container['asn'] = $asn; @@ -273,31 +285,33 @@ public function setAsn(?\Fingerprint\ServerAPI\Model\ASN $asn): self } /** - * Gets datacenter + * Gets datacenter. + * * @return ?\Fingerprint\ServerAPI\Model\DataCenter */ - public function getDatacenter(): ?\Fingerprint\ServerAPI\Model\DataCenter + public function getDatacenter(): ?DataCenter { return $this->container['datacenter']; } /** - * Sets datacenter + * Sets datacenter. * * @param ?\Fingerprint\ServerAPI\Model\DataCenter $datacenter datacenter * * @return $this */ - public function setDatacenter(?\Fingerprint\ServerAPI\Model\DataCenter $datacenter): self + public function setDatacenter(?DataCenter $datacenter): self { $this->container['datacenter'] = $datacenter; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -307,7 +321,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -317,8 +331,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -332,27 +346,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/JailbrokenResult.php b/src/Model/JailbrokenResult.php index 0aa11da2..fa94ca4d 100644 --- a/src/Model/JailbrokenResult.php +++ b/src/Model/JailbrokenResult.php @@ -1,14 +1,16 @@ 'bool' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'result' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'result' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'result' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'result' => 'result' ]; + 'result' => 'result']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'result' => 'setResult' ]; + 'result' => 'setResult']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'result' => 'getResult' ]; + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['result'] = isset($data['result']) ? $data['result'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -164,27 +177,26 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result - * @return bool + * Gets result. */ public function getResult(): bool { @@ -192,7 +204,7 @@ public function getResult(): bool } /** - * Sets result + * Sets result. * * @param bool $result iOS specific jailbreak detection. There are 2 values: • `true` - Jailbreak detected • `false` - No signs of jailbreak or the client is not iOS. * @@ -204,10 +216,11 @@ public function setResult(bool $result): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -217,7 +230,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -227,8 +240,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -242,27 +255,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/Location.php b/src/Model/Location.php index 85cda839..10af00e7 100644 --- a/src/Model/Location.php +++ b/src/Model/Location.php @@ -1,14 +1,16 @@ 'string', -'name' => 'string' ]; + 'name' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'code' => null, -'name' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'name' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'code' => 'code', -'name' => 'name' ]; + 'name' => 'name']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'code' => 'setCode', -'name' => 'setName' ]; + 'name' => 'setName']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'code' => 'getCode', -'name' => 'getName' ]; + 'name' => 'getName']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = isset($data['code']) ? $data['code'] : null; - $this->container['name'] = isset($data['name']) ? $data['name'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -170,30 +183,29 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['code'] === null) { + if (null === $this->container['code']) { $invalidProperties[] = "'code' can't be null"; } - if ($this->container['name'] === null) { + if (null === $this->container['name']) { $invalidProperties[] = "'name' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets code - * @return string + * Gets code. */ public function getCode(): string { @@ -201,7 +213,7 @@ public function getCode(): string } /** - * Sets code + * Sets code. * * @param string $code code * @@ -215,8 +227,7 @@ public function setCode(string $code): self } /** - * Gets name - * @return string + * Gets name. */ public function getName(): string { @@ -224,7 +235,7 @@ public function getName(): string } /** - * Sets name + * Sets name. * * @param string $name name * @@ -236,10 +247,11 @@ public function setName(string $name): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -249,7 +261,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -259,8 +271,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -274,27 +286,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/LocationSpoofingResult.php b/src/Model/LocationSpoofingResult.php index 5a0e8ce1..fb7e697c 100644 --- a/src/Model/LocationSpoofingResult.php +++ b/src/Model/LocationSpoofingResult.php @@ -1,14 +1,16 @@ 'bool' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'result' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'result' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'result' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'result' => 'result' ]; + 'result' => 'result']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'result' => 'setResult' ]; + 'result' => 'setResult']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'result' => 'getResult' ]; + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['result'] = isset($data['result']) ? $data['result'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -164,27 +177,26 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result - * @return bool + * Gets result. */ public function getResult(): bool { @@ -192,9 +204,9 @@ public function getResult(): bool } /** - * Sets result + * Sets result. * - * @param bool $result Flag indicating whether the request came from a mobile device with location spoofing enabled. + * @param bool $result flag indicating whether the request came from a mobile device with location spoofing enabled * * @return $this */ @@ -204,10 +216,11 @@ public function setResult(bool $result): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -217,7 +230,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -227,8 +240,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -242,27 +255,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ModelInterface.php b/src/Model/ModelInterface.php index c6adaf20..0156c76d 100644 --- a/src/Model/ModelInterface.php +++ b/src/Model/ModelInterface.php @@ -1,17 +1,18 @@ 'bool' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'result' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'result' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'result' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'result' => 'result' ]; + 'result' => 'result']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'result' => 'setResult' ]; + 'result' => 'setResult']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'result' => 'getResult' ]; + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['result'] = isset($data['result']) ? $data['result'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -164,27 +177,26 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result - * @return bool + * Gets result. */ public function getResult(): bool { @@ -192,7 +204,7 @@ public function getResult(): bool } /** - * Sets result + * Sets result. * * @param bool $result `true` if the request is from a privacy aware browser (e.g. Tor) or from a browser in which fingerprinting is blocked. Otherwise `false`. * @@ -204,10 +216,11 @@ public function setResult(bool $result): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -217,7 +230,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -227,8 +240,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -242,27 +255,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ProductError.php b/src/Model/ProductError.php index 2cf9817c..5a0879e9 100644 --- a/src/Model/ProductError.php +++ b/src/Model/ProductError.php @@ -1,14 +1,16 @@ 'string', -'message' => 'string' ]; + 'message' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'code' => null, -'message' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'message' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'code' => 'code', -'message' => 'message' ]; + 'message' => 'message']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'code' => 'setCode', -'message' => 'setMessage' ]; + 'message' => 'setMessage']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'code' => 'getCode', -'message' => 'getMessage' ]; + 'message' => 'getMessage']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +154,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +162,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,11 +177,8 @@ public function getModelName(): string return self::$swaggerModelName; } - const CODE_TOO_MANY_REQUESTS = 'TooManyRequests'; -const CODE_FAILED = 'Failed'; - /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -152,26 +186,7 @@ public function getCodeAllowableValues(): array { return [ self::CODE_TOO_MANY_REQUESTS, -self::CODE_FAILED, ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = isset($data['code']) ? $data['code'] : null; - $this->container['message'] = isset($data['message']) ? $data['message'] : null; + self::CODE_FAILED, ]; } /** @@ -183,7 +198,7 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['code'] === null) { + if (null === $this->container['code']) { $invalidProperties[] = "'code' can't be null"; } $allowedValues = $this->getCodeAllowableValues(); @@ -194,27 +209,26 @@ public function listInvalidProperties(): array ); } - if ($this->container['message'] === null) { + if (null === $this->container['message']) { $invalidProperties[] = "'message' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets code - * @return string + * Gets code. */ public function getCode(): string { @@ -222,7 +236,7 @@ public function getCode(): string } /** - * Sets code + * Sets code. * * @param string $code Error code: * `TooManyRequests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error * @@ -245,8 +259,7 @@ public function setCode(string $code): self } /** - * Gets message - * @return string + * Gets message. */ public function getMessage(): string { @@ -254,7 +267,7 @@ public function getMessage(): string } /** - * Sets message + * Sets message. * * @param string $message message * @@ -266,10 +279,11 @@ public function setMessage(string $message): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -279,7 +293,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -289,8 +303,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -304,27 +318,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ProductsResponse.php b/src/Model/ProductsResponse.php index d832b8c5..16649fd8 100644 --- a/src/Model/ProductsResponse.php +++ b/src/Model/ProductsResponse.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\ProductsResponseIdentification', -'botd' => '\Fingerprint\ServerAPI\Model\ProductsResponseBotd', -'ip_info' => '\Fingerprint\ServerAPI\Model\SignalResponseIpInfo', -'incognito' => '\Fingerprint\ServerAPI\Model\SignalResponseIncognito', -'root_apps' => '\Fingerprint\ServerAPI\Model\SignalResponseRootApps', -'emulator' => '\Fingerprint\ServerAPI\Model\SignalResponseEmulator', -'cloned_app' => '\Fingerprint\ServerAPI\Model\SignalResponseClonedApp', -'factory_reset' => '\Fingerprint\ServerAPI\Model\SignalResponseFactoryReset', -'jailbroken' => '\Fingerprint\ServerAPI\Model\SignalResponseJailbroken', -'frida' => '\Fingerprint\ServerAPI\Model\SignalResponseFrida', -'ip_blocklist' => '\Fingerprint\ServerAPI\Model\SignalResponseIpBlocklist', -'tor' => '\Fingerprint\ServerAPI\Model\SignalResponseTor', -'privacy_settings' => '\Fingerprint\ServerAPI\Model\SignalResponsePrivacySettings', -'virtual_machine' => '\Fingerprint\ServerAPI\Model\SignalResponseVirtualMachine', -'vpn' => '\Fingerprint\ServerAPI\Model\SignalResponseVpn', -'proxy' => '\Fingerprint\ServerAPI\Model\SignalResponseProxy', -'tampering' => '\Fingerprint\ServerAPI\Model\SignalResponseTampering', -'high_activity' => '\Fingerprint\ServerAPI\Model\SignalResponseHighActivity', -'location_spoofing' => '\Fingerprint\ServerAPI\Model\SignalResponseLocationSpoofing', -'suspect_score' => '\Fingerprint\ServerAPI\Model\SignalResponseSuspectScore', -'raw_device_attributes' => '\Fingerprint\ServerAPI\Model\SignalResponseRawDeviceAttributes', -'remote_control' => '\Fingerprint\ServerAPI\Model\SignalResponseRemoteControl', -'velocity' => '\Fingerprint\ServerAPI\Model\SignalResponseVelocity', -'developer_tools' => '\Fingerprint\ServerAPI\Model\SignalResponseDeveloperTools' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + 'botd' => '\Fingerprint\ServerAPI\Model\ProductsResponseBotd', + 'ip_info' => '\Fingerprint\ServerAPI\Model\SignalResponseIpInfo', + 'incognito' => '\Fingerprint\ServerAPI\Model\SignalResponseIncognito', + 'root_apps' => '\Fingerprint\ServerAPI\Model\SignalResponseRootApps', + 'emulator' => '\Fingerprint\ServerAPI\Model\SignalResponseEmulator', + 'cloned_app' => '\Fingerprint\ServerAPI\Model\SignalResponseClonedApp', + 'factory_reset' => '\Fingerprint\ServerAPI\Model\SignalResponseFactoryReset', + 'jailbroken' => '\Fingerprint\ServerAPI\Model\SignalResponseJailbroken', + 'frida' => '\Fingerprint\ServerAPI\Model\SignalResponseFrida', + 'ip_blocklist' => '\Fingerprint\ServerAPI\Model\SignalResponseIpBlocklist', + 'tor' => '\Fingerprint\ServerAPI\Model\SignalResponseTor', + 'privacy_settings' => '\Fingerprint\ServerAPI\Model\SignalResponsePrivacySettings', + 'virtual_machine' => '\Fingerprint\ServerAPI\Model\SignalResponseVirtualMachine', + 'vpn' => '\Fingerprint\ServerAPI\Model\SignalResponseVpn', + 'proxy' => '\Fingerprint\ServerAPI\Model\SignalResponseProxy', + 'tampering' => '\Fingerprint\ServerAPI\Model\SignalResponseTampering', + 'high_activity' => '\Fingerprint\ServerAPI\Model\SignalResponseHighActivity', + 'location_spoofing' => '\Fingerprint\ServerAPI\Model\SignalResponseLocationSpoofing', + 'suspect_score' => '\Fingerprint\ServerAPI\Model\SignalResponseSuspectScore', + 'raw_device_attributes' => '\Fingerprint\ServerAPI\Model\SignalResponseRawDeviceAttributes', + 'remote_control' => '\Fingerprint\ServerAPI\Model\SignalResponseRemoteControl', + 'velocity' => '\Fingerprint\ServerAPI\Model\SignalResponseVelocity', + 'developer_tools' => '\Fingerprint\ServerAPI\Model\SignalResponseDeveloperTools']; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'identification' => null, -'botd' => null, -'ip_info' => null, -'incognito' => null, -'root_apps' => null, -'emulator' => null, -'cloned_app' => null, -'factory_reset' => null, -'jailbroken' => null, -'frida' => null, -'ip_blocklist' => null, -'tor' => null, -'privacy_settings' => null, -'virtual_machine' => null, -'vpn' => null, -'proxy' => null, -'tampering' => null, -'high_activity' => null, -'location_spoofing' => null, -'suspect_score' => null, -'raw_device_attributes' => null, -'remote_control' => null, -'velocity' => null, -'developer_tools' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'botd' => null, + 'ip_info' => null, + 'incognito' => null, + 'root_apps' => null, + 'emulator' => null, + 'cloned_app' => null, + 'factory_reset' => null, + 'jailbroken' => null, + 'frida' => null, + 'ip_blocklist' => null, + 'tor' => null, + 'privacy_settings' => null, + 'virtual_machine' => null, + 'vpn' => null, + 'proxy' => null, + 'tampering' => null, + 'high_activity' => null, + 'location_spoofing' => null, + 'suspect_score' => null, + 'raw_device_attributes' => null, + 'remote_control' => null, + 'velocity' => null, + 'developer_tools' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'identification' => 'identification', -'botd' => 'botd', -'ip_info' => 'ipInfo', -'incognito' => 'incognito', -'root_apps' => 'rootApps', -'emulator' => 'emulator', -'cloned_app' => 'clonedApp', -'factory_reset' => 'factoryReset', -'jailbroken' => 'jailbroken', -'frida' => 'frida', -'ip_blocklist' => 'ipBlocklist', -'tor' => 'tor', -'privacy_settings' => 'privacySettings', -'virtual_machine' => 'virtualMachine', -'vpn' => 'vpn', -'proxy' => 'proxy', -'tampering' => 'tampering', -'high_activity' => 'highActivity', -'location_spoofing' => 'locationSpoofing', -'suspect_score' => 'suspectScore', -'raw_device_attributes' => 'rawDeviceAttributes', -'remote_control' => 'remoteControl', -'velocity' => 'velocity', -'developer_tools' => 'developerTools' ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) + 'botd' => 'botd', + 'ip_info' => 'ipInfo', + 'incognito' => 'incognito', + 'root_apps' => 'rootApps', + 'emulator' => 'emulator', + 'cloned_app' => 'clonedApp', + 'factory_reset' => 'factoryReset', + 'jailbroken' => 'jailbroken', + 'frida' => 'frida', + 'ip_blocklist' => 'ipBlocklist', + 'tor' => 'tor', + 'privacy_settings' => 'privacySettings', + 'virtual_machine' => 'virtualMachine', + 'vpn' => 'vpn', + 'proxy' => 'proxy', + 'tampering' => 'tampering', + 'high_activity' => 'highActivity', + 'location_spoofing' => 'locationSpoofing', + 'suspect_score' => 'suspectScore', + 'raw_device_attributes' => 'rawDeviceAttributes', + 'remote_control' => 'remoteControl', + 'velocity' => 'velocity', + 'developer_tools' => 'developerTools']; + + /** + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'identification' => 'setIdentification', -'botd' => 'setBotd', -'ip_info' => 'setIpInfo', -'incognito' => 'setIncognito', -'root_apps' => 'setRootApps', -'emulator' => 'setEmulator', -'cloned_app' => 'setClonedApp', -'factory_reset' => 'setFactoryReset', -'jailbroken' => 'setJailbroken', -'frida' => 'setFrida', -'ip_blocklist' => 'setIpBlocklist', -'tor' => 'setTor', -'privacy_settings' => 'setPrivacySettings', -'virtual_machine' => 'setVirtualMachine', -'vpn' => 'setVpn', -'proxy' => 'setProxy', -'tampering' => 'setTampering', -'high_activity' => 'setHighActivity', -'location_spoofing' => 'setLocationSpoofing', -'suspect_score' => 'setSuspectScore', -'raw_device_attributes' => 'setRawDeviceAttributes', -'remote_control' => 'setRemoteControl', -'velocity' => 'setVelocity', -'developer_tools' => 'setDeveloperTools' ]; - - /** - * Array of attributes to getter functions (for serialization of requests) + 'botd' => 'setBotd', + 'ip_info' => 'setIpInfo', + 'incognito' => 'setIncognito', + 'root_apps' => 'setRootApps', + 'emulator' => 'setEmulator', + 'cloned_app' => 'setClonedApp', + 'factory_reset' => 'setFactoryReset', + 'jailbroken' => 'setJailbroken', + 'frida' => 'setFrida', + 'ip_blocklist' => 'setIpBlocklist', + 'tor' => 'setTor', + 'privacy_settings' => 'setPrivacySettings', + 'virtual_machine' => 'setVirtualMachine', + 'vpn' => 'setVpn', + 'proxy' => 'setProxy', + 'tampering' => 'setTampering', + 'high_activity' => 'setHighActivity', + 'location_spoofing' => 'setLocationSpoofing', + 'suspect_score' => 'setSuspectScore', + 'raw_device_attributes' => 'setRawDeviceAttributes', + 'remote_control' => 'setRemoteControl', + 'velocity' => 'setVelocity', + 'developer_tools' => 'setDeveloperTools']; + + /** + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'identification' => 'getIdentification', -'botd' => 'getBotd', -'ip_info' => 'getIpInfo', -'incognito' => 'getIncognito', -'root_apps' => 'getRootApps', -'emulator' => 'getEmulator', -'cloned_app' => 'getClonedApp', -'factory_reset' => 'getFactoryReset', -'jailbroken' => 'getJailbroken', -'frida' => 'getFrida', -'ip_blocklist' => 'getIpBlocklist', -'tor' => 'getTor', -'privacy_settings' => 'getPrivacySettings', -'virtual_machine' => 'getVirtualMachine', -'vpn' => 'getVpn', -'proxy' => 'getProxy', -'tampering' => 'getTampering', -'high_activity' => 'getHighActivity', -'location_spoofing' => 'getLocationSpoofing', -'suspect_score' => 'getSuspectScore', -'raw_device_attributes' => 'getRawDeviceAttributes', -'remote_control' => 'getRemoteControl', -'velocity' => 'getVelocity', -'developer_tools' => 'getDeveloperTools' ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - */ - public static function attributeMap(): array - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - */ - public static function setters(): array - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - */ - public static function getters(): array - { - return self::$getters; - } - - /** - * The original name of the model. - */ - public function getModelName(): string - { - return self::$swaggerModelName; - } - - - - /** - * Associative array for storing property values + 'botd' => 'getBotd', + 'ip_info' => 'getIpInfo', + 'incognito' => 'getIncognito', + 'root_apps' => 'getRootApps', + 'emulator' => 'getEmulator', + 'cloned_app' => 'getClonedApp', + 'factory_reset' => 'getFactoryReset', + 'jailbroken' => 'getJailbroken', + 'frida' => 'getFrida', + 'ip_blocklist' => 'getIpBlocklist', + 'tor' => 'getTor', + 'privacy_settings' => 'getPrivacySettings', + 'virtual_machine' => 'getVirtualMachine', + 'vpn' => 'getVpn', + 'proxy' => 'getProxy', + 'tampering' => 'getTampering', + 'high_activity' => 'getHighActivity', + 'location_spoofing' => 'getLocationSpoofing', + 'suspect_score' => 'getSuspectScore', + 'raw_device_attributes' => 'getRawDeviceAttributes', + 'remote_control' => 'getRemoteControl', + 'velocity' => 'getVelocity', + 'developer_tools' => 'getDeveloperTools']; + + /** + * Associative array for storing property values. * * @var mixed[] */ protected array $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['identification'] = isset($data['identification']) ? $data['identification'] : null; $this->container['botd'] = isset($data['botd']) ? $data['botd'] : null; @@ -294,6 +244,70 @@ public function __construct(array $data = null) $this->container['developer_tools'] = isset($data['developer_tools']) ? $data['developer_tools'] : null; } + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap(): array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters(): array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters(): array + { + return self::$getters; + } + + /** + * The original name of the model. + */ + public function getModelName(): string + { + return self::$swaggerModelName; + } + /** * Show all the invalid properties with reasons. * @@ -301,40 +315,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets identification + * Gets identification. + * * @return ?\Fingerprint\ServerAPI\Model\ProductsResponseIdentification */ - public function getIdentification(): ?\Fingerprint\ServerAPI\Model\ProductsResponseIdentification + public function getIdentification(): ?ProductsResponseIdentification { return $this->container['identification']; } /** - * Sets identification + * Sets identification. * * @param ?\Fingerprint\ServerAPI\Model\ProductsResponseIdentification $identification identification * * @return $this */ - public function setIdentification(?\Fingerprint\ServerAPI\Model\ProductsResponseIdentification $identification): self + public function setIdentification(?ProductsResponseIdentification $identification): self { $this->container['identification'] = $identification; @@ -342,22 +354,23 @@ public function setIdentification(?\Fingerprint\ServerAPI\Model\ProductsResponse } /** - * Gets botd + * Gets botd. + * * @return ?\Fingerprint\ServerAPI\Model\ProductsResponseBotd */ - public function getBotd(): ?\Fingerprint\ServerAPI\Model\ProductsResponseBotd + public function getBotd(): ?ProductsResponseBotd { return $this->container['botd']; } /** - * Sets botd + * Sets botd. * * @param ?\Fingerprint\ServerAPI\Model\ProductsResponseBotd $botd botd * * @return $this */ - public function setBotd(?\Fingerprint\ServerAPI\Model\ProductsResponseBotd $botd): self + public function setBotd(?ProductsResponseBotd $botd): self { $this->container['botd'] = $botd; @@ -365,22 +378,23 @@ public function setBotd(?\Fingerprint\ServerAPI\Model\ProductsResponseBotd $botd } /** - * Gets ip_info + * Gets ip_info. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseIpInfo */ - public function getIpInfo(): ?\Fingerprint\ServerAPI\Model\SignalResponseIpInfo + public function getIpInfo(): ?SignalResponseIpInfo { return $this->container['ip_info']; } /** - * Sets ip_info + * Sets ip_info. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseIpInfo $ip_info ip_info * * @return $this */ - public function setIpInfo(?\Fingerprint\ServerAPI\Model\SignalResponseIpInfo $ip_info): self + public function setIpInfo(?SignalResponseIpInfo $ip_info): self { $this->container['ip_info'] = $ip_info; @@ -388,22 +402,23 @@ public function setIpInfo(?\Fingerprint\ServerAPI\Model\SignalResponseIpInfo $ip } /** - * Gets incognito + * Gets incognito. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseIncognito */ - public function getIncognito(): ?\Fingerprint\ServerAPI\Model\SignalResponseIncognito + public function getIncognito(): ?SignalResponseIncognito { return $this->container['incognito']; } /** - * Sets incognito + * Sets incognito. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseIncognito $incognito incognito * * @return $this */ - public function setIncognito(?\Fingerprint\ServerAPI\Model\SignalResponseIncognito $incognito): self + public function setIncognito(?SignalResponseIncognito $incognito): self { $this->container['incognito'] = $incognito; @@ -411,22 +426,23 @@ public function setIncognito(?\Fingerprint\ServerAPI\Model\SignalResponseIncogni } /** - * Gets root_apps + * Gets root_apps. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseRootApps */ - public function getRootApps(): ?\Fingerprint\ServerAPI\Model\SignalResponseRootApps + public function getRootApps(): ?SignalResponseRootApps { return $this->container['root_apps']; } /** - * Sets root_apps + * Sets root_apps. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseRootApps $root_apps root_apps * * @return $this */ - public function setRootApps(?\Fingerprint\ServerAPI\Model\SignalResponseRootApps $root_apps): self + public function setRootApps(?SignalResponseRootApps $root_apps): self { $this->container['root_apps'] = $root_apps; @@ -434,22 +450,23 @@ public function setRootApps(?\Fingerprint\ServerAPI\Model\SignalResponseRootApps } /** - * Gets emulator + * Gets emulator. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseEmulator */ - public function getEmulator(): ?\Fingerprint\ServerAPI\Model\SignalResponseEmulator + public function getEmulator(): ?SignalResponseEmulator { return $this->container['emulator']; } /** - * Sets emulator + * Sets emulator. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseEmulator $emulator emulator * * @return $this */ - public function setEmulator(?\Fingerprint\ServerAPI\Model\SignalResponseEmulator $emulator): self + public function setEmulator(?SignalResponseEmulator $emulator): self { $this->container['emulator'] = $emulator; @@ -457,22 +474,23 @@ public function setEmulator(?\Fingerprint\ServerAPI\Model\SignalResponseEmulator } /** - * Gets cloned_app + * Gets cloned_app. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseClonedApp */ - public function getClonedApp(): ?\Fingerprint\ServerAPI\Model\SignalResponseClonedApp + public function getClonedApp(): ?SignalResponseClonedApp { return $this->container['cloned_app']; } /** - * Sets cloned_app + * Sets cloned_app. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseClonedApp $cloned_app cloned_app * * @return $this */ - public function setClonedApp(?\Fingerprint\ServerAPI\Model\SignalResponseClonedApp $cloned_app): self + public function setClonedApp(?SignalResponseClonedApp $cloned_app): self { $this->container['cloned_app'] = $cloned_app; @@ -480,22 +498,23 @@ public function setClonedApp(?\Fingerprint\ServerAPI\Model\SignalResponseClonedA } /** - * Gets factory_reset + * Gets factory_reset. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseFactoryReset */ - public function getFactoryReset(): ?\Fingerprint\ServerAPI\Model\SignalResponseFactoryReset + public function getFactoryReset(): ?SignalResponseFactoryReset { return $this->container['factory_reset']; } /** - * Sets factory_reset + * Sets factory_reset. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseFactoryReset $factory_reset factory_reset * * @return $this */ - public function setFactoryReset(?\Fingerprint\ServerAPI\Model\SignalResponseFactoryReset $factory_reset): self + public function setFactoryReset(?SignalResponseFactoryReset $factory_reset): self { $this->container['factory_reset'] = $factory_reset; @@ -503,22 +522,23 @@ public function setFactoryReset(?\Fingerprint\ServerAPI\Model\SignalResponseFact } /** - * Gets jailbroken + * Gets jailbroken. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseJailbroken */ - public function getJailbroken(): ?\Fingerprint\ServerAPI\Model\SignalResponseJailbroken + public function getJailbroken(): ?SignalResponseJailbroken { return $this->container['jailbroken']; } /** - * Sets jailbroken + * Sets jailbroken. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseJailbroken $jailbroken jailbroken * * @return $this */ - public function setJailbroken(?\Fingerprint\ServerAPI\Model\SignalResponseJailbroken $jailbroken): self + public function setJailbroken(?SignalResponseJailbroken $jailbroken): self { $this->container['jailbroken'] = $jailbroken; @@ -526,22 +546,23 @@ public function setJailbroken(?\Fingerprint\ServerAPI\Model\SignalResponseJailbr } /** - * Gets frida + * Gets frida. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseFrida */ - public function getFrida(): ?\Fingerprint\ServerAPI\Model\SignalResponseFrida + public function getFrida(): ?SignalResponseFrida { return $this->container['frida']; } /** - * Sets frida + * Sets frida. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseFrida $frida frida * * @return $this */ - public function setFrida(?\Fingerprint\ServerAPI\Model\SignalResponseFrida $frida): self + public function setFrida(?SignalResponseFrida $frida): self { $this->container['frida'] = $frida; @@ -549,22 +570,23 @@ public function setFrida(?\Fingerprint\ServerAPI\Model\SignalResponseFrida $frid } /** - * Gets ip_blocklist + * Gets ip_blocklist. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseIpBlocklist */ - public function getIpBlocklist(): ?\Fingerprint\ServerAPI\Model\SignalResponseIpBlocklist + public function getIpBlocklist(): ?SignalResponseIpBlocklist { return $this->container['ip_blocklist']; } /** - * Sets ip_blocklist + * Sets ip_blocklist. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseIpBlocklist $ip_blocklist ip_blocklist * * @return $this */ - public function setIpBlocklist(?\Fingerprint\ServerAPI\Model\SignalResponseIpBlocklist $ip_blocklist): self + public function setIpBlocklist(?SignalResponseIpBlocklist $ip_blocklist): self { $this->container['ip_blocklist'] = $ip_blocklist; @@ -572,22 +594,23 @@ public function setIpBlocklist(?\Fingerprint\ServerAPI\Model\SignalResponseIpBlo } /** - * Gets tor + * Gets tor. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseTor */ - public function getTor(): ?\Fingerprint\ServerAPI\Model\SignalResponseTor + public function getTor(): ?SignalResponseTor { return $this->container['tor']; } /** - * Sets tor + * Sets tor. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseTor $tor tor * * @return $this */ - public function setTor(?\Fingerprint\ServerAPI\Model\SignalResponseTor $tor): self + public function setTor(?SignalResponseTor $tor): self { $this->container['tor'] = $tor; @@ -595,22 +618,23 @@ public function setTor(?\Fingerprint\ServerAPI\Model\SignalResponseTor $tor): se } /** - * Gets privacy_settings + * Gets privacy_settings. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponsePrivacySettings */ - public function getPrivacySettings(): ?\Fingerprint\ServerAPI\Model\SignalResponsePrivacySettings + public function getPrivacySettings(): ?SignalResponsePrivacySettings { return $this->container['privacy_settings']; } /** - * Sets privacy_settings + * Sets privacy_settings. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponsePrivacySettings $privacy_settings privacy_settings * * @return $this */ - public function setPrivacySettings(?\Fingerprint\ServerAPI\Model\SignalResponsePrivacySettings $privacy_settings): self + public function setPrivacySettings(?SignalResponsePrivacySettings $privacy_settings): self { $this->container['privacy_settings'] = $privacy_settings; @@ -618,22 +642,23 @@ public function setPrivacySettings(?\Fingerprint\ServerAPI\Model\SignalResponseP } /** - * Gets virtual_machine + * Gets virtual_machine. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseVirtualMachine */ - public function getVirtualMachine(): ?\Fingerprint\ServerAPI\Model\SignalResponseVirtualMachine + public function getVirtualMachine(): ?SignalResponseVirtualMachine { return $this->container['virtual_machine']; } /** - * Sets virtual_machine + * Sets virtual_machine. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseVirtualMachine $virtual_machine virtual_machine * * @return $this */ - public function setVirtualMachine(?\Fingerprint\ServerAPI\Model\SignalResponseVirtualMachine $virtual_machine): self + public function setVirtualMachine(?SignalResponseVirtualMachine $virtual_machine): self { $this->container['virtual_machine'] = $virtual_machine; @@ -641,22 +666,23 @@ public function setVirtualMachine(?\Fingerprint\ServerAPI\Model\SignalResponseVi } /** - * Gets vpn + * Gets vpn. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseVpn */ - public function getVpn(): ?\Fingerprint\ServerAPI\Model\SignalResponseVpn + public function getVpn(): ?SignalResponseVpn { return $this->container['vpn']; } /** - * Sets vpn + * Sets vpn. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseVpn $vpn vpn * * @return $this */ - public function setVpn(?\Fingerprint\ServerAPI\Model\SignalResponseVpn $vpn): self + public function setVpn(?SignalResponseVpn $vpn): self { $this->container['vpn'] = $vpn; @@ -664,22 +690,23 @@ public function setVpn(?\Fingerprint\ServerAPI\Model\SignalResponseVpn $vpn): se } /** - * Gets proxy + * Gets proxy. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseProxy */ - public function getProxy(): ?\Fingerprint\ServerAPI\Model\SignalResponseProxy + public function getProxy(): ?SignalResponseProxy { return $this->container['proxy']; } /** - * Sets proxy + * Sets proxy. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseProxy $proxy proxy * * @return $this */ - public function setProxy(?\Fingerprint\ServerAPI\Model\SignalResponseProxy $proxy): self + public function setProxy(?SignalResponseProxy $proxy): self { $this->container['proxy'] = $proxy; @@ -687,22 +714,23 @@ public function setProxy(?\Fingerprint\ServerAPI\Model\SignalResponseProxy $prox } /** - * Gets tampering + * Gets tampering. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseTampering */ - public function getTampering(): ?\Fingerprint\ServerAPI\Model\SignalResponseTampering + public function getTampering(): ?SignalResponseTampering { return $this->container['tampering']; } /** - * Sets tampering + * Sets tampering. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseTampering $tampering tampering * * @return $this */ - public function setTampering(?\Fingerprint\ServerAPI\Model\SignalResponseTampering $tampering): self + public function setTampering(?SignalResponseTampering $tampering): self { $this->container['tampering'] = $tampering; @@ -710,22 +738,23 @@ public function setTampering(?\Fingerprint\ServerAPI\Model\SignalResponseTamperi } /** - * Gets high_activity + * Gets high_activity. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseHighActivity */ - public function getHighActivity(): ?\Fingerprint\ServerAPI\Model\SignalResponseHighActivity + public function getHighActivity(): ?SignalResponseHighActivity { return $this->container['high_activity']; } /** - * Sets high_activity + * Sets high_activity. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseHighActivity $high_activity high_activity * * @return $this */ - public function setHighActivity(?\Fingerprint\ServerAPI\Model\SignalResponseHighActivity $high_activity): self + public function setHighActivity(?SignalResponseHighActivity $high_activity): self { $this->container['high_activity'] = $high_activity; @@ -733,22 +762,23 @@ public function setHighActivity(?\Fingerprint\ServerAPI\Model\SignalResponseHigh } /** - * Gets location_spoofing + * Gets location_spoofing. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseLocationSpoofing */ - public function getLocationSpoofing(): ?\Fingerprint\ServerAPI\Model\SignalResponseLocationSpoofing + public function getLocationSpoofing(): ?SignalResponseLocationSpoofing { return $this->container['location_spoofing']; } /** - * Sets location_spoofing + * Sets location_spoofing. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseLocationSpoofing $location_spoofing location_spoofing * * @return $this */ - public function setLocationSpoofing(?\Fingerprint\ServerAPI\Model\SignalResponseLocationSpoofing $location_spoofing): self + public function setLocationSpoofing(?SignalResponseLocationSpoofing $location_spoofing): self { $this->container['location_spoofing'] = $location_spoofing; @@ -756,22 +786,23 @@ public function setLocationSpoofing(?\Fingerprint\ServerAPI\Model\SignalResponse } /** - * Gets suspect_score + * Gets suspect_score. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseSuspectScore */ - public function getSuspectScore(): ?\Fingerprint\ServerAPI\Model\SignalResponseSuspectScore + public function getSuspectScore(): ?SignalResponseSuspectScore { return $this->container['suspect_score']; } /** - * Sets suspect_score + * Sets suspect_score. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseSuspectScore $suspect_score suspect_score * * @return $this */ - public function setSuspectScore(?\Fingerprint\ServerAPI\Model\SignalResponseSuspectScore $suspect_score): self + public function setSuspectScore(?SignalResponseSuspectScore $suspect_score): self { $this->container['suspect_score'] = $suspect_score; @@ -779,22 +810,23 @@ public function setSuspectScore(?\Fingerprint\ServerAPI\Model\SignalResponseSusp } /** - * Gets raw_device_attributes + * Gets raw_device_attributes. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseRawDeviceAttributes */ - public function getRawDeviceAttributes(): ?\Fingerprint\ServerAPI\Model\SignalResponseRawDeviceAttributes + public function getRawDeviceAttributes(): ?SignalResponseRawDeviceAttributes { return $this->container['raw_device_attributes']; } /** - * Sets raw_device_attributes + * Sets raw_device_attributes. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseRawDeviceAttributes $raw_device_attributes raw_device_attributes * * @return $this */ - public function setRawDeviceAttributes(?\Fingerprint\ServerAPI\Model\SignalResponseRawDeviceAttributes $raw_device_attributes): self + public function setRawDeviceAttributes(?SignalResponseRawDeviceAttributes $raw_device_attributes): self { $this->container['raw_device_attributes'] = $raw_device_attributes; @@ -802,22 +834,23 @@ public function setRawDeviceAttributes(?\Fingerprint\ServerAPI\Model\SignalRespo } /** - * Gets remote_control + * Gets remote_control. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseRemoteControl */ - public function getRemoteControl(): ?\Fingerprint\ServerAPI\Model\SignalResponseRemoteControl + public function getRemoteControl(): ?SignalResponseRemoteControl { return $this->container['remote_control']; } /** - * Sets remote_control + * Sets remote_control. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseRemoteControl $remote_control remote_control * * @return $this */ - public function setRemoteControl(?\Fingerprint\ServerAPI\Model\SignalResponseRemoteControl $remote_control): self + public function setRemoteControl(?SignalResponseRemoteControl $remote_control): self { $this->container['remote_control'] = $remote_control; @@ -825,22 +858,23 @@ public function setRemoteControl(?\Fingerprint\ServerAPI\Model\SignalResponseRem } /** - * Gets velocity + * Gets velocity. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseVelocity */ - public function getVelocity(): ?\Fingerprint\ServerAPI\Model\SignalResponseVelocity + public function getVelocity(): ?SignalResponseVelocity { return $this->container['velocity']; } /** - * Sets velocity + * Sets velocity. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseVelocity $velocity velocity * * @return $this */ - public function setVelocity(?\Fingerprint\ServerAPI\Model\SignalResponseVelocity $velocity): self + public function setVelocity(?SignalResponseVelocity $velocity): self { $this->container['velocity'] = $velocity; @@ -848,31 +882,33 @@ public function setVelocity(?\Fingerprint\ServerAPI\Model\SignalResponseVelocity } /** - * Gets developer_tools + * Gets developer_tools. + * * @return ?\Fingerprint\ServerAPI\Model\SignalResponseDeveloperTools */ - public function getDeveloperTools(): ?\Fingerprint\ServerAPI\Model\SignalResponseDeveloperTools + public function getDeveloperTools(): ?SignalResponseDeveloperTools { return $this->container['developer_tools']; } /** - * Sets developer_tools + * Sets developer_tools. * * @param ?\Fingerprint\ServerAPI\Model\SignalResponseDeveloperTools $developer_tools developer_tools * * @return $this */ - public function setDeveloperTools(?\Fingerprint\ServerAPI\Model\SignalResponseDeveloperTools $developer_tools): self + public function setDeveloperTools(?SignalResponseDeveloperTools $developer_tools): self { $this->container['developer_tools'] = $developer_tools; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -882,7 +918,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -892,8 +928,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -907,27 +943,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ProductsResponseBotd.php b/src/Model/ProductsResponseBotd.php index b8501ba2..7d8255c1 100644 --- a/src/Model/ProductsResponseBotd.php +++ b/src/Model/ProductsResponseBotd.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\BotdResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\BotdResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\BotdResult + public function getData(): ?BotdResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\BotdResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\BotdResult $data): self + public function setData(?BotdResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\BotdResult $data): self } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ProductsResponseIdentification.php b/src/Model/ProductsResponseIdentification.php index a76bf9fd..dfec88dc 100644 --- a/src/Model/ProductsResponseIdentification.php +++ b/src/Model/ProductsResponseIdentification.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\ProductsResponseIdentificationData', -'error' => '\Fingerprint\ServerAPI\Model\IdentificationError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\IdentificationError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\ProductsResponseIdentificationData */ - public function getData(): ?\Fingerprint\ServerAPI\Model\ProductsResponseIdentificationData + public function getData(): ?ProductsResponseIdentificationData { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\ProductsResponseIdentificationData $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\ProductsResponseIdentificationData $data): self + public function setData(?ProductsResponseIdentificationData $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\ProductsResponseIdentifica } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\IdentificationError + public function getError(): ?IdentificationError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\IdentificationError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\IdentificationError $error): self + public function setError(?IdentificationError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ProductsResponseIdentificationData.php b/src/Model/ProductsResponseIdentificationData.php index cf18766d..1bf397fc 100644 --- a/src/Model/ProductsResponseIdentificationData.php +++ b/src/Model/ProductsResponseIdentificationData.php @@ -1,14 +1,16 @@ 'string', -'browser_details' => '\Fingerprint\ServerAPI\Model\BrowserDetails', -'incognito' => 'bool', -'ip' => 'string', -'ip_location' => '\Fingerprint\ServerAPI\Model\DeprecatedIPLocation', -'timestamp' => 'int', -'time' => '\DateTime', -'url' => 'string', -'tag' => 'map[string,object]', -'linked_id' => 'string', -'confidence' => '\Fingerprint\ServerAPI\Model\Confidence', -'visitor_found' => 'bool', -'first_seen_at' => '\Fingerprint\ServerAPI\Model\SeenAt', -'last_seen_at' => '\Fingerprint\ServerAPI\Model\SeenAt', -'visitor_id' => 'string' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + 'browser_details' => '\Fingerprint\ServerAPI\Model\BrowserDetails', + 'incognito' => 'bool', + 'ip' => 'string', + 'ip_location' => '\Fingerprint\ServerAPI\Model\DeprecatedIPLocation', + 'timestamp' => 'int', + 'time' => '\DateTime', + 'url' => 'string', + 'tag' => 'map[string,object]', + 'linked_id' => 'string', + 'confidence' => '\Fingerprint\ServerAPI\Model\Confidence', + 'visitor_found' => 'bool', + 'first_seen_at' => '\Fingerprint\ServerAPI\Model\SeenAt', + 'last_seen_at' => '\Fingerprint\ServerAPI\Model\SeenAt', + 'visitor_id' => 'string']; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'request_id' => null, -'browser_details' => null, -'incognito' => null, -'ip' => 'ipv4', -'ip_location' => null, -'timestamp' => 'int64', -'time' => 'date-time', -'url' => null, -'tag' => null, -'linked_id' => null, -'confidence' => null, -'visitor_found' => null, -'first_seen_at' => null, -'last_seen_at' => null, -'visitor_id' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'browser_details' => null, + 'incognito' => null, + 'ip' => 'ipv4', + 'ip_location' => null, + 'timestamp' => 'int64', + 'time' => 'date-time', + 'url' => null, + 'tag' => null, + 'linked_id' => null, + 'confidence' => null, + 'visitor_found' => null, + 'first_seen_at' => null, + 'last_seen_at' => null, + 'visitor_id' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'request_id' => 'requestId', -'browser_details' => 'browserDetails', -'incognito' => 'incognito', -'ip' => 'ip', -'ip_location' => 'ipLocation', -'timestamp' => 'timestamp', -'time' => 'time', -'url' => 'url', -'tag' => 'tag', -'linked_id' => 'linkedId', -'confidence' => 'confidence', -'visitor_found' => 'visitorFound', -'first_seen_at' => 'firstSeenAt', -'last_seen_at' => 'lastSeenAt', -'visitor_id' => 'visitorId' ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) + 'browser_details' => 'browserDetails', + 'incognito' => 'incognito', + 'ip' => 'ip', + 'ip_location' => 'ipLocation', + 'timestamp' => 'timestamp', + 'time' => 'time', + 'url' => 'url', + 'tag' => 'tag', + 'linked_id' => 'linkedId', + 'confidence' => 'confidence', + 'visitor_found' => 'visitorFound', + 'first_seen_at' => 'firstSeenAt', + 'last_seen_at' => 'lastSeenAt', + 'visitor_id' => 'visitorId']; + + /** + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'request_id' => 'setRequestId', -'browser_details' => 'setBrowserDetails', -'incognito' => 'setIncognito', -'ip' => 'setIp', -'ip_location' => 'setIpLocation', -'timestamp' => 'setTimestamp', -'time' => 'setTime', -'url' => 'setUrl', -'tag' => 'setTag', -'linked_id' => 'setLinkedId', -'confidence' => 'setConfidence', -'visitor_found' => 'setVisitorFound', -'first_seen_at' => 'setFirstSeenAt', -'last_seen_at' => 'setLastSeenAt', -'visitor_id' => 'setVisitorId' ]; - - /** - * Array of attributes to getter functions (for serialization of requests) + 'browser_details' => 'setBrowserDetails', + 'incognito' => 'setIncognito', + 'ip' => 'setIp', + 'ip_location' => 'setIpLocation', + 'timestamp' => 'setTimestamp', + 'time' => 'setTime', + 'url' => 'setUrl', + 'tag' => 'setTag', + 'linked_id' => 'setLinkedId', + 'confidence' => 'setConfidence', + 'visitor_found' => 'setVisitorFound', + 'first_seen_at' => 'setFirstSeenAt', + 'last_seen_at' => 'setLastSeenAt', + 'visitor_id' => 'setVisitorId']; + + /** + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'request_id' => 'getRequestId', -'browser_details' => 'getBrowserDetails', -'incognito' => 'getIncognito', -'ip' => 'getIp', -'ip_location' => 'getIpLocation', -'timestamp' => 'getTimestamp', -'time' => 'getTime', -'url' => 'getUrl', -'tag' => 'getTag', -'linked_id' => 'getLinkedId', -'confidence' => 'getConfidence', -'visitor_found' => 'getVisitorFound', -'first_seen_at' => 'getFirstSeenAt', -'last_seen_at' => 'getLastSeenAt', -'visitor_id' => 'getVisitorId' ]; + 'browser_details' => 'getBrowserDetails', + 'incognito' => 'getIncognito', + 'ip' => 'getIp', + 'ip_location' => 'getIpLocation', + 'timestamp' => 'getTimestamp', + 'time' => 'getTime', + 'url' => 'getUrl', + 'tag' => 'getTag', + 'linked_id' => 'getLinkedId', + 'confidence' => 'getConfidence', + 'visitor_found' => 'getVisitorFound', + 'first_seen_at' => 'getFirstSeenAt', + 'last_seen_at' => 'getLastSeenAt', + 'visitor_id' => 'getVisitorId']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['browser_details'] = isset($data['browser_details']) ? $data['browser_details'] : null; + $this->container['incognito'] = isset($data['incognito']) ? $data['incognito'] : null; + $this->container['ip'] = isset($data['ip']) ? $data['ip'] : null; + $this->container['ip_location'] = isset($data['ip_location']) ? $data['ip_location'] : null; + $this->container['timestamp'] = isset($data['timestamp']) ? $data['timestamp'] : null; + $this->container['time'] = isset($data['time']) ? $data['time'] : null; + $this->container['url'] = isset($data['url']) ? $data['url'] : null; + $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; + $this->container['linked_id'] = isset($data['linked_id']) ? $data['linked_id'] : null; + $this->container['confidence'] = isset($data['confidence']) ? $data['confidence'] : null; + $this->container['visitor_found'] = isset($data['visitor_found']) ? $data['visitor_found'] : null; + $this->container['first_seen_at'] = isset($data['first_seen_at']) ? $data['first_seen_at'] : null; + $this->container['last_seen_at'] = isset($data['last_seen_at']) ? $data['last_seen_at'] : null; + $this->container['visitor_id'] = isset($data['visitor_id']) ? $data['visitor_id'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -182,7 +229,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -190,7 +237,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -205,40 +252,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; - $this->container['browser_details'] = isset($data['browser_details']) ? $data['browser_details'] : null; - $this->container['incognito'] = isset($data['incognito']) ? $data['incognito'] : null; - $this->container['ip'] = isset($data['ip']) ? $data['ip'] : null; - $this->container['ip_location'] = isset($data['ip_location']) ? $data['ip_location'] : null; - $this->container['timestamp'] = isset($data['timestamp']) ? $data['timestamp'] : null; - $this->container['time'] = isset($data['time']) ? $data['time'] : null; - $this->container['url'] = isset($data['url']) ? $data['url'] : null; - $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; - $this->container['linked_id'] = isset($data['linked_id']) ? $data['linked_id'] : null; - $this->container['confidence'] = isset($data['confidence']) ? $data['confidence'] : null; - $this->container['visitor_found'] = isset($data['visitor_found']) ? $data['visitor_found'] : null; - $this->container['first_seen_at'] = isset($data['first_seen_at']) ? $data['first_seen_at'] : null; - $this->container['last_seen_at'] = isset($data['last_seen_at']) ? $data['last_seen_at'] : null; - $this->container['visitor_id'] = isset($data['visitor_id']) ? $data['visitor_id'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -248,60 +261,59 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['request_id'] === null) { + if (null === $this->container['request_id']) { $invalidProperties[] = "'request_id' can't be null"; } - if ($this->container['browser_details'] === null) { + if (null === $this->container['browser_details']) { $invalidProperties[] = "'browser_details' can't be null"; } - if ($this->container['incognito'] === null) { + if (null === $this->container['incognito']) { $invalidProperties[] = "'incognito' can't be null"; } - if ($this->container['ip'] === null) { + if (null === $this->container['ip']) { $invalidProperties[] = "'ip' can't be null"; } - if ($this->container['timestamp'] === null) { + if (null === $this->container['timestamp']) { $invalidProperties[] = "'timestamp' can't be null"; } - if ($this->container['time'] === null) { + if (null === $this->container['time']) { $invalidProperties[] = "'time' can't be null"; } - if ($this->container['url'] === null) { + if (null === $this->container['url']) { $invalidProperties[] = "'url' can't be null"; } - if ($this->container['tag'] === null) { + if (null === $this->container['tag']) { $invalidProperties[] = "'tag' can't be null"; } - if ($this->container['visitor_found'] === null) { + if (null === $this->container['visitor_found']) { $invalidProperties[] = "'visitor_found' can't be null"; } - if ($this->container['first_seen_at'] === null) { + if (null === $this->container['first_seen_at']) { $invalidProperties[] = "'first_seen_at' can't be null"; } - if ($this->container['last_seen_at'] === null) { + if (null === $this->container['last_seen_at']) { $invalidProperties[] = "'last_seen_at' can't be null"; } - if ($this->container['visitor_id'] === null) { + if (null === $this->container['visitor_id']) { $invalidProperties[] = "'visitor_id' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets request_id - * @return string + * Gets request_id. */ public function getRequestId(): string { @@ -309,9 +321,9 @@ public function getRequestId(): string } /** - * Sets request_id + * Sets request_id. * - * @param string $request_id Unique identifier of the user's identification request. + * @param string $request_id unique identifier of the user's identification request * * @return $this */ @@ -323,22 +335,21 @@ public function setRequestId(string $request_id): self } /** - * Gets browser_details - * @return \Fingerprint\ServerAPI\Model\BrowserDetails + * Gets browser_details. */ - public function getBrowserDetails(): \Fingerprint\ServerAPI\Model\BrowserDetails + public function getBrowserDetails(): BrowserDetails { return $this->container['browser_details']; } /** - * Sets browser_details + * Sets browser_details. * - * @param \Fingerprint\ServerAPI\Model\BrowserDetails $browser_details browser_details + * @param BrowserDetails $browser_details browser_details * * @return $this */ - public function setBrowserDetails(\Fingerprint\ServerAPI\Model\BrowserDetails $browser_details): self + public function setBrowserDetails(BrowserDetails $browser_details): self { $this->container['browser_details'] = $browser_details; @@ -346,8 +357,7 @@ public function setBrowserDetails(\Fingerprint\ServerAPI\Model\BrowserDetails $b } /** - * Gets incognito - * @return bool + * Gets incognito. */ public function getIncognito(): bool { @@ -355,9 +365,9 @@ public function getIncognito(): bool } /** - * Sets incognito + * Sets incognito. * - * @param bool $incognito Flag if user used incognito session. + * @param bool $incognito flag if user used incognito session * * @return $this */ @@ -369,8 +379,7 @@ public function setIncognito(bool $incognito): self } /** - * Gets ip - * @return string + * Gets ip. */ public function getIp(): string { @@ -378,7 +387,7 @@ public function getIp(): string } /** - * Sets ip + * Sets ip. * * @param string $ip ip * @@ -392,22 +401,23 @@ public function setIp(string $ip): self } /** - * Gets ip_location + * Gets ip_location. + * * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ - public function getIpLocation(): ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation + public function getIpLocation(): ?DeprecatedIPLocation { return $this->container['ip_location']; } /** - * Sets ip_location + * Sets ip_location. * * @param ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation $ip_location ip_location * * @return $this */ - public function setIpLocation(?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation $ip_location): self + public function setIpLocation(?DeprecatedIPLocation $ip_location): self { $this->container['ip_location'] = $ip_location; @@ -415,8 +425,7 @@ public function setIpLocation(?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation } /** - * Gets timestamp - * @return int + * Gets timestamp. */ public function getTimestamp(): int { @@ -424,9 +433,9 @@ public function getTimestamp(): int } /** - * Sets timestamp + * Sets timestamp. * - * @param int $timestamp Timestamp of the event with millisecond precision in Unix time. + * @param int $timestamp timestamp of the event with millisecond precision in Unix time * * @return $this */ @@ -438,8 +447,7 @@ public function setTimestamp(int $timestamp): self } /** - * Gets time - * @return \DateTime + * Gets time. */ public function getTime(): \DateTime { @@ -447,9 +455,9 @@ public function getTime(): \DateTime } /** - * Sets time + * Sets time. * - * @param \DateTime $time Time expressed according to ISO 8601 in UTC format. + * @param \DateTime $time time expressed according to ISO 8601 in UTC format * * @return $this */ @@ -461,8 +469,7 @@ public function setTime(\DateTime $time): self } /** - * Gets url - * @return string + * Gets url. */ public function getUrl(): string { @@ -470,9 +477,9 @@ public function getUrl(): string } /** - * Sets url + * Sets url. * - * @param string $url Page URL from which the identification request was sent. + * @param string $url page URL from which the identification request was sent * * @return $this */ @@ -484,7 +491,8 @@ public function setUrl(string $url): self } /** - * Gets tag + * Gets tag. + * * @return map[string,object] */ public function getTag(): array @@ -493,9 +501,9 @@ public function getTag(): array } /** - * Sets tag + * Sets tag. * - * @param map[string,object] $tag A customer-provided value or an object that was sent with identification request. + * @param map[string,object] $tag A customer-provided value or an object that was sent with identification request * * @return $this */ @@ -507,7 +515,8 @@ public function setTag(array $tag): self } /** - * Gets linked_id + * Gets linked_id. + * * @return ?string */ public function getLinkedId(): ?string @@ -516,9 +525,9 @@ public function getLinkedId(): ?string } /** - * Sets linked_id + * Sets linked_id. * - * @param ?string $linked_id A customer-provided id that was sent with identification request. + * @param ?string $linked_id a customer-provided id that was sent with identification request * * @return $this */ @@ -530,22 +539,23 @@ public function setLinkedId(?string $linked_id): self } /** - * Gets confidence + * Gets confidence. + * * @return ?\Fingerprint\ServerAPI\Model\Confidence */ - public function getConfidence(): ?\Fingerprint\ServerAPI\Model\Confidence + public function getConfidence(): ?Confidence { return $this->container['confidence']; } /** - * Sets confidence + * Sets confidence. * * @param ?\Fingerprint\ServerAPI\Model\Confidence $confidence confidence * * @return $this */ - public function setConfidence(?\Fingerprint\ServerAPI\Model\Confidence $confidence): self + public function setConfidence(?Confidence $confidence): self { $this->container['confidence'] = $confidence; @@ -553,8 +563,7 @@ public function setConfidence(?\Fingerprint\ServerAPI\Model\Confidence $confiden } /** - * Gets visitor_found - * @return bool + * Gets visitor_found. */ public function getVisitorFound(): bool { @@ -562,9 +571,9 @@ public function getVisitorFound(): bool } /** - * Sets visitor_found + * Sets visitor_found. * - * @param bool $visitor_found Attribute represents if a visitor had been identified before. + * @param bool $visitor_found attribute represents if a visitor had been identified before * * @return $this */ @@ -576,22 +585,21 @@ public function setVisitorFound(bool $visitor_found): self } /** - * Gets first_seen_at - * @return \Fingerprint\ServerAPI\Model\SeenAt + * Gets first_seen_at. */ - public function getFirstSeenAt(): \Fingerprint\ServerAPI\Model\SeenAt + public function getFirstSeenAt(): SeenAt { return $this->container['first_seen_at']; } /** - * Sets first_seen_at + * Sets first_seen_at. * - * @param \Fingerprint\ServerAPI\Model\SeenAt $first_seen_at first_seen_at + * @param SeenAt $first_seen_at first_seen_at * * @return $this */ - public function setFirstSeenAt(\Fingerprint\ServerAPI\Model\SeenAt $first_seen_at): self + public function setFirstSeenAt(SeenAt $first_seen_at): self { $this->container['first_seen_at'] = $first_seen_at; @@ -599,22 +607,21 @@ public function setFirstSeenAt(\Fingerprint\ServerAPI\Model\SeenAt $first_seen_a } /** - * Gets last_seen_at - * @return \Fingerprint\ServerAPI\Model\SeenAt + * Gets last_seen_at. */ - public function getLastSeenAt(): \Fingerprint\ServerAPI\Model\SeenAt + public function getLastSeenAt(): SeenAt { return $this->container['last_seen_at']; } /** - * Sets last_seen_at + * Sets last_seen_at. * - * @param \Fingerprint\ServerAPI\Model\SeenAt $last_seen_at last_seen_at + * @param SeenAt $last_seen_at last_seen_at * * @return $this */ - public function setLastSeenAt(\Fingerprint\ServerAPI\Model\SeenAt $last_seen_at): self + public function setLastSeenAt(SeenAt $last_seen_at): self { $this->container['last_seen_at'] = $last_seen_at; @@ -622,8 +629,7 @@ public function setLastSeenAt(\Fingerprint\ServerAPI\Model\SeenAt $last_seen_at) } /** - * Gets visitor_id - * @return string + * Gets visitor_id. */ public function getVisitorId(): string { @@ -631,9 +637,9 @@ public function getVisitorId(): string } /** - * Sets visitor_id + * Sets visitor_id. * - * @param string $visitor_id String of 20 characters that uniquely identifies the visitor's browser. + * @param string $visitor_id string of 20 characters that uniquely identifies the visitor's browser * * @return $this */ @@ -643,10 +649,11 @@ public function setVisitorId(string $visitor_id): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -656,7 +663,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -666,8 +673,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -681,27 +688,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ProxyResult.php b/src/Model/ProxyResult.php index 6ce3b94d..0ba7fc50 100644 --- a/src/Model/ProxyResult.php +++ b/src/Model/ProxyResult.php @@ -1,14 +1,16 @@ 'bool' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'result' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'result' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'result' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'result' => 'result' ]; + 'result' => 'result']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'result' => 'setResult' ]; + 'result' => 'setResult']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'result' => 'getResult' ]; + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['result'] = isset($data['result']) ? $data['result'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -164,27 +177,26 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result - * @return bool + * Gets result. */ public function getResult(): bool { @@ -192,9 +204,9 @@ public function getResult(): bool } /** - * Sets result + * Sets result. * - * @param bool $result `true` if the request IP address is used by a public proxy provider, `false` otherwise. + * @param bool $result `true` if the request IP address is used by a public proxy provider, `false` otherwise * * @return $this */ @@ -204,10 +216,11 @@ public function setResult(bool $result): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -217,7 +230,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -227,8 +240,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -242,27 +255,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/RawDeviceAttributesResult.php b/src/Model/RawDeviceAttributesResult.php index 1457f572..1e560cb3 100644 --- a/src/Model/RawDeviceAttributesResult.php +++ b/src/Model/RawDeviceAttributesResult.php @@ -1,14 +1,16 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -191,7 +201,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -201,8 +211,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -216,27 +226,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/RemoteControlResult.php b/src/Model/RemoteControlResult.php index 3ee7b1c1..125baf85 100644 --- a/src/Model/RemoteControlResult.php +++ b/src/Model/RemoteControlResult.php @@ -1,14 +1,16 @@ 'bool' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'result' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'result' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'result' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'result' => 'result' ]; + 'result' => 'result']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'result' => 'setResult' ]; + 'result' => 'setResult']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'result' => 'getResult' ]; + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['result'] = isset($data['result']) ? $data['result'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -164,27 +177,26 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result - * @return bool + * Gets result. */ public function getResult(): bool { @@ -192,7 +204,7 @@ public function getResult(): bool } /** - * Sets result + * Sets result. * * @param bool $result `true` if the request came from a machine being remotely controlled (e.g. TeamViewer), `false` otherwise. * @@ -204,10 +216,11 @@ public function setResult(bool $result): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -217,7 +230,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -227,8 +240,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -242,27 +255,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/Response.php b/src/Model/Response.php index e8629528..2aa4f347 100644 --- a/src/Model/Response.php +++ b/src/Model/Response.php @@ -1,14 +1,16 @@ 'string', -'visits' => '\Fingerprint\ServerAPI\Model\ResponseVisits[]', -'last_timestamp' => 'int', -'pagination_key' => 'string' ]; + 'visits' => '\Fingerprint\ServerAPI\Model\ResponseVisits[]', + 'last_timestamp' => 'int', + 'pagination_key' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'visitor_id' => null, -'visits' => null, -'last_timestamp' => 'int64', -'pagination_key' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'visits' => null, + 'last_timestamp' => 'int64', + 'pagination_key' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'visitor_id' => 'visitorId', -'visits' => 'visits', -'last_timestamp' => 'lastTimestamp', -'pagination_key' => 'paginationKey' ]; + 'visits' => 'visits', + 'last_timestamp' => 'lastTimestamp', + 'pagination_key' => 'paginationKey']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'visitor_id' => 'setVisitorId', -'visits' => 'setVisits', -'last_timestamp' => 'setLastTimestamp', -'pagination_key' => 'setPaginationKey' ]; + 'visits' => 'setVisits', + 'last_timestamp' => 'setLastTimestamp', + 'pagination_key' => 'setPaginationKey']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'visitor_id' => 'getVisitorId', -'visits' => 'getVisits', -'last_timestamp' => 'getLastTimestamp', -'pagination_key' => 'getPaginationKey' ]; + 'visits' => 'getVisits', + 'last_timestamp' => 'getLastTimestamp', + 'pagination_key' => 'getPaginationKey']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['visitor_id'] = isset($data['visitor_id']) ? $data['visitor_id'] : null; + $this->container['visits'] = isset($data['visits']) ? $data['visits'] : null; + $this->container['last_timestamp'] = isset($data['last_timestamp']) ? $data['last_timestamp'] : null; + $this->container['pagination_key'] = isset($data['pagination_key']) ? $data['pagination_key'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -128,7 +165,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -136,7 +173,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -151,29 +188,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['visitor_id'] = isset($data['visitor_id']) ? $data['visitor_id'] : null; - $this->container['visits'] = isset($data['visits']) ? $data['visits'] : null; - $this->container['last_timestamp'] = isset($data['last_timestamp']) ? $data['last_timestamp'] : null; - $this->container['pagination_key'] = isset($data['pagination_key']) ? $data['pagination_key'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -183,30 +197,29 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['visitor_id'] === null) { + if (null === $this->container['visitor_id']) { $invalidProperties[] = "'visitor_id' can't be null"; } - if ($this->container['visits'] === null) { + if (null === $this->container['visits']) { $invalidProperties[] = "'visits' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets visitor_id - * @return string + * Gets visitor_id. */ public function getVisitorId(): string { @@ -214,7 +227,7 @@ public function getVisitorId(): string } /** - * Sets visitor_id + * Sets visitor_id. * * @param string $visitor_id visitor_id * @@ -228,7 +241,8 @@ public function setVisitorId(string $visitor_id): self } /** - * Gets visits + * Gets visits. + * * @return \Fingerprint\ServerAPI\Model\ResponseVisits[] */ public function getVisits(): array @@ -237,7 +251,7 @@ public function getVisits(): array } /** - * Sets visits + * Sets visits. * * @param \Fingerprint\ServerAPI\Model\ResponseVisits[] $visits visits * @@ -251,7 +265,8 @@ public function setVisits(array $visits): self } /** - * Gets last_timestamp + * Gets last_timestamp. + * * @return ?int */ public function getLastTimestamp(): ?int @@ -260,7 +275,7 @@ public function getLastTimestamp(): ?int } /** - * Sets last_timestamp + * Sets last_timestamp. * * @param ?int $last_timestamp ⚠️ Deprecated paging attribute, please use `paginationKey` instead. Timestamp of the last visit in the current page of results. * @@ -274,7 +289,8 @@ public function setLastTimestamp(?int $last_timestamp): self } /** - * Gets pagination_key + * Gets pagination_key. + * * @return ?string */ public function getPaginationKey(): ?string @@ -283,7 +299,7 @@ public function getPaginationKey(): ?string } /** - * Sets pagination_key + * Sets pagination_key. * * @param ?string $pagination_key Request ID of the last visit in the current page of results. Use this value in the following request as the `paginationKey` parameter to get the next page of results. * @@ -295,10 +311,11 @@ public function setPaginationKey(?string $pagination_key): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -308,7 +325,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -318,8 +335,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -333,27 +350,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/ResponseVisits.php b/src/Model/ResponseVisits.php index 86f7dab5..e3b67f55 100644 --- a/src/Model/ResponseVisits.php +++ b/src/Model/ResponseVisits.php @@ -1,14 +1,16 @@ 'string', -'browser_details' => '\Fingerprint\ServerAPI\Model\BrowserDetails', -'incognito' => 'bool', -'ip' => 'string', -'ip_location' => '\Fingerprint\ServerAPI\Model\DeprecatedIPLocation', -'timestamp' => 'int', -'time' => '\DateTime', -'url' => 'string', -'tag' => 'map[string,object]', -'linked_id' => 'string', -'confidence' => '\Fingerprint\ServerAPI\Model\Confidence', -'visitor_found' => 'bool', -'first_seen_at' => '\Fingerprint\ServerAPI\Model\SeenAt', -'last_seen_at' => '\Fingerprint\ServerAPI\Model\SeenAt' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + 'browser_details' => '\Fingerprint\ServerAPI\Model\BrowserDetails', + 'incognito' => 'bool', + 'ip' => 'string', + 'ip_location' => '\Fingerprint\ServerAPI\Model\DeprecatedIPLocation', + 'timestamp' => 'int', + 'time' => '\DateTime', + 'url' => 'string', + 'tag' => 'map[string,object]', + 'linked_id' => 'string', + 'confidence' => '\Fingerprint\ServerAPI\Model\Confidence', + 'visitor_found' => 'bool', + 'first_seen_at' => '\Fingerprint\ServerAPI\Model\SeenAt', + 'last_seen_at' => '\Fingerprint\ServerAPI\Model\SeenAt']; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'request_id' => null, -'browser_details' => null, -'incognito' => null, -'ip' => 'ipv4', -'ip_location' => null, -'timestamp' => 'int64', -'time' => 'date-time', -'url' => null, -'tag' => null, -'linked_id' => null, -'confidence' => null, -'visitor_found' => null, -'first_seen_at' => null, -'last_seen_at' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'browser_details' => null, + 'incognito' => null, + 'ip' => 'ipv4', + 'ip_location' => null, + 'timestamp' => 'int64', + 'time' => 'date-time', + 'url' => null, + 'tag' => null, + 'linked_id' => null, + 'confidence' => null, + 'visitor_found' => null, + 'first_seen_at' => null, + 'last_seen_at' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'request_id' => 'requestId', -'browser_details' => 'browserDetails', -'incognito' => 'incognito', -'ip' => 'ip', -'ip_location' => 'ipLocation', -'timestamp' => 'timestamp', -'time' => 'time', -'url' => 'url', -'tag' => 'tag', -'linked_id' => 'linkedId', -'confidence' => 'confidence', -'visitor_found' => 'visitorFound', -'first_seen_at' => 'firstSeenAt', -'last_seen_at' => 'lastSeenAt' ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) + 'browser_details' => 'browserDetails', + 'incognito' => 'incognito', + 'ip' => 'ip', + 'ip_location' => 'ipLocation', + 'timestamp' => 'timestamp', + 'time' => 'time', + 'url' => 'url', + 'tag' => 'tag', + 'linked_id' => 'linkedId', + 'confidence' => 'confidence', + 'visitor_found' => 'visitorFound', + 'first_seen_at' => 'firstSeenAt', + 'last_seen_at' => 'lastSeenAt']; + + /** + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'request_id' => 'setRequestId', -'browser_details' => 'setBrowserDetails', -'incognito' => 'setIncognito', -'ip' => 'setIp', -'ip_location' => 'setIpLocation', -'timestamp' => 'setTimestamp', -'time' => 'setTime', -'url' => 'setUrl', -'tag' => 'setTag', -'linked_id' => 'setLinkedId', -'confidence' => 'setConfidence', -'visitor_found' => 'setVisitorFound', -'first_seen_at' => 'setFirstSeenAt', -'last_seen_at' => 'setLastSeenAt' ]; - - /** - * Array of attributes to getter functions (for serialization of requests) + 'browser_details' => 'setBrowserDetails', + 'incognito' => 'setIncognito', + 'ip' => 'setIp', + 'ip_location' => 'setIpLocation', + 'timestamp' => 'setTimestamp', + 'time' => 'setTime', + 'url' => 'setUrl', + 'tag' => 'setTag', + 'linked_id' => 'setLinkedId', + 'confidence' => 'setConfidence', + 'visitor_found' => 'setVisitorFound', + 'first_seen_at' => 'setFirstSeenAt', + 'last_seen_at' => 'setLastSeenAt']; + + /** + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'request_id' => 'getRequestId', -'browser_details' => 'getBrowserDetails', -'incognito' => 'getIncognito', -'ip' => 'getIp', -'ip_location' => 'getIpLocation', -'timestamp' => 'getTimestamp', -'time' => 'getTime', -'url' => 'getUrl', -'tag' => 'getTag', -'linked_id' => 'getLinkedId', -'confidence' => 'getConfidence', -'visitor_found' => 'getVisitorFound', -'first_seen_at' => 'getFirstSeenAt', -'last_seen_at' => 'getLastSeenAt' ]; + 'browser_details' => 'getBrowserDetails', + 'incognito' => 'getIncognito', + 'ip' => 'getIp', + 'ip_location' => 'getIpLocation', + 'timestamp' => 'getTimestamp', + 'time' => 'getTime', + 'url' => 'getUrl', + 'tag' => 'getTag', + 'linked_id' => 'getLinkedId', + 'confidence' => 'getConfidence', + 'visitor_found' => 'getVisitorFound', + 'first_seen_at' => 'getFirstSeenAt', + 'last_seen_at' => 'getLastSeenAt']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['browser_details'] = isset($data['browser_details']) ? $data['browser_details'] : null; + $this->container['incognito'] = isset($data['incognito']) ? $data['incognito'] : null; + $this->container['ip'] = isset($data['ip']) ? $data['ip'] : null; + $this->container['ip_location'] = isset($data['ip_location']) ? $data['ip_location'] : null; + $this->container['timestamp'] = isset($data['timestamp']) ? $data['timestamp'] : null; + $this->container['time'] = isset($data['time']) ? $data['time'] : null; + $this->container['url'] = isset($data['url']) ? $data['url'] : null; + $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; + $this->container['linked_id'] = isset($data['linked_id']) ? $data['linked_id'] : null; + $this->container['confidence'] = isset($data['confidence']) ? $data['confidence'] : null; + $this->container['visitor_found'] = isset($data['visitor_found']) ? $data['visitor_found'] : null; + $this->container['first_seen_at'] = isset($data['first_seen_at']) ? $data['first_seen_at'] : null; + $this->container['last_seen_at'] = isset($data['last_seen_at']) ? $data['last_seen_at'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -177,7 +223,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -185,7 +231,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -200,39 +246,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; - $this->container['browser_details'] = isset($data['browser_details']) ? $data['browser_details'] : null; - $this->container['incognito'] = isset($data['incognito']) ? $data['incognito'] : null; - $this->container['ip'] = isset($data['ip']) ? $data['ip'] : null; - $this->container['ip_location'] = isset($data['ip_location']) ? $data['ip_location'] : null; - $this->container['timestamp'] = isset($data['timestamp']) ? $data['timestamp'] : null; - $this->container['time'] = isset($data['time']) ? $data['time'] : null; - $this->container['url'] = isset($data['url']) ? $data['url'] : null; - $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; - $this->container['linked_id'] = isset($data['linked_id']) ? $data['linked_id'] : null; - $this->container['confidence'] = isset($data['confidence']) ? $data['confidence'] : null; - $this->container['visitor_found'] = isset($data['visitor_found']) ? $data['visitor_found'] : null; - $this->container['first_seen_at'] = isset($data['first_seen_at']) ? $data['first_seen_at'] : null; - $this->container['last_seen_at'] = isset($data['last_seen_at']) ? $data['last_seen_at'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -242,57 +255,56 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['request_id'] === null) { + if (null === $this->container['request_id']) { $invalidProperties[] = "'request_id' can't be null"; } - if ($this->container['browser_details'] === null) { + if (null === $this->container['browser_details']) { $invalidProperties[] = "'browser_details' can't be null"; } - if ($this->container['incognito'] === null) { + if (null === $this->container['incognito']) { $invalidProperties[] = "'incognito' can't be null"; } - if ($this->container['ip'] === null) { + if (null === $this->container['ip']) { $invalidProperties[] = "'ip' can't be null"; } - if ($this->container['timestamp'] === null) { + if (null === $this->container['timestamp']) { $invalidProperties[] = "'timestamp' can't be null"; } - if ($this->container['time'] === null) { + if (null === $this->container['time']) { $invalidProperties[] = "'time' can't be null"; } - if ($this->container['url'] === null) { + if (null === $this->container['url']) { $invalidProperties[] = "'url' can't be null"; } - if ($this->container['tag'] === null) { + if (null === $this->container['tag']) { $invalidProperties[] = "'tag' can't be null"; } - if ($this->container['visitor_found'] === null) { + if (null === $this->container['visitor_found']) { $invalidProperties[] = "'visitor_found' can't be null"; } - if ($this->container['first_seen_at'] === null) { + if (null === $this->container['first_seen_at']) { $invalidProperties[] = "'first_seen_at' can't be null"; } - if ($this->container['last_seen_at'] === null) { + if (null === $this->container['last_seen_at']) { $invalidProperties[] = "'last_seen_at' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets request_id - * @return string + * Gets request_id. */ public function getRequestId(): string { @@ -300,9 +312,9 @@ public function getRequestId(): string } /** - * Sets request_id + * Sets request_id. * - * @param string $request_id Unique identifier of the user's identification request. + * @param string $request_id unique identifier of the user's identification request * * @return $this */ @@ -314,22 +326,21 @@ public function setRequestId(string $request_id): self } /** - * Gets browser_details - * @return \Fingerprint\ServerAPI\Model\BrowserDetails + * Gets browser_details. */ - public function getBrowserDetails(): \Fingerprint\ServerAPI\Model\BrowserDetails + public function getBrowserDetails(): BrowserDetails { return $this->container['browser_details']; } /** - * Sets browser_details + * Sets browser_details. * - * @param \Fingerprint\ServerAPI\Model\BrowserDetails $browser_details browser_details + * @param BrowserDetails $browser_details browser_details * * @return $this */ - public function setBrowserDetails(\Fingerprint\ServerAPI\Model\BrowserDetails $browser_details): self + public function setBrowserDetails(BrowserDetails $browser_details): self { $this->container['browser_details'] = $browser_details; @@ -337,8 +348,7 @@ public function setBrowserDetails(\Fingerprint\ServerAPI\Model\BrowserDetails $b } /** - * Gets incognito - * @return bool + * Gets incognito. */ public function getIncognito(): bool { @@ -346,9 +356,9 @@ public function getIncognito(): bool } /** - * Sets incognito + * Sets incognito. * - * @param bool $incognito Flag if user used incognito session. + * @param bool $incognito flag if user used incognito session * * @return $this */ @@ -360,8 +370,7 @@ public function setIncognito(bool $incognito): self } /** - * Gets ip - * @return string + * Gets ip. */ public function getIp(): string { @@ -369,7 +378,7 @@ public function getIp(): string } /** - * Sets ip + * Sets ip. * * @param string $ip ip * @@ -383,22 +392,23 @@ public function setIp(string $ip): self } /** - * Gets ip_location + * Gets ip_location. + * * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ - public function getIpLocation(): ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation + public function getIpLocation(): ?DeprecatedIPLocation { return $this->container['ip_location']; } /** - * Sets ip_location + * Sets ip_location. * * @param ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation $ip_location ip_location * * @return $this */ - public function setIpLocation(?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation $ip_location): self + public function setIpLocation(?DeprecatedIPLocation $ip_location): self { $this->container['ip_location'] = $ip_location; @@ -406,8 +416,7 @@ public function setIpLocation(?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation } /** - * Gets timestamp - * @return int + * Gets timestamp. */ public function getTimestamp(): int { @@ -415,9 +424,9 @@ public function getTimestamp(): int } /** - * Sets timestamp + * Sets timestamp. * - * @param int $timestamp Timestamp of the event with millisecond precision in Unix time. + * @param int $timestamp timestamp of the event with millisecond precision in Unix time * * @return $this */ @@ -429,8 +438,7 @@ public function setTimestamp(int $timestamp): self } /** - * Gets time - * @return \DateTime + * Gets time. */ public function getTime(): \DateTime { @@ -438,9 +446,9 @@ public function getTime(): \DateTime } /** - * Sets time + * Sets time. * - * @param \DateTime $time Time expressed according to ISO 8601 in UTC format. + * @param \DateTime $time time expressed according to ISO 8601 in UTC format * * @return $this */ @@ -452,8 +460,7 @@ public function setTime(\DateTime $time): self } /** - * Gets url - * @return string + * Gets url. */ public function getUrl(): string { @@ -461,9 +468,9 @@ public function getUrl(): string } /** - * Sets url + * Sets url. * - * @param string $url Page URL from which the identification request was sent. + * @param string $url page URL from which the identification request was sent * * @return $this */ @@ -475,7 +482,8 @@ public function setUrl(string $url): self } /** - * Gets tag + * Gets tag. + * * @return map[string,object] */ public function getTag(): array @@ -484,9 +492,9 @@ public function getTag(): array } /** - * Sets tag + * Sets tag. * - * @param map[string,object] $tag A customer-provided value or an object that was sent with identification request. + * @param map[string,object] $tag A customer-provided value or an object that was sent with identification request * * @return $this */ @@ -498,7 +506,8 @@ public function setTag(array $tag): self } /** - * Gets linked_id + * Gets linked_id. + * * @return ?string */ public function getLinkedId(): ?string @@ -507,9 +516,9 @@ public function getLinkedId(): ?string } /** - * Sets linked_id + * Sets linked_id. * - * @param ?string $linked_id A customer-provided id that was sent with identification request. + * @param ?string $linked_id a customer-provided id that was sent with identification request * * @return $this */ @@ -521,22 +530,23 @@ public function setLinkedId(?string $linked_id): self } /** - * Gets confidence + * Gets confidence. + * * @return ?\Fingerprint\ServerAPI\Model\Confidence */ - public function getConfidence(): ?\Fingerprint\ServerAPI\Model\Confidence + public function getConfidence(): ?Confidence { return $this->container['confidence']; } /** - * Sets confidence + * Sets confidence. * * @param ?\Fingerprint\ServerAPI\Model\Confidence $confidence confidence * * @return $this */ - public function setConfidence(?\Fingerprint\ServerAPI\Model\Confidence $confidence): self + public function setConfidence(?Confidence $confidence): self { $this->container['confidence'] = $confidence; @@ -544,8 +554,7 @@ public function setConfidence(?\Fingerprint\ServerAPI\Model\Confidence $confiden } /** - * Gets visitor_found - * @return bool + * Gets visitor_found. */ public function getVisitorFound(): bool { @@ -553,9 +562,9 @@ public function getVisitorFound(): bool } /** - * Sets visitor_found + * Sets visitor_found. * - * @param bool $visitor_found Attribute represents if a visitor had been identified before. + * @param bool $visitor_found attribute represents if a visitor had been identified before * * @return $this */ @@ -567,22 +576,21 @@ public function setVisitorFound(bool $visitor_found): self } /** - * Gets first_seen_at - * @return \Fingerprint\ServerAPI\Model\SeenAt + * Gets first_seen_at. */ - public function getFirstSeenAt(): \Fingerprint\ServerAPI\Model\SeenAt + public function getFirstSeenAt(): SeenAt { return $this->container['first_seen_at']; } /** - * Sets first_seen_at + * Sets first_seen_at. * - * @param \Fingerprint\ServerAPI\Model\SeenAt $first_seen_at first_seen_at + * @param SeenAt $first_seen_at first_seen_at * * @return $this */ - public function setFirstSeenAt(\Fingerprint\ServerAPI\Model\SeenAt $first_seen_at): self + public function setFirstSeenAt(SeenAt $first_seen_at): self { $this->container['first_seen_at'] = $first_seen_at; @@ -590,31 +598,31 @@ public function setFirstSeenAt(\Fingerprint\ServerAPI\Model\SeenAt $first_seen_a } /** - * Gets last_seen_at - * @return \Fingerprint\ServerAPI\Model\SeenAt + * Gets last_seen_at. */ - public function getLastSeenAt(): \Fingerprint\ServerAPI\Model\SeenAt + public function getLastSeenAt(): SeenAt { return $this->container['last_seen_at']; } /** - * Sets last_seen_at + * Sets last_seen_at. * - * @param \Fingerprint\ServerAPI\Model\SeenAt $last_seen_at last_seen_at + * @param SeenAt $last_seen_at last_seen_at * * @return $this */ - public function setLastSeenAt(\Fingerprint\ServerAPI\Model\SeenAt $last_seen_at): self + public function setLastSeenAt(SeenAt $last_seen_at): self { $this->container['last_seen_at'] = $last_seen_at; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -624,7 +632,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -634,8 +642,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -649,27 +657,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/RootAppsResult.php b/src/Model/RootAppsResult.php index 6d631491..6c1c82cf 100644 --- a/src/Model/RootAppsResult.php +++ b/src/Model/RootAppsResult.php @@ -1,14 +1,16 @@ 'bool' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'result' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'result' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'result' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'result' => 'result' ]; + 'result' => 'result']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'result' => 'setResult' ]; + 'result' => 'setResult']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'result' => 'getResult' ]; + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['result'] = isset($data['result']) ? $data['result'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -164,27 +177,26 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result - * @return bool + * Gets result. */ public function getResult(): bool { @@ -192,7 +204,7 @@ public function getResult(): bool } /** - * Sets result + * Sets result. * * @param bool $result Android specific root management apps detection. There are 2 values: • `true` - Root Management Apps detected (e.g. Magisk) • `false` - No Root Management Apps detected or the client isn't Android. * @@ -204,10 +216,11 @@ public function setResult(bool $result): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -217,7 +230,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -227,8 +240,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -242,27 +255,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SeenAt.php b/src/Model/SeenAt.php index fa16f96b..29de802d 100644 --- a/src/Model/SeenAt.php +++ b/src/Model/SeenAt.php @@ -1,14 +1,16 @@ '\DateTime', -'subscription' => '\DateTime' ]; + 'subscription' => '\DateTime']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'global' => 'date-time', -'subscription' => 'date-time' ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'subscription' => 'date-time']; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'global' => 'global', -'subscription' => 'subscription' ]; + 'subscription' => 'subscription']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'global' => 'setGlobal', -'subscription' => 'setSubscription' ]; + 'subscription' => 'setSubscription']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'global' => 'getGlobal', -'subscription' => 'getSubscription' ]; + 'subscription' => 'getSubscription']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['global'] = isset($data['global']) ? $data['global'] : null; + $this->container['subscription'] = isset($data['subscription']) ? $data['subscription'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['global'] = isset($data['global']) ? $data['global'] : null; - $this->container['subscription'] = isset($data['subscription']) ? $data['subscription'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -170,30 +183,29 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['global'] === null) { + if (null === $this->container['global']) { $invalidProperties[] = "'global' can't be null"; } - if ($this->container['subscription'] === null) { + if (null === $this->container['subscription']) { $invalidProperties[] = "'subscription' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets global - * @return \DateTime + * Gets global. */ public function getGlobal(): \DateTime { @@ -201,7 +213,7 @@ public function getGlobal(): \DateTime } /** - * Sets global + * Sets global. * * @param \DateTime $global global * @@ -215,8 +227,7 @@ public function setGlobal(\DateTime $global): self } /** - * Gets subscription - * @return \DateTime + * Gets subscription. */ public function getSubscription(): \DateTime { @@ -224,7 +235,7 @@ public function getSubscription(): \DateTime } /** - * Sets subscription + * Sets subscription. * * @param \DateTime $subscription subscription * @@ -236,10 +247,11 @@ public function setSubscription(\DateTime $subscription): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -249,7 +261,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -259,8 +271,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -274,27 +286,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseClonedApp.php b/src/Model/SignalResponseClonedApp.php index 471945c9..0edbcaf2 100644 --- a/src/Model/SignalResponseClonedApp.php +++ b/src/Model/SignalResponseClonedApp.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\ClonedAppResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\ClonedAppResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\ClonedAppResult + public function getData(): ?ClonedAppResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\ClonedAppResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\ClonedAppResult $data): self + public function setData(?ClonedAppResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\ClonedAppResult $data): se } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseDeveloperTools.php b/src/Model/SignalResponseDeveloperTools.php index eff6cb94..d25d3207 100644 --- a/src/Model/SignalResponseDeveloperTools.php +++ b/src/Model/SignalResponseDeveloperTools.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\DeveloperToolsResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\DeveloperToolsResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\DeveloperToolsResult + public function getData(): ?DeveloperToolsResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\DeveloperToolsResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\DeveloperToolsResult $data): self + public function setData(?DeveloperToolsResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\DeveloperToolsResult $data } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseEmulator.php b/src/Model/SignalResponseEmulator.php index 91c5b1f4..15d6b196 100644 --- a/src/Model/SignalResponseEmulator.php +++ b/src/Model/SignalResponseEmulator.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\EmulatorResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\EmulatorResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\EmulatorResult + public function getData(): ?EmulatorResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\EmulatorResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\EmulatorResult $data): self + public function setData(?EmulatorResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\EmulatorResult $data): sel } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseFactoryReset.php b/src/Model/SignalResponseFactoryReset.php index 793f39ba..95f0737a 100644 --- a/src/Model/SignalResponseFactoryReset.php +++ b/src/Model/SignalResponseFactoryReset.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\FactoryResetResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\FactoryResetResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\FactoryResetResult + public function getData(): ?FactoryResetResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\FactoryResetResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\FactoryResetResult $data): self + public function setData(?FactoryResetResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\FactoryResetResult $data): } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseFrida.php b/src/Model/SignalResponseFrida.php index d0435ba8..86aba169 100644 --- a/src/Model/SignalResponseFrida.php +++ b/src/Model/SignalResponseFrida.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\FridaResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\FridaResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\FridaResult + public function getData(): ?FridaResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\FridaResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\FridaResult $data): self + public function setData(?FridaResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\FridaResult $data): self } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseHighActivity.php b/src/Model/SignalResponseHighActivity.php index 83d6e166..9a1e755a 100644 --- a/src/Model/SignalResponseHighActivity.php +++ b/src/Model/SignalResponseHighActivity.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\HighActivityResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\HighActivityResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\HighActivityResult + public function getData(): ?HighActivityResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\HighActivityResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\HighActivityResult $data): self + public function setData(?HighActivityResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\HighActivityResult $data): } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseIncognito.php b/src/Model/SignalResponseIncognito.php index df00b265..e8e87138 100644 --- a/src/Model/SignalResponseIncognito.php +++ b/src/Model/SignalResponseIncognito.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\IncognitoResult', -'error' => '\Fingerprint\ServerAPI\Model\IdentificationError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\IdentificationError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\IncognitoResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\IncognitoResult + public function getData(): ?IncognitoResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\IncognitoResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\IncognitoResult $data): self + public function setData(?IncognitoResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\IncognitoResult $data): se } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\IdentificationError + public function getError(): ?IdentificationError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\IdentificationError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\IdentificationError $error): self + public function setError(?IdentificationError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseIpBlocklist.php b/src/Model/SignalResponseIpBlocklist.php index e57be30f..00a37d29 100644 --- a/src/Model/SignalResponseIpBlocklist.php +++ b/src/Model/SignalResponseIpBlocklist.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\IpBlockListResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\IpBlockListResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\IpBlockListResult + public function getData(): ?IpBlockListResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\IpBlockListResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\IpBlockListResult $data): self + public function setData(?IpBlockListResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\IpBlockListResult $data): } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseIpInfo.php b/src/Model/SignalResponseIpInfo.php index 125e4034..48e5fa40 100644 --- a/src/Model/SignalResponseIpInfo.php +++ b/src/Model/SignalResponseIpInfo.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\IpInfoResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\IpInfoResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\IpInfoResult + public function getData(): ?IpInfoResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\IpInfoResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\IpInfoResult $data): self + public function setData(?IpInfoResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\IpInfoResult $data): self } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseJailbroken.php b/src/Model/SignalResponseJailbroken.php index e201df53..5d33f2fe 100644 --- a/src/Model/SignalResponseJailbroken.php +++ b/src/Model/SignalResponseJailbroken.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\JailbrokenResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\JailbrokenResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\JailbrokenResult + public function getData(): ?JailbrokenResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\JailbrokenResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\JailbrokenResult $data): self + public function setData(?JailbrokenResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\JailbrokenResult $data): s } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseLocationSpoofing.php b/src/Model/SignalResponseLocationSpoofing.php index 9af2dbd1..aef5b071 100644 --- a/src/Model/SignalResponseLocationSpoofing.php +++ b/src/Model/SignalResponseLocationSpoofing.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\LocationSpoofingResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\LocationSpoofingResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\LocationSpoofingResult + public function getData(): ?LocationSpoofingResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\LocationSpoofingResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\LocationSpoofingResult $data): self + public function setData(?LocationSpoofingResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\LocationSpoofingResult $da } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponsePrivacySettings.php b/src/Model/SignalResponsePrivacySettings.php index 938fec13..a97c78aa 100644 --- a/src/Model/SignalResponsePrivacySettings.php +++ b/src/Model/SignalResponsePrivacySettings.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\PrivacySettingsResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\PrivacySettingsResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\PrivacySettingsResult + public function getData(): ?PrivacySettingsResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\PrivacySettingsResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\PrivacySettingsResult $data): self + public function setData(?PrivacySettingsResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\PrivacySettingsResult $dat } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseProxy.php b/src/Model/SignalResponseProxy.php index 9cc61fa5..0f354989 100644 --- a/src/Model/SignalResponseProxy.php +++ b/src/Model/SignalResponseProxy.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\ProxyResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\ProxyResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\ProxyResult + public function getData(): ?ProxyResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\ProxyResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\ProxyResult $data): self + public function setData(?ProxyResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\ProxyResult $data): self } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseRawDeviceAttributes.php b/src/Model/SignalResponseRawDeviceAttributes.php index ccc566d6..68a20adc 100644 --- a/src/Model/SignalResponseRawDeviceAttributes.php +++ b/src/Model/SignalResponseRawDeviceAttributes.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult', -'error' => '\Fingerprint\ServerAPI\Model\IdentificationError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\IdentificationError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult + public function getData(): array { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult $data): self + public function setData(?array $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\IdentificationError + public function getError(): ?IdentificationError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\IdentificationError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\IdentificationError $error): self + public function setError(?IdentificationError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseRemoteControl.php b/src/Model/SignalResponseRemoteControl.php index b214d614..afec1f39 100644 --- a/src/Model/SignalResponseRemoteControl.php +++ b/src/Model/SignalResponseRemoteControl.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\RemoteControlResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\RemoteControlResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\RemoteControlResult + public function getData(): ?RemoteControlResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\RemoteControlResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\RemoteControlResult $data): self + public function setData(?RemoteControlResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\RemoteControlResult $data) } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseRootApps.php b/src/Model/SignalResponseRootApps.php index fdcd2dcf..d5ed6c79 100644 --- a/src/Model/SignalResponseRootApps.php +++ b/src/Model/SignalResponseRootApps.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\RootAppsResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\RootAppsResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\RootAppsResult + public function getData(): ?RootAppsResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\RootAppsResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\RootAppsResult $data): self + public function setData(?RootAppsResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\RootAppsResult $data): sel } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseSuspectScore.php b/src/Model/SignalResponseSuspectScore.php index df2b1429..3614acf0 100644 --- a/src/Model/SignalResponseSuspectScore.php +++ b/src/Model/SignalResponseSuspectScore.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\SuspectScoreResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\SuspectScoreResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\SuspectScoreResult + public function getData(): ?SuspectScoreResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\SuspectScoreResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\SuspectScoreResult $data): self + public function setData(?SuspectScoreResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\SuspectScoreResult $data): } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseTampering.php b/src/Model/SignalResponseTampering.php index b0a97571..68c818ea 100644 --- a/src/Model/SignalResponseTampering.php +++ b/src/Model/SignalResponseTampering.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\TamperingResult', -'error' => '\Fingerprint\ServerAPI\Model\IdentificationError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\IdentificationError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\TamperingResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\TamperingResult + public function getData(): ?TamperingResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\TamperingResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\TamperingResult $data): self + public function setData(?TamperingResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\TamperingResult $data): se } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\IdentificationError + public function getError(): ?IdentificationError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\IdentificationError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\IdentificationError $error): self + public function setError(?IdentificationError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseTor.php b/src/Model/SignalResponseTor.php index f6571172..06ac9768 100644 --- a/src/Model/SignalResponseTor.php +++ b/src/Model/SignalResponseTor.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\TorResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\TorResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\TorResult + public function getData(): ?TorResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\TorResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\TorResult $data): self + public function setData(?TorResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\TorResult $data): self } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseVelocity.php b/src/Model/SignalResponseVelocity.php index 07d6e801..3ccfbdbe 100644 --- a/src/Model/SignalResponseVelocity.php +++ b/src/Model/SignalResponseVelocity.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\VelocityResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\VelocityResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\VelocityResult + public function getData(): ?VelocityResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\VelocityResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\VelocityResult $data): self + public function setData(?VelocityResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\VelocityResult $data): sel } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseVirtualMachine.php b/src/Model/SignalResponseVirtualMachine.php index 83933a73..906eedd2 100644 --- a/src/Model/SignalResponseVirtualMachine.php +++ b/src/Model/SignalResponseVirtualMachine.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\VirtualMachineResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\VirtualMachineResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\VirtualMachineResult + public function getData(): ?VirtualMachineResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\VirtualMachineResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\VirtualMachineResult $data): self + public function setData(?VirtualMachineResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\VirtualMachineResult $data } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SignalResponseVpn.php b/src/Model/SignalResponseVpn.php index 1fd9bdb8..b96d13c5 100644 --- a/src/Model/SignalResponseVpn.php +++ b/src/Model/SignalResponseVpn.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\VpnResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'data' => 'data', -'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'data' => 'setData', -'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,40 +181,38 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. + * * @return ?\Fingerprint\ServerAPI\Model\VpnResult */ - public function getData(): ?\Fingerprint\ServerAPI\Model\VpnResult + public function getData(): ?VpnResult { return $this->container['data']; } /** - * Sets data + * Sets data. * * @param ?\Fingerprint\ServerAPI\Model\VpnResult $data data * * @return $this */ - public function setData(?\Fingerprint\ServerAPI\Model\VpnResult $data): self + public function setData(?VpnResult $data): self { $this->container['data'] = $data; @@ -209,31 +220,33 @@ public function setData(?\Fingerprint\ServerAPI\Model\VpnResult $data): self } /** - * Gets error + * Gets error. + * * @return ?\Fingerprint\ServerAPI\Model\ProductError */ - public function getError(): ?\Fingerprint\ServerAPI\Model\ProductError + public function getError(): ?ProductError { return $this->container['error']; } /** - * Sets error + * Sets error. * * @param ?\Fingerprint\ServerAPI\Model\ProductError $error error * * @return $this */ - public function setError(?\Fingerprint\ServerAPI\Model\ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/Subdivision.php b/src/Model/Subdivision.php index c889b0a7..0c2835d8 100644 --- a/src/Model/Subdivision.php +++ b/src/Model/Subdivision.php @@ -1,14 +1,16 @@ 'string', -'name' => 'string' ]; + 'name' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'iso_code' => null, -'name' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'name' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'iso_code' => 'isoCode', -'name' => 'name' ]; + 'name' => 'name']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'iso_code' => 'setIsoCode', -'name' => 'setName' ]; + 'name' => 'setName']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'iso_code' => 'getIsoCode', -'name' => 'getName' ]; + 'name' => 'getName']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['iso_code'] = isset($data['iso_code']) ? $data['iso_code'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['iso_code'] = isset($data['iso_code']) ? $data['iso_code'] : null; - $this->container['name'] = isset($data['name']) ? $data['name'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -168,25 +181,23 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets iso_code + * Gets iso_code. + * * @return ?string */ public function getIsoCode(): ?string @@ -195,7 +206,7 @@ public function getIsoCode(): ?string } /** - * Sets iso_code + * Sets iso_code. * * @param ?string $iso_code iso_code * @@ -209,7 +220,8 @@ public function setIsoCode(?string $iso_code): self } /** - * Gets name + * Gets name. + * * @return ?string */ public function getName(): ?string @@ -218,7 +230,7 @@ public function getName(): ?string } /** - * Sets name + * Sets name. * * @param ?string $name name * @@ -230,10 +242,11 @@ public function setName(?string $name): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -243,7 +256,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -253,8 +266,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -268,27 +281,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/SuspectScoreResult.php b/src/Model/SuspectScoreResult.php index 88515ccc..3225bda1 100644 --- a/src/Model/SuspectScoreResult.php +++ b/src/Model/SuspectScoreResult.php @@ -1,14 +1,16 @@ 'int' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'result' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'result' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'result' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'result' => 'result' ]; + 'result' => 'result']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'result' => 'setResult' ]; + 'result' => 'setResult']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'result' => 'getResult' ]; + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['result'] = isset($data['result']) ? $data['result'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -164,27 +177,26 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result - * @return int + * Gets result. */ public function getResult(): int { @@ -192,7 +204,7 @@ public function getResult(): int } /** - * Sets result + * Sets result. * * @param int $result Suspect Score is an easy way to integrate Smart Signals into your fraud protection work flow. It is a weighted representation of all Smart Signals present in the payload that helps identify suspicious activity. The value range is [0; S] where S is sum of all Smart Signals weights. See more details here: https://dev.fingerprint.com/docs/suspect-score * @@ -204,10 +216,11 @@ public function setResult(int $result): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -217,7 +230,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -227,8 +240,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -242,27 +255,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/TamperingResult.php b/src/Model/TamperingResult.php index c5ddb2b0..e642bcd4 100644 --- a/src/Model/TamperingResult.php +++ b/src/Model/TamperingResult.php @@ -1,14 +1,16 @@ 'bool', -'anomaly_score' => 'float' ]; + 'anomaly_score' => 'float']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'result' => null, -'anomaly_score' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'anomaly_score' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'result' => 'result', -'anomaly_score' => 'anomalyScore' ]; + 'anomaly_score' => 'anomalyScore']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'result' => 'setResult', -'anomaly_score' => 'setAnomalyScore' ]; + 'anomaly_score' => 'setAnomalyScore']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'result' => 'getResult', -'anomaly_score' => 'getAnomalyScore' ]; + 'anomaly_score' => 'getAnomalyScore']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + $this->container['anomaly_score'] = isset($data['anomaly_score']) ? $data['anomaly_score'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -117,7 +151,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -125,7 +159,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -140,27 +174,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['result'] = isset($data['result']) ? $data['result'] : null; - $this->container['anomaly_score'] = isset($data['anomaly_score']) ? $data['anomaly_score'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -170,30 +183,29 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } - if ($this->container['anomaly_score'] === null) { + if (null === $this->container['anomaly_score']) { $invalidProperties[] = "'anomaly_score' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result - * @return bool + * Gets result. */ public function getResult(): bool { @@ -201,9 +213,9 @@ public function getResult(): bool } /** - * Sets result + * Sets result. * - * @param bool $result Flag indicating whether browser tampering was detected according to our internal thresholds. + * @param bool $result flag indicating whether browser tampering was detected according to our internal thresholds * * @return $this */ @@ -215,8 +227,7 @@ public function setResult(bool $result): self } /** - * Gets anomaly_score - * @return float + * Gets anomaly_score. */ public function getAnomalyScore(): float { @@ -224,7 +235,7 @@ public function getAnomalyScore(): float } /** - * Sets anomaly_score + * Sets anomaly_score. * * @param float $anomaly_score Confidence score (`0.0 - 1.0`) for the tampering detection. Values above `0.5` suggest that we're reasonably sure there was a tampering attempt. Values below `0.5` are genuine browsers. * @@ -236,10 +247,11 @@ public function setAnomalyScore(float $anomaly_score): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -249,7 +261,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -259,8 +271,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -274,27 +286,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/TooManyRequestsResponse.php b/src/Model/TooManyRequestsResponse.php index 08749e52..6034721b 100644 --- a/src/Model/TooManyRequestsResponse.php +++ b/src/Model/TooManyRequestsResponse.php @@ -1,14 +1,16 @@ 'string' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'error' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'error' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'error' => 'error' ]; + 'error' => 'error']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'error' => 'setError' ]; + 'error' => 'setError']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -164,27 +177,26 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['error'] === null) { + if (null === $this->container['error']) { $invalidProperties[] = "'error' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets error - * @return string + * Gets error. */ public function getError(): string { @@ -192,9 +204,9 @@ public function getError(): string } /** - * Sets error + * Sets error. * - * @param string $error Error text. + * @param string $error error text * * @return $this */ @@ -204,10 +216,11 @@ public function setError(string $error): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -217,7 +230,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -227,8 +240,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -242,27 +255,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/TorResult.php b/src/Model/TorResult.php index f40c901a..c09aeaaf 100644 --- a/src/Model/TorResult.php +++ b/src/Model/TorResult.php @@ -1,14 +1,16 @@ 'bool' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'result' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'result' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'result' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'result' => 'result' ]; + 'result' => 'result']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'result' => 'setResult' ]; + 'result' => 'setResult']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'result' => 'getResult' ]; + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['result'] = isset($data['result']) ? $data['result'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -164,27 +177,26 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result - * @return bool + * Gets result. */ public function getResult(): bool { @@ -192,9 +204,9 @@ public function getResult(): bool } /** - * Sets result + * Sets result. * - * @param bool $result `true` if the request IP address is a known tor exit node, `false` otherwise. + * @param bool $result `true` if the request IP address is a known tor exit node, `false` otherwise * * @return $this */ @@ -204,10 +216,11 @@ public function setResult(bool $result): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -217,7 +230,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -227,8 +240,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -242,27 +255,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/VelocityIntervalResult.php b/src/Model/VelocityIntervalResult.php index 1acd72cb..efa97f7d 100644 --- a/src/Model/VelocityIntervalResult.php +++ b/src/Model/VelocityIntervalResult.php @@ -1,14 +1,16 @@ 'int', -'_1h' => 'int', -'_24h' => 'int' ]; + '_1h' => 'int', + '_24h' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ '_5m' => null, -'_1h' => null, -'_24h' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + '_1h' => null, + '_24h' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ '_5m' => '5m', -'_1h' => '1h', -'_24h' => '24h' ]; + '_1h' => '1h', + '_24h' => '24h']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ '_5m' => 'set5m', -'_1h' => 'set1h', -'_24h' => 'set24h' ]; + '_1h' => 'set1h', + '_24h' => 'set24h']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ '_5m' => 'get5m', -'_1h' => 'get1h', -'_24h' => 'get24h' ]; + '_1h' => 'get1h', + '_24h' => 'get24h']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['_5m'] = isset($data['_5m']) ? $data['_5m'] : null; + $this->container['_1h'] = isset($data['_1h']) ? $data['_1h'] : null; + $this->container['_24h'] = isset($data['_24h']) ? $data['_24h'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -123,7 +159,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -131,7 +167,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -146,28 +182,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['_5m'] = isset($data['_5m']) ? $data['_5m'] : null; - $this->container['_1h'] = isset($data['_1h']) ? $data['_1h'] : null; - $this->container['_24h'] = isset($data['_24h']) ? $data['_24h'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -177,30 +191,29 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['_5m'] === null) { + if (null === $this->container['_5m']) { $invalidProperties[] = "'_5m' can't be null"; } - if ($this->container['_1h'] === null) { + if (null === $this->container['_1h']) { $invalidProperties[] = "'_1h' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets _5m - * @return int + * Gets _5m. */ public function get5m(): int { @@ -208,7 +221,7 @@ public function get5m(): int } /** - * Sets _5m + * Sets _5m. * * @param int $_5m _5m * @@ -222,8 +235,7 @@ public function set5m(int $_5m): self } /** - * Gets _1h - * @return int + * Gets _1h. */ public function get1h(): int { @@ -231,7 +243,7 @@ public function get1h(): int } /** - * Sets _1h + * Sets _1h. * * @param int $_1h _1h * @@ -245,7 +257,8 @@ public function set1h(int $_1h): self } /** - * Gets _24h + * Gets _24h. + * * @return ?int */ public function get24h(): ?int @@ -254,7 +267,7 @@ public function get24h(): ?int } /** - * Sets _24h + * Sets _24h. * * @param ?int $_24h The `24h` interval of `distinctIp`, `distinctLinkedId`, and `distinctCountry` will be omitted if the number of `events`` for the visitor ID in the last 24 hours (`events.intervals.['24h']`) is higher than 20.000. * @@ -266,10 +279,11 @@ public function set24h(?int $_24h): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -279,7 +293,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -289,8 +303,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -304,27 +318,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/VelocityIntervals.php b/src/Model/VelocityIntervals.php index 93dbc982..f2a84395 100644 --- a/src/Model/VelocityIntervals.php +++ b/src/Model/VelocityIntervals.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\VelocityIntervalResult' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'intervals' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'intervals' => '\Fingerprint\ServerAPI\Model\VelocityIntervalResult']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'intervals' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'intervals' => 'intervals' ]; + 'intervals' => 'intervals']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'intervals' => 'setIntervals' ]; + 'intervals' => 'setIntervals']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'intervals' => 'getIntervals' ]; + 'intervals' => 'getIntervals']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['intervals'] = isset($data['intervals']) ? $data['intervals'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['intervals'] = isset($data['intervals']) ? $data['intervals'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -162,49 +175,48 @@ public function __construct(array $data = null) */ public function listInvalidProperties(): array { - $invalidProperties = []; - - return $invalidProperties; + return []; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets intervals + * Gets intervals. + * * @return ?\Fingerprint\ServerAPI\Model\VelocityIntervalResult */ - public function getIntervals(): ?\Fingerprint\ServerAPI\Model\VelocityIntervalResult + public function getIntervals(): ?VelocityIntervalResult { return $this->container['intervals']; } /** - * Sets intervals + * Sets intervals. * * @param ?\Fingerprint\ServerAPI\Model\VelocityIntervalResult $intervals intervals * * @return $this */ - public function setIntervals(?\Fingerprint\ServerAPI\Model\VelocityIntervalResult $intervals): self + public function setIntervals(?VelocityIntervalResult $intervals): self { $this->container['intervals'] = $intervals; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -214,7 +226,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -224,8 +236,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -239,27 +251,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/VelocityResult.php b/src/Model/VelocityResult.php index 339d1b35..5e2a665e 100644 --- a/src/Model/VelocityResult.php +++ b/src/Model/VelocityResult.php @@ -1,14 +1,16 @@ '\Fingerprint\ServerAPI\Model\VelocityIntervals', -'distinct_linked_id' => '\Fingerprint\ServerAPI\Model\VelocityIntervals', -'distinct_country' => '\Fingerprint\ServerAPI\Model\VelocityIntervals', -'events' => '\Fingerprint\ServerAPI\Model\VelocityIntervals' ]; + 'distinct_linked_id' => '\Fingerprint\ServerAPI\Model\VelocityIntervals', + 'distinct_country' => '\Fingerprint\ServerAPI\Model\VelocityIntervals', + 'events' => '\Fingerprint\ServerAPI\Model\VelocityIntervals']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'distinct_ip' => null, -'distinct_linked_id' => null, -'distinct_country' => null, -'events' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'distinct_linked_id' => null, + 'distinct_country' => null, + 'events' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'distinct_ip' => 'distinctIp', -'distinct_linked_id' => 'distinctLinkedId', -'distinct_country' => 'distinctCountry', -'events' => 'events' ]; + 'distinct_linked_id' => 'distinctLinkedId', + 'distinct_country' => 'distinctCountry', + 'events' => 'events']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'distinct_ip' => 'setDistinctIp', -'distinct_linked_id' => 'setDistinctLinkedId', -'distinct_country' => 'setDistinctCountry', -'events' => 'setEvents' ]; + 'distinct_linked_id' => 'setDistinctLinkedId', + 'distinct_country' => 'setDistinctCountry', + 'events' => 'setEvents']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'distinct_ip' => 'getDistinctIp', -'distinct_linked_id' => 'getDistinctLinkedId', -'distinct_country' => 'getDistinctCountry', -'events' => 'getEvents' ]; + 'distinct_linked_id' => 'getDistinctLinkedId', + 'distinct_country' => 'getDistinctCountry', + 'events' => 'getEvents']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['distinct_ip'] = isset($data['distinct_ip']) ? $data['distinct_ip'] : null; + $this->container['distinct_linked_id'] = isset($data['distinct_linked_id']) ? $data['distinct_linked_id'] : null; + $this->container['distinct_country'] = isset($data['distinct_country']) ? $data['distinct_country'] : null; + $this->container['events'] = isset($data['events']) ? $data['events'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -128,7 +165,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -136,7 +173,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -151,29 +188,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['distinct_ip'] = isset($data['distinct_ip']) ? $data['distinct_ip'] : null; - $this->container['distinct_linked_id'] = isset($data['distinct_linked_id']) ? $data['distinct_linked_id'] : null; - $this->container['distinct_country'] = isset($data['distinct_country']) ? $data['distinct_country'] : null; - $this->container['events'] = isset($data['events']) ? $data['events'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -183,50 +197,49 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['distinct_ip'] === null) { + if (null === $this->container['distinct_ip']) { $invalidProperties[] = "'distinct_ip' can't be null"; } - if ($this->container['distinct_linked_id'] === null) { + if (null === $this->container['distinct_linked_id']) { $invalidProperties[] = "'distinct_linked_id' can't be null"; } - if ($this->container['distinct_country'] === null) { + if (null === $this->container['distinct_country']) { $invalidProperties[] = "'distinct_country' can't be null"; } - if ($this->container['events'] === null) { + if (null === $this->container['events']) { $invalidProperties[] = "'events' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets distinct_ip - * @return \Fingerprint\ServerAPI\Model\VelocityIntervals + * Gets distinct_ip. */ - public function getDistinctIp(): \Fingerprint\ServerAPI\Model\VelocityIntervals + public function getDistinctIp(): VelocityIntervals { return $this->container['distinct_ip']; } /** - * Sets distinct_ip + * Sets distinct_ip. * - * @param \Fingerprint\ServerAPI\Model\VelocityIntervals $distinct_ip distinct_ip + * @param VelocityIntervals $distinct_ip distinct_ip * * @return $this */ - public function setDistinctIp(\Fingerprint\ServerAPI\Model\VelocityIntervals $distinct_ip): self + public function setDistinctIp(VelocityIntervals $distinct_ip): self { $this->container['distinct_ip'] = $distinct_ip; @@ -234,22 +247,21 @@ public function setDistinctIp(\Fingerprint\ServerAPI\Model\VelocityIntervals $di } /** - * Gets distinct_linked_id - * @return \Fingerprint\ServerAPI\Model\VelocityIntervals + * Gets distinct_linked_id. */ - public function getDistinctLinkedId(): \Fingerprint\ServerAPI\Model\VelocityIntervals + public function getDistinctLinkedId(): VelocityIntervals { return $this->container['distinct_linked_id']; } /** - * Sets distinct_linked_id + * Sets distinct_linked_id. * - * @param \Fingerprint\ServerAPI\Model\VelocityIntervals $distinct_linked_id distinct_linked_id + * @param VelocityIntervals $distinct_linked_id distinct_linked_id * * @return $this */ - public function setDistinctLinkedId(\Fingerprint\ServerAPI\Model\VelocityIntervals $distinct_linked_id): self + public function setDistinctLinkedId(VelocityIntervals $distinct_linked_id): self { $this->container['distinct_linked_id'] = $distinct_linked_id; @@ -257,22 +269,21 @@ public function setDistinctLinkedId(\Fingerprint\ServerAPI\Model\VelocityInterva } /** - * Gets distinct_country - * @return \Fingerprint\ServerAPI\Model\VelocityIntervals + * Gets distinct_country. */ - public function getDistinctCountry(): \Fingerprint\ServerAPI\Model\VelocityIntervals + public function getDistinctCountry(): VelocityIntervals { return $this->container['distinct_country']; } /** - * Sets distinct_country + * Sets distinct_country. * - * @param \Fingerprint\ServerAPI\Model\VelocityIntervals $distinct_country distinct_country + * @param VelocityIntervals $distinct_country distinct_country * * @return $this */ - public function setDistinctCountry(\Fingerprint\ServerAPI\Model\VelocityIntervals $distinct_country): self + public function setDistinctCountry(VelocityIntervals $distinct_country): self { $this->container['distinct_country'] = $distinct_country; @@ -280,31 +291,31 @@ public function setDistinctCountry(\Fingerprint\ServerAPI\Model\VelocityInterval } /** - * Gets events - * @return \Fingerprint\ServerAPI\Model\VelocityIntervals + * Gets events. */ - public function getEvents(): \Fingerprint\ServerAPI\Model\VelocityIntervals + public function getEvents(): VelocityIntervals { return $this->container['events']; } /** - * Sets events + * Sets events. * - * @param \Fingerprint\ServerAPI\Model\VelocityIntervals $events events + * @param VelocityIntervals $events events * * @return $this */ - public function setEvents(\Fingerprint\ServerAPI\Model\VelocityIntervals $events): self + public function setEvents(VelocityIntervals $events): self { $this->container['events'] = $events; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -314,7 +325,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -324,8 +335,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -339,27 +350,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/VirtualMachineResult.php b/src/Model/VirtualMachineResult.php index 6b692b62..644f9144 100644 --- a/src/Model/VirtualMachineResult.php +++ b/src/Model/VirtualMachineResult.php @@ -1,14 +1,16 @@ 'bool' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static array $swaggerFormats = [ - 'result' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } + protected static array $swaggerTypes = [ + 'result' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + protected static array $swaggerFormats = [ + 'result' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ - 'result' => 'result' ]; + 'result' => 'result']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ - 'result' => 'setResult' ]; + 'result' => 'setResult']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ - 'result' => 'getResult' ]; + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -112,7 +145,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -120,7 +153,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -135,26 +168,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['result'] = isset($data['result']) ? $data['result'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -164,27 +177,26 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result - * @return bool + * Gets result. */ public function getResult(): bool { @@ -192,7 +204,7 @@ public function getResult(): bool } /** - * Sets result + * Sets result. * * @param bool $result `true` if the request came from a browser running inside a virtual machine (e.g. VMWare), `false` otherwise. * @@ -204,10 +216,11 @@ public function setResult(bool $result): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -217,7 +230,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -227,8 +240,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -242,27 +255,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/Visit.php b/src/Model/Visit.php index 843acc7c..63ad75b2 100644 --- a/src/Model/Visit.php +++ b/src/Model/Visit.php @@ -1,14 +1,16 @@ 'string', -'browser_details' => '\Fingerprint\ServerAPI\Model\BrowserDetails', -'incognito' => 'bool', -'ip' => 'string', -'ip_location' => '\Fingerprint\ServerAPI\Model\DeprecatedIPLocation', -'timestamp' => 'int', -'time' => '\DateTime', -'url' => 'string', -'tag' => 'map[string,object]', -'linked_id' => 'string', -'confidence' => '\Fingerprint\ServerAPI\Model\Confidence', -'visitor_found' => 'bool', -'first_seen_at' => '\Fingerprint\ServerAPI\Model\SeenAt', -'last_seen_at' => '\Fingerprint\ServerAPI\Model\SeenAt' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + 'browser_details' => '\Fingerprint\ServerAPI\Model\BrowserDetails', + 'incognito' => 'bool', + 'ip' => 'string', + 'ip_location' => '\Fingerprint\ServerAPI\Model\DeprecatedIPLocation', + 'timestamp' => 'int', + 'time' => '\DateTime', + 'url' => 'string', + 'tag' => 'map[string,object]', + 'linked_id' => 'string', + 'confidence' => '\Fingerprint\ServerAPI\Model\Confidence', + 'visitor_found' => 'bool', + 'first_seen_at' => '\Fingerprint\ServerAPI\Model\SeenAt', + 'last_seen_at' => '\Fingerprint\ServerAPI\Model\SeenAt']; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'request_id' => null, -'browser_details' => null, -'incognito' => null, -'ip' => 'ipv4', -'ip_location' => null, -'timestamp' => 'int64', -'time' => 'date-time', -'url' => null, -'tag' => null, -'linked_id' => null, -'confidence' => null, -'visitor_found' => null, -'first_seen_at' => null, -'last_seen_at' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'browser_details' => null, + 'incognito' => null, + 'ip' => 'ipv4', + 'ip_location' => null, + 'timestamp' => 'int64', + 'time' => 'date-time', + 'url' => null, + 'tag' => null, + 'linked_id' => null, + 'confidence' => null, + 'visitor_found' => null, + 'first_seen_at' => null, + 'last_seen_at' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'request_id' => 'requestId', -'browser_details' => 'browserDetails', -'incognito' => 'incognito', -'ip' => 'ip', -'ip_location' => 'ipLocation', -'timestamp' => 'timestamp', -'time' => 'time', -'url' => 'url', -'tag' => 'tag', -'linked_id' => 'linkedId', -'confidence' => 'confidence', -'visitor_found' => 'visitorFound', -'first_seen_at' => 'firstSeenAt', -'last_seen_at' => 'lastSeenAt' ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) + 'browser_details' => 'browserDetails', + 'incognito' => 'incognito', + 'ip' => 'ip', + 'ip_location' => 'ipLocation', + 'timestamp' => 'timestamp', + 'time' => 'time', + 'url' => 'url', + 'tag' => 'tag', + 'linked_id' => 'linkedId', + 'confidence' => 'confidence', + 'visitor_found' => 'visitorFound', + 'first_seen_at' => 'firstSeenAt', + 'last_seen_at' => 'lastSeenAt']; + + /** + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'request_id' => 'setRequestId', -'browser_details' => 'setBrowserDetails', -'incognito' => 'setIncognito', -'ip' => 'setIp', -'ip_location' => 'setIpLocation', -'timestamp' => 'setTimestamp', -'time' => 'setTime', -'url' => 'setUrl', -'tag' => 'setTag', -'linked_id' => 'setLinkedId', -'confidence' => 'setConfidence', -'visitor_found' => 'setVisitorFound', -'first_seen_at' => 'setFirstSeenAt', -'last_seen_at' => 'setLastSeenAt' ]; - - /** - * Array of attributes to getter functions (for serialization of requests) + 'browser_details' => 'setBrowserDetails', + 'incognito' => 'setIncognito', + 'ip' => 'setIp', + 'ip_location' => 'setIpLocation', + 'timestamp' => 'setTimestamp', + 'time' => 'setTime', + 'url' => 'setUrl', + 'tag' => 'setTag', + 'linked_id' => 'setLinkedId', + 'confidence' => 'setConfidence', + 'visitor_found' => 'setVisitorFound', + 'first_seen_at' => 'setFirstSeenAt', + 'last_seen_at' => 'setLastSeenAt']; + + /** + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'request_id' => 'getRequestId', -'browser_details' => 'getBrowserDetails', -'incognito' => 'getIncognito', -'ip' => 'getIp', -'ip_location' => 'getIpLocation', -'timestamp' => 'getTimestamp', -'time' => 'getTime', -'url' => 'getUrl', -'tag' => 'getTag', -'linked_id' => 'getLinkedId', -'confidence' => 'getConfidence', -'visitor_found' => 'getVisitorFound', -'first_seen_at' => 'getFirstSeenAt', -'last_seen_at' => 'getLastSeenAt' ]; + 'browser_details' => 'getBrowserDetails', + 'incognito' => 'getIncognito', + 'ip' => 'getIp', + 'ip_location' => 'getIpLocation', + 'timestamp' => 'getTimestamp', + 'time' => 'getTime', + 'url' => 'getUrl', + 'tag' => 'getTag', + 'linked_id' => 'getLinkedId', + 'confidence' => 'getConfidence', + 'visitor_found' => 'getVisitorFound', + 'first_seen_at' => 'getFirstSeenAt', + 'last_seen_at' => 'getLastSeenAt']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['browser_details'] = isset($data['browser_details']) ? $data['browser_details'] : null; + $this->container['incognito'] = isset($data['incognito']) ? $data['incognito'] : null; + $this->container['ip'] = isset($data['ip']) ? $data['ip'] : null; + $this->container['ip_location'] = isset($data['ip_location']) ? $data['ip_location'] : null; + $this->container['timestamp'] = isset($data['timestamp']) ? $data['timestamp'] : null; + $this->container['time'] = isset($data['time']) ? $data['time'] : null; + $this->container['url'] = isset($data['url']) ? $data['url'] : null; + $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; + $this->container['linked_id'] = isset($data['linked_id']) ? $data['linked_id'] : null; + $this->container['confidence'] = isset($data['confidence']) ? $data['confidence'] : null; + $this->container['visitor_found'] = isset($data['visitor_found']) ? $data['visitor_found'] : null; + $this->container['first_seen_at'] = isset($data['first_seen_at']) ? $data['first_seen_at'] : null; + $this->container['last_seen_at'] = isset($data['last_seen_at']) ? $data['last_seen_at'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -177,7 +223,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -185,7 +231,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -200,39 +246,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; - $this->container['browser_details'] = isset($data['browser_details']) ? $data['browser_details'] : null; - $this->container['incognito'] = isset($data['incognito']) ? $data['incognito'] : null; - $this->container['ip'] = isset($data['ip']) ? $data['ip'] : null; - $this->container['ip_location'] = isset($data['ip_location']) ? $data['ip_location'] : null; - $this->container['timestamp'] = isset($data['timestamp']) ? $data['timestamp'] : null; - $this->container['time'] = isset($data['time']) ? $data['time'] : null; - $this->container['url'] = isset($data['url']) ? $data['url'] : null; - $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; - $this->container['linked_id'] = isset($data['linked_id']) ? $data['linked_id'] : null; - $this->container['confidence'] = isset($data['confidence']) ? $data['confidence'] : null; - $this->container['visitor_found'] = isset($data['visitor_found']) ? $data['visitor_found'] : null; - $this->container['first_seen_at'] = isset($data['first_seen_at']) ? $data['first_seen_at'] : null; - $this->container['last_seen_at'] = isset($data['last_seen_at']) ? $data['last_seen_at'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -242,54 +255,53 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['request_id'] === null) { + if (null === $this->container['request_id']) { $invalidProperties[] = "'request_id' can't be null"; } - if ($this->container['browser_details'] === null) { + if (null === $this->container['browser_details']) { $invalidProperties[] = "'browser_details' can't be null"; } - if ($this->container['incognito'] === null) { + if (null === $this->container['incognito']) { $invalidProperties[] = "'incognito' can't be null"; } - if ($this->container['ip'] === null) { + if (null === $this->container['ip']) { $invalidProperties[] = "'ip' can't be null"; } - if ($this->container['timestamp'] === null) { + if (null === $this->container['timestamp']) { $invalidProperties[] = "'timestamp' can't be null"; } - if ($this->container['time'] === null) { + if (null === $this->container['time']) { $invalidProperties[] = "'time' can't be null"; } - if ($this->container['url'] === null) { + if (null === $this->container['url']) { $invalidProperties[] = "'url' can't be null"; } - if ($this->container['visitor_found'] === null) { + if (null === $this->container['visitor_found']) { $invalidProperties[] = "'visitor_found' can't be null"; } - if ($this->container['first_seen_at'] === null) { + if (null === $this->container['first_seen_at']) { $invalidProperties[] = "'first_seen_at' can't be null"; } - if ($this->container['last_seen_at'] === null) { + if (null === $this->container['last_seen_at']) { $invalidProperties[] = "'last_seen_at' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets request_id - * @return string + * Gets request_id. */ public function getRequestId(): string { @@ -297,9 +309,9 @@ public function getRequestId(): string } /** - * Sets request_id + * Sets request_id. * - * @param string $request_id Unique identifier of the user's identification request. + * @param string $request_id unique identifier of the user's identification request * * @return $this */ @@ -311,22 +323,21 @@ public function setRequestId(string $request_id): self } /** - * Gets browser_details - * @return \Fingerprint\ServerAPI\Model\BrowserDetails + * Gets browser_details. */ - public function getBrowserDetails(): \Fingerprint\ServerAPI\Model\BrowserDetails + public function getBrowserDetails(): BrowserDetails { return $this->container['browser_details']; } /** - * Sets browser_details + * Sets browser_details. * - * @param \Fingerprint\ServerAPI\Model\BrowserDetails $browser_details browser_details + * @param BrowserDetails $browser_details browser_details * * @return $this */ - public function setBrowserDetails(\Fingerprint\ServerAPI\Model\BrowserDetails $browser_details): self + public function setBrowserDetails(BrowserDetails $browser_details): self { $this->container['browser_details'] = $browser_details; @@ -334,8 +345,7 @@ public function setBrowserDetails(\Fingerprint\ServerAPI\Model\BrowserDetails $b } /** - * Gets incognito - * @return bool + * Gets incognito. */ public function getIncognito(): bool { @@ -343,9 +353,9 @@ public function getIncognito(): bool } /** - * Sets incognito + * Sets incognito. * - * @param bool $incognito Flag if user used incognito session. + * @param bool $incognito flag if user used incognito session * * @return $this */ @@ -357,8 +367,7 @@ public function setIncognito(bool $incognito): self } /** - * Gets ip - * @return string + * Gets ip. */ public function getIp(): string { @@ -366,7 +375,7 @@ public function getIp(): string } /** - * Sets ip + * Sets ip. * * @param string $ip ip * @@ -380,22 +389,23 @@ public function setIp(string $ip): self } /** - * Gets ip_location + * Gets ip_location. + * * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ - public function getIpLocation(): ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation + public function getIpLocation(): ?DeprecatedIPLocation { return $this->container['ip_location']; } /** - * Sets ip_location + * Sets ip_location. * * @param ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation $ip_location ip_location * * @return $this */ - public function setIpLocation(?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation $ip_location): self + public function setIpLocation(?DeprecatedIPLocation $ip_location): self { $this->container['ip_location'] = $ip_location; @@ -403,8 +413,7 @@ public function setIpLocation(?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation } /** - * Gets timestamp - * @return int + * Gets timestamp. */ public function getTimestamp(): int { @@ -412,9 +421,9 @@ public function getTimestamp(): int } /** - * Sets timestamp + * Sets timestamp. * - * @param int $timestamp Timestamp of the event with millisecond precision in Unix time. + * @param int $timestamp timestamp of the event with millisecond precision in Unix time * * @return $this */ @@ -426,8 +435,7 @@ public function setTimestamp(int $timestamp): self } /** - * Gets time - * @return \DateTime + * Gets time. */ public function getTime(): \DateTime { @@ -435,9 +443,9 @@ public function getTime(): \DateTime } /** - * Sets time + * Sets time. * - * @param \DateTime $time Time expressed according to ISO 8601 in UTC format. + * @param \DateTime $time time expressed according to ISO 8601 in UTC format * * @return $this */ @@ -449,8 +457,7 @@ public function setTime(\DateTime $time): self } /** - * Gets url - * @return string + * Gets url. */ public function getUrl(): string { @@ -458,9 +465,9 @@ public function getUrl(): string } /** - * Sets url + * Sets url. * - * @param string $url Page URL from which the identification request was sent. + * @param string $url page URL from which the identification request was sent * * @return $this */ @@ -472,7 +479,8 @@ public function setUrl(string $url): self } /** - * Gets tag + * Gets tag. + * * @return ?map[string,object] */ public function getTag(): ?array @@ -481,9 +489,9 @@ public function getTag(): ?array } /** - * Sets tag + * Sets tag. * - * @param ?map[string,object] $tag A customer-provided value or an object that was sent with identification request. + * @param ?map[string,object] $tag A customer-provided value or an object that was sent with identification request * * @return $this */ @@ -495,7 +503,8 @@ public function setTag(?array $tag): self } /** - * Gets linked_id + * Gets linked_id. + * * @return ?string */ public function getLinkedId(): ?string @@ -504,9 +513,9 @@ public function getLinkedId(): ?string } /** - * Sets linked_id + * Sets linked_id. * - * @param ?string $linked_id A customer-provided id that was sent with identification request. + * @param ?string $linked_id a customer-provided id that was sent with identification request * * @return $this */ @@ -518,22 +527,23 @@ public function setLinkedId(?string $linked_id): self } /** - * Gets confidence + * Gets confidence. + * * @return ?\Fingerprint\ServerAPI\Model\Confidence */ - public function getConfidence(): ?\Fingerprint\ServerAPI\Model\Confidence + public function getConfidence(): ?Confidence { return $this->container['confidence']; } /** - * Sets confidence + * Sets confidence. * * @param ?\Fingerprint\ServerAPI\Model\Confidence $confidence confidence * * @return $this */ - public function setConfidence(?\Fingerprint\ServerAPI\Model\Confidence $confidence): self + public function setConfidence(?Confidence $confidence): self { $this->container['confidence'] = $confidence; @@ -541,8 +551,7 @@ public function setConfidence(?\Fingerprint\ServerAPI\Model\Confidence $confiden } /** - * Gets visitor_found - * @return bool + * Gets visitor_found. */ public function getVisitorFound(): bool { @@ -550,9 +559,9 @@ public function getVisitorFound(): bool } /** - * Sets visitor_found + * Sets visitor_found. * - * @param bool $visitor_found Attribute represents if a visitor had been identified before. + * @param bool $visitor_found attribute represents if a visitor had been identified before * * @return $this */ @@ -564,22 +573,21 @@ public function setVisitorFound(bool $visitor_found): self } /** - * Gets first_seen_at - * @return \Fingerprint\ServerAPI\Model\SeenAt + * Gets first_seen_at. */ - public function getFirstSeenAt(): \Fingerprint\ServerAPI\Model\SeenAt + public function getFirstSeenAt(): SeenAt { return $this->container['first_seen_at']; } /** - * Sets first_seen_at + * Sets first_seen_at. * - * @param \Fingerprint\ServerAPI\Model\SeenAt $first_seen_at first_seen_at + * @param SeenAt $first_seen_at first_seen_at * * @return $this */ - public function setFirstSeenAt(\Fingerprint\ServerAPI\Model\SeenAt $first_seen_at): self + public function setFirstSeenAt(SeenAt $first_seen_at): self { $this->container['first_seen_at'] = $first_seen_at; @@ -587,31 +595,31 @@ public function setFirstSeenAt(\Fingerprint\ServerAPI\Model\SeenAt $first_seen_a } /** - * Gets last_seen_at - * @return \Fingerprint\ServerAPI\Model\SeenAt + * Gets last_seen_at. */ - public function getLastSeenAt(): \Fingerprint\ServerAPI\Model\SeenAt + public function getLastSeenAt(): SeenAt { return $this->container['last_seen_at']; } /** - * Sets last_seen_at + * Sets last_seen_at. * - * @param \Fingerprint\ServerAPI\Model\SeenAt $last_seen_at last_seen_at + * @param SeenAt $last_seen_at last_seen_at * * @return $this */ - public function setLastSeenAt(\Fingerprint\ServerAPI\Model\SeenAt $last_seen_at): self + public function setLastSeenAt(SeenAt $last_seen_at): self { $this->container['last_seen_at'] = $last_seen_at; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -621,7 +629,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -631,8 +639,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -646,27 +654,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/VpnResult.php b/src/Model/VpnResult.php index 1ce5088a..2b5651e8 100644 --- a/src/Model/VpnResult.php +++ b/src/Model/VpnResult.php @@ -1,14 +1,16 @@ 'bool', -'origin_timezone' => 'string', -'origin_country' => 'string', -'methods' => '\Fingerprint\ServerAPI\Model\VpnResultMethods' ]; + 'origin_timezone' => 'string', + 'origin_country' => 'string', + 'methods' => '\Fingerprint\ServerAPI\Model\VpnResultMethods']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'result' => null, -'origin_timezone' => null, -'origin_country' => null, -'methods' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'origin_timezone' => null, + 'origin_country' => null, + 'methods' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'result' => 'result', -'origin_timezone' => 'originTimezone', -'origin_country' => 'originCountry', -'methods' => 'methods' ]; + 'origin_timezone' => 'originTimezone', + 'origin_country' => 'originCountry', + 'methods' => 'methods']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'result' => 'setResult', -'origin_timezone' => 'setOriginTimezone', -'origin_country' => 'setOriginCountry', -'methods' => 'setMethods' ]; + 'origin_timezone' => 'setOriginTimezone', + 'origin_country' => 'setOriginCountry', + 'methods' => 'setMethods']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'result' => 'getResult', -'origin_timezone' => 'getOriginTimezone', -'origin_country' => 'getOriginCountry', -'methods' => 'getMethods' ]; + 'origin_timezone' => 'getOriginTimezone', + 'origin_country' => 'getOriginCountry', + 'methods' => 'getMethods']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + $this->container['origin_timezone'] = isset($data['origin_timezone']) ? $data['origin_timezone'] : null; + $this->container['origin_country'] = isset($data['origin_country']) ? $data['origin_country'] : null; + $this->container['methods'] = isset($data['methods']) ? $data['methods'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -127,7 +163,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -135,7 +171,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -150,29 +186,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['result'] = isset($data['result']) ? $data['result'] : null; - $this->container['origin_timezone'] = isset($data['origin_timezone']) ? $data['origin_timezone'] : null; - $this->container['origin_country'] = isset($data['origin_country']) ? $data['origin_country'] : null; - $this->container['methods'] = isset($data['methods']) ? $data['methods'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -182,33 +195,32 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } - if ($this->container['origin_timezone'] === null) { + if (null === $this->container['origin_timezone']) { $invalidProperties[] = "'origin_timezone' can't be null"; } - if ($this->container['methods'] === null) { + if (null === $this->container['methods']) { $invalidProperties[] = "'methods' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result - * @return bool + * Gets result. */ public function getResult(): bool { @@ -216,9 +228,9 @@ public function getResult(): bool } /** - * Sets result + * Sets result. * - * @param bool $result VPN or other anonymizing service has been used when sending the request. + * @param bool $result VPN or other anonymizing service has been used when sending the request * * @return $this */ @@ -230,8 +242,7 @@ public function setResult(bool $result): self } /** - * Gets origin_timezone - * @return string + * Gets origin_timezone. */ public function getOriginTimezone(): string { @@ -239,9 +250,9 @@ public function getOriginTimezone(): string } /** - * Sets origin_timezone + * Sets origin_timezone. * - * @param string $origin_timezone Local timezone which is used in timezoneMismatch method. + * @param string $origin_timezone local timezone which is used in timezoneMismatch method * * @return $this */ @@ -253,7 +264,8 @@ public function setOriginTimezone(string $origin_timezone): self } /** - * Gets origin_country + * Gets origin_country. + * * @return ?string */ public function getOriginCountry(): ?string @@ -262,7 +274,7 @@ public function getOriginCountry(): ?string } /** - * Sets origin_country + * Sets origin_country. * * @param ?string $origin_country Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown). * @@ -276,31 +288,31 @@ public function setOriginCountry(?string $origin_country): self } /** - * Gets methods - * @return \Fingerprint\ServerAPI\Model\VpnResultMethods + * Gets methods. */ - public function getMethods(): \Fingerprint\ServerAPI\Model\VpnResultMethods + public function getMethods(): VpnResultMethods { return $this->container['methods']; } /** - * Sets methods + * Sets methods. * - * @param \Fingerprint\ServerAPI\Model\VpnResultMethods $methods methods + * @param VpnResultMethods $methods methods * * @return $this */ - public function setMethods(\Fingerprint\ServerAPI\Model\VpnResultMethods $methods): self + public function setMethods(VpnResultMethods $methods): self { $this->container['methods'] = $methods; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -310,7 +322,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -320,8 +332,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -335,27 +347,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/VpnResultMethods.php b/src/Model/VpnResultMethods.php index d4062ac5..36f39b53 100644 --- a/src/Model/VpnResultMethods.php +++ b/src/Model/VpnResultMethods.php @@ -1,14 +1,16 @@ 'bool', -'public_vpn' => 'bool', -'auxiliary_mobile' => 'bool', -'os_mismatch' => 'bool' ]; + 'public_vpn' => 'bool', + 'auxiliary_mobile' => 'bool', + 'os_mismatch' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'timezone_mismatch' => null, -'public_vpn' => null, -'auxiliary_mobile' => null, -'os_mismatch' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'public_vpn' => null, + 'auxiliary_mobile' => null, + 'os_mismatch' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'timezone_mismatch' => 'timezoneMismatch', -'public_vpn' => 'publicVPN', -'auxiliary_mobile' => 'auxiliaryMobile', -'os_mismatch' => 'osMismatch' ]; + 'public_vpn' => 'publicVPN', + 'auxiliary_mobile' => 'auxiliaryMobile', + 'os_mismatch' => 'osMismatch']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'timezone_mismatch' => 'setTimezoneMismatch', -'public_vpn' => 'setPublicVpn', -'auxiliary_mobile' => 'setAuxiliaryMobile', -'os_mismatch' => 'setOsMismatch' ]; + 'public_vpn' => 'setPublicVpn', + 'auxiliary_mobile' => 'setAuxiliaryMobile', + 'os_mismatch' => 'setOsMismatch']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'timezone_mismatch' => 'getTimezoneMismatch', -'public_vpn' => 'getPublicVpn', -'auxiliary_mobile' => 'getAuxiliaryMobile', -'os_mismatch' => 'getOsMismatch' ]; + 'public_vpn' => 'getPublicVpn', + 'auxiliary_mobile' => 'getAuxiliaryMobile', + 'os_mismatch' => 'getOsMismatch']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['timezone_mismatch'] = isset($data['timezone_mismatch']) ? $data['timezone_mismatch'] : null; + $this->container['public_vpn'] = isset($data['public_vpn']) ? $data['public_vpn'] : null; + $this->container['auxiliary_mobile'] = isset($data['auxiliary_mobile']) ? $data['auxiliary_mobile'] : null; + $this->container['os_mismatch'] = isset($data['os_mismatch']) ? $data['os_mismatch'] : null; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. */ public static function attributeMap(): array { @@ -127,7 +163,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). */ public static function setters(): array { @@ -135,7 +171,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). */ public static function getters(): array { @@ -150,29 +186,6 @@ public function getModelName(): string return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected array $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['timezone_mismatch'] = isset($data['timezone_mismatch']) ? $data['timezone_mismatch'] : null; - $this->container['public_vpn'] = isset($data['public_vpn']) ? $data['public_vpn'] : null; - $this->container['auxiliary_mobile'] = isset($data['auxiliary_mobile']) ? $data['auxiliary_mobile'] : null; - $this->container['os_mismatch'] = isset($data['os_mismatch']) ? $data['os_mismatch'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -182,36 +195,35 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['timezone_mismatch'] === null) { + if (null === $this->container['timezone_mismatch']) { $invalidProperties[] = "'timezone_mismatch' can't be null"; } - if ($this->container['public_vpn'] === null) { + if (null === $this->container['public_vpn']) { $invalidProperties[] = "'public_vpn' can't be null"; } - if ($this->container['auxiliary_mobile'] === null) { + if (null === $this->container['auxiliary_mobile']) { $invalidProperties[] = "'auxiliary_mobile' can't be null"; } - if ($this->container['os_mismatch'] === null) { + if (null === $this->container['os_mismatch']) { $invalidProperties[] = "'os_mismatch' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets timezone_mismatch - * @return bool + * Gets timezone_mismatch. */ public function getTimezoneMismatch(): bool { @@ -219,9 +231,9 @@ public function getTimezoneMismatch(): bool } /** - * Sets timezone_mismatch + * Sets timezone_mismatch. * - * @param bool $timezone_mismatch The browser timezone doesn't match the timezone inferred from the request IP address. + * @param bool $timezone_mismatch the browser timezone doesn't match the timezone inferred from the request IP address * * @return $this */ @@ -233,8 +245,7 @@ public function setTimezoneMismatch(bool $timezone_mismatch): self } /** - * Gets public_vpn - * @return bool + * Gets public_vpn. */ public function getPublicVpn(): bool { @@ -242,9 +253,9 @@ public function getPublicVpn(): bool } /** - * Sets public_vpn + * Sets public_vpn. * - * @param bool $public_vpn Request IP address is owned and used by a public VPN service provider. + * @param bool $public_vpn request IP address is owned and used by a public VPN service provider * * @return $this */ @@ -256,8 +267,7 @@ public function setPublicVpn(bool $public_vpn): self } /** - * Gets auxiliary_mobile - * @return bool + * Gets auxiliary_mobile. */ public function getAuxiliaryMobile(): bool { @@ -265,7 +275,7 @@ public function getAuxiliaryMobile(): bool } /** - * Sets auxiliary_mobile + * Sets auxiliary_mobile. * * @param bool $auxiliary_mobile This method applies to mobile devices only. Indicates the result of additional methods used to detect a VPN in mobile devices. * @@ -279,8 +289,7 @@ public function setAuxiliaryMobile(bool $auxiliary_mobile): self } /** - * Gets os_mismatch - * @return bool + * Gets os_mismatch. */ public function getOsMismatch(): bool { @@ -288,9 +297,9 @@ public function getOsMismatch(): bool } /** - * Sets os_mismatch + * Sets os_mismatch. * - * @param bool $os_mismatch The browser runs on a different operating system than the operating system inferred from the request network signature. + * @param bool $os_mismatch the browser runs on a different operating system than the operating system inferred from the request network signature * * @return $this */ @@ -300,10 +309,11 @@ public function setOsMismatch(bool $os_mismatch): self return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -313,7 +323,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -323,8 +333,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -338,27 +348,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } } diff --git a/src/Model/WebhookVisit.php b/src/Model/WebhookVisit.php index e677fb3e..585c084a 100644 --- a/src/Model/WebhookVisit.php +++ b/src/Model/WebhookVisit.php @@ -1,14 +1,16 @@ 'string', -'client_referrer' => 'string', -'user_agent' => 'string', -'bot' => '\Fingerprint\ServerAPI\Model\BotdDetectionResult', -'ip_info' => '\Fingerprint\ServerAPI\Model\IpInfoResult', -'incognito' => 'bool', -'root_apps' => '\Fingerprint\ServerAPI\Model\RootAppsResult', -'emulator' => '\Fingerprint\ServerAPI\Model\EmulatorResult', -'cloned_app' => '\Fingerprint\ServerAPI\Model\ClonedAppResult', -'factory_reset' => '\Fingerprint\ServerAPI\Model\FactoryResetResult', -'jailbroken' => '\Fingerprint\ServerAPI\Model\JailbrokenResult', -'frida' => '\Fingerprint\ServerAPI\Model\FridaResult', -'ip_blocklist' => '\Fingerprint\ServerAPI\Model\IpBlockListResult', -'tor' => '\Fingerprint\ServerAPI\Model\TorResult', -'privacy_settings' => '\Fingerprint\ServerAPI\Model\PrivacySettingsResult', -'virtual_machine' => '\Fingerprint\ServerAPI\Model\VirtualMachineResult', -'vpn' => '\Fingerprint\ServerAPI\Model\VpnResult', -'proxy' => '\Fingerprint\ServerAPI\Model\ProxyResult', -'tampering' => '\Fingerprint\ServerAPI\Model\TamperingResult', -'raw_device_attributes' => '\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult', -'high_activity' => '\Fingerprint\ServerAPI\Model\HighActivityResult', -'location_spoofing' => '\Fingerprint\ServerAPI\Model\LocationSpoofingResult', -'suspect_score' => '\Fingerprint\ServerAPI\Model\SuspectScoreResult', -'remote_control' => '\Fingerprint\ServerAPI\Model\RemoteControlResult', -'velocity' => '\Fingerprint\ServerAPI\Model\VelocityResult', -'developer_tools' => '\Fingerprint\ServerAPI\Model\DeveloperToolsResult', -'request_id' => 'string', -'browser_details' => '\Fingerprint\ServerAPI\Model\BrowserDetails', -'ip' => 'string', -'ip_location' => '\Fingerprint\ServerAPI\Model\DeprecatedIPLocation', -'timestamp' => 'int', -'time' => '\DateTime', -'url' => 'string', -'tag' => 'map[string,object]', -'linked_id' => 'string', -'confidence' => '\Fingerprint\ServerAPI\Model\Confidence', -'visitor_found' => 'bool', -'first_seen_at' => '\Fingerprint\ServerAPI\Model\SeenAt', -'last_seen_at' => '\Fingerprint\ServerAPI\Model\SeenAt' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + 'client_referrer' => 'string', + 'user_agent' => 'string', + 'bot' => '\Fingerprint\ServerAPI\Model\BotdDetectionResult', + 'ip_info' => '\Fingerprint\ServerAPI\Model\IpInfoResult', + 'incognito' => 'bool', + 'root_apps' => '\Fingerprint\ServerAPI\Model\RootAppsResult', + 'emulator' => '\Fingerprint\ServerAPI\Model\EmulatorResult', + 'cloned_app' => '\Fingerprint\ServerAPI\Model\ClonedAppResult', + 'factory_reset' => '\Fingerprint\ServerAPI\Model\FactoryResetResult', + 'jailbroken' => '\Fingerprint\ServerAPI\Model\JailbrokenResult', + 'frida' => '\Fingerprint\ServerAPI\Model\FridaResult', + 'ip_blocklist' => '\Fingerprint\ServerAPI\Model\IpBlockListResult', + 'tor' => '\Fingerprint\ServerAPI\Model\TorResult', + 'privacy_settings' => '\Fingerprint\ServerAPI\Model\PrivacySettingsResult', + 'virtual_machine' => '\Fingerprint\ServerAPI\Model\VirtualMachineResult', + 'vpn' => '\Fingerprint\ServerAPI\Model\VpnResult', + 'proxy' => '\Fingerprint\ServerAPI\Model\ProxyResult', + 'tampering' => '\Fingerprint\ServerAPI\Model\TamperingResult', + 'raw_device_attributes' => '\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult', + 'high_activity' => '\Fingerprint\ServerAPI\Model\HighActivityResult', + 'location_spoofing' => '\Fingerprint\ServerAPI\Model\LocationSpoofingResult', + 'suspect_score' => '\Fingerprint\ServerAPI\Model\SuspectScoreResult', + 'remote_control' => '\Fingerprint\ServerAPI\Model\RemoteControlResult', + 'velocity' => '\Fingerprint\ServerAPI\Model\VelocityResult', + 'developer_tools' => '\Fingerprint\ServerAPI\Model\DeveloperToolsResult', + 'request_id' => 'string', + 'browser_details' => '\Fingerprint\ServerAPI\Model\BrowserDetails', + 'ip' => 'string', + 'ip_location' => '\Fingerprint\ServerAPI\Model\DeprecatedIPLocation', + 'timestamp' => 'int', + 'time' => '\DateTime', + 'url' => 'string', + 'tag' => 'map[string,object]', + 'linked_id' => 'string', + 'confidence' => '\Fingerprint\ServerAPI\Model\Confidence', + 'visitor_found' => 'bool', + 'first_seen_at' => '\Fingerprint\ServerAPI\Model\SeenAt', + 'last_seen_at' => '\Fingerprint\ServerAPI\Model\SeenAt']; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static array $swaggerFormats = [ 'visitor_id' => null, -'client_referrer' => null, -'user_agent' => null, -'bot' => null, -'ip_info' => null, -'incognito' => null, -'root_apps' => null, -'emulator' => null, -'cloned_app' => null, -'factory_reset' => null, -'jailbroken' => null, -'frida' => null, -'ip_blocklist' => null, -'tor' => null, -'privacy_settings' => null, -'virtual_machine' => null, -'vpn' => null, -'proxy' => null, -'tampering' => null, -'raw_device_attributes' => null, -'high_activity' => null, -'location_spoofing' => null, -'suspect_score' => null, -'remote_control' => null, -'velocity' => null, -'developer_tools' => null, -'request_id' => null, -'browser_details' => null, -'ip' => 'ipv4', -'ip_location' => null, -'timestamp' => 'int64', -'time' => 'date-time', -'url' => null, -'tag' => null, -'linked_id' => null, -'confidence' => null, -'visitor_found' => null, -'first_seen_at' => null, -'last_seen_at' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization - */ - public static function swaggerTypes(): array - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - */ - public static function swaggerFormats(): array - { - return self::$swaggerFormats; - } + 'client_referrer' => null, + 'user_agent' => null, + 'bot' => null, + 'ip_info' => null, + 'incognito' => null, + 'root_apps' => null, + 'emulator' => null, + 'cloned_app' => null, + 'factory_reset' => null, + 'jailbroken' => null, + 'frida' => null, + 'ip_blocklist' => null, + 'tor' => null, + 'privacy_settings' => null, + 'virtual_machine' => null, + 'vpn' => null, + 'proxy' => null, + 'tampering' => null, + 'raw_device_attributes' => null, + 'high_activity' => null, + 'location_spoofing' => null, + 'suspect_score' => null, + 'remote_control' => null, + 'velocity' => null, + 'developer_tools' => null, + 'request_id' => null, + 'browser_details' => null, + 'ip' => 'ipv4', + 'ip_location' => null, + 'timestamp' => 'int64', + 'time' => 'date-time', + 'url' => null, + 'tag' => null, + 'linked_id' => null, + 'confidence' => null, + 'visitor_found' => null, + 'first_seen_at' => null, + 'last_seen_at' => null]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static array $attributeMap = [ 'visitor_id' => 'visitorId', -'client_referrer' => 'clientReferrer', -'user_agent' => 'userAgent', -'bot' => 'bot', -'ip_info' => 'ipInfo', -'incognito' => 'incognito', -'root_apps' => 'rootApps', -'emulator' => 'emulator', -'cloned_app' => 'clonedApp', -'factory_reset' => 'factoryReset', -'jailbroken' => 'jailbroken', -'frida' => 'frida', -'ip_blocklist' => 'ipBlocklist', -'tor' => 'tor', -'privacy_settings' => 'privacySettings', -'virtual_machine' => 'virtualMachine', -'vpn' => 'vpn', -'proxy' => 'proxy', -'tampering' => 'tampering', -'raw_device_attributes' => 'rawDeviceAttributes', -'high_activity' => 'highActivity', -'location_spoofing' => 'locationSpoofing', -'suspect_score' => 'suspectScore', -'remote_control' => 'remoteControl', -'velocity' => 'velocity', -'developer_tools' => 'developerTools', -'request_id' => 'requestId', -'browser_details' => 'browserDetails', -'ip' => 'ip', -'ip_location' => 'ipLocation', -'timestamp' => 'timestamp', -'time' => 'time', -'url' => 'url', -'tag' => 'tag', -'linked_id' => 'linkedId', -'confidence' => 'confidence', -'visitor_found' => 'visitorFound', -'first_seen_at' => 'firstSeenAt', -'last_seen_at' => 'lastSeenAt' ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) + 'client_referrer' => 'clientReferrer', + 'user_agent' => 'userAgent', + 'bot' => 'bot', + 'ip_info' => 'ipInfo', + 'incognito' => 'incognito', + 'root_apps' => 'rootApps', + 'emulator' => 'emulator', + 'cloned_app' => 'clonedApp', + 'factory_reset' => 'factoryReset', + 'jailbroken' => 'jailbroken', + 'frida' => 'frida', + 'ip_blocklist' => 'ipBlocklist', + 'tor' => 'tor', + 'privacy_settings' => 'privacySettings', + 'virtual_machine' => 'virtualMachine', + 'vpn' => 'vpn', + 'proxy' => 'proxy', + 'tampering' => 'tampering', + 'raw_device_attributes' => 'rawDeviceAttributes', + 'high_activity' => 'highActivity', + 'location_spoofing' => 'locationSpoofing', + 'suspect_score' => 'suspectScore', + 'remote_control' => 'remoteControl', + 'velocity' => 'velocity', + 'developer_tools' => 'developerTools', + 'request_id' => 'requestId', + 'browser_details' => 'browserDetails', + 'ip' => 'ip', + 'ip_location' => 'ipLocation', + 'timestamp' => 'timestamp', + 'time' => 'time', + 'url' => 'url', + 'tag' => 'tag', + 'linked_id' => 'linkedId', + 'confidence' => 'confidence', + 'visitor_found' => 'visitorFound', + 'first_seen_at' => 'firstSeenAt', + 'last_seen_at' => 'lastSeenAt']; + + /** + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static array $setters = [ 'visitor_id' => 'setVisitorId', -'client_referrer' => 'setClientReferrer', -'user_agent' => 'setUserAgent', -'bot' => 'setBot', -'ip_info' => 'setIpInfo', -'incognito' => 'setIncognito', -'root_apps' => 'setRootApps', -'emulator' => 'setEmulator', -'cloned_app' => 'setClonedApp', -'factory_reset' => 'setFactoryReset', -'jailbroken' => 'setJailbroken', -'frida' => 'setFrida', -'ip_blocklist' => 'setIpBlocklist', -'tor' => 'setTor', -'privacy_settings' => 'setPrivacySettings', -'virtual_machine' => 'setVirtualMachine', -'vpn' => 'setVpn', -'proxy' => 'setProxy', -'tampering' => 'setTampering', -'raw_device_attributes' => 'setRawDeviceAttributes', -'high_activity' => 'setHighActivity', -'location_spoofing' => 'setLocationSpoofing', -'suspect_score' => 'setSuspectScore', -'remote_control' => 'setRemoteControl', -'velocity' => 'setVelocity', -'developer_tools' => 'setDeveloperTools', -'request_id' => 'setRequestId', -'browser_details' => 'setBrowserDetails', -'ip' => 'setIp', -'ip_location' => 'setIpLocation', -'timestamp' => 'setTimestamp', -'time' => 'setTime', -'url' => 'setUrl', -'tag' => 'setTag', -'linked_id' => 'setLinkedId', -'confidence' => 'setConfidence', -'visitor_found' => 'setVisitorFound', -'first_seen_at' => 'setFirstSeenAt', -'last_seen_at' => 'setLastSeenAt' ]; - - /** - * Array of attributes to getter functions (for serialization of requests) + 'client_referrer' => 'setClientReferrer', + 'user_agent' => 'setUserAgent', + 'bot' => 'setBot', + 'ip_info' => 'setIpInfo', + 'incognito' => 'setIncognito', + 'root_apps' => 'setRootApps', + 'emulator' => 'setEmulator', + 'cloned_app' => 'setClonedApp', + 'factory_reset' => 'setFactoryReset', + 'jailbroken' => 'setJailbroken', + 'frida' => 'setFrida', + 'ip_blocklist' => 'setIpBlocklist', + 'tor' => 'setTor', + 'privacy_settings' => 'setPrivacySettings', + 'virtual_machine' => 'setVirtualMachine', + 'vpn' => 'setVpn', + 'proxy' => 'setProxy', + 'tampering' => 'setTampering', + 'raw_device_attributes' => 'setRawDeviceAttributes', + 'high_activity' => 'setHighActivity', + 'location_spoofing' => 'setLocationSpoofing', + 'suspect_score' => 'setSuspectScore', + 'remote_control' => 'setRemoteControl', + 'velocity' => 'setVelocity', + 'developer_tools' => 'setDeveloperTools', + 'request_id' => 'setRequestId', + 'browser_details' => 'setBrowserDetails', + 'ip' => 'setIp', + 'ip_location' => 'setIpLocation', + 'timestamp' => 'setTimestamp', + 'time' => 'setTime', + 'url' => 'setUrl', + 'tag' => 'setTag', + 'linked_id' => 'setLinkedId', + 'confidence' => 'setConfidence', + 'visitor_found' => 'setVisitorFound', + 'first_seen_at' => 'setFirstSeenAt', + 'last_seen_at' => 'setLastSeenAt']; + + /** + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static array $getters = [ 'visitor_id' => 'getVisitorId', -'client_referrer' => 'getClientReferrer', -'user_agent' => 'getUserAgent', -'bot' => 'getBot', -'ip_info' => 'getIpInfo', -'incognito' => 'getIncognito', -'root_apps' => 'getRootApps', -'emulator' => 'getEmulator', -'cloned_app' => 'getClonedApp', -'factory_reset' => 'getFactoryReset', -'jailbroken' => 'getJailbroken', -'frida' => 'getFrida', -'ip_blocklist' => 'getIpBlocklist', -'tor' => 'getTor', -'privacy_settings' => 'getPrivacySettings', -'virtual_machine' => 'getVirtualMachine', -'vpn' => 'getVpn', -'proxy' => 'getProxy', -'tampering' => 'getTampering', -'raw_device_attributes' => 'getRawDeviceAttributes', -'high_activity' => 'getHighActivity', -'location_spoofing' => 'getLocationSpoofing', -'suspect_score' => 'getSuspectScore', -'remote_control' => 'getRemoteControl', -'velocity' => 'getVelocity', -'developer_tools' => 'getDeveloperTools', -'request_id' => 'getRequestId', -'browser_details' => 'getBrowserDetails', -'ip' => 'getIp', -'ip_location' => 'getIpLocation', -'timestamp' => 'getTimestamp', -'time' => 'getTime', -'url' => 'getUrl', -'tag' => 'getTag', -'linked_id' => 'getLinkedId', -'confidence' => 'getConfidence', -'visitor_found' => 'getVisitorFound', -'first_seen_at' => 'getFirstSeenAt', -'last_seen_at' => 'getLastSeenAt' ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - */ - public static function attributeMap(): array - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - */ - public static function setters(): array - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - */ - public static function getters(): array - { - return self::$getters; - } - - /** - * The original name of the model. - */ - public function getModelName(): string - { - return self::$swaggerModelName; - } - - - - /** - * Associative array for storing property values + 'client_referrer' => 'getClientReferrer', + 'user_agent' => 'getUserAgent', + 'bot' => 'getBot', + 'ip_info' => 'getIpInfo', + 'incognito' => 'getIncognito', + 'root_apps' => 'getRootApps', + 'emulator' => 'getEmulator', + 'cloned_app' => 'getClonedApp', + 'factory_reset' => 'getFactoryReset', + 'jailbroken' => 'getJailbroken', + 'frida' => 'getFrida', + 'ip_blocklist' => 'getIpBlocklist', + 'tor' => 'getTor', + 'privacy_settings' => 'getPrivacySettings', + 'virtual_machine' => 'getVirtualMachine', + 'vpn' => 'getVpn', + 'proxy' => 'getProxy', + 'tampering' => 'getTampering', + 'raw_device_attributes' => 'getRawDeviceAttributes', + 'high_activity' => 'getHighActivity', + 'location_spoofing' => 'getLocationSpoofing', + 'suspect_score' => 'getSuspectScore', + 'remote_control' => 'getRemoteControl', + 'velocity' => 'getVelocity', + 'developer_tools' => 'getDeveloperTools', + 'request_id' => 'getRequestId', + 'browser_details' => 'getBrowserDetails', + 'ip' => 'getIp', + 'ip_location' => 'getIpLocation', + 'timestamp' => 'getTimestamp', + 'time' => 'getTime', + 'url' => 'getUrl', + 'tag' => 'getTag', + 'linked_id' => 'getLinkedId', + 'confidence' => 'getConfidence', + 'visitor_found' => 'getVisitorFound', + 'first_seen_at' => 'getFirstSeenAt', + 'last_seen_at' => 'getLastSeenAt']; + + /** + * Associative array for storing property values. * * @var mixed[] */ protected array $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['visitor_id'] = isset($data['visitor_id']) ? $data['visitor_id'] : null; $this->container['client_referrer'] = isset($data['client_referrer']) ? $data['client_referrer'] : null; @@ -383,6 +332,70 @@ public function __construct(array $data = null) $this->container['last_seen_at'] = isset($data['last_seen_at']) ? $data['last_seen_at'] : null; } + /** + * Gets the string presentation of the object. + */ + public function __toString(): string + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function swaggerTypes(): array + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function swaggerFormats(): array + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap(): array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters(): array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters(): array + { + return self::$getters; + } + + /** + * The original name of the model. + */ + public function getModelName(): string + { + return self::$swaggerModelName; + } + /** * Show all the invalid properties with reasons. * @@ -392,57 +405,56 @@ public function listInvalidProperties(): array { $invalidProperties = []; - if ($this->container['visitor_id'] === null) { + if (null === $this->container['visitor_id']) { $invalidProperties[] = "'visitor_id' can't be null"; } - if ($this->container['incognito'] === null) { + if (null === $this->container['incognito']) { $invalidProperties[] = "'incognito' can't be null"; } - if ($this->container['request_id'] === null) { + if (null === $this->container['request_id']) { $invalidProperties[] = "'request_id' can't be null"; } - if ($this->container['browser_details'] === null) { + if (null === $this->container['browser_details']) { $invalidProperties[] = "'browser_details' can't be null"; } - if ($this->container['ip'] === null) { + if (null === $this->container['ip']) { $invalidProperties[] = "'ip' can't be null"; } - if ($this->container['timestamp'] === null) { + if (null === $this->container['timestamp']) { $invalidProperties[] = "'timestamp' can't be null"; } - if ($this->container['time'] === null) { + if (null === $this->container['time']) { $invalidProperties[] = "'time' can't be null"; } - if ($this->container['url'] === null) { + if (null === $this->container['url']) { $invalidProperties[] = "'url' can't be null"; } - if ($this->container['visitor_found'] === null) { + if (null === $this->container['visitor_found']) { $invalidProperties[] = "'visitor_found' can't be null"; } - if ($this->container['first_seen_at'] === null) { + if (null === $this->container['first_seen_at']) { $invalidProperties[] = "'first_seen_at' can't be null"; } - if ($this->container['last_seen_at'] === null) { + if (null === $this->container['last_seen_at']) { $invalidProperties[] = "'last_seen_at' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid(): bool { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets visitor_id - * @return string + * Gets visitor_id. */ public function getVisitorId(): string { @@ -450,7 +462,7 @@ public function getVisitorId(): string } /** - * Sets visitor_id + * Sets visitor_id. * * @param string $visitor_id visitor_id * @@ -464,7 +476,8 @@ public function setVisitorId(string $visitor_id): self } /** - * Gets client_referrer + * Gets client_referrer. + * * @return ?string */ public function getClientReferrer(): ?string @@ -473,7 +486,7 @@ public function getClientReferrer(): ?string } /** - * Sets client_referrer + * Sets client_referrer. * * @param ?string $client_referrer client_referrer * @@ -487,7 +500,8 @@ public function setClientReferrer(?string $client_referrer): self } /** - * Gets user_agent + * Gets user_agent. + * * @return ?string */ public function getUserAgent(): ?string @@ -496,7 +510,7 @@ public function getUserAgent(): ?string } /** - * Sets user_agent + * Sets user_agent. * * @param ?string $user_agent user_agent * @@ -510,22 +524,23 @@ public function setUserAgent(?string $user_agent): self } /** - * Gets bot + * Gets bot. + * * @return ?\Fingerprint\ServerAPI\Model\BotdDetectionResult */ - public function getBot(): ?\Fingerprint\ServerAPI\Model\BotdDetectionResult + public function getBot(): ?BotdDetectionResult { return $this->container['bot']; } /** - * Sets bot + * Sets bot. * * @param ?\Fingerprint\ServerAPI\Model\BotdDetectionResult $bot bot * * @return $this */ - public function setBot(?\Fingerprint\ServerAPI\Model\BotdDetectionResult $bot): self + public function setBot(?BotdDetectionResult $bot): self { $this->container['bot'] = $bot; @@ -533,22 +548,23 @@ public function setBot(?\Fingerprint\ServerAPI\Model\BotdDetectionResult $bot): } /** - * Gets ip_info + * Gets ip_info. + * * @return ?\Fingerprint\ServerAPI\Model\IpInfoResult */ - public function getIpInfo(): ?\Fingerprint\ServerAPI\Model\IpInfoResult + public function getIpInfo(): ?IpInfoResult { return $this->container['ip_info']; } /** - * Sets ip_info + * Sets ip_info. * * @param ?\Fingerprint\ServerAPI\Model\IpInfoResult $ip_info ip_info * * @return $this */ - public function setIpInfo(?\Fingerprint\ServerAPI\Model\IpInfoResult $ip_info): self + public function setIpInfo(?IpInfoResult $ip_info): self { $this->container['ip_info'] = $ip_info; @@ -556,8 +572,7 @@ public function setIpInfo(?\Fingerprint\ServerAPI\Model\IpInfoResult $ip_info): } /** - * Gets incognito - * @return bool + * Gets incognito. */ public function getIncognito(): bool { @@ -565,9 +580,9 @@ public function getIncognito(): bool } /** - * Sets incognito + * Sets incognito. * - * @param bool $incognito Flag if user used incognito session. + * @param bool $incognito flag if user used incognito session * * @return $this */ @@ -579,22 +594,23 @@ public function setIncognito(bool $incognito): self } /** - * Gets root_apps + * Gets root_apps. + * * @return ?\Fingerprint\ServerAPI\Model\RootAppsResult */ - public function getRootApps(): ?\Fingerprint\ServerAPI\Model\RootAppsResult + public function getRootApps(): ?RootAppsResult { return $this->container['root_apps']; } /** - * Sets root_apps + * Sets root_apps. * * @param ?\Fingerprint\ServerAPI\Model\RootAppsResult $root_apps root_apps * * @return $this */ - public function setRootApps(?\Fingerprint\ServerAPI\Model\RootAppsResult $root_apps): self + public function setRootApps(?RootAppsResult $root_apps): self { $this->container['root_apps'] = $root_apps; @@ -602,22 +618,23 @@ public function setRootApps(?\Fingerprint\ServerAPI\Model\RootAppsResult $root_a } /** - * Gets emulator + * Gets emulator. + * * @return ?\Fingerprint\ServerAPI\Model\EmulatorResult */ - public function getEmulator(): ?\Fingerprint\ServerAPI\Model\EmulatorResult + public function getEmulator(): ?EmulatorResult { return $this->container['emulator']; } /** - * Sets emulator + * Sets emulator. * * @param ?\Fingerprint\ServerAPI\Model\EmulatorResult $emulator emulator * * @return $this */ - public function setEmulator(?\Fingerprint\ServerAPI\Model\EmulatorResult $emulator): self + public function setEmulator(?EmulatorResult $emulator): self { $this->container['emulator'] = $emulator; @@ -625,22 +642,23 @@ public function setEmulator(?\Fingerprint\ServerAPI\Model\EmulatorResult $emulat } /** - * Gets cloned_app + * Gets cloned_app. + * * @return ?\Fingerprint\ServerAPI\Model\ClonedAppResult */ - public function getClonedApp(): ?\Fingerprint\ServerAPI\Model\ClonedAppResult + public function getClonedApp(): ?ClonedAppResult { return $this->container['cloned_app']; } /** - * Sets cloned_app + * Sets cloned_app. * * @param ?\Fingerprint\ServerAPI\Model\ClonedAppResult $cloned_app cloned_app * * @return $this */ - public function setClonedApp(?\Fingerprint\ServerAPI\Model\ClonedAppResult $cloned_app): self + public function setClonedApp(?ClonedAppResult $cloned_app): self { $this->container['cloned_app'] = $cloned_app; @@ -648,22 +666,23 @@ public function setClonedApp(?\Fingerprint\ServerAPI\Model\ClonedAppResult $clon } /** - * Gets factory_reset + * Gets factory_reset. + * * @return ?\Fingerprint\ServerAPI\Model\FactoryResetResult */ - public function getFactoryReset(): ?\Fingerprint\ServerAPI\Model\FactoryResetResult + public function getFactoryReset(): ?FactoryResetResult { return $this->container['factory_reset']; } /** - * Sets factory_reset + * Sets factory_reset. * * @param ?\Fingerprint\ServerAPI\Model\FactoryResetResult $factory_reset factory_reset * * @return $this */ - public function setFactoryReset(?\Fingerprint\ServerAPI\Model\FactoryResetResult $factory_reset): self + public function setFactoryReset(?FactoryResetResult $factory_reset): self { $this->container['factory_reset'] = $factory_reset; @@ -671,22 +690,23 @@ public function setFactoryReset(?\Fingerprint\ServerAPI\Model\FactoryResetResult } /** - * Gets jailbroken + * Gets jailbroken. + * * @return ?\Fingerprint\ServerAPI\Model\JailbrokenResult */ - public function getJailbroken(): ?\Fingerprint\ServerAPI\Model\JailbrokenResult + public function getJailbroken(): ?JailbrokenResult { return $this->container['jailbroken']; } /** - * Sets jailbroken + * Sets jailbroken. * * @param ?\Fingerprint\ServerAPI\Model\JailbrokenResult $jailbroken jailbroken * * @return $this */ - public function setJailbroken(?\Fingerprint\ServerAPI\Model\JailbrokenResult $jailbroken): self + public function setJailbroken(?JailbrokenResult $jailbroken): self { $this->container['jailbroken'] = $jailbroken; @@ -694,22 +714,23 @@ public function setJailbroken(?\Fingerprint\ServerAPI\Model\JailbrokenResult $ja } /** - * Gets frida + * Gets frida. + * * @return ?\Fingerprint\ServerAPI\Model\FridaResult */ - public function getFrida(): ?\Fingerprint\ServerAPI\Model\FridaResult + public function getFrida(): ?FridaResult { return $this->container['frida']; } /** - * Sets frida + * Sets frida. * * @param ?\Fingerprint\ServerAPI\Model\FridaResult $frida frida * * @return $this */ - public function setFrida(?\Fingerprint\ServerAPI\Model\FridaResult $frida): self + public function setFrida(?FridaResult $frida): self { $this->container['frida'] = $frida; @@ -717,22 +738,23 @@ public function setFrida(?\Fingerprint\ServerAPI\Model\FridaResult $frida): self } /** - * Gets ip_blocklist + * Gets ip_blocklist. + * * @return ?\Fingerprint\ServerAPI\Model\IpBlockListResult */ - public function getIpBlocklist(): ?\Fingerprint\ServerAPI\Model\IpBlockListResult + public function getIpBlocklist(): ?IpBlockListResult { return $this->container['ip_blocklist']; } /** - * Sets ip_blocklist + * Sets ip_blocklist. * * @param ?\Fingerprint\ServerAPI\Model\IpBlockListResult $ip_blocklist ip_blocklist * * @return $this */ - public function setIpBlocklist(?\Fingerprint\ServerAPI\Model\IpBlockListResult $ip_blocklist): self + public function setIpBlocklist(?IpBlockListResult $ip_blocklist): self { $this->container['ip_blocklist'] = $ip_blocklist; @@ -740,22 +762,23 @@ public function setIpBlocklist(?\Fingerprint\ServerAPI\Model\IpBlockListResult $ } /** - * Gets tor + * Gets tor. + * * @return ?\Fingerprint\ServerAPI\Model\TorResult */ - public function getTor(): ?\Fingerprint\ServerAPI\Model\TorResult + public function getTor(): ?TorResult { return $this->container['tor']; } /** - * Sets tor + * Sets tor. * * @param ?\Fingerprint\ServerAPI\Model\TorResult $tor tor * * @return $this */ - public function setTor(?\Fingerprint\ServerAPI\Model\TorResult $tor): self + public function setTor(?TorResult $tor): self { $this->container['tor'] = $tor; @@ -763,22 +786,23 @@ public function setTor(?\Fingerprint\ServerAPI\Model\TorResult $tor): self } /** - * Gets privacy_settings + * Gets privacy_settings. + * * @return ?\Fingerprint\ServerAPI\Model\PrivacySettingsResult */ - public function getPrivacySettings(): ?\Fingerprint\ServerAPI\Model\PrivacySettingsResult + public function getPrivacySettings(): ?PrivacySettingsResult { return $this->container['privacy_settings']; } /** - * Sets privacy_settings + * Sets privacy_settings. * * @param ?\Fingerprint\ServerAPI\Model\PrivacySettingsResult $privacy_settings privacy_settings * * @return $this */ - public function setPrivacySettings(?\Fingerprint\ServerAPI\Model\PrivacySettingsResult $privacy_settings): self + public function setPrivacySettings(?PrivacySettingsResult $privacy_settings): self { $this->container['privacy_settings'] = $privacy_settings; @@ -786,22 +810,23 @@ public function setPrivacySettings(?\Fingerprint\ServerAPI\Model\PrivacySettings } /** - * Gets virtual_machine + * Gets virtual_machine. + * * @return ?\Fingerprint\ServerAPI\Model\VirtualMachineResult */ - public function getVirtualMachine(): ?\Fingerprint\ServerAPI\Model\VirtualMachineResult + public function getVirtualMachine(): ?VirtualMachineResult { return $this->container['virtual_machine']; } /** - * Sets virtual_machine + * Sets virtual_machine. * * @param ?\Fingerprint\ServerAPI\Model\VirtualMachineResult $virtual_machine virtual_machine * * @return $this */ - public function setVirtualMachine(?\Fingerprint\ServerAPI\Model\VirtualMachineResult $virtual_machine): self + public function setVirtualMachine(?VirtualMachineResult $virtual_machine): self { $this->container['virtual_machine'] = $virtual_machine; @@ -809,22 +834,23 @@ public function setVirtualMachine(?\Fingerprint\ServerAPI\Model\VirtualMachineRe } /** - * Gets vpn + * Gets vpn. + * * @return ?\Fingerprint\ServerAPI\Model\VpnResult */ - public function getVpn(): ?\Fingerprint\ServerAPI\Model\VpnResult + public function getVpn(): ?VpnResult { return $this->container['vpn']; } /** - * Sets vpn + * Sets vpn. * * @param ?\Fingerprint\ServerAPI\Model\VpnResult $vpn vpn * * @return $this */ - public function setVpn(?\Fingerprint\ServerAPI\Model\VpnResult $vpn): self + public function setVpn(?VpnResult $vpn): self { $this->container['vpn'] = $vpn; @@ -832,22 +858,23 @@ public function setVpn(?\Fingerprint\ServerAPI\Model\VpnResult $vpn): self } /** - * Gets proxy + * Gets proxy. + * * @return ?\Fingerprint\ServerAPI\Model\ProxyResult */ - public function getProxy(): ?\Fingerprint\ServerAPI\Model\ProxyResult + public function getProxy(): ?ProxyResult { return $this->container['proxy']; } /** - * Sets proxy + * Sets proxy. * * @param ?\Fingerprint\ServerAPI\Model\ProxyResult $proxy proxy * * @return $this */ - public function setProxy(?\Fingerprint\ServerAPI\Model\ProxyResult $proxy): self + public function setProxy(?ProxyResult $proxy): self { $this->container['proxy'] = $proxy; @@ -855,22 +882,23 @@ public function setProxy(?\Fingerprint\ServerAPI\Model\ProxyResult $proxy): self } /** - * Gets tampering + * Gets tampering. + * * @return ?\Fingerprint\ServerAPI\Model\TamperingResult */ - public function getTampering(): ?\Fingerprint\ServerAPI\Model\TamperingResult + public function getTampering(): ?TamperingResult { return $this->container['tampering']; } /** - * Sets tampering + * Sets tampering. * * @param ?\Fingerprint\ServerAPI\Model\TamperingResult $tampering tampering * * @return $this */ - public function setTampering(?\Fingerprint\ServerAPI\Model\TamperingResult $tampering): self + public function setTampering(?TamperingResult $tampering): self { $this->container['tampering'] = $tampering; @@ -878,22 +906,23 @@ public function setTampering(?\Fingerprint\ServerAPI\Model\TamperingResult $tamp } /** - * Gets raw_device_attributes + * Gets raw_device_attributes. + * * @return ?\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult */ - public function getRawDeviceAttributes(): ?\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult + public function getRawDeviceAttributes(): ?RawDeviceAttributesResult { return $this->container['raw_device_attributes']; } /** - * Sets raw_device_attributes + * Sets raw_device_attributes. * * @param ?\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult $raw_device_attributes raw_device_attributes * * @return $this */ - public function setRawDeviceAttributes(?\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult $raw_device_attributes): self + public function setRawDeviceAttributes(?RawDeviceAttributesResult $raw_device_attributes): self { $this->container['raw_device_attributes'] = $raw_device_attributes; @@ -901,22 +930,23 @@ public function setRawDeviceAttributes(?\Fingerprint\ServerAPI\Model\RawDeviceAt } /** - * Gets high_activity + * Gets high_activity. + * * @return ?\Fingerprint\ServerAPI\Model\HighActivityResult */ - public function getHighActivity(): ?\Fingerprint\ServerAPI\Model\HighActivityResult + public function getHighActivity(): ?HighActivityResult { return $this->container['high_activity']; } /** - * Sets high_activity + * Sets high_activity. * * @param ?\Fingerprint\ServerAPI\Model\HighActivityResult $high_activity high_activity * * @return $this */ - public function setHighActivity(?\Fingerprint\ServerAPI\Model\HighActivityResult $high_activity): self + public function setHighActivity(?HighActivityResult $high_activity): self { $this->container['high_activity'] = $high_activity; @@ -924,22 +954,23 @@ public function setHighActivity(?\Fingerprint\ServerAPI\Model\HighActivityResult } /** - * Gets location_spoofing + * Gets location_spoofing. + * * @return ?\Fingerprint\ServerAPI\Model\LocationSpoofingResult */ - public function getLocationSpoofing(): ?\Fingerprint\ServerAPI\Model\LocationSpoofingResult + public function getLocationSpoofing(): ?LocationSpoofingResult { return $this->container['location_spoofing']; } /** - * Sets location_spoofing + * Sets location_spoofing. * * @param ?\Fingerprint\ServerAPI\Model\LocationSpoofingResult $location_spoofing location_spoofing * * @return $this */ - public function setLocationSpoofing(?\Fingerprint\ServerAPI\Model\LocationSpoofingResult $location_spoofing): self + public function setLocationSpoofing(?LocationSpoofingResult $location_spoofing): self { $this->container['location_spoofing'] = $location_spoofing; @@ -947,22 +978,23 @@ public function setLocationSpoofing(?\Fingerprint\ServerAPI\Model\LocationSpoofi } /** - * Gets suspect_score + * Gets suspect_score. + * * @return ?\Fingerprint\ServerAPI\Model\SuspectScoreResult */ - public function getSuspectScore(): ?\Fingerprint\ServerAPI\Model\SuspectScoreResult + public function getSuspectScore(): ?SuspectScoreResult { return $this->container['suspect_score']; } /** - * Sets suspect_score + * Sets suspect_score. * * @param ?\Fingerprint\ServerAPI\Model\SuspectScoreResult $suspect_score suspect_score * * @return $this */ - public function setSuspectScore(?\Fingerprint\ServerAPI\Model\SuspectScoreResult $suspect_score): self + public function setSuspectScore(?SuspectScoreResult $suspect_score): self { $this->container['suspect_score'] = $suspect_score; @@ -970,22 +1002,23 @@ public function setSuspectScore(?\Fingerprint\ServerAPI\Model\SuspectScoreResult } /** - * Gets remote_control + * Gets remote_control. + * * @return ?\Fingerprint\ServerAPI\Model\RemoteControlResult */ - public function getRemoteControl(): ?\Fingerprint\ServerAPI\Model\RemoteControlResult + public function getRemoteControl(): ?RemoteControlResult { return $this->container['remote_control']; } /** - * Sets remote_control + * Sets remote_control. * * @param ?\Fingerprint\ServerAPI\Model\RemoteControlResult $remote_control remote_control * * @return $this */ - public function setRemoteControl(?\Fingerprint\ServerAPI\Model\RemoteControlResult $remote_control): self + public function setRemoteControl(?RemoteControlResult $remote_control): self { $this->container['remote_control'] = $remote_control; @@ -993,22 +1026,23 @@ public function setRemoteControl(?\Fingerprint\ServerAPI\Model\RemoteControlResu } /** - * Gets velocity + * Gets velocity. + * * @return ?\Fingerprint\ServerAPI\Model\VelocityResult */ - public function getVelocity(): ?\Fingerprint\ServerAPI\Model\VelocityResult + public function getVelocity(): ?VelocityResult { return $this->container['velocity']; } /** - * Sets velocity + * Sets velocity. * * @param ?\Fingerprint\ServerAPI\Model\VelocityResult $velocity velocity * * @return $this */ - public function setVelocity(?\Fingerprint\ServerAPI\Model\VelocityResult $velocity): self + public function setVelocity(?VelocityResult $velocity): self { $this->container['velocity'] = $velocity; @@ -1016,22 +1050,23 @@ public function setVelocity(?\Fingerprint\ServerAPI\Model\VelocityResult $veloci } /** - * Gets developer_tools + * Gets developer_tools. + * * @return ?\Fingerprint\ServerAPI\Model\DeveloperToolsResult */ - public function getDeveloperTools(): ?\Fingerprint\ServerAPI\Model\DeveloperToolsResult + public function getDeveloperTools(): ?DeveloperToolsResult { return $this->container['developer_tools']; } /** - * Sets developer_tools + * Sets developer_tools. * * @param ?\Fingerprint\ServerAPI\Model\DeveloperToolsResult $developer_tools developer_tools * * @return $this */ - public function setDeveloperTools(?\Fingerprint\ServerAPI\Model\DeveloperToolsResult $developer_tools): self + public function setDeveloperTools(?DeveloperToolsResult $developer_tools): self { $this->container['developer_tools'] = $developer_tools; @@ -1039,8 +1074,7 @@ public function setDeveloperTools(?\Fingerprint\ServerAPI\Model\DeveloperToolsRe } /** - * Gets request_id - * @return string + * Gets request_id. */ public function getRequestId(): string { @@ -1048,9 +1082,9 @@ public function getRequestId(): string } /** - * Sets request_id + * Sets request_id. * - * @param string $request_id Unique identifier of the user's identification request. + * @param string $request_id unique identifier of the user's identification request * * @return $this */ @@ -1062,22 +1096,21 @@ public function setRequestId(string $request_id): self } /** - * Gets browser_details - * @return \Fingerprint\ServerAPI\Model\BrowserDetails + * Gets browser_details. */ - public function getBrowserDetails(): \Fingerprint\ServerAPI\Model\BrowserDetails + public function getBrowserDetails(): BrowserDetails { return $this->container['browser_details']; } /** - * Sets browser_details + * Sets browser_details. * - * @param \Fingerprint\ServerAPI\Model\BrowserDetails $browser_details browser_details + * @param BrowserDetails $browser_details browser_details * * @return $this */ - public function setBrowserDetails(\Fingerprint\ServerAPI\Model\BrowserDetails $browser_details): self + public function setBrowserDetails(BrowserDetails $browser_details): self { $this->container['browser_details'] = $browser_details; @@ -1085,8 +1118,7 @@ public function setBrowserDetails(\Fingerprint\ServerAPI\Model\BrowserDetails $b } /** - * Gets ip - * @return string + * Gets ip. */ public function getIp(): string { @@ -1094,7 +1126,7 @@ public function getIp(): string } /** - * Sets ip + * Sets ip. * * @param string $ip ip * @@ -1108,22 +1140,23 @@ public function setIp(string $ip): self } /** - * Gets ip_location + * Gets ip_location. + * * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ - public function getIpLocation(): ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation + public function getIpLocation(): ?DeprecatedIPLocation { return $this->container['ip_location']; } /** - * Sets ip_location + * Sets ip_location. * * @param ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation $ip_location ip_location * * @return $this */ - public function setIpLocation(?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation $ip_location): self + public function setIpLocation(?DeprecatedIPLocation $ip_location): self { $this->container['ip_location'] = $ip_location; @@ -1131,8 +1164,7 @@ public function setIpLocation(?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation } /** - * Gets timestamp - * @return int + * Gets timestamp. */ public function getTimestamp(): int { @@ -1140,9 +1172,9 @@ public function getTimestamp(): int } /** - * Sets timestamp + * Sets timestamp. * - * @param int $timestamp Timestamp of the event with millisecond precision in Unix time. + * @param int $timestamp timestamp of the event with millisecond precision in Unix time * * @return $this */ @@ -1154,8 +1186,7 @@ public function setTimestamp(int $timestamp): self } /** - * Gets time - * @return \DateTime + * Gets time. */ public function getTime(): \DateTime { @@ -1163,9 +1194,9 @@ public function getTime(): \DateTime } /** - * Sets time + * Sets time. * - * @param \DateTime $time Time expressed according to ISO 8601 in UTC format. + * @param \DateTime $time time expressed according to ISO 8601 in UTC format * * @return $this */ @@ -1177,8 +1208,7 @@ public function setTime(\DateTime $time): self } /** - * Gets url - * @return string + * Gets url. */ public function getUrl(): string { @@ -1186,9 +1216,9 @@ public function getUrl(): string } /** - * Sets url + * Sets url. * - * @param string $url Page URL from which the identification request was sent. + * @param string $url page URL from which the identification request was sent * * @return $this */ @@ -1200,7 +1230,8 @@ public function setUrl(string $url): self } /** - * Gets tag + * Gets tag. + * * @return ?map[string,object] */ public function getTag(): ?array @@ -1209,9 +1240,9 @@ public function getTag(): ?array } /** - * Sets tag + * Sets tag. * - * @param ?map[string,object] $tag A customer-provided value or an object that was sent with identification request. + * @param ?map[string,object] $tag A customer-provided value or an object that was sent with identification request * * @return $this */ @@ -1223,7 +1254,8 @@ public function setTag(?array $tag): self } /** - * Gets linked_id + * Gets linked_id. + * * @return ?string */ public function getLinkedId(): ?string @@ -1232,9 +1264,9 @@ public function getLinkedId(): ?string } /** - * Sets linked_id + * Sets linked_id. * - * @param ?string $linked_id A customer-provided id that was sent with identification request. + * @param ?string $linked_id a customer-provided id that was sent with identification request * * @return $this */ @@ -1246,22 +1278,23 @@ public function setLinkedId(?string $linked_id): self } /** - * Gets confidence + * Gets confidence. + * * @return ?\Fingerprint\ServerAPI\Model\Confidence */ - public function getConfidence(): ?\Fingerprint\ServerAPI\Model\Confidence + public function getConfidence(): ?Confidence { return $this->container['confidence']; } /** - * Sets confidence + * Sets confidence. * * @param ?\Fingerprint\ServerAPI\Model\Confidence $confidence confidence * * @return $this */ - public function setConfidence(?\Fingerprint\ServerAPI\Model\Confidence $confidence): self + public function setConfidence(?Confidence $confidence): self { $this->container['confidence'] = $confidence; @@ -1269,8 +1302,7 @@ public function setConfidence(?\Fingerprint\ServerAPI\Model\Confidence $confiden } /** - * Gets visitor_found - * @return bool + * Gets visitor_found. */ public function getVisitorFound(): bool { @@ -1278,9 +1310,9 @@ public function getVisitorFound(): bool } /** - * Sets visitor_found + * Sets visitor_found. * - * @param bool $visitor_found Attribute represents if a visitor had been identified before. + * @param bool $visitor_found attribute represents if a visitor had been identified before * * @return $this */ @@ -1292,22 +1324,21 @@ public function setVisitorFound(bool $visitor_found): self } /** - * Gets first_seen_at - * @return \Fingerprint\ServerAPI\Model\SeenAt + * Gets first_seen_at. */ - public function getFirstSeenAt(): \Fingerprint\ServerAPI\Model\SeenAt + public function getFirstSeenAt(): SeenAt { return $this->container['first_seen_at']; } /** - * Sets first_seen_at + * Sets first_seen_at. * - * @param \Fingerprint\ServerAPI\Model\SeenAt $first_seen_at first_seen_at + * @param SeenAt $first_seen_at first_seen_at * * @return $this */ - public function setFirstSeenAt(\Fingerprint\ServerAPI\Model\SeenAt $first_seen_at): self + public function setFirstSeenAt(SeenAt $first_seen_at): self { $this->container['first_seen_at'] = $first_seen_at; @@ -1315,31 +1346,31 @@ public function setFirstSeenAt(\Fingerprint\ServerAPI\Model\SeenAt $first_seen_a } /** - * Gets last_seen_at - * @return \Fingerprint\ServerAPI\Model\SeenAt + * Gets last_seen_at. */ - public function getLastSeenAt(): \Fingerprint\ServerAPI\Model\SeenAt + public function getLastSeenAt(): SeenAt { return $this->container['last_seen_at']; } /** - * Sets last_seen_at + * Sets last_seen_at. * - * @param \Fingerprint\ServerAPI\Model\SeenAt $last_seen_at last_seen_at + * @param SeenAt $last_seen_at last_seen_at * * @return $this */ - public function setLastSeenAt(\Fingerprint\ServerAPI\Model\SeenAt $last_seen_at): self + public function setLastSeenAt(SeenAt $last_seen_at): self { $this->container['last_seen_at'] = $last_seen_at; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetExists($offset): bool { @@ -1349,7 +1380,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetGet($offset): mixed { @@ -1359,8 +1390,8 @@ public function offsetGet($offset): mixed /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set */ public function offsetSet($offset, mixed $value): void { @@ -1374,27 +1405,10 @@ public function offsetSet($offset, mixed $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset */ public function offsetUnset($offset): void { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } }