From 950c2b7da42c5673ba125de94c0a16d5ada84ae9 Mon Sep 17 00:00:00 2001 From: Orkun Date: Wed, 4 Sep 2024 13:41:01 +0300 Subject: [PATCH 01/11] chore: fix release chain for php cs fixer --- generate_coverage_report.php | 56 +- run_checks.php | 47 +- scripts/generate.sh | 4 +- sealed_results_example.php | 9 +- 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 ++++++++--------- test/FingerprintApiTest.php | 329 +++--- test/Sealed/SealedTest.php | 33 +- test/WebhookVerifierTest.php | 39 +- 102 files changed, 11207 insertions(+), 11394 deletions(-) diff --git a/generate_coverage_report.php b/generate_coverage_report.php index 98ad057b..8a8bb960 100644 --- a/generate_coverage_report.php +++ b/generate_coverage_report.php @@ -1,43 +1,45 @@ 0 ? ($statementsCovered / $statementsTotal) * 100 : 0; -$functionsCovered = (int)$metrics["coveredmethods"]; -$functionsTotal = (int)$metrics["methods"]; +$functionsCovered = (int) $metrics['coveredmethods']; +$functionsTotal = (int) $metrics['methods']; $functionsPct = $functionsTotal > 0 ? ($functionsCovered / $functionsTotal) * 100 : 0; // Function to return color based on percentage -function getCoverageStatus($percentage) { +function getCoverageStatus($percentage) +{ if ($percentage >= 80) { - return ":green_circle:"; - } elseif ($percentage >= 50) { - return ":yellow_circle:"; - } else { - return ":red_circle:"; + return ':green_circle:'; } + if ($percentage >= 50) { + return ':yellow_circle:'; + } + + return ':red_circle:'; } // Generate JSON report $map = [ - "total" => [ - "statements" => ["pct" => number_format($statementsPct, 2)], - ] + 'total' => [ + 'statements' => ['pct' => number_format($statementsPct, 2)], + ], ]; -file_put_contents($outputPath . "index.json", json_encode($map)); +file_put_contents($outputPath.'index.json', json_encode($map)); // Generate Markdown report $markdown = "# Code Coverage Report\n\n"; @@ -64,15 +66,15 @@ function getCoverageStatus($percentage) { $markdown .= "| St. | File | Methods | Statements | Total Coverage |\n"; $markdown .= "|-----|------|---------|------------|----------------|\n"; -foreach ($arr["project"]["file"] as $file) { - $filePath = 'src/' . explode('src/', $file["@attributes"]['name'])[1]; - $fileMetrics = $file["metrics"]["@attributes"]; +foreach ($arr['project']['file'] as $file) { + $filePath = 'src/'.explode('src/', $file['@attributes']['name'])[1]; + $fileMetrics = $file['metrics']['@attributes']; - $methodsPct = $fileMetrics["methods"] > 0 ? ($fileMetrics["coveredmethods"] / $fileMetrics["methods"]) * 100 : 0; - $statementsPct = $fileMetrics["statements"] > 0 ? ($fileMetrics["coveredstatements"] / $fileMetrics["statements"]) * 100 : 0; + $methodsPct = $fileMetrics['methods'] > 0 ? ($fileMetrics['coveredmethods'] / $fileMetrics['methods']) * 100 : 0; + $statementsPct = $fileMetrics['statements'] > 0 ? ($fileMetrics['coveredstatements'] / $fileMetrics['statements']) * 100 : 0; - $fileElements = (int)$fileMetrics["elements"]; - $fileCoveredElements = (int)$fileMetrics["coveredelements"]; + $fileElements = (int) $fileMetrics['elements']; + $fileCoveredElements = (int) $fileMetrics['coveredelements']; $totalCoveragePct = $fileElements > 0 ? ($fileCoveredElements / $fileElements) * 100 : 0; $markdown .= sprintf( @@ -87,4 +89,4 @@ function getCoverageStatus($percentage) { $markdown .= "\n\n"; -file_put_contents($markdownPath . "coverage_report.md", $markdown); \ No newline at end of file +file_put_contents($markdownPath.'coverage_report.md', $markdown); diff --git a/run_checks.php b/run_checks.php index 4cb7e7c2..41f4fc82 100644 --- a/run_checks.php +++ b/run_checks.php @@ -1,29 +1,28 @@ safeLoad(); - -$api_key = $_ENV['FP_PRIVATE_API_KEY'] ?? getenv('FP_PRIVATE_API_KEY') ?? "Private API Key not defined"; -$visitor_id = $_ENV['FP_VISITOR_ID'] ?? getenv('FP_VISITOR_ID') ?? "Visitor ID not defined"; -$request_id = $_ENV['FP_REQUEST_ID'] ?? getenv('FP_REQUEST_ID') ?? "Request ID not defined"; -$region_env = $_ENV['FP_REGION'] ?? getenv('FP_REGION') ?? "us"; +$api_key = $_ENV['FP_PRIVATE_API_KEY'] ?? getenv('FP_PRIVATE_API_KEY') ?? 'Private API Key not defined'; +$visitor_id = $_ENV['FP_VISITOR_ID'] ?? getenv('FP_VISITOR_ID') ?? 'Visitor ID not defined'; +$request_id = $_ENV['FP_REQUEST_ID'] ?? getenv('FP_REQUEST_ID') ?? 'Request ID not defined'; +$region_env = $_ENV['FP_REGION'] ?? getenv('FP_REGION') ?? 'us'; $region = Configuration::REGION_GLOBAL; -if ($region_env === 'eu') { +if ('eu' === $region_env) { $region = Configuration::REGION_EUROPE; -} else if ($region_env === 'ap') { +} elseif ('ap' === $region_env) { $region = Configuration::REGION_ASIA; } @@ -44,59 +43,64 @@ try { list($result, $response) = $client->getVisits($visitor_id); - if($result->getVisitorId() !== $visitor_id) { + if ($result->getVisitorId() !== $visitor_id) { throw new Exception('Argument visitorId is not equal to deserialized getVisitorId'); } fwrite(STDOUT, sprintf("Got visits: %s \n", $response->getBody()->getContents())); } catch (Exception $e) { fwrite(STDERR, sprintf("Exception when calling FingerprintApi->getVisits: %s\n", $e->getMessage())); + exit(1); } try { - /** @var $result \Fingerprint\ServerAPI\Model\EventResponse */ + /** @var \Fingerprint\ServerAPI\Model\EventResponse $result */ list($result, $response) = $client->getEvent($request_id); - if($result->getProducts()->getIdentification()->getData()->getRequestId() !== $request_id) { + if ($result->getProducts()->getIdentification()->getData()->getRequestId() !== $request_id) { throw new Exception('Argument requestId is not equal to deserialized getRequestId'); } fwrite(STDOUT, sprintf("\n\nGot event: %s \n", $response->getBody()->getContents())); } catch (Exception $e) { fwrite(STDERR, sprintf("\n\nException when calling FingerprintApi->getVisits: %s\n", $e->getMessage())); + exit(1); } $eventPromise = $client->getEventAsync($request_id); -$eventPromise->then(function ($tuple) use($request_id) { +$eventPromise->then(function ($tuple) use ($request_id) { list($result, $response) = $tuple; - if($result->getProducts()->getIdentification()->getData()->getRequestId() !== $request_id) { + if ($result->getProducts()->getIdentification()->getData()->getRequestId() !== $request_id) { throw new Exception('Argument requestId is not equal to deserialized getRequestId'); } fwrite(STDOUT, sprintf("\n\nGot async event: %s \n", $response->getBody()->getContents())); -}, function($exception) { +}, function ($exception) { fwrite(STDERR, sprintf("\n\nException when calling FingerprintApi->getVisits: %s\n", $exception->getMessage())); + exit(1); })->wait(); $visitsPromise = $client->getVisitsAsync($visitor_id); -$visitsPromise->then(function($tuple) use($visitor_id) { +$visitsPromise->then(function ($tuple) use ($visitor_id) { list($result, $response) = $tuple; - if($result->getVisitorId() !== $visitor_id) { + if ($result->getVisitorId() !== $visitor_id) { throw new Exception('Argument visitorId is not equal to deserialized getVisitorId'); } fwrite(STDOUT, sprintf("\n\nGot async visits: %s \n", $response->getBody()->getContents())); }, function ($exception) { fwrite(STDERR, sprintf("\n\nException when calling FingerprintApi->getVisits: %s\n", $exception->getMessage())); + exit(1); })->wait(); -$webhookSecret = "secret"; -$webhookData = "data"; -$webhookHeader = "v1=1b2c16b75bd2a870c114153ccda5bcfca63314bc722fa160d690de133ccbb9db"; +$webhookSecret = 'secret'; +$webhookData = 'data'; +$webhookHeader = 'v1=1b2c16b75bd2a870c114153ccda5bcfca63314bc722fa160d690de133ccbb9db'; $isValidWebhookSign = WebhookVerifier::IsValidWebhookSignature($webhookHeader, $webhookData, $webhookSecret); -if($isValidWebhookSign) { +if ($isValidWebhookSign) { fwrite(STDOUT, sprintf("\n\nVerified webhook signature\n")); } else { fwrite(STDERR, sprintf("\n\nWebhook signature verification failed\n")); + exit(1); } @@ -104,4 +108,5 @@ error_reporting(error_reporting() | E_DEPRECATED); fwrite(STDOUT, "\n\nChecks passed\n"); + exit(0); diff --git a/scripts/generate.sh b/scripts/generate.sh index 90e9d983..9113d8af 100755 --- a/scripts/generate.sh +++ b/scripts/generate.sh @@ -40,9 +40,7 @@ rm -f ./src/Model/* java -jar ./bin/swagger-codegen-cli.jar generate -t ./template -l php -i ./res/fingerprint-server-api.yaml -o ./ -c config.json -if [ -z "$GITHUB_ACTIONS" ]; then - docker-compose run --rm lint -fi +docker run --rm -v $(pwd):/code ghcr.io/php-cs-fixer/php-cs-fixer:${FIXER_VERSION:-3-php8.3} fix # fix invalid code generated for structure with additionalProperties ( diff --git a/sealed_results_example.php b/sealed_results_example.php index 7db66137..d8b4998f 100644 --- a/sealed_results_example.php +++ b/sealed_results_example.php @@ -4,14 +4,13 @@ use Fingerprint\ServerAPI\Sealed\DecryptionKey; use Fingerprint\ServerAPI\Sealed\Sealed; -require_once(__DIR__ . '/vendor/autoload.php'); +require_once __DIR__.'/vendor/autoload.php'; $dotenv = Dotenv\Dotenv::createImmutable(__DIR__); $dotenv->safeLoad(); -$sealed_result = base64_decode($_ENV['BASE64_SEALED_RESULT'] ?? getenv('BASE64_SEALED_RESULT') ?? ""); -$sealed_key = base64_decode($_ENV['BASE64_KEY'] ?? getenv('BASE64_KEY') ?? ""); - +$sealed_result = base64_decode($_ENV['BASE64_SEALED_RESULT'] ?? getenv('BASE64_SEALED_RESULT') ?? ''); +$sealed_key = base64_decode($_ENV['BASE64_KEY'] ?? getenv('BASE64_KEY') ?? ''); // Temporarily suppress a million deprecated ArrayAccess return type warnings for readability // Our SDK generator does not yet support PHP's new attributes system @@ -24,6 +23,7 @@ fwrite(STDOUT, sprintf("Unsealed event: %s \n", $data)); } catch (Exception $e) { fwrite(STDERR, sprintf("Exception when unsealing event: %s\n", $e->getMessage())); + exit(1); } @@ -31,4 +31,5 @@ error_reporting(error_reporting() | E_DEPRECATED); fwrite(STDOUT, "Checks passed\n"); + exit(0); diff --git a/src/Api/FingerprintApi.php b/src/Api/FingerprintApi.php index 3244696b..da1e2e45 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 2da2b9a9..c2b39f73 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: 5.0.0' . 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: 5.0.0'.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)); - } } diff --git a/test/FingerprintApiTest.php b/test/FingerprintApiTest.php index b1f7e580..9967fee0 100644 --- a/test/FingerprintApiTest.php +++ b/test/FingerprintApiTest.php @@ -17,17 +17,18 @@ use Fingerprint\ServerAPI\Model\TooManyRequestsResponse; use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; -use GuzzleHttp\Exception\GuzzleException; use GuzzleHttp\Handler\MockHandler; use GuzzleHttp\HandlerStack; use GuzzleHttp\Psr7\Response; use PHPUnit\Framework\TestCase; +/** + * @internal + * + * @coversNothing + */ class FingerprintApiTest extends TestCase { - /** @var FingerprintApi */ - protected $fingerprint_api; - public const MOCK_REQUEST_ID = '1708102555327.NLOjmg'; public const MOCK_REQUEST_ID_WITH_UNKNOWN = 'UNKNOWN_FIELD_REQUEST_ID'; public const MOCK_REQUEST_ID_WITH_BROKEN = 'BROKEN_FIELD_REQUEST_ID'; @@ -46,17 +47,12 @@ class FingerprintApiTest extends TestCase public const MOCK_EVENT_ID = 'MOCK_EVENT_ID'; public const MOCK_EVENT_ID_400_ERROR = 'EVENT_ID_400_ERROR'; + /** @var FingerprintApi */ + protected $fingerprint_api; + protected ClientInterface $client; protected MockHandler $mockHandler; - protected function getVersion() - { - $config_file = file_get_contents(__DIR__ . '/../composer.json'); - $config = json_decode($config_file, true); - - return $config['version']; - } - public function setUp(): void { $this->mockHandler = new MockHandler(); @@ -64,106 +60,6 @@ public function setUp(): void $this->fingerprint_api = new FingerprintApi($this->client); } - protected function getMockResponse(string $mockId, string $method = "GET", ?string $operationId = null): Response - { - $mock_name = ""; - $status = 200; - $headers = [ - 'Content-Type' => 'application/json', - ]; - - if ($method === "GET" || $method === "DELETE") { - switch ($mockId) { - case self::MOCK_REQUEST_ID: - $mock_name = 'get_event_200.json'; - break; - case self::MOCK_REQUEST_ALL_ERRORS: - $mock_name = 'get_event_200_all_errors.json'; - break; - case self::MOCK_REQUEST_EXTRA_FIELDS: - $mock_name = 'get_event_200_extra_fields.json'; - break; - case self::MOCK_REQUEST_ID_WITH_UNKNOWN: - $mock_name = 'get_event_200_with_unknown_field.json'; - break; - case self::MOCK_REQUEST_ID_WITH_BROKEN: - $mock_name = 'get_event_200_with_broken_format.json'; - break; - case self::MOCK_EVENT_ID_403_ERROR: - $mock_name = 'get_event_403_error.json'; - $status = 403; - break; - case self::MOCK_EVENT_ID_404_ERROR: - $mock_name = 'get_event_404_error.json'; - $status = 404; - break; - case self::MOCK_EVENT_ID_400_ERROR: - $mock_name = 'update_event_400_error.json'; - $status = 400; - break; - case self::MOCK_VISITOR_ID: - $mock_name = 'get_visits_200_limit_500.json'; - break; - case self::MOCK_VISITOR_REQUEST_ID: - $mock_name = "get_visits_200_limit_1.json"; - break; - case self::MOCK_VISITOR_ID_403_ERROR: - $mock_name = 'get_visits_403_error.json'; - $status = 403; - break; - case self::MOCK_VISITOR_ID_429_ERROR: - $mock_name = 'get_visits_429_too_many_requests_error.json'; - $status = 429; - $headers['retry-after'] = 30; - break; - case self::MOCK_VISITOR_ID_400_ERROR: - $mock_name = "400_error_incorrect_visitor_id.json"; - $status = 400; - break; - case self::MOCK_VISITOR_ID_404_ERROR: - $mock_name = "404_error_visitor_not_found.json"; - $status = 404; - break; - } - } - - if ($method === "PUT") { - switch ($mockId) { - case self::MOCK_EVENT_ID: - default: - $mock_name = "update_event.json"; - break; - case self::MOCK_EVENT_ID_409_ERROR: - $status = 409; - $mock_name = "update_event_409_error.json"; - break; - case self::MOCK_EVENT_ID_404_ERROR: - $status = 404; - $mock_name = "update_event_404_error.json"; - break; - case self::MOCK_EVENT_ID_403_ERROR: - $status = 403; - $mock_name = "update_event_403_error.json"; - break; - case self::MOCK_EVENT_ID_400_ERROR: - $status = 400; - $mock_name = "update_event_400_error.json"; - break; - } - } - - $contents = file_get_contents(__DIR__ . "/mocks/$mock_name"); - if ($operationId) { - $visits_mock_data = json_decode($contents); - $visits_mock_data->visits = array_filter($visits_mock_data->visits, function ($item) use ($operationId) { - return isset($item->requestId) && $item->requestId === $operationId; - }); - $contents = json_encode($visits_mock_data); - } - - return new Response($status, $headers, $contents); - } - public function testGetEvent() { $this->mockHandler->reset(); @@ -278,7 +174,7 @@ public function testGetVisits() public function testGetVisitsByRequestId() { $this->mockHandler->reset(); - $this->mockHandler->append($this->getMockResponse(self::MOCK_VISITOR_ID, "GET", self::MOCK_VISITOR_REQUEST_ID)); + $this->mockHandler->append($this->getMockResponse(self::MOCK_VISITOR_ID, 'GET', self::MOCK_VISITOR_REQUEST_ID)); list($visits, $response) = $this->fingerprint_api->getVisits(self::MOCK_VISITOR_ID, self::MOCK_VISITOR_REQUEST_ID); foreach ($visits->getVisits() as $visit) { @@ -303,7 +199,7 @@ public function testGetEventRawResponse() $this->mockHandler->append($this->getMockResponse(self::MOCK_REQUEST_ID)); list($event, $response) = $this->fingerprint_api->getEvent(self::MOCK_REQUEST_ID); - $mockedResult = \GuzzleHttp\json_decode(file_get_contents(__DIR__ . "/mocks/get_event_200.json")); + $mockedResult = \GuzzleHttp\json_decode(file_get_contents(__DIR__.'/mocks/get_event_200.json')); $this->assertEquals($mockedResult, \GuzzleHttp\json_decode($response->getBody()->getContents())); } @@ -313,7 +209,7 @@ public function testGetVisitsRawResponse() $this->mockHandler->append($this->getMockResponse(self::MOCK_VISITOR_ID)); list($visits, $response) = $this->fingerprint_api->getVisits(self::MOCK_VISITOR_ID); - $mockedResult = \GuzzleHttp\json_decode(file_get_contents(__DIR__ . "/mocks/get_visits_200_limit_500.json")); + $mockedResult = \GuzzleHttp\json_decode(file_get_contents(__DIR__.'/mocks/get_visits_200_limit_500.json')); $this->assertEquals($mockedResult, \GuzzleHttp\json_decode($response->getBody()->getContents())); } @@ -333,10 +229,10 @@ public function testGetUnknownFieldFromEvent() list($event, $response) = $this->fingerprint_api->getEvent(self::MOCK_REQUEST_ID_WITH_UNKNOWN); $responseBody = \GuzzleHttp\json_decode($response->getBody()->getContents()); - $this->assertEquals("field", $responseBody->unknown); - $this->assertEquals("field", $responseBody->products->unknown); - $this->assertEquals("field", $responseBody->products->identification->unknown); - $this->assertEquals("field", $responseBody->products->identification->data->unknown); + $this->assertEquals('field', $responseBody->unknown); + $this->assertEquals('field', $responseBody->products->unknown); + $this->assertEquals('field', $responseBody->products->identification->unknown); + $this->assertEquals('field', $responseBody->products->identification->data->unknown); } public function testGetBrokenFormatEvent() @@ -354,13 +250,13 @@ public function testGetBrokenFormatEvent() $this->assertNull($event); $this->assertNotNull($responseBody); - $this->assertEquals("format", $responseBody->products->identification->data->linkedId->broken); + $this->assertEquals('format', $responseBody->products->identification->data->linkedId->broken); } public function testDeleteVisitorData() { $this->mockHandler->reset(); - $this->mockHandler->append($this->getMockResponse(self::MOCK_VISITOR_ID, "DELETE")); + $this->mockHandler->append($this->getMockResponse(self::MOCK_VISITOR_ID, 'DELETE')); list($result, $response) = $this->fingerprint_api->deleteVisitorData(self::MOCK_VISITOR_ID); $this->assertEquals(200, $response->getStatusCode()); @@ -378,6 +274,7 @@ public function testGetVisits403Error() $this->fingerprint_api->getVisits(self::MOCK_VISITOR_ID_403_ERROR); } catch (ApiException $e) { $this->assertEquals(ErrorVisits403::class, get_class($e->getErrorDetails())); + throw $e; } } @@ -395,6 +292,7 @@ public function testGetVisits429Error() } catch (ApiException $e) { $this->assertEquals(TooManyRequestsResponse::class, get_class($e->getErrorDetails())); $this->assertEquals(30, $e->getRetryAfter()); + throw $e; } } @@ -411,6 +309,7 @@ public function testGetEvent403Error() $this->fingerprint_api->getEvent(self::MOCK_EVENT_ID_403_ERROR); } catch (ApiException $e) { $this->assertEquals(ErrorCommon403Response::class, get_class($e->getErrorDetails())); + throw $e; } } @@ -427,8 +326,9 @@ public function testGetEvent404Error() $this->fingerprint_api->getEvent(self::MOCK_EVENT_ID_404_ERROR); } catch (ApiException $e) { $this->assertEquals(ErrorEvent404Response::class, get_class($e->getErrorDetails())); - $this->assertEquals("request id is not found", $e->getErrorDetails()->getError()->getMessage()); - $this->assertEquals("RequestNotFound", $e->getErrorDetails()->getError()->getCode()); + $this->assertEquals('request id is not found', $e->getErrorDetails()->getError()->getMessage()); + $this->assertEquals('RequestNotFound', $e->getErrorDetails()->getError()->getCode()); + throw $e; } } @@ -436,18 +336,18 @@ public function testGetEvent404Error() public function testDeleteVisitorData400Error() { $this->mockHandler->reset(); - $this->mockHandler->append($this->getMockResponse(self::MOCK_VISITOR_ID_400_ERROR, "DELETE")); + $this->mockHandler->append($this->getMockResponse(self::MOCK_VISITOR_ID_400_ERROR, 'DELETE')); $this->expectException(ApiException::class); $this->expectExceptionCode(400); try { - $this->fingerprint_api->deleteVisitorData(self::MOCK_VISITOR_ID_400_ERROR); } catch (ApiException $e) { $this->assertEquals(ErrorVisitor400Response::class, get_class($e->getErrorDetails())); - $this->assertEquals("invalid visitor id", $e->getErrorDetails()->getError()->getMessage()); - $this->assertEquals("RequestCannotBeParsed", $e->getErrorDetails()->getError()->getCode()); + $this->assertEquals('invalid visitor id', $e->getErrorDetails()->getError()->getMessage()); + $this->assertEquals('RequestCannotBeParsed', $e->getErrorDetails()->getError()->getCode()); + throw $e; } } @@ -455,7 +355,7 @@ public function testDeleteVisitorData400Error() public function testDeleteVisitorData403Error() { $this->mockHandler->reset(); - $this->mockHandler->append($this->getMockResponse(self::MOCK_VISITOR_ID_403_ERROR, "DELETE")); + $this->mockHandler->append($this->getMockResponse(self::MOCK_VISITOR_ID_403_ERROR, 'DELETE')); $this->expectException(ApiException::class); $this->expectExceptionCode(403); @@ -464,6 +364,7 @@ public function testDeleteVisitorData403Error() $this->fingerprint_api->deleteVisitorData(self::MOCK_VISITOR_ID_403_ERROR); } catch (ApiException $e) { $this->assertEquals(ErrorCommon403Response::class, get_class($e->getErrorDetails())); + throw $e; } } @@ -471,7 +372,7 @@ public function testDeleteVisitorData403Error() public function testDeleteVisitorData404Error() { $this->mockHandler->reset(); - $this->mockHandler->append($this->getMockResponse(self::MOCK_VISITOR_ID_404_ERROR, "DELETE")); + $this->mockHandler->append($this->getMockResponse(self::MOCK_VISITOR_ID_404_ERROR, 'DELETE')); $this->expectException(ApiException::class); $this->expectExceptionCode(404); @@ -480,7 +381,7 @@ public function testDeleteVisitorData404Error() $this->fingerprint_api->deleteVisitorData(self::MOCK_VISITOR_ID_404_ERROR); } catch (ApiException $e) { $this->assertEquals(ErrorVisitor404Response::class, get_class($e->getErrorDetails())); - $this->assertEquals("VisitorNotFound", $e->getErrorDetails()->getError()->getCode()); + $this->assertEquals('VisitorNotFound', $e->getErrorDetails()->getError()->getCode()); throw $e; } @@ -489,7 +390,7 @@ public function testDeleteVisitorData404Error() public function testDeleteVisitorData429Error() { $this->mockHandler->reset(); - $this->mockHandler->append($this->getMockResponse(self::MOCK_VISITOR_ID_429_ERROR, "DELETE")); + $this->mockHandler->append($this->getMockResponse(self::MOCK_VISITOR_ID_429_ERROR, 'DELETE')); $this->expectException(ApiException::class); $this->expectExceptionCode(429); @@ -499,6 +400,7 @@ public function testDeleteVisitorData429Error() } catch (ApiException $e) { $this->assertEquals(ErrorCommon429Response::class, get_class($e->getErrorDetails())); $this->assertEquals(30, $e->getRetryAfter()); + throw $e; } } @@ -506,7 +408,7 @@ public function testDeleteVisitorData429Error() public function testUpdateEvent400Error() { $this->mockHandler->reset(); - $this->mockHandler->append($this->getMockResponse(self::MOCK_EVENT_ID_400_ERROR, "PUT")); + $this->mockHandler->append($this->getMockResponse(self::MOCK_EVENT_ID_400_ERROR, 'PUT')); $this->expectException(ApiException::class); $this->expectExceptionCode(400); @@ -515,7 +417,8 @@ public function testUpdateEvent400Error() $this->fingerprint_api->updateEvent(new EventUpdateRequest([]), self::MOCK_EVENT_ID_400_ERROR); } catch (ApiException $e) { $this->assertEquals(ErrorUpdateEvent400Response::class, get_class($e->getErrorDetails())); - $this->assertEquals("RequestCannotBeParsed", $e->getErrorDetails()->getError()->getCode()); + $this->assertEquals('RequestCannotBeParsed', $e->getErrorDetails()->getError()->getCode()); + throw $e; } } @@ -523,8 +426,7 @@ public function testUpdateEvent400Error() public function testUpdateEvent403Error() { $this->mockHandler->reset(); - $this->mockHandler->append($this->getMockResponse(self::MOCK_EVENT_ID_403_ERROR, "PUT")); - + $this->mockHandler->append($this->getMockResponse(self::MOCK_EVENT_ID_403_ERROR, 'PUT')); $this->expectException(ApiException::class); $this->expectExceptionCode(403); @@ -533,7 +435,8 @@ public function testUpdateEvent403Error() $this->fingerprint_api->updateEvent(new EventUpdateRequest([]), self::MOCK_EVENT_ID_403_ERROR); } catch (ApiException $e) { $this->assertEquals(ErrorCommon403Response::class, get_class($e->getErrorDetails())); - $this->assertEquals("TokenRequired", $e->getErrorDetails()->getError()->getCode()); + $this->assertEquals('TokenRequired', $e->getErrorDetails()->getError()->getCode()); + throw $e; } } @@ -541,7 +444,7 @@ public function testUpdateEvent403Error() public function testUpdateEvent404Error() { $this->mockHandler->reset(); - $this->mockHandler->append($this->getMockResponse(self::MOCK_EVENT_ID_404_ERROR, "PUT")); + $this->mockHandler->append($this->getMockResponse(self::MOCK_EVENT_ID_404_ERROR, 'PUT')); $this->expectException(ApiException::class); $this->expectExceptionCode(404); @@ -550,7 +453,8 @@ public function testUpdateEvent404Error() $this->fingerprint_api->updateEvent(new EventUpdateRequest([]), self::MOCK_EVENT_ID_404_ERROR); } catch (ApiException $e) { $this->assertEquals(ErrorEvent404Response::class, get_class($e->getErrorDetails())); - $this->assertEquals("RequestNotFound", $e->getErrorDetails()->getError()->getCode()); + $this->assertEquals('RequestNotFound', $e->getErrorDetails()->getError()->getCode()); + throw $e; } } @@ -558,7 +462,7 @@ public function testUpdateEvent404Error() public function testUpdateEvent409Error() { $this->mockHandler->reset(); - $this->mockHandler->append($this->getMockResponse(self::MOCK_EVENT_ID_409_ERROR, "PUT")); + $this->mockHandler->append($this->getMockResponse(self::MOCK_EVENT_ID_409_ERROR, 'PUT')); $this->expectException(ApiException::class); $this->expectExceptionCode(409); @@ -567,8 +471,153 @@ public function testUpdateEvent409Error() $this->fingerprint_api->updateEvent(new EventUpdateRequest([]), self::MOCK_EVENT_ID_409_ERROR); } catch (ApiException $e) { $this->assertEquals(ErrorUpdateEvent409Response::class, get_class($e->getErrorDetails())); - $this->assertEquals("StateNotReady", $e->getErrorDetails()->getError()->getCode()); + $this->assertEquals('StateNotReady', $e->getErrorDetails()->getError()->getCode()); + throw $e; } } + + protected function getVersion() + { + $config_file = file_get_contents(__DIR__.'/../composer.json'); + $config = json_decode($config_file, true); + + return $config['version']; + } + + protected function getMockResponse(string $mockId, string $method = 'GET', ?string $operationId = null): Response + { + $mock_name = ''; + $status = 200; + $headers = [ + 'Content-Type' => 'application/json', + ]; + + if ('GET' === $method || 'DELETE' === $method) { + switch ($mockId) { + case self::MOCK_REQUEST_ID: + $mock_name = 'get_event_200.json'; + + break; + + case self::MOCK_REQUEST_ALL_ERRORS: + $mock_name = 'get_event_200_all_errors.json'; + + break; + + case self::MOCK_REQUEST_EXTRA_FIELDS: + $mock_name = 'get_event_200_extra_fields.json'; + + break; + + case self::MOCK_REQUEST_ID_WITH_UNKNOWN: + $mock_name = 'get_event_200_with_unknown_field.json'; + + break; + + case self::MOCK_REQUEST_ID_WITH_BROKEN: + $mock_name = 'get_event_200_with_broken_format.json'; + + break; + + case self::MOCK_EVENT_ID_403_ERROR: + $mock_name = 'get_event_403_error.json'; + $status = 403; + + break; + + case self::MOCK_EVENT_ID_404_ERROR: + $mock_name = 'get_event_404_error.json'; + $status = 404; + + break; + + case self::MOCK_EVENT_ID_400_ERROR: + $mock_name = 'update_event_400_error.json'; + $status = 400; + + break; + + case self::MOCK_VISITOR_ID: + $mock_name = 'get_visits_200_limit_500.json'; + + break; + + case self::MOCK_VISITOR_REQUEST_ID: + $mock_name = 'get_visits_200_limit_1.json'; + + break; + + case self::MOCK_VISITOR_ID_403_ERROR: + $mock_name = 'get_visits_403_error.json'; + $status = 403; + + break; + + case self::MOCK_VISITOR_ID_429_ERROR: + $mock_name = 'get_visits_429_too_many_requests_error.json'; + $status = 429; + $headers['retry-after'] = 30; + + break; + + case self::MOCK_VISITOR_ID_400_ERROR: + $mock_name = '400_error_incorrect_visitor_id.json'; + $status = 400; + + break; + + case self::MOCK_VISITOR_ID_404_ERROR: + $mock_name = '404_error_visitor_not_found.json'; + $status = 404; + + break; + } + } + + if ('PUT' === $method) { + switch ($mockId) { + case self::MOCK_EVENT_ID: + default: + $mock_name = 'update_event.json'; + + break; + + case self::MOCK_EVENT_ID_409_ERROR: + $status = 409; + $mock_name = 'update_event_409_error.json'; + + break; + + case self::MOCK_EVENT_ID_404_ERROR: + $status = 404; + $mock_name = 'update_event_404_error.json'; + + break; + + case self::MOCK_EVENT_ID_403_ERROR: + $status = 403; + $mock_name = 'update_event_403_error.json'; + + break; + + case self::MOCK_EVENT_ID_400_ERROR: + $status = 400; + $mock_name = 'update_event_400_error.json'; + + break; + } + } + + $contents = file_get_contents(__DIR__."/mocks/{$mock_name}"); + if ($operationId) { + $visits_mock_data = json_decode($contents); + $visits_mock_data->visits = array_filter($visits_mock_data->visits, function ($item) use ($operationId) { + return isset($item->requestId) && $item->requestId === $operationId; + }); + $contents = json_encode($visits_mock_data); + } + + return new Response($status, $headers, $contents); + } } diff --git a/test/Sealed/SealedTest.php b/test/Sealed/SealedTest.php index 6c9dedb7..3e5f0edd 100644 --- a/test/Sealed/SealedTest.php +++ b/test/Sealed/SealedTest.php @@ -2,7 +2,6 @@ namespace Fingerprint\ServerAPI\Sealed; -use DateTime; use Fingerprint\ServerAPI\Model\BotdDetectionResult; use Fingerprint\ServerAPI\Model\BrowserDetails; use Fingerprint\ServerAPI\Model\Confidence; @@ -12,11 +11,17 @@ use GuzzleHttp\Psr7\Response; use PHPUnit\Framework\TestCase; +/** + * @internal + * + * @coversNothing + */ class SealedTest extends TestCase { - public const VALID_KEY = "p2PA7MGy5tx56cnyJaFZMr96BCFwZeHjZV2EqMvTq53="; - public const INVALID_KEY = "p2PA7MGy5tx56cnyJaFZMr96BCFwZeHjZV2EqMvTq54="; - public const SEALED_RESULT = "noXc7SXO+mqeAGrvBMgObi/S0fXTpP3zupk8qFqsO/1zdtWCD169iLA3VkkZh9ICHpZ0oWRzqG0M9/TnCeKFohgBLqDp6O0zEfXOv6i5q++aucItznQdLwrKLP+O0blfb4dWVI8/aSbd4ELAZuJJxj9bCoVZ1vk+ShbUXCRZTD30OIEAr3eiG9aw00y1UZIqMgX6CkFlU9L9OnKLsNsyomPIaRHTmgVTI5kNhrnVNyNsnzt9rY7fUD52DQxJILVPrUJ1Q+qW7VyNslzGYBPG0DyYlKbRAomKJDQIkdj/Uwa6bhSTq4XYNVvbk5AJ/dGwvsVdOnkMT2Ipd67KwbKfw5bqQj/cw6bj8Cp2FD4Dy4Ud4daBpPRsCyxBM2jOjVz1B/lAyrOp8BweXOXYugwdPyEn38MBZ5oL4D38jIwR/QiVnMHpERh93jtgwh9Abza6i4/zZaDAbPhtZLXSM5ztdctv8bAb63CppLU541Kf4OaLO3QLvfLRXK2n8bwEwzVAqQ22dyzt6/vPiRbZ5akh8JB6QFXG0QJF9DejsIspKF3JvOKjG2edmC9o+GfL3hwDBiihYXCGY9lElZICAdt+7rZm5UxMx7STrVKy81xcvfaIp1BwGh/HyMsJnkE8IczzRFpLlHGYuNDxdLoBjiifrmHvOCUDcV8UvhSV+UAZtAVejdNGo5G/bz0NF21HUO4pVRPu6RqZIs/aX4hlm6iO/0Ru00ct8pfadUIgRcephTuFC2fHyZxNBC6NApRtLSNLfzYTTo/uSjgcu6rLWiNo5G7yfrM45RXjalFEFzk75Z/fu9lCJJa5uLFgDNKlU+IaFjArfXJCll3apbZp4/LNKiU35ZlB7ZmjDTrji1wLep8iRVVEGht/DW00MTok7Zn7Fv+MlxgWmbZB3BuezwTmXb/fNw=="; + public const VALID_KEY = 'p2PA7MGy5tx56cnyJaFZMr96BCFwZeHjZV2EqMvTq53='; + public const INVALID_KEY = 'p2PA7MGy5tx56cnyJaFZMr96BCFwZeHjZV2EqMvTq54='; + public const SEALED_RESULT = 'noXc7SXO+mqeAGrvBMgObi/S0fXTpP3zupk8qFqsO/1zdtWCD169iLA3VkkZh9ICHpZ0oWRzqG0M9/TnCeKFohgBLqDp6O0zEfXOv6i5q++aucItznQdLwrKLP+O0blfb4dWVI8/aSbd4ELAZuJJxj9bCoVZ1vk+ShbUXCRZTD30OIEAr3eiG9aw00y1UZIqMgX6CkFlU9L9OnKLsNsyomPIaRHTmgVTI5kNhrnVNyNsnzt9rY7fUD52DQxJILVPrUJ1Q+qW7VyNslzGYBPG0DyYlKbRAomKJDQIkdj/Uwa6bhSTq4XYNVvbk5AJ/dGwvsVdOnkMT2Ipd67KwbKfw5bqQj/cw6bj8Cp2FD4Dy4Ud4daBpPRsCyxBM2jOjVz1B/lAyrOp8BweXOXYugwdPyEn38MBZ5oL4D38jIwR/QiVnMHpERh93jtgwh9Abza6i4/zZaDAbPhtZLXSM5ztdctv8bAb63CppLU541Kf4OaLO3QLvfLRXK2n8bwEwzVAqQ22dyzt6/vPiRbZ5akh8JB6QFXG0QJF9DejsIspKF3JvOKjG2edmC9o+GfL3hwDBiihYXCGY9lElZICAdt+7rZm5UxMx7STrVKy81xcvfaIp1BwGh/HyMsJnkE8IczzRFpLlHGYuNDxdLoBjiifrmHvOCUDcV8UvhSV+UAZtAVejdNGo5G/bz0NF21HUO4pVRPu6RqZIs/aX4hlm6iO/0Ru00ct8pfadUIgRcephTuFC2fHyZxNBC6NApRtLSNLfzYTTo/uSjgcu6rLWiNo5G7yfrM45RXjalFEFzk75Z/fu9lCJJa5uLFgDNKlU+IaFjArfXJCll3apbZp4/LNKiU35ZlB7ZmjDTrji1wLep8iRVVEGht/DW00MTok7Zn7Fv+MlxgWmbZB3BuezwTmXb/fNw=='; + /** * @var string */ @@ -39,7 +44,7 @@ protected function setUp(): void $this->keys = [ new DecryptionKey($this->invalidKey, DecryptionAlgorithm::AES_256_GCM), - new DecryptionKey($this->validKey, DecryptionAlgorithm::AES_256_GCM) + new DecryptionKey($this->validKey, DecryptionAlgorithm::AES_256_GCM), ]; } @@ -47,7 +52,7 @@ public function testUnsealEventResponse() { $sealedResult = base64_decode(self::SEALED_RESULT); - $response = new Response(200, [], "{\"products\":{\"identification\":{\"data\":{\"visitorId\":\"2ZEDCZEfOfXjEmMuE3tq\",\"requestId\":\"1703067132750.Z5hutJ\",\"browserDetails\":{\"browserName\":\"Safari\",\"browserMajorVersion\":\"17\",\"browserFullVersion\":\"17.3\",\"os\":\"Mac OS X\",\"osVersion\":\"10.15.7\",\"device\":\"Other\",\"userAgent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3 Safari/605.1.15\"},\"incognito\":false,\"ip\":\"::1\",\"ipLocation\":{\"accuracyRadius\":1000,\"latitude\":59.3241,\"longitude\":18.0517,\"postalCode\":\"100 05\",\"timezone\":\"Europe/Stockholm\",\"city\":{\"name\":\"Stockholm\"},\"country\":{\"code\":\"SE\",\"name\":\"Sweden\"},\"continent\":{\"code\":\"EU\",\"name\":\"Europe\"},\"subdivisions\":[{\"isoCode\":\"AB\",\"name\":\"Stockholm County\"}]},\"timestamp\":1703067136286,\"time\":\"2023-12-20T10:12:16Z\",\"url\":\"http://localhost:8080/\",\"tag\":{\"foo\":\"bar\"},\"confidence\":{\"score\":1},\"visitorFound\":true,\"firstSeenAt\":{\"global\":\"2023-12-15T12:13:55.103Z\",\"subscription\":\"2023-12-15T12:13:55.103Z\"},\"lastSeenAt\":{\"global\":\"2023-12-19T11:39:51.52Z\",\"subscription\":\"2023-12-19T11:39:51.52Z\"}}},\"botd\":{\"data\":{\"bot\":{\"result\":\"notDetected\"},\"meta\":{\"foo\":\"bar\"},\"url\":\"http://localhost:8080/\",\"ip\":\"::1\",\"time\":\"2023-12-20T10:12:13.894Z\",\"userAgent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3 Safari/605.1.15\",\"requestId\":\"1703067132750.Z5hutJ\"}}}}"); + $response = new Response(200, [], '{"products":{"identification":{"data":{"visitorId":"2ZEDCZEfOfXjEmMuE3tq","requestId":"1703067132750.Z5hutJ","browserDetails":{"browserName":"Safari","browserMajorVersion":"17","browserFullVersion":"17.3","os":"Mac OS X","osVersion":"10.15.7","device":"Other","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3 Safari/605.1.15"},"incognito":false,"ip":"::1","ipLocation":{"accuracyRadius":1000,"latitude":59.3241,"longitude":18.0517,"postalCode":"100 05","timezone":"Europe/Stockholm","city":{"name":"Stockholm"},"country":{"code":"SE","name":"Sweden"},"continent":{"code":"EU","name":"Europe"},"subdivisions":[{"isoCode":"AB","name":"Stockholm County"}]},"timestamp":1703067136286,"time":"2023-12-20T10:12:16Z","url":"http://localhost:8080/","tag":{"foo":"bar"},"confidence":{"score":1},"visitorFound":true,"firstSeenAt":{"global":"2023-12-15T12:13:55.103Z","subscription":"2023-12-15T12:13:55.103Z"},"lastSeenAt":{"global":"2023-12-19T11:39:51.52Z","subscription":"2023-12-19T11:39:51.52Z"}}},"botd":{"data":{"bot":{"result":"notDetected"},"meta":{"foo":"bar"},"url":"http://localhost:8080/","ip":"::1","time":"2023-12-20T10:12:13.894Z","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3 Safari/605.1.15","requestId":"1703067132750.Z5hutJ"}}}}'); $expectedResponse = ObjectSerializer::deserialize($response, EventResponse::class); @@ -62,7 +67,7 @@ public function testUnsealEventResponse() public function testUnsealEventResponseWithInvalidSealedResult() { // "{\"invalid\":true}" - $sealedResult = base64_decode("noXc7VOpBstjjcavDKSKr4HTavt4mdq8h6NC32T0hUtw9S0jXT8lPjZiWL8SyHxmrF3uTGqO+g=="); + $sealedResult = base64_decode('noXc7VOpBstjjcavDKSKr4HTavt4mdq8h6NC32T0hUtw9S0jXT8lPjZiWL8SyHxmrF3uTGqO+g=='); $this->expectException(InvalidSealedDataException::class); @@ -74,7 +79,7 @@ public function testUnsealEventResponseWithInvalidSealedResult() public function testUnsealEventResponseWithInvalidJsonSealedResult() { - $sealedResult = base64_decode("noXc7XdbEp5JpFNJaMxCB5leuFeW9Fs0tqvwnbU3ND2yShYn+dgeUWvdk32YrXam4yuvhmpO8gww//Qmsu2sbyvyMRuXmlKoriV9EVPYVCB2xszskg34ngrAh4sreRZV3c8d0DcXZulbMiiXrli931fEABWRHM0NtcoPuubqb+TysNSoFIYVZxpRVDR8jDiTXuQyPzvqBJD4+xeQTOOAOjPlqRTQSSBrlWjeZLNA70wWX7VRDXA1SoR+1k7bkBFK4OwRnh5rVGeGvGeHisOe/SyOL6GlQyBk3sRdSCQiI/g0ywdqLsOk4xDdCgg5vMI07APvL9FSaQrglMvD8NRmQOr5glZoV6S3DoBgaYQVvEygTZy2gfJ0z6hLY6Q8WSW0hpb3t9m4MP9WC5Vc2r0fmfqX7gjYZpwyfJxsyyk4iksminhm2T8N8DTYuZuz82jjaGNDqAPn1PZKqiEh8H9TpcgewAP8mlVrB5CUPJMHH+p7dM5zibfKM9+1MPxvZNp0PBkljBwrfGjiKlmYhn7bb5UW5TeEMtiP27KoA26PX+NV130Vi9Y/LUgMivLwaIc+jnlFyaoqg6Kg6H8G3WhT0r/pc4KP0mwyHJzfXjep8kQZGKxbMd0Sc3h4kpoWR1hdYM4QZRvKQzh7BqBPtPiVgHYoEJf9qFVxYhel9UFONz65q5bA2Y25oFKpzfsiXQqFEo/LRANnW7iUdfesGtGjjP4N6rd8ssNpYf57FmPBpWC4RwjG45MHRUSajCVLKiwUgFQbOo7/t5hgQIQOui3jmCBDjCjpjGZK8vd2nFputUTqI/MmZK7THaDPFsn8h9M1boF3VMCzDXygJFhd5lwdVErXGtQcc1lApEvdOr24QB5Io4SjfjJCfEQ7g4ulBXuqsh6I4VkcuMh5zgBIdmGm"); + $sealedResult = base64_decode('noXc7XdbEp5JpFNJaMxCB5leuFeW9Fs0tqvwnbU3ND2yShYn+dgeUWvdk32YrXam4yuvhmpO8gww//Qmsu2sbyvyMRuXmlKoriV9EVPYVCB2xszskg34ngrAh4sreRZV3c8d0DcXZulbMiiXrli931fEABWRHM0NtcoPuubqb+TysNSoFIYVZxpRVDR8jDiTXuQyPzvqBJD4+xeQTOOAOjPlqRTQSSBrlWjeZLNA70wWX7VRDXA1SoR+1k7bkBFK4OwRnh5rVGeGvGeHisOe/SyOL6GlQyBk3sRdSCQiI/g0ywdqLsOk4xDdCgg5vMI07APvL9FSaQrglMvD8NRmQOr5glZoV6S3DoBgaYQVvEygTZy2gfJ0z6hLY6Q8WSW0hpb3t9m4MP9WC5Vc2r0fmfqX7gjYZpwyfJxsyyk4iksminhm2T8N8DTYuZuz82jjaGNDqAPn1PZKqiEh8H9TpcgewAP8mlVrB5CUPJMHH+p7dM5zibfKM9+1MPxvZNp0PBkljBwrfGjiKlmYhn7bb5UW5TeEMtiP27KoA26PX+NV130Vi9Y/LUgMivLwaIc+jnlFyaoqg6Kg6H8G3WhT0r/pc4KP0mwyHJzfXjep8kQZGKxbMd0Sc3h4kpoWR1hdYM4QZRvKQzh7BqBPtPiVgHYoEJf9qFVxYhel9UFONz65q5bA2Y25oFKpzfsiXQqFEo/LRANnW7iUdfesGtGjjP4N6rd8ssNpYf57FmPBpWC4RwjG45MHRUSajCVLKiwUgFQbOo7/t5hgQIQOui3jmCBDjCjpjGZK8vd2nFputUTqI/MmZK7THaDPFsn8h9M1boF3VMCzDXygJFhd5lwdVErXGtQcc1lApEvdOr24QB5Io4SjfjJCfEQ7g4ulBXuqsh6I4VkcuMh5zgBIdmGm'); $this->expectException(InvalidSealedDataException::class); @@ -86,7 +91,7 @@ public function testUnsealEventResponseWithInvalidJsonSealedResult() public function testUnsealEventResponseWithNotCompressedSealedResult() { - $sealedResult = base64_decode("noXc7dtuk0smGE+ZbaoXzrp6Rq8ySxLepejTsu7+jUXlPhV1w+WuHx9gbPhaENJnOQo8BcGmsaRhL5k2NVj+DRNzYO9cQD7wHxmXKCyTbl/dvSYOMoHziUZ2VbQ7tmaorFny26v8jROr/UBGfvPE0dLKC36IN9ZlJ3X0NZJO8SY+8bCr4mTrkVZsv/hpvZp+OjC4h7e5vxcpmnBWXzxfaO79Lq3aMRIEf9XfK7/bVIptHaEqtPKCTwl9rz1KUpUUNQSHTPM0NlqJe9bjYf5mr1uYvWHhcJoXSyRyVMxIv/quRiw3SKJzAMOTBiAvFICpWuRFa+T/xIMHK0g96w/IMQo0jdY1E067ZEvBUOBmsJnGJg1LllS3rbJVe+E2ClFNL8SzFphyvtlcfvYB+SVSD4bzI0w/YCldv5Sq42BFt5bn4n4aE5A6658DYsfSRYWqP6OpqPJx96cY34W7H1t/ZG0ulez6zF5NvWhc1HDQ1gMtXd+K/ogt1n+FyFtn8xzvtSGkmrc2jJgYNI5Pd0Z0ent73z0MKbJx9v2ta/emPEzPr3cndN5amdr6TmRkDU4bq0vyhAh87DJrAnJQLdrvYLddnrr8xTdeXxj1i1Yug6SGncPh9sbTYkdOfuamPAYOuiJVBAMcfYsYEiQndZe8mOQ4bpCr+hxAAqixhZ16pQ8CeUwa247+D2scRymLB8qJXlaERuFZtWGVAZ8VP/GS/9EXjrzpjGX9vlrIPeJP8fh2S5QPzw55cGNJ7JfAdOyManXnoEw2/QzDhSZQARVl+akFgSO0Y13YmbiL7H6HcKWGcJ2ipDKIaj2fJ7GE0Vzyt+CBEezSQR99Igd8x3p2JtvsVKp35iLPksjS1VqtSCTbuIRUlINlfQHNjeQiE/B/61jo3Mf7SmjYjqtvXt5e9RKb+CQku2qH4ZU8xN3DSg+4mLom3BgKBkm/MoyGBpMK41c96d2tRp3tp4hV0F6ac02Crg7P2lw8IUct+i2VJ8VUjcbRfTIPQs0HjNjM6/gLfLCkWOHYrlFjwusXWQCJz91Kq+hVxj7M9LtplPO4AUq6RUMNhlPGUmyOI2tcUMrjq9vMLXGlfdkH185zM4Mk+O7DRLC8683lXZFZvcBEmxr855PqLLH/9SpYKHBoGRatDRdQe3oRp6gHS0jpQ1SW/si4kvLKiUNjiBExvbQVOUV7/VFXvG1RpM9wbzSoOd40gg7ZzD/72QshUC/25DkM/Pm7RBzwtjgmnRKjT+mROeC/7VQLoz3amv09O8Mvbt+h/lX5+51Q834F7NgIGagbB20WtWcMtrmKrvCEZlaoiZrmYVSbi1RfknRK7CTPJkopw9IjO7Ut2EhKZ+jL4rwk6TlVm6EC6Kuj7KNqp6wB/UNe9eM2Eym/aiHAcja8XN4YQhSIuJD2Wxb0n3LkKnAjK1/GY65c8K6rZsVYQ0MQL1j4lMl0UZPjG/vzKyetIsVDyXc4J9ZhOEMYnt/LaxEeSt4EMJGBA9wpTmz33X4h3ij0Y3DY/rH7lrEScUknw20swTZRm5T6q1bnimj7M1OiOkebdI09MZ0nyaTWRHdB7B52C/moh89Q7qa2Fulp5h8Us1FYRkWBLt37a5rGI1IfVeP38KaPbagND+XzWpNqX4HVrAVPLQVK5EwUvGamED3ooJ0FMieTc0IH0N+IeUYG7Q8XmrRVBcw32W8pEfYLO9L71An/J0jQZCIP8DuQnUG0mOvunOuloBGvP/9LvkBlkamh68F0a5f5ny1jloyIFJhRh5dt2SBlbsXS9AKqUwARYSSsA9Ao4WJWOZMyjp8A+qIBAfW65MdhhUDKYMBgIAbMCc3uiptzElQQopE5TT5xIhwfYxa503jVzQbz1Q=="); + $sealedResult = base64_decode('noXc7dtuk0smGE+ZbaoXzrp6Rq8ySxLepejTsu7+jUXlPhV1w+WuHx9gbPhaENJnOQo8BcGmsaRhL5k2NVj+DRNzYO9cQD7wHxmXKCyTbl/dvSYOMoHziUZ2VbQ7tmaorFny26v8jROr/UBGfvPE0dLKC36IN9ZlJ3X0NZJO8SY+8bCr4mTrkVZsv/hpvZp+OjC4h7e5vxcpmnBWXzxfaO79Lq3aMRIEf9XfK7/bVIptHaEqtPKCTwl9rz1KUpUUNQSHTPM0NlqJe9bjYf5mr1uYvWHhcJoXSyRyVMxIv/quRiw3SKJzAMOTBiAvFICpWuRFa+T/xIMHK0g96w/IMQo0jdY1E067ZEvBUOBmsJnGJg1LllS3rbJVe+E2ClFNL8SzFphyvtlcfvYB+SVSD4bzI0w/YCldv5Sq42BFt5bn4n4aE5A6658DYsfSRYWqP6OpqPJx96cY34W7H1t/ZG0ulez6zF5NvWhc1HDQ1gMtXd+K/ogt1n+FyFtn8xzvtSGkmrc2jJgYNI5Pd0Z0ent73z0MKbJx9v2ta/emPEzPr3cndN5amdr6TmRkDU4bq0vyhAh87DJrAnJQLdrvYLddnrr8xTdeXxj1i1Yug6SGncPh9sbTYkdOfuamPAYOuiJVBAMcfYsYEiQndZe8mOQ4bpCr+hxAAqixhZ16pQ8CeUwa247+D2scRymLB8qJXlaERuFZtWGVAZ8VP/GS/9EXjrzpjGX9vlrIPeJP8fh2S5QPzw55cGNJ7JfAdOyManXnoEw2/QzDhSZQARVl+akFgSO0Y13YmbiL7H6HcKWGcJ2ipDKIaj2fJ7GE0Vzyt+CBEezSQR99Igd8x3p2JtvsVKp35iLPksjS1VqtSCTbuIRUlINlfQHNjeQiE/B/61jo3Mf7SmjYjqtvXt5e9RKb+CQku2qH4ZU8xN3DSg+4mLom3BgKBkm/MoyGBpMK41c96d2tRp3tp4hV0F6ac02Crg7P2lw8IUct+i2VJ8VUjcbRfTIPQs0HjNjM6/gLfLCkWOHYrlFjwusXWQCJz91Kq+hVxj7M9LtplPO4AUq6RUMNhlPGUmyOI2tcUMrjq9vMLXGlfdkH185zM4Mk+O7DRLC8683lXZFZvcBEmxr855PqLLH/9SpYKHBoGRatDRdQe3oRp6gHS0jpQ1SW/si4kvLKiUNjiBExvbQVOUV7/VFXvG1RpM9wbzSoOd40gg7ZzD/72QshUC/25DkM/Pm7RBzwtjgmnRKjT+mROeC/7VQLoz3amv09O8Mvbt+h/lX5+51Q834F7NgIGagbB20WtWcMtrmKrvCEZlaoiZrmYVSbi1RfknRK7CTPJkopw9IjO7Ut2EhKZ+jL4rwk6TlVm6EC6Kuj7KNqp6wB/UNe9eM2Eym/aiHAcja8XN4YQhSIuJD2Wxb0n3LkKnAjK1/GY65c8K6rZsVYQ0MQL1j4lMl0UZPjG/vzKyetIsVDyXc4J9ZhOEMYnt/LaxEeSt4EMJGBA9wpTmz33X4h3ij0Y3DY/rH7lrEScUknw20swTZRm5T6q1bnimj7M1OiOkebdI09MZ0nyaTWRHdB7B52C/moh89Q7qa2Fulp5h8Us1FYRkWBLt37a5rGI1IfVeP38KaPbagND+XzWpNqX4HVrAVPLQVK5EwUvGamED3ooJ0FMieTc0IH0N+IeUYG7Q8XmrRVBcw32W8pEfYLO9L71An/J0jQZCIP8DuQnUG0mOvunOuloBGvP/9LvkBlkamh68F0a5f5ny1jloyIFJhRh5dt2SBlbsXS9AKqUwARYSSsA9Ao4WJWOZMyjp8A+qIBAfW65MdhhUDKYMBgIAbMCc3uiptzElQQopE5TT5xIhwfYxa503jVzQbz1Q=='); try { Sealed::unsealEventResponse( @@ -107,7 +112,7 @@ public function testUnsealEventResponseWithNotCompressedSealedResult() public function testUnsealEventResponseWithInvalidHeader() { - $sealedResult = base64_decode("noXc7xXO+mqeAGrvBMgObi/S0fXTpP3zupk8qFqsO/1zdtWCD169iLA3VkkZh9ICHpZ0oWRzqG0M9/TnCeKFohgBLqDp6O0zEfXOv6i5q++aucItznQdLwrKLP+O0blfb4dWVI8/aSbd4ELAZuJJxj9bCoVZ1vk+ShbUXCRZTD30OIEAr3eiG9aw00y1UZIqMgX6CkFlU9L9OnKLsNsyomPIaRHTmgVTI5kNhrnVNyNsnzt9rY7fUD52DQxJILVPrUJ1Q+qW7VyNslzGYBPG0DyYlKbRAomKJDQIkdj/Uwa6bhSTq4XYNVvbk5AJ/dGwvsVdOnkMT2Ipd67KwbKfw5bqQj/cw6bj8Cp2FD4Dy4Ud4daBpPRsCyxBM2jOjVz1B/lAyrOp8BweXOXYugwdPyEn38MBZ5oL4D38jIwR/QiVnMHpERh93jtgwh9Abza6i4/zZaDAbPhtZLXSM5ztdctv8bAb63CppLU541Kf4OaLO3QLvfLRXK2n8bwEwzVAqQ22dyzt6/vPiRbZ5akh8JB6QFXG0QJF9DejsIspKF3JvOKjG2edmC9o+GfL3hwDBiihYXCGY9lElZICAdt+7rZm5UxMx7STrVKy81xcvfaIp1BwGh/HyMsJnkE8IczzRFpLlHGYuNDxdLoBjiifrmHvOCUDcV8UvhSV+UAZtAVejdNGo5G/bz0NF21HUO4pVRPu6RqZIs/aX4hlm6iO/0Ru00ct8pfadUIgRcephTuFC2fHyZxNBC6NApRtLSNLfzYTTo/uSjgcu6rLWiNo5G7yfrM45RXjalFEFzk75Z/fu9lCJJa5uLFgDNxlU+IaFjArfXJCll3apbZp4/LNKiU35ZlB7ZmjDTrji1wLep8iRVVEGht/DW00MTok7Zn7Fv+MlxgWmbZB3BuezwTmXb/fNw=="); + $sealedResult = base64_decode('noXc7xXO+mqeAGrvBMgObi/S0fXTpP3zupk8qFqsO/1zdtWCD169iLA3VkkZh9ICHpZ0oWRzqG0M9/TnCeKFohgBLqDp6O0zEfXOv6i5q++aucItznQdLwrKLP+O0blfb4dWVI8/aSbd4ELAZuJJxj9bCoVZ1vk+ShbUXCRZTD30OIEAr3eiG9aw00y1UZIqMgX6CkFlU9L9OnKLsNsyomPIaRHTmgVTI5kNhrnVNyNsnzt9rY7fUD52DQxJILVPrUJ1Q+qW7VyNslzGYBPG0DyYlKbRAomKJDQIkdj/Uwa6bhSTq4XYNVvbk5AJ/dGwvsVdOnkMT2Ipd67KwbKfw5bqQj/cw6bj8Cp2FD4Dy4Ud4daBpPRsCyxBM2jOjVz1B/lAyrOp8BweXOXYugwdPyEn38MBZ5oL4D38jIwR/QiVnMHpERh93jtgwh9Abza6i4/zZaDAbPhtZLXSM5ztdctv8bAb63CppLU541Kf4OaLO3QLvfLRXK2n8bwEwzVAqQ22dyzt6/vPiRbZ5akh8JB6QFXG0QJF9DejsIspKF3JvOKjG2edmC9o+GfL3hwDBiihYXCGY9lElZICAdt+7rZm5UxMx7STrVKy81xcvfaIp1BwGh/HyMsJnkE8IczzRFpLlHGYuNDxdLoBjiifrmHvOCUDcV8UvhSV+UAZtAVejdNGo5G/bz0NF21HUO4pVRPu6RqZIs/aX4hlm6iO/0Ru00ct8pfadUIgRcephTuFC2fHyZxNBC6NApRtLSNLfzYTTo/uSjgcu6rLWiNo5G7yfrM45RXjalFEFzk75Z/fu9lCJJa5uLFgDNxlU+IaFjArfXJCll3apbZp4/LNKiU35ZlB7ZmjDTrji1wLep8iRVVEGht/DW00MTok7Zn7Fv+MlxgWmbZB3BuezwTmXb/fNw=='); $this->expectException(InvalidSealedDataHeaderException::class); @@ -119,7 +124,7 @@ public function testUnsealEventResponseWithInvalidHeader() public function testUnsealEventResponseWithEmptyData() { - $sealedResult = ""; + $sealedResult = ''; $this->expectException(InvalidSealedDataHeaderException::class); @@ -131,7 +136,7 @@ public function testUnsealEventResponseWithEmptyData() public function testUnsealEventResponseWithInvalidKeys() { - $sealedResult = base64_decode("noXc7SXO+mqeAGrvBMgObi/S0fXTpP3zupk8qFqsO/1zdtWCD169iLA3VkkZh9ICHpZ0oWRzqG0M9/TnCeKFohgBLqDp6O0zEfXOv6i5q++aucItznQdLwrKLP+O0blfb4dWVI8/aSbd4ELAZuJJxj9bCoVZ1vk+ShbUXCRZTD30OIEAr3eiG9aw00y1UZIqMgX6CkFlU9L9OnKLsNsyomPIaRHTmgVTI5kNhrnVNyNsnzt9rY7fUD52DQxJILVPrUJ1Q+qW7VyNslzGYBPG0DyYlKbRAomKJDQIkdj/Uwa6bhSTq4XYNVvbk5AJ/dGwvsVdOnkMT2Ipd67KwbKfw5bqQj/cw6bj8Cp2FD4Dy4Ud4daBpPRsCyxBM2jOjVz1B/lAyrOp8BweXOXYugwdPyEn38MBZ5oL4D38jIwR/QiVnMHpERh93jtgwh9Abza6i4/zZaDAbPhtZLXSM5ztdctv8bAb63CppLU541Kf4OaLO3QLvfLRXK2n8bwEwzVAqQ22dyzt6/vPiRbZ5akh8JB6QFXG0QJF9DejsIspKF3JvOKjG2edmC9o+GfL3hwDBiihYXCGY9lElZICAdt+7rZm5UxMx7STrVKy81xcvfaIp1BwGh/HyMsJnkE8IczzRFpLlHGYuNDxdLoBjiifrmHvOCUDcV8UvhSV+UAZtAVejdNGo5G/bz0NF21HUO4pVRPu6RqZIs/aX4hlm6iO/0Ru00ct8pfadUIgRcephTuFC2fHyZxNBC6NApRtLSNLfzYTTo/uSjgcu6rLWiNo5G7yfrM45RXjalFEFzk75Z/fu9lCJJa5uLFgDNKlU+IaFjArfXJCll3apbZp4/LNKiU35ZlB7ZmjDTrji1wLep8iRVVEGht/DW00MTok7Zn7Fv+MlxgWmbZB3BuezwTmXb/fNw=="); + $sealedResult = base64_decode('noXc7SXO+mqeAGrvBMgObi/S0fXTpP3zupk8qFqsO/1zdtWCD169iLA3VkkZh9ICHpZ0oWRzqG0M9/TnCeKFohgBLqDp6O0zEfXOv6i5q++aucItznQdLwrKLP+O0blfb4dWVI8/aSbd4ELAZuJJxj9bCoVZ1vk+ShbUXCRZTD30OIEAr3eiG9aw00y1UZIqMgX6CkFlU9L9OnKLsNsyomPIaRHTmgVTI5kNhrnVNyNsnzt9rY7fUD52DQxJILVPrUJ1Q+qW7VyNslzGYBPG0DyYlKbRAomKJDQIkdj/Uwa6bhSTq4XYNVvbk5AJ/dGwvsVdOnkMT2Ipd67KwbKfw5bqQj/cw6bj8Cp2FD4Dy4Ud4daBpPRsCyxBM2jOjVz1B/lAyrOp8BweXOXYugwdPyEn38MBZ5oL4D38jIwR/QiVnMHpERh93jtgwh9Abza6i4/zZaDAbPhtZLXSM5ztdctv8bAb63CppLU541Kf4OaLO3QLvfLRXK2n8bwEwzVAqQ22dyzt6/vPiRbZ5akh8JB6QFXG0QJF9DejsIspKF3JvOKjG2edmC9o+GfL3hwDBiihYXCGY9lElZICAdt+7rZm5UxMx7STrVKy81xcvfaIp1BwGh/HyMsJnkE8IczzRFpLlHGYuNDxdLoBjiifrmHvOCUDcV8UvhSV+UAZtAVejdNGo5G/bz0NF21HUO4pVRPu6RqZIs/aX4hlm6iO/0Ru00ct8pfadUIgRcephTuFC2fHyZxNBC6NApRtLSNLfzYTTo/uSjgcu6rLWiNo5G7yfrM45RXjalFEFzk75Z/fu9lCJJa5uLFgDNKlU+IaFjArfXJCll3apbZp4/LNKiU35ZlB7ZmjDTrji1wLep8iRVVEGht/DW00MTok7Zn7Fv+MlxgWmbZB3BuezwTmXb/fNw=='); $this->expectException(UnsealAggregateException::class); @@ -164,8 +169,8 @@ public function testTypesAreDefinedCorrect() $confidence = $unsealed->getProducts()->getIdentification()->getData()->getConfidence(); $botResult = $unsealed->getProducts()->getBotd()->getData()->getBot(); $this->assertEquals(DeprecatedIPLocation::class, get_class($ipLocation)); - $this->assertEquals(DateTime::class, get_class($identificationTime)); - $this->assertEquals(DateTime::class, get_class($botTime)); + $this->assertEquals(\DateTime::class, get_class($identificationTime)); + $this->assertEquals(\DateTime::class, get_class($botTime)); $this->assertEquals(BrowserDetails::class, get_class($browserDetails)); $this->assertEquals(Confidence::class, get_class($confidence)); $this->assertEquals(BotdDetectionResult::class, get_class($botResult)); diff --git a/test/WebhookVerifierTest.php b/test/WebhookVerifierTest.php index 3c963bc1..228fdcfc 100644 --- a/test/WebhookVerifierTest.php +++ b/test/WebhookVerifierTest.php @@ -5,47 +5,52 @@ use Fingerprint\ServerAPI\Webhook\WebhookVerifier; use PHPUnit\Framework\TestCase; +/** + * @internal + * + * @coversNothing + */ class WebhookVerifierTest extends TestCase { - private $secret = "secret"; - private $data = "data"; + private $secret = 'secret'; + private $data = 'data'; public function testWithValidSignature() { - $validHeader = "v1=1b2c16b75bd2a870c114153ccda5bcfca63314bc722fa160d690de133ccbb9db"; + $validHeader = 'v1=1b2c16b75bd2a870c114153ccda5bcfca63314bc722fa160d690de133ccbb9db'; $result = WebhookVerifier::IsValidWebhookSignature($validHeader, $this->data, $this->secret); - $this->assertTrue($result, "With valid signature"); + $this->assertTrue($result, 'With valid signature'); } public function testWithInvalidHeader() { - $result = WebhookVerifier::IsValidWebhookSignature("v2=invalid", $this->data, $this->secret); - $this->assertFalse($result, "With invalid header"); + $result = WebhookVerifier::IsValidWebhookSignature('v2=invalid', $this->data, $this->secret); + $this->assertFalse($result, 'With invalid header'); } public function testWithHeaderWithoutVersion() { - $result = WebhookVerifier::IsValidWebhookSignature("invalid", $this->data, $this->secret); - $this->assertFalse($result, "With header without version"); + $result = WebhookVerifier::IsValidWebhookSignature('invalid', $this->data, $this->secret); + $this->assertFalse($result, 'With header without version'); } public function testWithEmptyHeader() { - $result = WebhookVerifier::IsValidWebhookSignature("", $this->data, $this->secret); - $this->assertFalse($result, "With empty header"); + $result = WebhookVerifier::IsValidWebhookSignature('', $this->data, $this->secret); + $this->assertFalse($result, 'With empty header'); } public function testWithEmptySecret() { - $validHeader = "v1=1b2c16b75bd2a870c114153ccda5bcfca63314bc722fa160d690de133ccbb9db"; - $result = WebhookVerifier::IsValidWebhookSignature($validHeader, $this->data, ""); - $this->assertFalse($result, "With empty secret"); + $validHeader = 'v1=1b2c16b75bd2a870c114153ccda5bcfca63314bc722fa160d690de133ccbb9db'; + $result = WebhookVerifier::IsValidWebhookSignature($validHeader, $this->data, ''); + $this->assertFalse($result, 'With empty secret'); } public function testWithEmptyData() { - $validHeader = "v1=1b2c16b75bd2a870c114153ccda5bcfca63314bc722fa160d690de133ccbb9db"; - $result = WebhookVerifier::IsValidWebhookSignature($validHeader, "", $this->secret); - $this->assertFalse($result, "With empty data"); + $validHeader = 'v1=1b2c16b75bd2a870c114153ccda5bcfca63314bc722fa160d690de133ccbb9db'; + $result = WebhookVerifier::IsValidWebhookSignature($validHeader, '', $this->secret); + $this->assertFalse($result, 'With empty data'); } -} \ No newline at end of file +} From 35414ac9ae1df49725593537ba24446ff318b12c Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 4 Sep 2024 11:16:25 +0000 Subject: [PATCH 02/11] chore(release): 5.0.0-develop.1 [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [5.0.0-develop.1](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/compare/v4.1.0...v5.0.0-develop.1) (2024-09-04) ### ⚠ BREAKING CHANGES * Renamed Error Response Model Names `ErrorEvent403ResponseError` → `Common403ErrorResponse` `ManyRequestsResponse` → `TooManyRequestsResponse` * Webhook `tag` field is now optional * API Methods now throws `SerializationException` * API Methods returns tuple instead of models * API Methods removed other than `getModel` * Upgraded minimum php version to 8.1 * Request logic is rewritten, Upgraded minimum php version to 8.1 ### Features * add `remoteControl`, `velocity` and `developerTools` signals ([5bf9368](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/5bf9368fb1bb5abbfa72366fe6c66fe32352ad54)) * add delete visitor data endpoint ([a00f325](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/a00f325706af38cc20e4c387db44dfa83c7a7a22)) * add retry after policy to api exception ([64e0510](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/64e05100a2c20c8d1f8e5f9719ee5292c59761c2)) * add support for validating webhook signatures inter-768 ([6a4cbd6](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/6a4cbd6e2a521a209806337d90ae8f7e291a534b)) * add update event endpoint (PUT) ([cb21d0b](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/cb21d0b4c48b7b94f4e9a7de1ab74313fe339e5f)) * change api to return tuple instead of serialized model ([62e4ad3](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/62e4ad3020425667f45e3beeb166b4095a437ab5)) * introduce rawResponse for getVisits and getEvent methods ([9b01ba6](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/9b01ba65e7ac794c77afedc155823baef2c80b17)) * introduce serialization exception ([bfea23a](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/bfea23a50b61152d4fc65d290c730d0e3fcb6123)) * only generate models and docs from swagger codegen ([26e984f](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/26e984ffd01dc9f21af3dd4da75fcb7e4309961f)) * remove raw response and introduce with http info ([ce2fedf](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/ce2fedfcd94f5f1459049ba49eff75e2d3b8620c)) * rewrite request logic ([0016822](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/001682270fd4370484b25062550a65bd375b9372)) * upgrade min php version to 8 ([5698871](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/5698871fa497ee4ad50b2941d39769b45f15dfc2)) ### Bug Fixes * serializaiton problem on sealed results ([29cb26c](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/29cb26c3f50bfa035ca750948bb92a2299f579bd)) --- CHANGELOG.md | 35 ++++++++++++ README.md | 2 +- composer.json | 2 +- config.json | 2 +- src/Api/FingerprintApi.php | 2 +- src/Configuration.php | 4 +- src/Model/ASN.php | 2 - src/Model/BotdDetectionResult.php | 2 - src/Model/BotdResult.php | 2 - src/Model/BrowserDetails.php | 2 - src/Model/Confidence.php | 2 - src/Model/DataCenter.php | 2 - src/Model/DeprecatedIPLocation.php | 12 ----- src/Model/DeprecatedIPLocationCity.php | 2 - src/Model/ErrorCommon403Response.php | 2 - src/Model/ErrorCommon429Response.php | 2 - src/Model/ErrorEvent404Response.php | 2 - src/Model/ErrorUpdateEvent400Response.php | 2 - src/Model/ErrorUpdateEvent409Response.php | 2 - src/Model/ErrorVisitor400Response.php | 2 - src/Model/ErrorVisitor404Response.php | 2 - src/Model/EventResponse.php | 2 - src/Model/EventUpdateRequest.php | 6 --- src/Model/HighActivityResult.php | 2 - src/Model/IPLocation.php | 12 ----- src/Model/IPLocationCity.php | 2 - src/Model/IpInfoResult.php | 4 -- src/Model/IpInfoResultV4.php | 4 -- src/Model/IpInfoResultV6.php | 4 -- src/Model/ProductsResponse.php | 48 ----------------- src/Model/ProductsResponseBotd.php | 4 -- src/Model/ProductsResponseIdentification.php | 4 -- .../ProductsResponseIdentificationData.php | 6 --- src/Model/Response.php | 4 -- src/Model/ResponseVisits.php | 6 --- src/Model/SignalResponseClonedApp.php | 4 -- src/Model/SignalResponseDeveloperTools.php | 4 -- src/Model/SignalResponseEmulator.php | 4 -- src/Model/SignalResponseFactoryReset.php | 4 -- src/Model/SignalResponseFrida.php | 4 -- src/Model/SignalResponseHighActivity.php | 4 -- src/Model/SignalResponseIncognito.php | 4 -- src/Model/SignalResponseIpBlocklist.php | 4 -- src/Model/SignalResponseIpInfo.php | 4 -- src/Model/SignalResponseJailbroken.php | 4 -- src/Model/SignalResponseLocationSpoofing.php | 4 -- src/Model/SignalResponsePrivacySettings.php | 4 -- src/Model/SignalResponseProxy.php | 4 -- .../SignalResponseRawDeviceAttributes.php | 4 -- src/Model/SignalResponseRemoteControl.php | 4 -- src/Model/SignalResponseRootApps.php | 4 -- src/Model/SignalResponseSuspectScore.php | 4 -- src/Model/SignalResponseTampering.php | 4 -- src/Model/SignalResponseTor.php | 4 -- src/Model/SignalResponseVelocity.php | 4 -- src/Model/SignalResponseVirtualMachine.php | 4 -- src/Model/SignalResponseVpn.php | 4 -- src/Model/Subdivision.php | 4 -- src/Model/VelocityIntervalResult.php | 2 - src/Model/VelocityIntervals.php | 2 - src/Model/Visit.php | 6 --- src/Model/VpnResult.php | 2 - src/Model/WebhookVisit.php | 54 ------------------- 63 files changed, 41 insertions(+), 312 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4b6e876..ce6b191d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,38 @@ +## [5.0.0-develop.1](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/compare/v4.1.0...v5.0.0-develop.1) (2024-09-04) + + +### ⚠ BREAKING CHANGES + +* Renamed Error Response Model Names +`ErrorEvent403ResponseError` → `Common403ErrorResponse` +`ManyRequestsResponse` → `TooManyRequestsResponse` +* Webhook `tag` field is now optional +* API Methods now throws `SerializationException` +* API Methods returns tuple instead of models +* API Methods removed other than `getModel` +* Upgraded minimum php version to 8.1 +* Request logic is rewritten, Upgraded minimum php version to 8.1 + +### Features + +* add `remoteControl`, `velocity` and `developerTools` signals ([5bf9368](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/5bf9368fb1bb5abbfa72366fe6c66fe32352ad54)) +* add delete visitor data endpoint ([a00f325](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/a00f325706af38cc20e4c387db44dfa83c7a7a22)) +* add retry after policy to api exception ([64e0510](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/64e05100a2c20c8d1f8e5f9719ee5292c59761c2)) +* add support for validating webhook signatures inter-768 ([6a4cbd6](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/6a4cbd6e2a521a209806337d90ae8f7e291a534b)) +* add update event endpoint (PUT) ([cb21d0b](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/cb21d0b4c48b7b94f4e9a7de1ab74313fe339e5f)) +* change api to return tuple instead of serialized model ([62e4ad3](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/62e4ad3020425667f45e3beeb166b4095a437ab5)) +* introduce rawResponse for getVisits and getEvent methods ([9b01ba6](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/9b01ba65e7ac794c77afedc155823baef2c80b17)) +* introduce serialization exception ([bfea23a](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/bfea23a50b61152d4fc65d290c730d0e3fcb6123)) +* only generate models and docs from swagger codegen ([26e984f](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/26e984ffd01dc9f21af3dd4da75fcb7e4309961f)) +* remove raw response and introduce with http info ([ce2fedf](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/ce2fedfcd94f5f1459049ba49eff75e2d3b8620c)) +* rewrite request logic ([0016822](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/001682270fd4370484b25062550a65bd375b9372)) +* upgrade min php version to 8 ([5698871](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/5698871fa497ee4ad50b2941d39769b45f15dfc2)) + + +### Bug Fixes + +* serializaiton problem on sealed results ([29cb26c](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/29cb26c3f50bfa035ca750948bb92a2299f579bd)) + ## [5.0.0](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/compare/v4.1.0...v5.0.0) (2024-09-04) diff --git a/README.md b/README.md index 66b77a52..6996a129 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: 3 - - Package version: 5.0.0 + - Package version: dev-5.0.0-1 - Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen ## Requirements diff --git a/composer.json b/composer.json index 3d39e8b8..04fb84fd 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "fingerprint/fingerprint-pro-server-api-sdk", - "version": "5.0.0", + "version": "dev-5.0.0-1", "description": "Fingerprint Pro Server API provides a way for validating visitors’ data issued by Fingerprint Pro.", "keywords": [ "swagger", diff --git a/config.json b/config.json index f24a0455..20883265 100644 --- a/config.json +++ b/config.json @@ -8,5 +8,5 @@ "gitUserId": "fingerprintjs", "gitRepoId": "fingerprint-pro-server-api-php-sdk", "description": "Fingerprint Pro Server API provides a way for validating visitors’ data issued by Fingerprint Pro.", - "artifactVersion": "5.0.0" + "artifactVersion": "dev-5.0.0-1" } diff --git a/src/Api/FingerprintApi.php b/src/Api/FingerprintApi.php index da1e2e45..444ed1d9 100644 --- a/src/Api/FingerprintApi.php +++ b/src/Api/FingerprintApi.php @@ -56,7 +56,7 @@ class FingerprintApi protected ClientInterface $client; protected Configuration $config; - protected string $integration_info = 'fingerprint-pro-server-php-sdk/5.0.0'; + protected string $integration_info = 'fingerprint-pro-server-php-sdk/dev-5.0.0-1'; public function __construct( ?ClientInterface $client = null, diff --git a/src/Configuration.php b/src/Configuration.php index c2b39f73..7d7ce356 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -81,7 +81,7 @@ class Configuration /** * User agent of the HTTP request, set to "PHP-Swagger" by default. */ - protected string $userAgent = 'Swagger-Codegen/5.0.0/php'; + protected string $userAgent = 'Swagger-Codegen/dev-5.0.0-1/php'; /** * Debug switch (default set to false). @@ -417,7 +417,7 @@ public static function toDebugReport(): string $report .= ' OS: '.php_uname().PHP_EOL; $report .= ' PHP Version: '.PHP_VERSION.PHP_EOL; $report .= ' OpenAPI Spec Version: 3'.PHP_EOL; - $report .= ' SDK Package Version: 5.0.0'.PHP_EOL; + $report .= ' SDK Package Version: dev-5.0.0-1'.PHP_EOL; $report .= ' Temp Folder Path: '.self::getDefaultConfiguration()->getTempFolderPath().PHP_EOL; return $report; diff --git a/src/Model/ASN.php b/src/Model/ASN.php index 6e544e45..5bffc27b 100644 --- a/src/Model/ASN.php +++ b/src/Model/ASN.php @@ -256,8 +256,6 @@ public function setNetwork(string $network): self /** * Gets name. - * - * @return ?string */ public function getName(): ?string { diff --git a/src/Model/BotdDetectionResult.php b/src/Model/BotdDetectionResult.php index 27120931..2bb3d40c 100644 --- a/src/Model/BotdDetectionResult.php +++ b/src/Model/BotdDetectionResult.php @@ -260,8 +260,6 @@ public function setResult(string $result): self /** * Gets type. - * - * @return ?string */ public function getType(): ?string { diff --git a/src/Model/BotdResult.php b/src/Model/BotdResult.php index 178a37d2..eaa02aca 100644 --- a/src/Model/BotdResult.php +++ b/src/Model/BotdResult.php @@ -360,8 +360,6 @@ public function setRequestId(string $request_id): self /** * Gets linked_id. - * - * @return ?string */ public function getLinkedId(): ?string { diff --git a/src/Model/BrowserDetails.php b/src/Model/BrowserDetails.php index d04d9bc8..cc8d8250 100644 --- a/src/Model/BrowserDetails.php +++ b/src/Model/BrowserDetails.php @@ -411,8 +411,6 @@ public function setUserAgent(string $user_agent): self /** * Gets bot_probability. - * - * @return ?int */ public function getBotProbability(): ?int { diff --git a/src/Model/Confidence.php b/src/Model/Confidence.php index 9aeb20db..4ecbc53a 100644 --- a/src/Model/Confidence.php +++ b/src/Model/Confidence.php @@ -225,8 +225,6 @@ public function setScore(float $score): self /** * Gets revision. - * - * @return ?string */ public function getRevision(): ?string { diff --git a/src/Model/DataCenter.php b/src/Model/DataCenter.php index 1b8c9294..cd6edc93 100644 --- a/src/Model/DataCenter.php +++ b/src/Model/DataCenter.php @@ -225,8 +225,6 @@ public function setResult(bool $result): self /** * Gets name. - * - * @return ?string */ public function getName(): ?string { diff --git a/src/Model/DeprecatedIPLocation.php b/src/Model/DeprecatedIPLocation.php index 9739584c..92ec70fc 100644 --- a/src/Model/DeprecatedIPLocation.php +++ b/src/Model/DeprecatedIPLocation.php @@ -241,8 +241,6 @@ public function valid(): bool /** * Gets accuracy_radius. - * - * @return ?int */ public function getAccuracyRadius(): ?int { @@ -313,8 +311,6 @@ public function setLongitude(?float $longitude): self /** * Gets postal_code. - * - * @return ?string */ public function getPostalCode(): ?string { @@ -337,8 +333,6 @@ public function setPostalCode(?string $postal_code): self /** * Gets timezone. - * - * @return ?string */ public function getTimezone(): ?string { @@ -361,8 +355,6 @@ public function setTimezone(?string $timezone): self /** * Gets city. - * - * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocationCity */ public function getCity(): ?DeprecatedIPLocationCity { @@ -385,8 +377,6 @@ public function setCity(?DeprecatedIPLocationCity $city): self /** * Gets country. - * - * @return ?\Fingerprint\ServerAPI\Model\Location */ public function getCountry(): ?Location { @@ -409,8 +399,6 @@ public function setCountry(?Location $country): self /** * Gets continent. - * - * @return ?\Fingerprint\ServerAPI\Model\Location */ public function getContinent(): ?Location { diff --git a/src/Model/DeprecatedIPLocationCity.php b/src/Model/DeprecatedIPLocationCity.php index fdffb4e1..80b25d81 100644 --- a/src/Model/DeprecatedIPLocationCity.php +++ b/src/Model/DeprecatedIPLocationCity.php @@ -191,8 +191,6 @@ public function valid(): bool /** * Gets name. - * - * @return ?string */ public function getName(): ?string { diff --git a/src/Model/ErrorCommon403Response.php b/src/Model/ErrorCommon403Response.php index 1afa5e6e..72801e89 100644 --- a/src/Model/ErrorCommon403Response.php +++ b/src/Model/ErrorCommon403Response.php @@ -191,8 +191,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\Common403ErrorResponse */ public function getError(): ?Common403ErrorResponse { diff --git a/src/Model/ErrorCommon429Response.php b/src/Model/ErrorCommon429Response.php index d2dc070d..ef544255 100644 --- a/src/Model/ErrorCommon429Response.php +++ b/src/Model/ErrorCommon429Response.php @@ -191,8 +191,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ErrorCommon429ResponseError */ public function getError(): ?ErrorCommon429ResponseError { diff --git a/src/Model/ErrorEvent404Response.php b/src/Model/ErrorEvent404Response.php index b03ce283..2142983c 100644 --- a/src/Model/ErrorEvent404Response.php +++ b/src/Model/ErrorEvent404Response.php @@ -191,8 +191,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ErrorEvent404ResponseError */ public function getError(): ?ErrorEvent404ResponseError { diff --git a/src/Model/ErrorUpdateEvent400Response.php b/src/Model/ErrorUpdateEvent400Response.php index 06737e39..f2157ca0 100644 --- a/src/Model/ErrorUpdateEvent400Response.php +++ b/src/Model/ErrorUpdateEvent400Response.php @@ -191,8 +191,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ErrorUpdateEvent400ResponseError */ public function getError(): ?ErrorUpdateEvent400ResponseError { diff --git a/src/Model/ErrorUpdateEvent409Response.php b/src/Model/ErrorUpdateEvent409Response.php index 5e1a0590..3e1bed4d 100644 --- a/src/Model/ErrorUpdateEvent409Response.php +++ b/src/Model/ErrorUpdateEvent409Response.php @@ -191,8 +191,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ErrorUpdateEvent409ResponseError */ public function getError(): ?ErrorUpdateEvent409ResponseError { diff --git a/src/Model/ErrorVisitor400Response.php b/src/Model/ErrorVisitor400Response.php index 8add5b42..b8069300 100644 --- a/src/Model/ErrorVisitor400Response.php +++ b/src/Model/ErrorVisitor400Response.php @@ -191,8 +191,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ErrorVisitor400ResponseError */ public function getError(): ?ErrorVisitor400ResponseError { diff --git a/src/Model/ErrorVisitor404Response.php b/src/Model/ErrorVisitor404Response.php index d0eac080..844c224b 100644 --- a/src/Model/ErrorVisitor404Response.php +++ b/src/Model/ErrorVisitor404Response.php @@ -191,8 +191,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ErrorVisitor404ResponseError */ public function getError(): ?ErrorVisitor404ResponseError { diff --git a/src/Model/EventResponse.php b/src/Model/EventResponse.php index ee5b3fbe..4cf0bcb7 100644 --- a/src/Model/EventResponse.php +++ b/src/Model/EventResponse.php @@ -227,8 +227,6 @@ public function setProducts(ProductsResponse $products): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/EventUpdateRequest.php b/src/Model/EventUpdateRequest.php index ebcd6941..57bf7668 100644 --- a/src/Model/EventUpdateRequest.php +++ b/src/Model/EventUpdateRequest.php @@ -203,8 +203,6 @@ public function valid(): bool /** * Gets linked_id. - * - * @return ?string */ public function getLinkedId(): ?string { @@ -227,8 +225,6 @@ public function setLinkedId(?string $linked_id): self /** * Gets tag. - * - * @return ?object */ public function getTag(): ?object { @@ -251,8 +247,6 @@ public function setTag(?object $tag): self /** * Gets suspect. - * - * @return ?bool */ public function getSuspect(): ?bool { diff --git a/src/Model/HighActivityResult.php b/src/Model/HighActivityResult.php index 20879925..ab323cad 100644 --- a/src/Model/HighActivityResult.php +++ b/src/Model/HighActivityResult.php @@ -225,8 +225,6 @@ public function setResult(bool $result): self /** * Gets daily_requests. - * - * @return ?float */ public function getDailyRequests(): ?float { diff --git a/src/Model/IPLocation.php b/src/Model/IPLocation.php index 6f769e05..057d545b 100644 --- a/src/Model/IPLocation.php +++ b/src/Model/IPLocation.php @@ -239,8 +239,6 @@ public function valid(): bool /** * Gets accuracy_radius. - * - * @return ?int */ public function getAccuracyRadius(): ?int { @@ -311,8 +309,6 @@ public function setLongitude(?float $longitude): self /** * Gets postal_code. - * - * @return ?string */ public function getPostalCode(): ?string { @@ -335,8 +331,6 @@ public function setPostalCode(?string $postal_code): self /** * Gets timezone. - * - * @return ?string */ public function getTimezone(): ?string { @@ -359,8 +353,6 @@ public function setTimezone(?string $timezone): self /** * Gets city. - * - * @return ?\Fingerprint\ServerAPI\Model\IPLocationCity */ public function getCity(): ?IPLocationCity { @@ -383,8 +375,6 @@ public function setCity(?IPLocationCity $city): self /** * Gets country. - * - * @return ?\Fingerprint\ServerAPI\Model\Location */ public function getCountry(): ?Location { @@ -407,8 +397,6 @@ public function setCountry(?Location $country): self /** * Gets continent. - * - * @return ?\Fingerprint\ServerAPI\Model\Location */ public function getContinent(): ?Location { diff --git a/src/Model/IPLocationCity.php b/src/Model/IPLocationCity.php index c0637bf3..5e066dcb 100644 --- a/src/Model/IPLocationCity.php +++ b/src/Model/IPLocationCity.php @@ -191,8 +191,6 @@ public function valid(): bool /** * Gets name. - * - * @return ?string */ public function getName(): ?string { diff --git a/src/Model/IpInfoResult.php b/src/Model/IpInfoResult.php index 2a6a7d98..f414d4fb 100644 --- a/src/Model/IpInfoResult.php +++ b/src/Model/IpInfoResult.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets v4. - * - * @return ?\Fingerprint\ServerAPI\Model\IpInfoResultV4 */ public function getV4(): ?IpInfoResultV4 { @@ -223,8 +221,6 @@ public function setV4(?IpInfoResultV4 $v4): self /** * Gets v6. - * - * @return ?\Fingerprint\ServerAPI\Model\IpInfoResultV6 */ public function getV6(): ?IpInfoResultV6 { diff --git a/src/Model/IpInfoResultV4.php b/src/Model/IpInfoResultV4.php index 8a2f36d3..28e3dc98 100644 --- a/src/Model/IpInfoResultV4.php +++ b/src/Model/IpInfoResultV4.php @@ -262,8 +262,6 @@ public function setGeolocation(IPLocation $geolocation): self /** * Gets asn. - * - * @return ?\Fingerprint\ServerAPI\Model\ASN */ public function getAsn(): ?ASN { @@ -286,8 +284,6 @@ public function setAsn(?ASN $asn): self /** * Gets datacenter. - * - * @return ?\Fingerprint\ServerAPI\Model\DataCenter */ public function getDatacenter(): ?DataCenter { diff --git a/src/Model/IpInfoResultV6.php b/src/Model/IpInfoResultV6.php index 0774ae9c..3916d40f 100644 --- a/src/Model/IpInfoResultV6.php +++ b/src/Model/IpInfoResultV6.php @@ -262,8 +262,6 @@ public function setGeolocation(IPLocation $geolocation): self /** * Gets asn. - * - * @return ?\Fingerprint\ServerAPI\Model\ASN */ public function getAsn(): ?ASN { @@ -286,8 +284,6 @@ public function setAsn(?ASN $asn): self /** * Gets datacenter. - * - * @return ?\Fingerprint\ServerAPI\Model\DataCenter */ public function getDatacenter(): ?DataCenter { diff --git a/src/Model/ProductsResponse.php b/src/Model/ProductsResponse.php index 16649fd8..684f78fc 100644 --- a/src/Model/ProductsResponse.php +++ b/src/Model/ProductsResponse.php @@ -331,8 +331,6 @@ public function valid(): bool /** * Gets identification. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductsResponseIdentification */ public function getIdentification(): ?ProductsResponseIdentification { @@ -355,8 +353,6 @@ public function setIdentification(?ProductsResponseIdentification $identificatio /** * Gets botd. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductsResponseBotd */ public function getBotd(): ?ProductsResponseBotd { @@ -379,8 +375,6 @@ public function setBotd(?ProductsResponseBotd $botd): self /** * Gets ip_info. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseIpInfo */ public function getIpInfo(): ?SignalResponseIpInfo { @@ -403,8 +397,6 @@ public function setIpInfo(?SignalResponseIpInfo $ip_info): self /** * Gets incognito. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseIncognito */ public function getIncognito(): ?SignalResponseIncognito { @@ -427,8 +419,6 @@ public function setIncognito(?SignalResponseIncognito $incognito): self /** * Gets root_apps. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseRootApps */ public function getRootApps(): ?SignalResponseRootApps { @@ -451,8 +441,6 @@ public function setRootApps(?SignalResponseRootApps $root_apps): self /** * Gets emulator. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseEmulator */ public function getEmulator(): ?SignalResponseEmulator { @@ -475,8 +463,6 @@ public function setEmulator(?SignalResponseEmulator $emulator): self /** * Gets cloned_app. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseClonedApp */ public function getClonedApp(): ?SignalResponseClonedApp { @@ -499,8 +485,6 @@ public function setClonedApp(?SignalResponseClonedApp $cloned_app): self /** * Gets factory_reset. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseFactoryReset */ public function getFactoryReset(): ?SignalResponseFactoryReset { @@ -523,8 +507,6 @@ public function setFactoryReset(?SignalResponseFactoryReset $factory_reset): sel /** * Gets jailbroken. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseJailbroken */ public function getJailbroken(): ?SignalResponseJailbroken { @@ -547,8 +529,6 @@ public function setJailbroken(?SignalResponseJailbroken $jailbroken): self /** * Gets frida. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseFrida */ public function getFrida(): ?SignalResponseFrida { @@ -571,8 +551,6 @@ public function setFrida(?SignalResponseFrida $frida): self /** * Gets ip_blocklist. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseIpBlocklist */ public function getIpBlocklist(): ?SignalResponseIpBlocklist { @@ -595,8 +573,6 @@ public function setIpBlocklist(?SignalResponseIpBlocklist $ip_blocklist): self /** * Gets tor. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseTor */ public function getTor(): ?SignalResponseTor { @@ -619,8 +595,6 @@ public function setTor(?SignalResponseTor $tor): self /** * Gets privacy_settings. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponsePrivacySettings */ public function getPrivacySettings(): ?SignalResponsePrivacySettings { @@ -643,8 +617,6 @@ public function setPrivacySettings(?SignalResponsePrivacySettings $privacy_setti /** * Gets virtual_machine. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseVirtualMachine */ public function getVirtualMachine(): ?SignalResponseVirtualMachine { @@ -667,8 +639,6 @@ public function setVirtualMachine(?SignalResponseVirtualMachine $virtual_machine /** * Gets vpn. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseVpn */ public function getVpn(): ?SignalResponseVpn { @@ -691,8 +661,6 @@ public function setVpn(?SignalResponseVpn $vpn): self /** * Gets proxy. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseProxy */ public function getProxy(): ?SignalResponseProxy { @@ -715,8 +683,6 @@ public function setProxy(?SignalResponseProxy $proxy): self /** * Gets tampering. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseTampering */ public function getTampering(): ?SignalResponseTampering { @@ -739,8 +705,6 @@ public function setTampering(?SignalResponseTampering $tampering): self /** * Gets high_activity. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseHighActivity */ public function getHighActivity(): ?SignalResponseHighActivity { @@ -763,8 +727,6 @@ public function setHighActivity(?SignalResponseHighActivity $high_activity): sel /** * Gets location_spoofing. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseLocationSpoofing */ public function getLocationSpoofing(): ?SignalResponseLocationSpoofing { @@ -787,8 +749,6 @@ public function setLocationSpoofing(?SignalResponseLocationSpoofing $location_sp /** * Gets suspect_score. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseSuspectScore */ public function getSuspectScore(): ?SignalResponseSuspectScore { @@ -811,8 +771,6 @@ public function setSuspectScore(?SignalResponseSuspectScore $suspect_score): sel /** * Gets raw_device_attributes. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseRawDeviceAttributes */ public function getRawDeviceAttributes(): ?SignalResponseRawDeviceAttributes { @@ -835,8 +793,6 @@ public function setRawDeviceAttributes(?SignalResponseRawDeviceAttributes $raw_d /** * Gets remote_control. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseRemoteControl */ public function getRemoteControl(): ?SignalResponseRemoteControl { @@ -859,8 +815,6 @@ public function setRemoteControl(?SignalResponseRemoteControl $remote_control): /** * Gets velocity. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseVelocity */ public function getVelocity(): ?SignalResponseVelocity { @@ -883,8 +837,6 @@ public function setVelocity(?SignalResponseVelocity $velocity): self /** * Gets developer_tools. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseDeveloperTools */ public function getDeveloperTools(): ?SignalResponseDeveloperTools { diff --git a/src/Model/ProductsResponseBotd.php b/src/Model/ProductsResponseBotd.php index 7d8255c1..e1dc0d34 100644 --- a/src/Model/ProductsResponseBotd.php +++ b/src/Model/ProductsResponseBotd.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\BotdResult */ public function getData(): ?BotdResult { @@ -221,8 +219,6 @@ public function setData(?BotdResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/ProductsResponseIdentification.php b/src/Model/ProductsResponseIdentification.php index dfec88dc..aeeb57c0 100644 --- a/src/Model/ProductsResponseIdentification.php +++ b/src/Model/ProductsResponseIdentification.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductsResponseIdentificationData */ public function getData(): ?ProductsResponseIdentificationData { @@ -221,8 +219,6 @@ public function setData(?ProductsResponseIdentificationData $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ public function getError(): ?IdentificationError { diff --git a/src/Model/ProductsResponseIdentificationData.php b/src/Model/ProductsResponseIdentificationData.php index 1bf397fc..c2ae2e4f 100644 --- a/src/Model/ProductsResponseIdentificationData.php +++ b/src/Model/ProductsResponseIdentificationData.php @@ -402,8 +402,6 @@ public function setIp(string $ip): self /** * Gets ip_location. - * - * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ public function getIpLocation(): ?DeprecatedIPLocation { @@ -516,8 +514,6 @@ public function setTag(array $tag): self /** * Gets linked_id. - * - * @return ?string */ public function getLinkedId(): ?string { @@ -540,8 +536,6 @@ public function setLinkedId(?string $linked_id): self /** * Gets confidence. - * - * @return ?\Fingerprint\ServerAPI\Model\Confidence */ public function getConfidence(): ?Confidence { diff --git a/src/Model/Response.php b/src/Model/Response.php index 2aa4f347..93de00cc 100644 --- a/src/Model/Response.php +++ b/src/Model/Response.php @@ -266,8 +266,6 @@ public function setVisits(array $visits): self /** * Gets last_timestamp. - * - * @return ?int */ public function getLastTimestamp(): ?int { @@ -290,8 +288,6 @@ public function setLastTimestamp(?int $last_timestamp): self /** * Gets pagination_key. - * - * @return ?string */ public function getPaginationKey(): ?string { diff --git a/src/Model/ResponseVisits.php b/src/Model/ResponseVisits.php index e3b67f55..3621a1a5 100644 --- a/src/Model/ResponseVisits.php +++ b/src/Model/ResponseVisits.php @@ -393,8 +393,6 @@ public function setIp(string $ip): self /** * Gets ip_location. - * - * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ public function getIpLocation(): ?DeprecatedIPLocation { @@ -507,8 +505,6 @@ public function setTag(array $tag): self /** * Gets linked_id. - * - * @return ?string */ public function getLinkedId(): ?string { @@ -531,8 +527,6 @@ public function setLinkedId(?string $linked_id): self /** * Gets confidence. - * - * @return ?\Fingerprint\ServerAPI\Model\Confidence */ public function getConfidence(): ?Confidence { diff --git a/src/Model/SignalResponseClonedApp.php b/src/Model/SignalResponseClonedApp.php index 0edbcaf2..588a2cf2 100644 --- a/src/Model/SignalResponseClonedApp.php +++ b/src/Model/SignalResponseClonedApp.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\ClonedAppResult */ public function getData(): ?ClonedAppResult { @@ -221,8 +219,6 @@ public function setData(?ClonedAppResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseDeveloperTools.php b/src/Model/SignalResponseDeveloperTools.php index d25d3207..e65db632 100644 --- a/src/Model/SignalResponseDeveloperTools.php +++ b/src/Model/SignalResponseDeveloperTools.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\DeveloperToolsResult */ public function getData(): ?DeveloperToolsResult { @@ -221,8 +219,6 @@ public function setData(?DeveloperToolsResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseEmulator.php b/src/Model/SignalResponseEmulator.php index 15d6b196..61b0ee07 100644 --- a/src/Model/SignalResponseEmulator.php +++ b/src/Model/SignalResponseEmulator.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\EmulatorResult */ public function getData(): ?EmulatorResult { @@ -221,8 +219,6 @@ public function setData(?EmulatorResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseFactoryReset.php b/src/Model/SignalResponseFactoryReset.php index 95f0737a..d61b0132 100644 --- a/src/Model/SignalResponseFactoryReset.php +++ b/src/Model/SignalResponseFactoryReset.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\FactoryResetResult */ public function getData(): ?FactoryResetResult { @@ -221,8 +219,6 @@ public function setData(?FactoryResetResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseFrida.php b/src/Model/SignalResponseFrida.php index 86aba169..7db7a1f4 100644 --- a/src/Model/SignalResponseFrida.php +++ b/src/Model/SignalResponseFrida.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\FridaResult */ public function getData(): ?FridaResult { @@ -221,8 +219,6 @@ public function setData(?FridaResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseHighActivity.php b/src/Model/SignalResponseHighActivity.php index 9a1e755a..25998369 100644 --- a/src/Model/SignalResponseHighActivity.php +++ b/src/Model/SignalResponseHighActivity.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\HighActivityResult */ public function getData(): ?HighActivityResult { @@ -221,8 +219,6 @@ public function setData(?HighActivityResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseIncognito.php b/src/Model/SignalResponseIncognito.php index e8e87138..c7fff6eb 100644 --- a/src/Model/SignalResponseIncognito.php +++ b/src/Model/SignalResponseIncognito.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\IncognitoResult */ public function getData(): ?IncognitoResult { @@ -221,8 +219,6 @@ public function setData(?IncognitoResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ public function getError(): ?IdentificationError { diff --git a/src/Model/SignalResponseIpBlocklist.php b/src/Model/SignalResponseIpBlocklist.php index 00a37d29..c7936240 100644 --- a/src/Model/SignalResponseIpBlocklist.php +++ b/src/Model/SignalResponseIpBlocklist.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\IpBlockListResult */ public function getData(): ?IpBlockListResult { @@ -221,8 +219,6 @@ public function setData(?IpBlockListResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseIpInfo.php b/src/Model/SignalResponseIpInfo.php index 48e5fa40..4314cc08 100644 --- a/src/Model/SignalResponseIpInfo.php +++ b/src/Model/SignalResponseIpInfo.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\IpInfoResult */ public function getData(): ?IpInfoResult { @@ -221,8 +219,6 @@ public function setData(?IpInfoResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseJailbroken.php b/src/Model/SignalResponseJailbroken.php index 5d33f2fe..3e61ce07 100644 --- a/src/Model/SignalResponseJailbroken.php +++ b/src/Model/SignalResponseJailbroken.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\JailbrokenResult */ public function getData(): ?JailbrokenResult { @@ -221,8 +219,6 @@ public function setData(?JailbrokenResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseLocationSpoofing.php b/src/Model/SignalResponseLocationSpoofing.php index aef5b071..c56ae7ac 100644 --- a/src/Model/SignalResponseLocationSpoofing.php +++ b/src/Model/SignalResponseLocationSpoofing.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\LocationSpoofingResult */ public function getData(): ?LocationSpoofingResult { @@ -221,8 +219,6 @@ public function setData(?LocationSpoofingResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponsePrivacySettings.php b/src/Model/SignalResponsePrivacySettings.php index a97c78aa..24491013 100644 --- a/src/Model/SignalResponsePrivacySettings.php +++ b/src/Model/SignalResponsePrivacySettings.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\PrivacySettingsResult */ public function getData(): ?PrivacySettingsResult { @@ -221,8 +219,6 @@ public function setData(?PrivacySettingsResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseProxy.php b/src/Model/SignalResponseProxy.php index 0f354989..9e6b6322 100644 --- a/src/Model/SignalResponseProxy.php +++ b/src/Model/SignalResponseProxy.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\ProxyResult */ public function getData(): ?ProxyResult { @@ -221,8 +219,6 @@ public function setData(?ProxyResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseRawDeviceAttributes.php b/src/Model/SignalResponseRawDeviceAttributes.php index 68a20adc..fa20abb4 100644 --- a/src/Model/SignalResponseRawDeviceAttributes.php +++ b/src/Model/SignalResponseRawDeviceAttributes.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult */ public function getData(): array { @@ -221,8 +219,6 @@ public function setData(?array $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ public function getError(): ?IdentificationError { diff --git a/src/Model/SignalResponseRemoteControl.php b/src/Model/SignalResponseRemoteControl.php index afec1f39..8fc480f4 100644 --- a/src/Model/SignalResponseRemoteControl.php +++ b/src/Model/SignalResponseRemoteControl.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\RemoteControlResult */ public function getData(): ?RemoteControlResult { @@ -221,8 +219,6 @@ public function setData(?RemoteControlResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseRootApps.php b/src/Model/SignalResponseRootApps.php index d5ed6c79..9796070e 100644 --- a/src/Model/SignalResponseRootApps.php +++ b/src/Model/SignalResponseRootApps.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\RootAppsResult */ public function getData(): ?RootAppsResult { @@ -221,8 +219,6 @@ public function setData(?RootAppsResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseSuspectScore.php b/src/Model/SignalResponseSuspectScore.php index 3614acf0..3c0e43d4 100644 --- a/src/Model/SignalResponseSuspectScore.php +++ b/src/Model/SignalResponseSuspectScore.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\SuspectScoreResult */ public function getData(): ?SuspectScoreResult { @@ -221,8 +219,6 @@ public function setData(?SuspectScoreResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseTampering.php b/src/Model/SignalResponseTampering.php index 68c818ea..e5802690 100644 --- a/src/Model/SignalResponseTampering.php +++ b/src/Model/SignalResponseTampering.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\TamperingResult */ public function getData(): ?TamperingResult { @@ -221,8 +219,6 @@ public function setData(?TamperingResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ public function getError(): ?IdentificationError { diff --git a/src/Model/SignalResponseTor.php b/src/Model/SignalResponseTor.php index 06ac9768..e1d0a4d0 100644 --- a/src/Model/SignalResponseTor.php +++ b/src/Model/SignalResponseTor.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\TorResult */ public function getData(): ?TorResult { @@ -221,8 +219,6 @@ public function setData(?TorResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseVelocity.php b/src/Model/SignalResponseVelocity.php index 3ccfbdbe..0c717ca2 100644 --- a/src/Model/SignalResponseVelocity.php +++ b/src/Model/SignalResponseVelocity.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\VelocityResult */ public function getData(): ?VelocityResult { @@ -221,8 +219,6 @@ public function setData(?VelocityResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseVirtualMachine.php b/src/Model/SignalResponseVirtualMachine.php index 906eedd2..50f1d4fe 100644 --- a/src/Model/SignalResponseVirtualMachine.php +++ b/src/Model/SignalResponseVirtualMachine.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\VirtualMachineResult */ public function getData(): ?VirtualMachineResult { @@ -221,8 +219,6 @@ public function setData(?VirtualMachineResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseVpn.php b/src/Model/SignalResponseVpn.php index b96d13c5..0f1f63c7 100644 --- a/src/Model/SignalResponseVpn.php +++ b/src/Model/SignalResponseVpn.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\VpnResult */ public function getData(): ?VpnResult { @@ -221,8 +219,6 @@ public function setData(?VpnResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/Subdivision.php b/src/Model/Subdivision.php index 0c2835d8..32997076 100644 --- a/src/Model/Subdivision.php +++ b/src/Model/Subdivision.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets iso_code. - * - * @return ?string */ public function getIsoCode(): ?string { @@ -221,8 +219,6 @@ public function setIsoCode(?string $iso_code): self /** * Gets name. - * - * @return ?string */ public function getName(): ?string { diff --git a/src/Model/VelocityIntervalResult.php b/src/Model/VelocityIntervalResult.php index efa97f7d..2f60b5d5 100644 --- a/src/Model/VelocityIntervalResult.php +++ b/src/Model/VelocityIntervalResult.php @@ -258,8 +258,6 @@ public function set1h(int $_1h): self /** * Gets _24h. - * - * @return ?int */ public function get24h(): ?int { diff --git a/src/Model/VelocityIntervals.php b/src/Model/VelocityIntervals.php index f2a84395..f1cf6697 100644 --- a/src/Model/VelocityIntervals.php +++ b/src/Model/VelocityIntervals.php @@ -191,8 +191,6 @@ public function valid(): bool /** * Gets intervals. - * - * @return ?\Fingerprint\ServerAPI\Model\VelocityIntervalResult */ public function getIntervals(): ?VelocityIntervalResult { diff --git a/src/Model/Visit.php b/src/Model/Visit.php index 63ad75b2..4798b030 100644 --- a/src/Model/Visit.php +++ b/src/Model/Visit.php @@ -390,8 +390,6 @@ public function setIp(string $ip): self /** * Gets ip_location. - * - * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ public function getIpLocation(): ?DeprecatedIPLocation { @@ -504,8 +502,6 @@ public function setTag(?array $tag): self /** * Gets linked_id. - * - * @return ?string */ public function getLinkedId(): ?string { @@ -528,8 +524,6 @@ public function setLinkedId(?string $linked_id): self /** * Gets confidence. - * - * @return ?\Fingerprint\ServerAPI\Model\Confidence */ public function getConfidence(): ?Confidence { diff --git a/src/Model/VpnResult.php b/src/Model/VpnResult.php index 2b5651e8..0a593da4 100644 --- a/src/Model/VpnResult.php +++ b/src/Model/VpnResult.php @@ -265,8 +265,6 @@ public function setOriginTimezone(string $origin_timezone): self /** * Gets origin_country. - * - * @return ?string */ public function getOriginCountry(): ?string { diff --git a/src/Model/WebhookVisit.php b/src/Model/WebhookVisit.php index 585c084a..f7872300 100644 --- a/src/Model/WebhookVisit.php +++ b/src/Model/WebhookVisit.php @@ -477,8 +477,6 @@ public function setVisitorId(string $visitor_id): self /** * Gets client_referrer. - * - * @return ?string */ public function getClientReferrer(): ?string { @@ -501,8 +499,6 @@ public function setClientReferrer(?string $client_referrer): self /** * Gets user_agent. - * - * @return ?string */ public function getUserAgent(): ?string { @@ -525,8 +521,6 @@ public function setUserAgent(?string $user_agent): self /** * Gets bot. - * - * @return ?\Fingerprint\ServerAPI\Model\BotdDetectionResult */ public function getBot(): ?BotdDetectionResult { @@ -549,8 +543,6 @@ public function setBot(?BotdDetectionResult $bot): self /** * Gets ip_info. - * - * @return ?\Fingerprint\ServerAPI\Model\IpInfoResult */ public function getIpInfo(): ?IpInfoResult { @@ -595,8 +587,6 @@ public function setIncognito(bool $incognito): self /** * Gets root_apps. - * - * @return ?\Fingerprint\ServerAPI\Model\RootAppsResult */ public function getRootApps(): ?RootAppsResult { @@ -619,8 +609,6 @@ public function setRootApps(?RootAppsResult $root_apps): self /** * Gets emulator. - * - * @return ?\Fingerprint\ServerAPI\Model\EmulatorResult */ public function getEmulator(): ?EmulatorResult { @@ -643,8 +631,6 @@ public function setEmulator(?EmulatorResult $emulator): self /** * Gets cloned_app. - * - * @return ?\Fingerprint\ServerAPI\Model\ClonedAppResult */ public function getClonedApp(): ?ClonedAppResult { @@ -667,8 +653,6 @@ public function setClonedApp(?ClonedAppResult $cloned_app): self /** * Gets factory_reset. - * - * @return ?\Fingerprint\ServerAPI\Model\FactoryResetResult */ public function getFactoryReset(): ?FactoryResetResult { @@ -691,8 +675,6 @@ public function setFactoryReset(?FactoryResetResult $factory_reset): self /** * Gets jailbroken. - * - * @return ?\Fingerprint\ServerAPI\Model\JailbrokenResult */ public function getJailbroken(): ?JailbrokenResult { @@ -715,8 +697,6 @@ public function setJailbroken(?JailbrokenResult $jailbroken): self /** * Gets frida. - * - * @return ?\Fingerprint\ServerAPI\Model\FridaResult */ public function getFrida(): ?FridaResult { @@ -739,8 +719,6 @@ public function setFrida(?FridaResult $frida): self /** * Gets ip_blocklist. - * - * @return ?\Fingerprint\ServerAPI\Model\IpBlockListResult */ public function getIpBlocklist(): ?IpBlockListResult { @@ -763,8 +741,6 @@ public function setIpBlocklist(?IpBlockListResult $ip_blocklist): self /** * Gets tor. - * - * @return ?\Fingerprint\ServerAPI\Model\TorResult */ public function getTor(): ?TorResult { @@ -787,8 +763,6 @@ public function setTor(?TorResult $tor): self /** * Gets privacy_settings. - * - * @return ?\Fingerprint\ServerAPI\Model\PrivacySettingsResult */ public function getPrivacySettings(): ?PrivacySettingsResult { @@ -811,8 +785,6 @@ public function setPrivacySettings(?PrivacySettingsResult $privacy_settings): se /** * Gets virtual_machine. - * - * @return ?\Fingerprint\ServerAPI\Model\VirtualMachineResult */ public function getVirtualMachine(): ?VirtualMachineResult { @@ -835,8 +807,6 @@ public function setVirtualMachine(?VirtualMachineResult $virtual_machine): self /** * Gets vpn. - * - * @return ?\Fingerprint\ServerAPI\Model\VpnResult */ public function getVpn(): ?VpnResult { @@ -859,8 +829,6 @@ public function setVpn(?VpnResult $vpn): self /** * Gets proxy. - * - * @return ?\Fingerprint\ServerAPI\Model\ProxyResult */ public function getProxy(): ?ProxyResult { @@ -883,8 +851,6 @@ public function setProxy(?ProxyResult $proxy): self /** * Gets tampering. - * - * @return ?\Fingerprint\ServerAPI\Model\TamperingResult */ public function getTampering(): ?TamperingResult { @@ -907,8 +873,6 @@ public function setTampering(?TamperingResult $tampering): self /** * Gets raw_device_attributes. - * - * @return ?\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult */ public function getRawDeviceAttributes(): ?RawDeviceAttributesResult { @@ -931,8 +895,6 @@ public function setRawDeviceAttributes(?RawDeviceAttributesResult $raw_device_at /** * Gets high_activity. - * - * @return ?\Fingerprint\ServerAPI\Model\HighActivityResult */ public function getHighActivity(): ?HighActivityResult { @@ -955,8 +917,6 @@ public function setHighActivity(?HighActivityResult $high_activity): self /** * Gets location_spoofing. - * - * @return ?\Fingerprint\ServerAPI\Model\LocationSpoofingResult */ public function getLocationSpoofing(): ?LocationSpoofingResult { @@ -979,8 +939,6 @@ public function setLocationSpoofing(?LocationSpoofingResult $location_spoofing): /** * Gets suspect_score. - * - * @return ?\Fingerprint\ServerAPI\Model\SuspectScoreResult */ public function getSuspectScore(): ?SuspectScoreResult { @@ -1003,8 +961,6 @@ public function setSuspectScore(?SuspectScoreResult $suspect_score): self /** * Gets remote_control. - * - * @return ?\Fingerprint\ServerAPI\Model\RemoteControlResult */ public function getRemoteControl(): ?RemoteControlResult { @@ -1027,8 +983,6 @@ public function setRemoteControl(?RemoteControlResult $remote_control): self /** * Gets velocity. - * - * @return ?\Fingerprint\ServerAPI\Model\VelocityResult */ public function getVelocity(): ?VelocityResult { @@ -1051,8 +1005,6 @@ public function setVelocity(?VelocityResult $velocity): self /** * Gets developer_tools. - * - * @return ?\Fingerprint\ServerAPI\Model\DeveloperToolsResult */ public function getDeveloperTools(): ?DeveloperToolsResult { @@ -1141,8 +1093,6 @@ public function setIp(string $ip): self /** * Gets ip_location. - * - * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ public function getIpLocation(): ?DeprecatedIPLocation { @@ -1255,8 +1205,6 @@ public function setTag(?array $tag): self /** * Gets linked_id. - * - * @return ?string */ public function getLinkedId(): ?string { @@ -1279,8 +1227,6 @@ public function setLinkedId(?string $linked_id): self /** * Gets confidence. - * - * @return ?\Fingerprint\ServerAPI\Model\Confidence */ public function getConfidence(): ?Confidence { From 9613c34535c8ef675a0d5e129ca4a23b1ee6fcc9 Mon Sep 17 00:00:00 2001 From: Orkun Date: Wed, 4 Sep 2024 14:22:29 +0300 Subject: [PATCH 03/11] fix: use linter with current config via docker --- scripts/generate.sh | 2 +- src/Model/ASN.php | 2 + src/Model/BotdDetectionResult.php | 2 + src/Model/BotdResult.php | 2 + src/Model/BrowserDetails.php | 2 + src/Model/Confidence.php | 2 + src/Model/DataCenter.php | 2 + src/Model/DeprecatedIPLocation.php | 12 +++++ src/Model/DeprecatedIPLocationCity.php | 2 + src/Model/ErrorCommon403Response.php | 2 + src/Model/ErrorCommon429Response.php | 2 + src/Model/ErrorEvent404Response.php | 2 + src/Model/ErrorUpdateEvent400Response.php | 2 + src/Model/ErrorUpdateEvent409Response.php | 2 + src/Model/ErrorVisitor400Response.php | 2 + src/Model/ErrorVisitor404Response.php | 2 + src/Model/EventResponse.php | 2 + src/Model/EventUpdateRequest.php | 6 +++ src/Model/HighActivityResult.php | 2 + src/Model/IPLocation.php | 12 +++++ src/Model/IPLocationCity.php | 2 + src/Model/IpInfoResult.php | 4 ++ src/Model/IpInfoResultV4.php | 4 ++ src/Model/IpInfoResultV6.php | 4 ++ src/Model/ProductsResponse.php | 48 +++++++++++++++++ src/Model/ProductsResponseBotd.php | 4 ++ src/Model/ProductsResponseIdentification.php | 4 ++ .../ProductsResponseIdentificationData.php | 6 +++ src/Model/Response.php | 4 ++ src/Model/ResponseVisits.php | 6 +++ src/Model/SignalResponseClonedApp.php | 4 ++ src/Model/SignalResponseDeveloperTools.php | 4 ++ src/Model/SignalResponseEmulator.php | 4 ++ src/Model/SignalResponseFactoryReset.php | 4 ++ src/Model/SignalResponseFrida.php | 4 ++ src/Model/SignalResponseHighActivity.php | 4 ++ src/Model/SignalResponseIncognito.php | 4 ++ src/Model/SignalResponseIpBlocklist.php | 4 ++ src/Model/SignalResponseIpInfo.php | 4 ++ src/Model/SignalResponseJailbroken.php | 4 ++ src/Model/SignalResponseLocationSpoofing.php | 4 ++ src/Model/SignalResponsePrivacySettings.php | 4 ++ src/Model/SignalResponseProxy.php | 4 ++ .../SignalResponseRawDeviceAttributes.php | 4 ++ src/Model/SignalResponseRemoteControl.php | 4 ++ src/Model/SignalResponseRootApps.php | 4 ++ src/Model/SignalResponseSuspectScore.php | 4 ++ src/Model/SignalResponseTampering.php | 4 ++ src/Model/SignalResponseTor.php | 4 ++ src/Model/SignalResponseVelocity.php | 4 ++ src/Model/SignalResponseVirtualMachine.php | 4 ++ src/Model/SignalResponseVpn.php | 4 ++ src/Model/Subdivision.php | 4 ++ src/Model/VelocityIntervalResult.php | 2 + src/Model/VelocityIntervals.php | 2 + src/Model/Visit.php | 6 +++ src/Model/VpnResult.php | 2 + src/Model/WebhookVisit.php | 54 +++++++++++++++++++ 58 files changed, 307 insertions(+), 1 deletion(-) diff --git a/scripts/generate.sh b/scripts/generate.sh index 9113d8af..2ca7bd38 100755 --- a/scripts/generate.sh +++ b/scripts/generate.sh @@ -40,7 +40,7 @@ rm -f ./src/Model/* java -jar ./bin/swagger-codegen-cli.jar generate -t ./template -l php -i ./res/fingerprint-server-api.yaml -o ./ -c config.json -docker run --rm -v $(pwd):/code ghcr.io/php-cs-fixer/php-cs-fixer:${FIXER_VERSION:-3-php8.3} fix +docker run --rm -v $(pwd):/code ghcr.io/php-cs-fixer/php-cs-fixer:${FIXER_VERSION:-3-php8.3} fix --config=/code/.php-cs-fixer.php /code/src # fix invalid code generated for structure with additionalProperties ( diff --git a/src/Model/ASN.php b/src/Model/ASN.php index 5bffc27b..6e544e45 100644 --- a/src/Model/ASN.php +++ b/src/Model/ASN.php @@ -256,6 +256,8 @@ public function setNetwork(string $network): self /** * Gets name. + * + * @return ?string */ public function getName(): ?string { diff --git a/src/Model/BotdDetectionResult.php b/src/Model/BotdDetectionResult.php index 2bb3d40c..27120931 100644 --- a/src/Model/BotdDetectionResult.php +++ b/src/Model/BotdDetectionResult.php @@ -260,6 +260,8 @@ public function setResult(string $result): self /** * Gets type. + * + * @return ?string */ public function getType(): ?string { diff --git a/src/Model/BotdResult.php b/src/Model/BotdResult.php index eaa02aca..178a37d2 100644 --- a/src/Model/BotdResult.php +++ b/src/Model/BotdResult.php @@ -360,6 +360,8 @@ public function setRequestId(string $request_id): self /** * Gets linked_id. + * + * @return ?string */ public function getLinkedId(): ?string { diff --git a/src/Model/BrowserDetails.php b/src/Model/BrowserDetails.php index cc8d8250..d04d9bc8 100644 --- a/src/Model/BrowserDetails.php +++ b/src/Model/BrowserDetails.php @@ -411,6 +411,8 @@ public function setUserAgent(string $user_agent): self /** * Gets bot_probability. + * + * @return ?int */ public function getBotProbability(): ?int { diff --git a/src/Model/Confidence.php b/src/Model/Confidence.php index 4ecbc53a..9aeb20db 100644 --- a/src/Model/Confidence.php +++ b/src/Model/Confidence.php @@ -225,6 +225,8 @@ public function setScore(float $score): self /** * Gets revision. + * + * @return ?string */ public function getRevision(): ?string { diff --git a/src/Model/DataCenter.php b/src/Model/DataCenter.php index cd6edc93..1b8c9294 100644 --- a/src/Model/DataCenter.php +++ b/src/Model/DataCenter.php @@ -225,6 +225,8 @@ public function setResult(bool $result): self /** * Gets name. + * + * @return ?string */ public function getName(): ?string { diff --git a/src/Model/DeprecatedIPLocation.php b/src/Model/DeprecatedIPLocation.php index 92ec70fc..9739584c 100644 --- a/src/Model/DeprecatedIPLocation.php +++ b/src/Model/DeprecatedIPLocation.php @@ -241,6 +241,8 @@ public function valid(): bool /** * Gets accuracy_radius. + * + * @return ?int */ public function getAccuracyRadius(): ?int { @@ -311,6 +313,8 @@ public function setLongitude(?float $longitude): self /** * Gets postal_code. + * + * @return ?string */ public function getPostalCode(): ?string { @@ -333,6 +337,8 @@ public function setPostalCode(?string $postal_code): self /** * Gets timezone. + * + * @return ?string */ public function getTimezone(): ?string { @@ -355,6 +361,8 @@ public function setTimezone(?string $timezone): self /** * Gets city. + * + * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocationCity */ public function getCity(): ?DeprecatedIPLocationCity { @@ -377,6 +385,8 @@ public function setCity(?DeprecatedIPLocationCity $city): self /** * Gets country. + * + * @return ?\Fingerprint\ServerAPI\Model\Location */ public function getCountry(): ?Location { @@ -399,6 +409,8 @@ public function setCountry(?Location $country): self /** * Gets continent. + * + * @return ?\Fingerprint\ServerAPI\Model\Location */ public function getContinent(): ?Location { diff --git a/src/Model/DeprecatedIPLocationCity.php b/src/Model/DeprecatedIPLocationCity.php index 80b25d81..fdffb4e1 100644 --- a/src/Model/DeprecatedIPLocationCity.php +++ b/src/Model/DeprecatedIPLocationCity.php @@ -191,6 +191,8 @@ public function valid(): bool /** * Gets name. + * + * @return ?string */ public function getName(): ?string { diff --git a/src/Model/ErrorCommon403Response.php b/src/Model/ErrorCommon403Response.php index 72801e89..1afa5e6e 100644 --- a/src/Model/ErrorCommon403Response.php +++ b/src/Model/ErrorCommon403Response.php @@ -191,6 +191,8 @@ public function valid(): bool /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\Common403ErrorResponse */ public function getError(): ?Common403ErrorResponse { diff --git a/src/Model/ErrorCommon429Response.php b/src/Model/ErrorCommon429Response.php index ef544255..d2dc070d 100644 --- a/src/Model/ErrorCommon429Response.php +++ b/src/Model/ErrorCommon429Response.php @@ -191,6 +191,8 @@ public function valid(): bool /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ErrorCommon429ResponseError */ public function getError(): ?ErrorCommon429ResponseError { diff --git a/src/Model/ErrorEvent404Response.php b/src/Model/ErrorEvent404Response.php index 2142983c..b03ce283 100644 --- a/src/Model/ErrorEvent404Response.php +++ b/src/Model/ErrorEvent404Response.php @@ -191,6 +191,8 @@ public function valid(): bool /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ErrorEvent404ResponseError */ public function getError(): ?ErrorEvent404ResponseError { diff --git a/src/Model/ErrorUpdateEvent400Response.php b/src/Model/ErrorUpdateEvent400Response.php index f2157ca0..06737e39 100644 --- a/src/Model/ErrorUpdateEvent400Response.php +++ b/src/Model/ErrorUpdateEvent400Response.php @@ -191,6 +191,8 @@ public function valid(): bool /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ErrorUpdateEvent400ResponseError */ public function getError(): ?ErrorUpdateEvent400ResponseError { diff --git a/src/Model/ErrorUpdateEvent409Response.php b/src/Model/ErrorUpdateEvent409Response.php index 3e1bed4d..5e1a0590 100644 --- a/src/Model/ErrorUpdateEvent409Response.php +++ b/src/Model/ErrorUpdateEvent409Response.php @@ -191,6 +191,8 @@ public function valid(): bool /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ErrorUpdateEvent409ResponseError */ public function getError(): ?ErrorUpdateEvent409ResponseError { diff --git a/src/Model/ErrorVisitor400Response.php b/src/Model/ErrorVisitor400Response.php index b8069300..8add5b42 100644 --- a/src/Model/ErrorVisitor400Response.php +++ b/src/Model/ErrorVisitor400Response.php @@ -191,6 +191,8 @@ public function valid(): bool /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ErrorVisitor400ResponseError */ public function getError(): ?ErrorVisitor400ResponseError { diff --git a/src/Model/ErrorVisitor404Response.php b/src/Model/ErrorVisitor404Response.php index 844c224b..d0eac080 100644 --- a/src/Model/ErrorVisitor404Response.php +++ b/src/Model/ErrorVisitor404Response.php @@ -191,6 +191,8 @@ public function valid(): bool /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ErrorVisitor404ResponseError */ public function getError(): ?ErrorVisitor404ResponseError { diff --git a/src/Model/EventResponse.php b/src/Model/EventResponse.php index 4cf0bcb7..ee5b3fbe 100644 --- a/src/Model/EventResponse.php +++ b/src/Model/EventResponse.php @@ -227,6 +227,8 @@ public function setProducts(ProductsResponse $products): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/EventUpdateRequest.php b/src/Model/EventUpdateRequest.php index 57bf7668..ebcd6941 100644 --- a/src/Model/EventUpdateRequest.php +++ b/src/Model/EventUpdateRequest.php @@ -203,6 +203,8 @@ public function valid(): bool /** * Gets linked_id. + * + * @return ?string */ public function getLinkedId(): ?string { @@ -225,6 +227,8 @@ public function setLinkedId(?string $linked_id): self /** * Gets tag. + * + * @return ?object */ public function getTag(): ?object { @@ -247,6 +251,8 @@ public function setTag(?object $tag): self /** * Gets suspect. + * + * @return ?bool */ public function getSuspect(): ?bool { diff --git a/src/Model/HighActivityResult.php b/src/Model/HighActivityResult.php index ab323cad..20879925 100644 --- a/src/Model/HighActivityResult.php +++ b/src/Model/HighActivityResult.php @@ -225,6 +225,8 @@ public function setResult(bool $result): self /** * Gets daily_requests. + * + * @return ?float */ public function getDailyRequests(): ?float { diff --git a/src/Model/IPLocation.php b/src/Model/IPLocation.php index 057d545b..6f769e05 100644 --- a/src/Model/IPLocation.php +++ b/src/Model/IPLocation.php @@ -239,6 +239,8 @@ public function valid(): bool /** * Gets accuracy_radius. + * + * @return ?int */ public function getAccuracyRadius(): ?int { @@ -309,6 +311,8 @@ public function setLongitude(?float $longitude): self /** * Gets postal_code. + * + * @return ?string */ public function getPostalCode(): ?string { @@ -331,6 +335,8 @@ public function setPostalCode(?string $postal_code): self /** * Gets timezone. + * + * @return ?string */ public function getTimezone(): ?string { @@ -353,6 +359,8 @@ public function setTimezone(?string $timezone): self /** * Gets city. + * + * @return ?\Fingerprint\ServerAPI\Model\IPLocationCity */ public function getCity(): ?IPLocationCity { @@ -375,6 +383,8 @@ public function setCity(?IPLocationCity $city): self /** * Gets country. + * + * @return ?\Fingerprint\ServerAPI\Model\Location */ public function getCountry(): ?Location { @@ -397,6 +407,8 @@ public function setCountry(?Location $country): self /** * Gets continent. + * + * @return ?\Fingerprint\ServerAPI\Model\Location */ public function getContinent(): ?Location { diff --git a/src/Model/IPLocationCity.php b/src/Model/IPLocationCity.php index 5e066dcb..c0637bf3 100644 --- a/src/Model/IPLocationCity.php +++ b/src/Model/IPLocationCity.php @@ -191,6 +191,8 @@ public function valid(): bool /** * Gets name. + * + * @return ?string */ public function getName(): ?string { diff --git a/src/Model/IpInfoResult.php b/src/Model/IpInfoResult.php index f414d4fb..2a6a7d98 100644 --- a/src/Model/IpInfoResult.php +++ b/src/Model/IpInfoResult.php @@ -199,6 +199,8 @@ public function valid(): bool /** * Gets v4. + * + * @return ?\Fingerprint\ServerAPI\Model\IpInfoResultV4 */ public function getV4(): ?IpInfoResultV4 { @@ -221,6 +223,8 @@ public function setV4(?IpInfoResultV4 $v4): self /** * Gets v6. + * + * @return ?\Fingerprint\ServerAPI\Model\IpInfoResultV6 */ public function getV6(): ?IpInfoResultV6 { diff --git a/src/Model/IpInfoResultV4.php b/src/Model/IpInfoResultV4.php index 28e3dc98..8a2f36d3 100644 --- a/src/Model/IpInfoResultV4.php +++ b/src/Model/IpInfoResultV4.php @@ -262,6 +262,8 @@ public function setGeolocation(IPLocation $geolocation): self /** * Gets asn. + * + * @return ?\Fingerprint\ServerAPI\Model\ASN */ public function getAsn(): ?ASN { @@ -284,6 +286,8 @@ public function setAsn(?ASN $asn): self /** * Gets datacenter. + * + * @return ?\Fingerprint\ServerAPI\Model\DataCenter */ public function getDatacenter(): ?DataCenter { diff --git a/src/Model/IpInfoResultV6.php b/src/Model/IpInfoResultV6.php index 3916d40f..0774ae9c 100644 --- a/src/Model/IpInfoResultV6.php +++ b/src/Model/IpInfoResultV6.php @@ -262,6 +262,8 @@ public function setGeolocation(IPLocation $geolocation): self /** * Gets asn. + * + * @return ?\Fingerprint\ServerAPI\Model\ASN */ public function getAsn(): ?ASN { @@ -284,6 +286,8 @@ public function setAsn(?ASN $asn): self /** * Gets datacenter. + * + * @return ?\Fingerprint\ServerAPI\Model\DataCenter */ public function getDatacenter(): ?DataCenter { diff --git a/src/Model/ProductsResponse.php b/src/Model/ProductsResponse.php index 684f78fc..16649fd8 100644 --- a/src/Model/ProductsResponse.php +++ b/src/Model/ProductsResponse.php @@ -331,6 +331,8 @@ public function valid(): bool /** * Gets identification. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductsResponseIdentification */ public function getIdentification(): ?ProductsResponseIdentification { @@ -353,6 +355,8 @@ public function setIdentification(?ProductsResponseIdentification $identificatio /** * Gets botd. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductsResponseBotd */ public function getBotd(): ?ProductsResponseBotd { @@ -375,6 +379,8 @@ public function setBotd(?ProductsResponseBotd $botd): self /** * Gets ip_info. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseIpInfo */ public function getIpInfo(): ?SignalResponseIpInfo { @@ -397,6 +403,8 @@ public function setIpInfo(?SignalResponseIpInfo $ip_info): self /** * Gets incognito. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseIncognito */ public function getIncognito(): ?SignalResponseIncognito { @@ -419,6 +427,8 @@ public function setIncognito(?SignalResponseIncognito $incognito): self /** * Gets root_apps. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseRootApps */ public function getRootApps(): ?SignalResponseRootApps { @@ -441,6 +451,8 @@ public function setRootApps(?SignalResponseRootApps $root_apps): self /** * Gets emulator. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseEmulator */ public function getEmulator(): ?SignalResponseEmulator { @@ -463,6 +475,8 @@ public function setEmulator(?SignalResponseEmulator $emulator): self /** * Gets cloned_app. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseClonedApp */ public function getClonedApp(): ?SignalResponseClonedApp { @@ -485,6 +499,8 @@ public function setClonedApp(?SignalResponseClonedApp $cloned_app): self /** * Gets factory_reset. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseFactoryReset */ public function getFactoryReset(): ?SignalResponseFactoryReset { @@ -507,6 +523,8 @@ public function setFactoryReset(?SignalResponseFactoryReset $factory_reset): sel /** * Gets jailbroken. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseJailbroken */ public function getJailbroken(): ?SignalResponseJailbroken { @@ -529,6 +547,8 @@ public function setJailbroken(?SignalResponseJailbroken $jailbroken): self /** * Gets frida. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseFrida */ public function getFrida(): ?SignalResponseFrida { @@ -551,6 +571,8 @@ public function setFrida(?SignalResponseFrida $frida): self /** * Gets ip_blocklist. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseIpBlocklist */ public function getIpBlocklist(): ?SignalResponseIpBlocklist { @@ -573,6 +595,8 @@ public function setIpBlocklist(?SignalResponseIpBlocklist $ip_blocklist): self /** * Gets tor. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseTor */ public function getTor(): ?SignalResponseTor { @@ -595,6 +619,8 @@ public function setTor(?SignalResponseTor $tor): self /** * Gets privacy_settings. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponsePrivacySettings */ public function getPrivacySettings(): ?SignalResponsePrivacySettings { @@ -617,6 +643,8 @@ public function setPrivacySettings(?SignalResponsePrivacySettings $privacy_setti /** * Gets virtual_machine. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseVirtualMachine */ public function getVirtualMachine(): ?SignalResponseVirtualMachine { @@ -639,6 +667,8 @@ public function setVirtualMachine(?SignalResponseVirtualMachine $virtual_machine /** * Gets vpn. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseVpn */ public function getVpn(): ?SignalResponseVpn { @@ -661,6 +691,8 @@ public function setVpn(?SignalResponseVpn $vpn): self /** * Gets proxy. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseProxy */ public function getProxy(): ?SignalResponseProxy { @@ -683,6 +715,8 @@ public function setProxy(?SignalResponseProxy $proxy): self /** * Gets tampering. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseTampering */ public function getTampering(): ?SignalResponseTampering { @@ -705,6 +739,8 @@ public function setTampering(?SignalResponseTampering $tampering): self /** * Gets high_activity. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseHighActivity */ public function getHighActivity(): ?SignalResponseHighActivity { @@ -727,6 +763,8 @@ public function setHighActivity(?SignalResponseHighActivity $high_activity): sel /** * Gets location_spoofing. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseLocationSpoofing */ public function getLocationSpoofing(): ?SignalResponseLocationSpoofing { @@ -749,6 +787,8 @@ public function setLocationSpoofing(?SignalResponseLocationSpoofing $location_sp /** * Gets suspect_score. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseSuspectScore */ public function getSuspectScore(): ?SignalResponseSuspectScore { @@ -771,6 +811,8 @@ public function setSuspectScore(?SignalResponseSuspectScore $suspect_score): sel /** * Gets raw_device_attributes. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseRawDeviceAttributes */ public function getRawDeviceAttributes(): ?SignalResponseRawDeviceAttributes { @@ -793,6 +835,8 @@ public function setRawDeviceAttributes(?SignalResponseRawDeviceAttributes $raw_d /** * Gets remote_control. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseRemoteControl */ public function getRemoteControl(): ?SignalResponseRemoteControl { @@ -815,6 +859,8 @@ public function setRemoteControl(?SignalResponseRemoteControl $remote_control): /** * Gets velocity. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseVelocity */ public function getVelocity(): ?SignalResponseVelocity { @@ -837,6 +883,8 @@ public function setVelocity(?SignalResponseVelocity $velocity): self /** * Gets developer_tools. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseDeveloperTools */ public function getDeveloperTools(): ?SignalResponseDeveloperTools { diff --git a/src/Model/ProductsResponseBotd.php b/src/Model/ProductsResponseBotd.php index e1dc0d34..7d8255c1 100644 --- a/src/Model/ProductsResponseBotd.php +++ b/src/Model/ProductsResponseBotd.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\BotdResult */ public function getData(): ?BotdResult { @@ -219,6 +221,8 @@ public function setData(?BotdResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/ProductsResponseIdentification.php b/src/Model/ProductsResponseIdentification.php index aeeb57c0..dfec88dc 100644 --- a/src/Model/ProductsResponseIdentification.php +++ b/src/Model/ProductsResponseIdentification.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductsResponseIdentificationData */ public function getData(): ?ProductsResponseIdentificationData { @@ -219,6 +221,8 @@ public function setData(?ProductsResponseIdentificationData $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ public function getError(): ?IdentificationError { diff --git a/src/Model/ProductsResponseIdentificationData.php b/src/Model/ProductsResponseIdentificationData.php index c2ae2e4f..1bf397fc 100644 --- a/src/Model/ProductsResponseIdentificationData.php +++ b/src/Model/ProductsResponseIdentificationData.php @@ -402,6 +402,8 @@ public function setIp(string $ip): self /** * Gets ip_location. + * + * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ public function getIpLocation(): ?DeprecatedIPLocation { @@ -514,6 +516,8 @@ public function setTag(array $tag): self /** * Gets linked_id. + * + * @return ?string */ public function getLinkedId(): ?string { @@ -536,6 +540,8 @@ public function setLinkedId(?string $linked_id): self /** * Gets confidence. + * + * @return ?\Fingerprint\ServerAPI\Model\Confidence */ public function getConfidence(): ?Confidence { diff --git a/src/Model/Response.php b/src/Model/Response.php index 93de00cc..2aa4f347 100644 --- a/src/Model/Response.php +++ b/src/Model/Response.php @@ -266,6 +266,8 @@ public function setVisits(array $visits): self /** * Gets last_timestamp. + * + * @return ?int */ public function getLastTimestamp(): ?int { @@ -288,6 +290,8 @@ public function setLastTimestamp(?int $last_timestamp): self /** * Gets pagination_key. + * + * @return ?string */ public function getPaginationKey(): ?string { diff --git a/src/Model/ResponseVisits.php b/src/Model/ResponseVisits.php index 3621a1a5..e3b67f55 100644 --- a/src/Model/ResponseVisits.php +++ b/src/Model/ResponseVisits.php @@ -393,6 +393,8 @@ public function setIp(string $ip): self /** * Gets ip_location. + * + * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ public function getIpLocation(): ?DeprecatedIPLocation { @@ -505,6 +507,8 @@ public function setTag(array $tag): self /** * Gets linked_id. + * + * @return ?string */ public function getLinkedId(): ?string { @@ -527,6 +531,8 @@ public function setLinkedId(?string $linked_id): self /** * Gets confidence. + * + * @return ?\Fingerprint\ServerAPI\Model\Confidence */ public function getConfidence(): ?Confidence { diff --git a/src/Model/SignalResponseClonedApp.php b/src/Model/SignalResponseClonedApp.php index 588a2cf2..0edbcaf2 100644 --- a/src/Model/SignalResponseClonedApp.php +++ b/src/Model/SignalResponseClonedApp.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\ClonedAppResult */ public function getData(): ?ClonedAppResult { @@ -219,6 +221,8 @@ public function setData(?ClonedAppResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseDeveloperTools.php b/src/Model/SignalResponseDeveloperTools.php index e65db632..d25d3207 100644 --- a/src/Model/SignalResponseDeveloperTools.php +++ b/src/Model/SignalResponseDeveloperTools.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\DeveloperToolsResult */ public function getData(): ?DeveloperToolsResult { @@ -219,6 +221,8 @@ public function setData(?DeveloperToolsResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseEmulator.php b/src/Model/SignalResponseEmulator.php index 61b0ee07..15d6b196 100644 --- a/src/Model/SignalResponseEmulator.php +++ b/src/Model/SignalResponseEmulator.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\EmulatorResult */ public function getData(): ?EmulatorResult { @@ -219,6 +221,8 @@ public function setData(?EmulatorResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseFactoryReset.php b/src/Model/SignalResponseFactoryReset.php index d61b0132..95f0737a 100644 --- a/src/Model/SignalResponseFactoryReset.php +++ b/src/Model/SignalResponseFactoryReset.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\FactoryResetResult */ public function getData(): ?FactoryResetResult { @@ -219,6 +221,8 @@ public function setData(?FactoryResetResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseFrida.php b/src/Model/SignalResponseFrida.php index 7db7a1f4..86aba169 100644 --- a/src/Model/SignalResponseFrida.php +++ b/src/Model/SignalResponseFrida.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\FridaResult */ public function getData(): ?FridaResult { @@ -219,6 +221,8 @@ public function setData(?FridaResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseHighActivity.php b/src/Model/SignalResponseHighActivity.php index 25998369..9a1e755a 100644 --- a/src/Model/SignalResponseHighActivity.php +++ b/src/Model/SignalResponseHighActivity.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\HighActivityResult */ public function getData(): ?HighActivityResult { @@ -219,6 +221,8 @@ public function setData(?HighActivityResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseIncognito.php b/src/Model/SignalResponseIncognito.php index c7fff6eb..e8e87138 100644 --- a/src/Model/SignalResponseIncognito.php +++ b/src/Model/SignalResponseIncognito.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\IncognitoResult */ public function getData(): ?IncognitoResult { @@ -219,6 +221,8 @@ public function setData(?IncognitoResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ public function getError(): ?IdentificationError { diff --git a/src/Model/SignalResponseIpBlocklist.php b/src/Model/SignalResponseIpBlocklist.php index c7936240..00a37d29 100644 --- a/src/Model/SignalResponseIpBlocklist.php +++ b/src/Model/SignalResponseIpBlocklist.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\IpBlockListResult */ public function getData(): ?IpBlockListResult { @@ -219,6 +221,8 @@ public function setData(?IpBlockListResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseIpInfo.php b/src/Model/SignalResponseIpInfo.php index 4314cc08..48e5fa40 100644 --- a/src/Model/SignalResponseIpInfo.php +++ b/src/Model/SignalResponseIpInfo.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\IpInfoResult */ public function getData(): ?IpInfoResult { @@ -219,6 +221,8 @@ public function setData(?IpInfoResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseJailbroken.php b/src/Model/SignalResponseJailbroken.php index 3e61ce07..5d33f2fe 100644 --- a/src/Model/SignalResponseJailbroken.php +++ b/src/Model/SignalResponseJailbroken.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\JailbrokenResult */ public function getData(): ?JailbrokenResult { @@ -219,6 +221,8 @@ public function setData(?JailbrokenResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseLocationSpoofing.php b/src/Model/SignalResponseLocationSpoofing.php index c56ae7ac..aef5b071 100644 --- a/src/Model/SignalResponseLocationSpoofing.php +++ b/src/Model/SignalResponseLocationSpoofing.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\LocationSpoofingResult */ public function getData(): ?LocationSpoofingResult { @@ -219,6 +221,8 @@ public function setData(?LocationSpoofingResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponsePrivacySettings.php b/src/Model/SignalResponsePrivacySettings.php index 24491013..a97c78aa 100644 --- a/src/Model/SignalResponsePrivacySettings.php +++ b/src/Model/SignalResponsePrivacySettings.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\PrivacySettingsResult */ public function getData(): ?PrivacySettingsResult { @@ -219,6 +221,8 @@ public function setData(?PrivacySettingsResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseProxy.php b/src/Model/SignalResponseProxy.php index 9e6b6322..0f354989 100644 --- a/src/Model/SignalResponseProxy.php +++ b/src/Model/SignalResponseProxy.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\ProxyResult */ public function getData(): ?ProxyResult { @@ -219,6 +221,8 @@ public function setData(?ProxyResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseRawDeviceAttributes.php b/src/Model/SignalResponseRawDeviceAttributes.php index fa20abb4..68a20adc 100644 --- a/src/Model/SignalResponseRawDeviceAttributes.php +++ b/src/Model/SignalResponseRawDeviceAttributes.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult */ public function getData(): array { @@ -219,6 +221,8 @@ public function setData(?array $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ public function getError(): ?IdentificationError { diff --git a/src/Model/SignalResponseRemoteControl.php b/src/Model/SignalResponseRemoteControl.php index 8fc480f4..afec1f39 100644 --- a/src/Model/SignalResponseRemoteControl.php +++ b/src/Model/SignalResponseRemoteControl.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\RemoteControlResult */ public function getData(): ?RemoteControlResult { @@ -219,6 +221,8 @@ public function setData(?RemoteControlResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseRootApps.php b/src/Model/SignalResponseRootApps.php index 9796070e..d5ed6c79 100644 --- a/src/Model/SignalResponseRootApps.php +++ b/src/Model/SignalResponseRootApps.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\RootAppsResult */ public function getData(): ?RootAppsResult { @@ -219,6 +221,8 @@ public function setData(?RootAppsResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseSuspectScore.php b/src/Model/SignalResponseSuspectScore.php index 3c0e43d4..3614acf0 100644 --- a/src/Model/SignalResponseSuspectScore.php +++ b/src/Model/SignalResponseSuspectScore.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\SuspectScoreResult */ public function getData(): ?SuspectScoreResult { @@ -219,6 +221,8 @@ public function setData(?SuspectScoreResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseTampering.php b/src/Model/SignalResponseTampering.php index e5802690..68c818ea 100644 --- a/src/Model/SignalResponseTampering.php +++ b/src/Model/SignalResponseTampering.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\TamperingResult */ public function getData(): ?TamperingResult { @@ -219,6 +221,8 @@ public function setData(?TamperingResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ public function getError(): ?IdentificationError { diff --git a/src/Model/SignalResponseTor.php b/src/Model/SignalResponseTor.php index e1d0a4d0..06ac9768 100644 --- a/src/Model/SignalResponseTor.php +++ b/src/Model/SignalResponseTor.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\TorResult */ public function getData(): ?TorResult { @@ -219,6 +221,8 @@ public function setData(?TorResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseVelocity.php b/src/Model/SignalResponseVelocity.php index 0c717ca2..3ccfbdbe 100644 --- a/src/Model/SignalResponseVelocity.php +++ b/src/Model/SignalResponseVelocity.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\VelocityResult */ public function getData(): ?VelocityResult { @@ -219,6 +221,8 @@ public function setData(?VelocityResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseVirtualMachine.php b/src/Model/SignalResponseVirtualMachine.php index 50f1d4fe..906eedd2 100644 --- a/src/Model/SignalResponseVirtualMachine.php +++ b/src/Model/SignalResponseVirtualMachine.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\VirtualMachineResult */ public function getData(): ?VirtualMachineResult { @@ -219,6 +221,8 @@ public function setData(?VirtualMachineResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseVpn.php b/src/Model/SignalResponseVpn.php index 0f1f63c7..b96d13c5 100644 --- a/src/Model/SignalResponseVpn.php +++ b/src/Model/SignalResponseVpn.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\VpnResult */ public function getData(): ?VpnResult { @@ -219,6 +221,8 @@ public function setData(?VpnResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/Subdivision.php b/src/Model/Subdivision.php index 32997076..0c2835d8 100644 --- a/src/Model/Subdivision.php +++ b/src/Model/Subdivision.php @@ -197,6 +197,8 @@ public function valid(): bool /** * Gets iso_code. + * + * @return ?string */ public function getIsoCode(): ?string { @@ -219,6 +221,8 @@ public function setIsoCode(?string $iso_code): self /** * Gets name. + * + * @return ?string */ public function getName(): ?string { diff --git a/src/Model/VelocityIntervalResult.php b/src/Model/VelocityIntervalResult.php index 2f60b5d5..efa97f7d 100644 --- a/src/Model/VelocityIntervalResult.php +++ b/src/Model/VelocityIntervalResult.php @@ -258,6 +258,8 @@ public function set1h(int $_1h): self /** * Gets _24h. + * + * @return ?int */ public function get24h(): ?int { diff --git a/src/Model/VelocityIntervals.php b/src/Model/VelocityIntervals.php index f1cf6697..f2a84395 100644 --- a/src/Model/VelocityIntervals.php +++ b/src/Model/VelocityIntervals.php @@ -191,6 +191,8 @@ public function valid(): bool /** * Gets intervals. + * + * @return ?\Fingerprint\ServerAPI\Model\VelocityIntervalResult */ public function getIntervals(): ?VelocityIntervalResult { diff --git a/src/Model/Visit.php b/src/Model/Visit.php index 4798b030..63ad75b2 100644 --- a/src/Model/Visit.php +++ b/src/Model/Visit.php @@ -390,6 +390,8 @@ public function setIp(string $ip): self /** * Gets ip_location. + * + * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ public function getIpLocation(): ?DeprecatedIPLocation { @@ -502,6 +504,8 @@ public function setTag(?array $tag): self /** * Gets linked_id. + * + * @return ?string */ public function getLinkedId(): ?string { @@ -524,6 +528,8 @@ public function setLinkedId(?string $linked_id): self /** * Gets confidence. + * + * @return ?\Fingerprint\ServerAPI\Model\Confidence */ public function getConfidence(): ?Confidence { diff --git a/src/Model/VpnResult.php b/src/Model/VpnResult.php index 0a593da4..2b5651e8 100644 --- a/src/Model/VpnResult.php +++ b/src/Model/VpnResult.php @@ -265,6 +265,8 @@ public function setOriginTimezone(string $origin_timezone): self /** * Gets origin_country. + * + * @return ?string */ public function getOriginCountry(): ?string { diff --git a/src/Model/WebhookVisit.php b/src/Model/WebhookVisit.php index f7872300..585c084a 100644 --- a/src/Model/WebhookVisit.php +++ b/src/Model/WebhookVisit.php @@ -477,6 +477,8 @@ public function setVisitorId(string $visitor_id): self /** * Gets client_referrer. + * + * @return ?string */ public function getClientReferrer(): ?string { @@ -499,6 +501,8 @@ public function setClientReferrer(?string $client_referrer): self /** * Gets user_agent. + * + * @return ?string */ public function getUserAgent(): ?string { @@ -521,6 +525,8 @@ public function setUserAgent(?string $user_agent): self /** * Gets bot. + * + * @return ?\Fingerprint\ServerAPI\Model\BotdDetectionResult */ public function getBot(): ?BotdDetectionResult { @@ -543,6 +549,8 @@ public function setBot(?BotdDetectionResult $bot): self /** * Gets ip_info. + * + * @return ?\Fingerprint\ServerAPI\Model\IpInfoResult */ public function getIpInfo(): ?IpInfoResult { @@ -587,6 +595,8 @@ public function setIncognito(bool $incognito): self /** * Gets root_apps. + * + * @return ?\Fingerprint\ServerAPI\Model\RootAppsResult */ public function getRootApps(): ?RootAppsResult { @@ -609,6 +619,8 @@ public function setRootApps(?RootAppsResult $root_apps): self /** * Gets emulator. + * + * @return ?\Fingerprint\ServerAPI\Model\EmulatorResult */ public function getEmulator(): ?EmulatorResult { @@ -631,6 +643,8 @@ public function setEmulator(?EmulatorResult $emulator): self /** * Gets cloned_app. + * + * @return ?\Fingerprint\ServerAPI\Model\ClonedAppResult */ public function getClonedApp(): ?ClonedAppResult { @@ -653,6 +667,8 @@ public function setClonedApp(?ClonedAppResult $cloned_app): self /** * Gets factory_reset. + * + * @return ?\Fingerprint\ServerAPI\Model\FactoryResetResult */ public function getFactoryReset(): ?FactoryResetResult { @@ -675,6 +691,8 @@ public function setFactoryReset(?FactoryResetResult $factory_reset): self /** * Gets jailbroken. + * + * @return ?\Fingerprint\ServerAPI\Model\JailbrokenResult */ public function getJailbroken(): ?JailbrokenResult { @@ -697,6 +715,8 @@ public function setJailbroken(?JailbrokenResult $jailbroken): self /** * Gets frida. + * + * @return ?\Fingerprint\ServerAPI\Model\FridaResult */ public function getFrida(): ?FridaResult { @@ -719,6 +739,8 @@ public function setFrida(?FridaResult $frida): self /** * Gets ip_blocklist. + * + * @return ?\Fingerprint\ServerAPI\Model\IpBlockListResult */ public function getIpBlocklist(): ?IpBlockListResult { @@ -741,6 +763,8 @@ public function setIpBlocklist(?IpBlockListResult $ip_blocklist): self /** * Gets tor. + * + * @return ?\Fingerprint\ServerAPI\Model\TorResult */ public function getTor(): ?TorResult { @@ -763,6 +787,8 @@ public function setTor(?TorResult $tor): self /** * Gets privacy_settings. + * + * @return ?\Fingerprint\ServerAPI\Model\PrivacySettingsResult */ public function getPrivacySettings(): ?PrivacySettingsResult { @@ -785,6 +811,8 @@ public function setPrivacySettings(?PrivacySettingsResult $privacy_settings): se /** * Gets virtual_machine. + * + * @return ?\Fingerprint\ServerAPI\Model\VirtualMachineResult */ public function getVirtualMachine(): ?VirtualMachineResult { @@ -807,6 +835,8 @@ public function setVirtualMachine(?VirtualMachineResult $virtual_machine): self /** * Gets vpn. + * + * @return ?\Fingerprint\ServerAPI\Model\VpnResult */ public function getVpn(): ?VpnResult { @@ -829,6 +859,8 @@ public function setVpn(?VpnResult $vpn): self /** * Gets proxy. + * + * @return ?\Fingerprint\ServerAPI\Model\ProxyResult */ public function getProxy(): ?ProxyResult { @@ -851,6 +883,8 @@ public function setProxy(?ProxyResult $proxy): self /** * Gets tampering. + * + * @return ?\Fingerprint\ServerAPI\Model\TamperingResult */ public function getTampering(): ?TamperingResult { @@ -873,6 +907,8 @@ public function setTampering(?TamperingResult $tampering): self /** * Gets raw_device_attributes. + * + * @return ?\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult */ public function getRawDeviceAttributes(): ?RawDeviceAttributesResult { @@ -895,6 +931,8 @@ public function setRawDeviceAttributes(?RawDeviceAttributesResult $raw_device_at /** * Gets high_activity. + * + * @return ?\Fingerprint\ServerAPI\Model\HighActivityResult */ public function getHighActivity(): ?HighActivityResult { @@ -917,6 +955,8 @@ public function setHighActivity(?HighActivityResult $high_activity): self /** * Gets location_spoofing. + * + * @return ?\Fingerprint\ServerAPI\Model\LocationSpoofingResult */ public function getLocationSpoofing(): ?LocationSpoofingResult { @@ -939,6 +979,8 @@ public function setLocationSpoofing(?LocationSpoofingResult $location_spoofing): /** * Gets suspect_score. + * + * @return ?\Fingerprint\ServerAPI\Model\SuspectScoreResult */ public function getSuspectScore(): ?SuspectScoreResult { @@ -961,6 +1003,8 @@ public function setSuspectScore(?SuspectScoreResult $suspect_score): self /** * Gets remote_control. + * + * @return ?\Fingerprint\ServerAPI\Model\RemoteControlResult */ public function getRemoteControl(): ?RemoteControlResult { @@ -983,6 +1027,8 @@ public function setRemoteControl(?RemoteControlResult $remote_control): self /** * Gets velocity. + * + * @return ?\Fingerprint\ServerAPI\Model\VelocityResult */ public function getVelocity(): ?VelocityResult { @@ -1005,6 +1051,8 @@ public function setVelocity(?VelocityResult $velocity): self /** * Gets developer_tools. + * + * @return ?\Fingerprint\ServerAPI\Model\DeveloperToolsResult */ public function getDeveloperTools(): ?DeveloperToolsResult { @@ -1093,6 +1141,8 @@ public function setIp(string $ip): self /** * Gets ip_location. + * + * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ public function getIpLocation(): ?DeprecatedIPLocation { @@ -1205,6 +1255,8 @@ public function setTag(?array $tag): self /** * Gets linked_id. + * + * @return ?string */ public function getLinkedId(): ?string { @@ -1227,6 +1279,8 @@ public function setLinkedId(?string $linked_id): self /** * Gets confidence. + * + * @return ?\Fingerprint\ServerAPI\Model\Confidence */ public function getConfidence(): ?Confidence { From 2b8a406a0490ae6364ad3a91b5f258476094c94f Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 4 Sep 2024 11:30:52 +0000 Subject: [PATCH 04/11] chore(release): 5.0.0-develop.2 [skip ci] ## [5.0.0-develop.2](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/compare/v5.0.0-develop.1...v5.0.0-develop.2) (2024-09-04) ### Bug Fixes * use linter with current config via docker ([9613c34](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/9613c34535c8ef675a0d5e129ca4a23b1ee6fcc9)) --- CHANGELOG.md | 7 +++ README.md | 2 +- composer.json | 2 +- config.json | 2 +- src/Api/FingerprintApi.php | 2 +- src/Configuration.php | 4 +- src/Model/ASN.php | 2 - src/Model/BotdDetectionResult.php | 2 - src/Model/BotdResult.php | 2 - src/Model/BrowserDetails.php | 2 - src/Model/Confidence.php | 2 - src/Model/DataCenter.php | 2 - src/Model/DeprecatedIPLocation.php | 12 ----- src/Model/DeprecatedIPLocationCity.php | 2 - src/Model/ErrorCommon403Response.php | 2 - src/Model/ErrorCommon429Response.php | 2 - src/Model/ErrorEvent404Response.php | 2 - src/Model/ErrorUpdateEvent400Response.php | 2 - src/Model/ErrorUpdateEvent409Response.php | 2 - src/Model/ErrorVisitor400Response.php | 2 - src/Model/ErrorVisitor404Response.php | 2 - src/Model/EventResponse.php | 2 - src/Model/EventUpdateRequest.php | 6 --- src/Model/HighActivityResult.php | 2 - src/Model/IPLocation.php | 12 ----- src/Model/IPLocationCity.php | 2 - src/Model/IpInfoResult.php | 4 -- src/Model/IpInfoResultV4.php | 4 -- src/Model/IpInfoResultV6.php | 4 -- src/Model/ProductsResponse.php | 48 ----------------- src/Model/ProductsResponseBotd.php | 4 -- src/Model/ProductsResponseIdentification.php | 4 -- .../ProductsResponseIdentificationData.php | 6 --- src/Model/Response.php | 4 -- src/Model/ResponseVisits.php | 6 --- src/Model/SignalResponseClonedApp.php | 4 -- src/Model/SignalResponseDeveloperTools.php | 4 -- src/Model/SignalResponseEmulator.php | 4 -- src/Model/SignalResponseFactoryReset.php | 4 -- src/Model/SignalResponseFrida.php | 4 -- src/Model/SignalResponseHighActivity.php | 4 -- src/Model/SignalResponseIncognito.php | 4 -- src/Model/SignalResponseIpBlocklist.php | 4 -- src/Model/SignalResponseIpInfo.php | 4 -- src/Model/SignalResponseJailbroken.php | 4 -- src/Model/SignalResponseLocationSpoofing.php | 4 -- src/Model/SignalResponsePrivacySettings.php | 4 -- src/Model/SignalResponseProxy.php | 4 -- .../SignalResponseRawDeviceAttributes.php | 4 -- src/Model/SignalResponseRemoteControl.php | 4 -- src/Model/SignalResponseRootApps.php | 4 -- src/Model/SignalResponseSuspectScore.php | 4 -- src/Model/SignalResponseTampering.php | 4 -- src/Model/SignalResponseTor.php | 4 -- src/Model/SignalResponseVelocity.php | 4 -- src/Model/SignalResponseVirtualMachine.php | 4 -- src/Model/SignalResponseVpn.php | 4 -- src/Model/Subdivision.php | 4 -- src/Model/VelocityIntervalResult.php | 2 - src/Model/VelocityIntervals.php | 2 - src/Model/Visit.php | 6 --- src/Model/VpnResult.php | 2 - src/Model/WebhookVisit.php | 54 ------------------- 63 files changed, 13 insertions(+), 312 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ce6b191d..ea49b228 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [5.0.0-develop.2](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/compare/v5.0.0-develop.1...v5.0.0-develop.2) (2024-09-04) + + +### Bug Fixes + +* use linter with current config via docker ([9613c34](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/9613c34535c8ef675a0d5e129ca4a23b1ee6fcc9)) + ## [5.0.0-develop.1](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/compare/v4.1.0...v5.0.0-develop.1) (2024-09-04) diff --git a/README.md b/README.md index 6996a129..71c74e70 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: 3 - - Package version: dev-5.0.0-1 + - Package version: dev-5.0.0-2 - Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen ## Requirements diff --git a/composer.json b/composer.json index 04fb84fd..7194e053 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "fingerprint/fingerprint-pro-server-api-sdk", - "version": "dev-5.0.0-1", + "version": "dev-5.0.0-2", "description": "Fingerprint Pro Server API provides a way for validating visitors’ data issued by Fingerprint Pro.", "keywords": [ "swagger", diff --git a/config.json b/config.json index 20883265..67c2989d 100644 --- a/config.json +++ b/config.json @@ -8,5 +8,5 @@ "gitUserId": "fingerprintjs", "gitRepoId": "fingerprint-pro-server-api-php-sdk", "description": "Fingerprint Pro Server API provides a way for validating visitors’ data issued by Fingerprint Pro.", - "artifactVersion": "dev-5.0.0-1" + "artifactVersion": "dev-5.0.0-2" } diff --git a/src/Api/FingerprintApi.php b/src/Api/FingerprintApi.php index 444ed1d9..d0aef052 100644 --- a/src/Api/FingerprintApi.php +++ b/src/Api/FingerprintApi.php @@ -56,7 +56,7 @@ class FingerprintApi protected ClientInterface $client; protected Configuration $config; - protected string $integration_info = 'fingerprint-pro-server-php-sdk/dev-5.0.0-1'; + protected string $integration_info = 'fingerprint-pro-server-php-sdk/dev-5.0.0-2'; public function __construct( ?ClientInterface $client = null, diff --git a/src/Configuration.php b/src/Configuration.php index 7d7ce356..ce17f4b7 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -81,7 +81,7 @@ class Configuration /** * User agent of the HTTP request, set to "PHP-Swagger" by default. */ - protected string $userAgent = 'Swagger-Codegen/dev-5.0.0-1/php'; + protected string $userAgent = 'Swagger-Codegen/dev-5.0.0-2/php'; /** * Debug switch (default set to false). @@ -417,7 +417,7 @@ public static function toDebugReport(): string $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 .= ' SDK Package Version: dev-5.0.0-2'.PHP_EOL; $report .= ' Temp Folder Path: '.self::getDefaultConfiguration()->getTempFolderPath().PHP_EOL; return $report; diff --git a/src/Model/ASN.php b/src/Model/ASN.php index 6e544e45..5bffc27b 100644 --- a/src/Model/ASN.php +++ b/src/Model/ASN.php @@ -256,8 +256,6 @@ public function setNetwork(string $network): self /** * Gets name. - * - * @return ?string */ public function getName(): ?string { diff --git a/src/Model/BotdDetectionResult.php b/src/Model/BotdDetectionResult.php index 27120931..2bb3d40c 100644 --- a/src/Model/BotdDetectionResult.php +++ b/src/Model/BotdDetectionResult.php @@ -260,8 +260,6 @@ public function setResult(string $result): self /** * Gets type. - * - * @return ?string */ public function getType(): ?string { diff --git a/src/Model/BotdResult.php b/src/Model/BotdResult.php index 178a37d2..eaa02aca 100644 --- a/src/Model/BotdResult.php +++ b/src/Model/BotdResult.php @@ -360,8 +360,6 @@ public function setRequestId(string $request_id): self /** * Gets linked_id. - * - * @return ?string */ public function getLinkedId(): ?string { diff --git a/src/Model/BrowserDetails.php b/src/Model/BrowserDetails.php index d04d9bc8..cc8d8250 100644 --- a/src/Model/BrowserDetails.php +++ b/src/Model/BrowserDetails.php @@ -411,8 +411,6 @@ public function setUserAgent(string $user_agent): self /** * Gets bot_probability. - * - * @return ?int */ public function getBotProbability(): ?int { diff --git a/src/Model/Confidence.php b/src/Model/Confidence.php index 9aeb20db..4ecbc53a 100644 --- a/src/Model/Confidence.php +++ b/src/Model/Confidence.php @@ -225,8 +225,6 @@ public function setScore(float $score): self /** * Gets revision. - * - * @return ?string */ public function getRevision(): ?string { diff --git a/src/Model/DataCenter.php b/src/Model/DataCenter.php index 1b8c9294..cd6edc93 100644 --- a/src/Model/DataCenter.php +++ b/src/Model/DataCenter.php @@ -225,8 +225,6 @@ public function setResult(bool $result): self /** * Gets name. - * - * @return ?string */ public function getName(): ?string { diff --git a/src/Model/DeprecatedIPLocation.php b/src/Model/DeprecatedIPLocation.php index 9739584c..92ec70fc 100644 --- a/src/Model/DeprecatedIPLocation.php +++ b/src/Model/DeprecatedIPLocation.php @@ -241,8 +241,6 @@ public function valid(): bool /** * Gets accuracy_radius. - * - * @return ?int */ public function getAccuracyRadius(): ?int { @@ -313,8 +311,6 @@ public function setLongitude(?float $longitude): self /** * Gets postal_code. - * - * @return ?string */ public function getPostalCode(): ?string { @@ -337,8 +333,6 @@ public function setPostalCode(?string $postal_code): self /** * Gets timezone. - * - * @return ?string */ public function getTimezone(): ?string { @@ -361,8 +355,6 @@ public function setTimezone(?string $timezone): self /** * Gets city. - * - * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocationCity */ public function getCity(): ?DeprecatedIPLocationCity { @@ -385,8 +377,6 @@ public function setCity(?DeprecatedIPLocationCity $city): self /** * Gets country. - * - * @return ?\Fingerprint\ServerAPI\Model\Location */ public function getCountry(): ?Location { @@ -409,8 +399,6 @@ public function setCountry(?Location $country): self /** * Gets continent. - * - * @return ?\Fingerprint\ServerAPI\Model\Location */ public function getContinent(): ?Location { diff --git a/src/Model/DeprecatedIPLocationCity.php b/src/Model/DeprecatedIPLocationCity.php index fdffb4e1..80b25d81 100644 --- a/src/Model/DeprecatedIPLocationCity.php +++ b/src/Model/DeprecatedIPLocationCity.php @@ -191,8 +191,6 @@ public function valid(): bool /** * Gets name. - * - * @return ?string */ public function getName(): ?string { diff --git a/src/Model/ErrorCommon403Response.php b/src/Model/ErrorCommon403Response.php index 1afa5e6e..72801e89 100644 --- a/src/Model/ErrorCommon403Response.php +++ b/src/Model/ErrorCommon403Response.php @@ -191,8 +191,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\Common403ErrorResponse */ public function getError(): ?Common403ErrorResponse { diff --git a/src/Model/ErrorCommon429Response.php b/src/Model/ErrorCommon429Response.php index d2dc070d..ef544255 100644 --- a/src/Model/ErrorCommon429Response.php +++ b/src/Model/ErrorCommon429Response.php @@ -191,8 +191,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ErrorCommon429ResponseError */ public function getError(): ?ErrorCommon429ResponseError { diff --git a/src/Model/ErrorEvent404Response.php b/src/Model/ErrorEvent404Response.php index b03ce283..2142983c 100644 --- a/src/Model/ErrorEvent404Response.php +++ b/src/Model/ErrorEvent404Response.php @@ -191,8 +191,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ErrorEvent404ResponseError */ public function getError(): ?ErrorEvent404ResponseError { diff --git a/src/Model/ErrorUpdateEvent400Response.php b/src/Model/ErrorUpdateEvent400Response.php index 06737e39..f2157ca0 100644 --- a/src/Model/ErrorUpdateEvent400Response.php +++ b/src/Model/ErrorUpdateEvent400Response.php @@ -191,8 +191,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ErrorUpdateEvent400ResponseError */ public function getError(): ?ErrorUpdateEvent400ResponseError { diff --git a/src/Model/ErrorUpdateEvent409Response.php b/src/Model/ErrorUpdateEvent409Response.php index 5e1a0590..3e1bed4d 100644 --- a/src/Model/ErrorUpdateEvent409Response.php +++ b/src/Model/ErrorUpdateEvent409Response.php @@ -191,8 +191,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ErrorUpdateEvent409ResponseError */ public function getError(): ?ErrorUpdateEvent409ResponseError { diff --git a/src/Model/ErrorVisitor400Response.php b/src/Model/ErrorVisitor400Response.php index 8add5b42..b8069300 100644 --- a/src/Model/ErrorVisitor400Response.php +++ b/src/Model/ErrorVisitor400Response.php @@ -191,8 +191,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ErrorVisitor400ResponseError */ public function getError(): ?ErrorVisitor400ResponseError { diff --git a/src/Model/ErrorVisitor404Response.php b/src/Model/ErrorVisitor404Response.php index d0eac080..844c224b 100644 --- a/src/Model/ErrorVisitor404Response.php +++ b/src/Model/ErrorVisitor404Response.php @@ -191,8 +191,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ErrorVisitor404ResponseError */ public function getError(): ?ErrorVisitor404ResponseError { diff --git a/src/Model/EventResponse.php b/src/Model/EventResponse.php index ee5b3fbe..4cf0bcb7 100644 --- a/src/Model/EventResponse.php +++ b/src/Model/EventResponse.php @@ -227,8 +227,6 @@ public function setProducts(ProductsResponse $products): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/EventUpdateRequest.php b/src/Model/EventUpdateRequest.php index ebcd6941..57bf7668 100644 --- a/src/Model/EventUpdateRequest.php +++ b/src/Model/EventUpdateRequest.php @@ -203,8 +203,6 @@ public function valid(): bool /** * Gets linked_id. - * - * @return ?string */ public function getLinkedId(): ?string { @@ -227,8 +225,6 @@ public function setLinkedId(?string $linked_id): self /** * Gets tag. - * - * @return ?object */ public function getTag(): ?object { @@ -251,8 +247,6 @@ public function setTag(?object $tag): self /** * Gets suspect. - * - * @return ?bool */ public function getSuspect(): ?bool { diff --git a/src/Model/HighActivityResult.php b/src/Model/HighActivityResult.php index 20879925..ab323cad 100644 --- a/src/Model/HighActivityResult.php +++ b/src/Model/HighActivityResult.php @@ -225,8 +225,6 @@ public function setResult(bool $result): self /** * Gets daily_requests. - * - * @return ?float */ public function getDailyRequests(): ?float { diff --git a/src/Model/IPLocation.php b/src/Model/IPLocation.php index 6f769e05..057d545b 100644 --- a/src/Model/IPLocation.php +++ b/src/Model/IPLocation.php @@ -239,8 +239,6 @@ public function valid(): bool /** * Gets accuracy_radius. - * - * @return ?int */ public function getAccuracyRadius(): ?int { @@ -311,8 +309,6 @@ public function setLongitude(?float $longitude): self /** * Gets postal_code. - * - * @return ?string */ public function getPostalCode(): ?string { @@ -335,8 +331,6 @@ public function setPostalCode(?string $postal_code): self /** * Gets timezone. - * - * @return ?string */ public function getTimezone(): ?string { @@ -359,8 +353,6 @@ public function setTimezone(?string $timezone): self /** * Gets city. - * - * @return ?\Fingerprint\ServerAPI\Model\IPLocationCity */ public function getCity(): ?IPLocationCity { @@ -383,8 +375,6 @@ public function setCity(?IPLocationCity $city): self /** * Gets country. - * - * @return ?\Fingerprint\ServerAPI\Model\Location */ public function getCountry(): ?Location { @@ -407,8 +397,6 @@ public function setCountry(?Location $country): self /** * Gets continent. - * - * @return ?\Fingerprint\ServerAPI\Model\Location */ public function getContinent(): ?Location { diff --git a/src/Model/IPLocationCity.php b/src/Model/IPLocationCity.php index c0637bf3..5e066dcb 100644 --- a/src/Model/IPLocationCity.php +++ b/src/Model/IPLocationCity.php @@ -191,8 +191,6 @@ public function valid(): bool /** * Gets name. - * - * @return ?string */ public function getName(): ?string { diff --git a/src/Model/IpInfoResult.php b/src/Model/IpInfoResult.php index 2a6a7d98..f414d4fb 100644 --- a/src/Model/IpInfoResult.php +++ b/src/Model/IpInfoResult.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets v4. - * - * @return ?\Fingerprint\ServerAPI\Model\IpInfoResultV4 */ public function getV4(): ?IpInfoResultV4 { @@ -223,8 +221,6 @@ public function setV4(?IpInfoResultV4 $v4): self /** * Gets v6. - * - * @return ?\Fingerprint\ServerAPI\Model\IpInfoResultV6 */ public function getV6(): ?IpInfoResultV6 { diff --git a/src/Model/IpInfoResultV4.php b/src/Model/IpInfoResultV4.php index 8a2f36d3..28e3dc98 100644 --- a/src/Model/IpInfoResultV4.php +++ b/src/Model/IpInfoResultV4.php @@ -262,8 +262,6 @@ public function setGeolocation(IPLocation $geolocation): self /** * Gets asn. - * - * @return ?\Fingerprint\ServerAPI\Model\ASN */ public function getAsn(): ?ASN { @@ -286,8 +284,6 @@ public function setAsn(?ASN $asn): self /** * Gets datacenter. - * - * @return ?\Fingerprint\ServerAPI\Model\DataCenter */ public function getDatacenter(): ?DataCenter { diff --git a/src/Model/IpInfoResultV6.php b/src/Model/IpInfoResultV6.php index 0774ae9c..3916d40f 100644 --- a/src/Model/IpInfoResultV6.php +++ b/src/Model/IpInfoResultV6.php @@ -262,8 +262,6 @@ public function setGeolocation(IPLocation $geolocation): self /** * Gets asn. - * - * @return ?\Fingerprint\ServerAPI\Model\ASN */ public function getAsn(): ?ASN { @@ -286,8 +284,6 @@ public function setAsn(?ASN $asn): self /** * Gets datacenter. - * - * @return ?\Fingerprint\ServerAPI\Model\DataCenter */ public function getDatacenter(): ?DataCenter { diff --git a/src/Model/ProductsResponse.php b/src/Model/ProductsResponse.php index 16649fd8..684f78fc 100644 --- a/src/Model/ProductsResponse.php +++ b/src/Model/ProductsResponse.php @@ -331,8 +331,6 @@ public function valid(): bool /** * Gets identification. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductsResponseIdentification */ public function getIdentification(): ?ProductsResponseIdentification { @@ -355,8 +353,6 @@ public function setIdentification(?ProductsResponseIdentification $identificatio /** * Gets botd. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductsResponseBotd */ public function getBotd(): ?ProductsResponseBotd { @@ -379,8 +375,6 @@ public function setBotd(?ProductsResponseBotd $botd): self /** * Gets ip_info. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseIpInfo */ public function getIpInfo(): ?SignalResponseIpInfo { @@ -403,8 +397,6 @@ public function setIpInfo(?SignalResponseIpInfo $ip_info): self /** * Gets incognito. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseIncognito */ public function getIncognito(): ?SignalResponseIncognito { @@ -427,8 +419,6 @@ public function setIncognito(?SignalResponseIncognito $incognito): self /** * Gets root_apps. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseRootApps */ public function getRootApps(): ?SignalResponseRootApps { @@ -451,8 +441,6 @@ public function setRootApps(?SignalResponseRootApps $root_apps): self /** * Gets emulator. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseEmulator */ public function getEmulator(): ?SignalResponseEmulator { @@ -475,8 +463,6 @@ public function setEmulator(?SignalResponseEmulator $emulator): self /** * Gets cloned_app. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseClonedApp */ public function getClonedApp(): ?SignalResponseClonedApp { @@ -499,8 +485,6 @@ public function setClonedApp(?SignalResponseClonedApp $cloned_app): self /** * Gets factory_reset. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseFactoryReset */ public function getFactoryReset(): ?SignalResponseFactoryReset { @@ -523,8 +507,6 @@ public function setFactoryReset(?SignalResponseFactoryReset $factory_reset): sel /** * Gets jailbroken. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseJailbroken */ public function getJailbroken(): ?SignalResponseJailbroken { @@ -547,8 +529,6 @@ public function setJailbroken(?SignalResponseJailbroken $jailbroken): self /** * Gets frida. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseFrida */ public function getFrida(): ?SignalResponseFrida { @@ -571,8 +551,6 @@ public function setFrida(?SignalResponseFrida $frida): self /** * Gets ip_blocklist. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseIpBlocklist */ public function getIpBlocklist(): ?SignalResponseIpBlocklist { @@ -595,8 +573,6 @@ public function setIpBlocklist(?SignalResponseIpBlocklist $ip_blocklist): self /** * Gets tor. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseTor */ public function getTor(): ?SignalResponseTor { @@ -619,8 +595,6 @@ public function setTor(?SignalResponseTor $tor): self /** * Gets privacy_settings. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponsePrivacySettings */ public function getPrivacySettings(): ?SignalResponsePrivacySettings { @@ -643,8 +617,6 @@ public function setPrivacySettings(?SignalResponsePrivacySettings $privacy_setti /** * Gets virtual_machine. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseVirtualMachine */ public function getVirtualMachine(): ?SignalResponseVirtualMachine { @@ -667,8 +639,6 @@ public function setVirtualMachine(?SignalResponseVirtualMachine $virtual_machine /** * Gets vpn. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseVpn */ public function getVpn(): ?SignalResponseVpn { @@ -691,8 +661,6 @@ public function setVpn(?SignalResponseVpn $vpn): self /** * Gets proxy. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseProxy */ public function getProxy(): ?SignalResponseProxy { @@ -715,8 +683,6 @@ public function setProxy(?SignalResponseProxy $proxy): self /** * Gets tampering. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseTampering */ public function getTampering(): ?SignalResponseTampering { @@ -739,8 +705,6 @@ public function setTampering(?SignalResponseTampering $tampering): self /** * Gets high_activity. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseHighActivity */ public function getHighActivity(): ?SignalResponseHighActivity { @@ -763,8 +727,6 @@ public function setHighActivity(?SignalResponseHighActivity $high_activity): sel /** * Gets location_spoofing. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseLocationSpoofing */ public function getLocationSpoofing(): ?SignalResponseLocationSpoofing { @@ -787,8 +749,6 @@ public function setLocationSpoofing(?SignalResponseLocationSpoofing $location_sp /** * Gets suspect_score. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseSuspectScore */ public function getSuspectScore(): ?SignalResponseSuspectScore { @@ -811,8 +771,6 @@ public function setSuspectScore(?SignalResponseSuspectScore $suspect_score): sel /** * Gets raw_device_attributes. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseRawDeviceAttributes */ public function getRawDeviceAttributes(): ?SignalResponseRawDeviceAttributes { @@ -835,8 +793,6 @@ public function setRawDeviceAttributes(?SignalResponseRawDeviceAttributes $raw_d /** * Gets remote_control. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseRemoteControl */ public function getRemoteControl(): ?SignalResponseRemoteControl { @@ -859,8 +815,6 @@ public function setRemoteControl(?SignalResponseRemoteControl $remote_control): /** * Gets velocity. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseVelocity */ public function getVelocity(): ?SignalResponseVelocity { @@ -883,8 +837,6 @@ public function setVelocity(?SignalResponseVelocity $velocity): self /** * Gets developer_tools. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseDeveloperTools */ public function getDeveloperTools(): ?SignalResponseDeveloperTools { diff --git a/src/Model/ProductsResponseBotd.php b/src/Model/ProductsResponseBotd.php index 7d8255c1..e1dc0d34 100644 --- a/src/Model/ProductsResponseBotd.php +++ b/src/Model/ProductsResponseBotd.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\BotdResult */ public function getData(): ?BotdResult { @@ -221,8 +219,6 @@ public function setData(?BotdResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/ProductsResponseIdentification.php b/src/Model/ProductsResponseIdentification.php index dfec88dc..aeeb57c0 100644 --- a/src/Model/ProductsResponseIdentification.php +++ b/src/Model/ProductsResponseIdentification.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductsResponseIdentificationData */ public function getData(): ?ProductsResponseIdentificationData { @@ -221,8 +219,6 @@ public function setData(?ProductsResponseIdentificationData $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ public function getError(): ?IdentificationError { diff --git a/src/Model/ProductsResponseIdentificationData.php b/src/Model/ProductsResponseIdentificationData.php index 1bf397fc..c2ae2e4f 100644 --- a/src/Model/ProductsResponseIdentificationData.php +++ b/src/Model/ProductsResponseIdentificationData.php @@ -402,8 +402,6 @@ public function setIp(string $ip): self /** * Gets ip_location. - * - * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ public function getIpLocation(): ?DeprecatedIPLocation { @@ -516,8 +514,6 @@ public function setTag(array $tag): self /** * Gets linked_id. - * - * @return ?string */ public function getLinkedId(): ?string { @@ -540,8 +536,6 @@ public function setLinkedId(?string $linked_id): self /** * Gets confidence. - * - * @return ?\Fingerprint\ServerAPI\Model\Confidence */ public function getConfidence(): ?Confidence { diff --git a/src/Model/Response.php b/src/Model/Response.php index 2aa4f347..93de00cc 100644 --- a/src/Model/Response.php +++ b/src/Model/Response.php @@ -266,8 +266,6 @@ public function setVisits(array $visits): self /** * Gets last_timestamp. - * - * @return ?int */ public function getLastTimestamp(): ?int { @@ -290,8 +288,6 @@ public function setLastTimestamp(?int $last_timestamp): self /** * Gets pagination_key. - * - * @return ?string */ public function getPaginationKey(): ?string { diff --git a/src/Model/ResponseVisits.php b/src/Model/ResponseVisits.php index e3b67f55..3621a1a5 100644 --- a/src/Model/ResponseVisits.php +++ b/src/Model/ResponseVisits.php @@ -393,8 +393,6 @@ public function setIp(string $ip): self /** * Gets ip_location. - * - * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ public function getIpLocation(): ?DeprecatedIPLocation { @@ -507,8 +505,6 @@ public function setTag(array $tag): self /** * Gets linked_id. - * - * @return ?string */ public function getLinkedId(): ?string { @@ -531,8 +527,6 @@ public function setLinkedId(?string $linked_id): self /** * Gets confidence. - * - * @return ?\Fingerprint\ServerAPI\Model\Confidence */ public function getConfidence(): ?Confidence { diff --git a/src/Model/SignalResponseClonedApp.php b/src/Model/SignalResponseClonedApp.php index 0edbcaf2..588a2cf2 100644 --- a/src/Model/SignalResponseClonedApp.php +++ b/src/Model/SignalResponseClonedApp.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\ClonedAppResult */ public function getData(): ?ClonedAppResult { @@ -221,8 +219,6 @@ public function setData(?ClonedAppResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseDeveloperTools.php b/src/Model/SignalResponseDeveloperTools.php index d25d3207..e65db632 100644 --- a/src/Model/SignalResponseDeveloperTools.php +++ b/src/Model/SignalResponseDeveloperTools.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\DeveloperToolsResult */ public function getData(): ?DeveloperToolsResult { @@ -221,8 +219,6 @@ public function setData(?DeveloperToolsResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseEmulator.php b/src/Model/SignalResponseEmulator.php index 15d6b196..61b0ee07 100644 --- a/src/Model/SignalResponseEmulator.php +++ b/src/Model/SignalResponseEmulator.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\EmulatorResult */ public function getData(): ?EmulatorResult { @@ -221,8 +219,6 @@ public function setData(?EmulatorResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseFactoryReset.php b/src/Model/SignalResponseFactoryReset.php index 95f0737a..d61b0132 100644 --- a/src/Model/SignalResponseFactoryReset.php +++ b/src/Model/SignalResponseFactoryReset.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\FactoryResetResult */ public function getData(): ?FactoryResetResult { @@ -221,8 +219,6 @@ public function setData(?FactoryResetResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseFrida.php b/src/Model/SignalResponseFrida.php index 86aba169..7db7a1f4 100644 --- a/src/Model/SignalResponseFrida.php +++ b/src/Model/SignalResponseFrida.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\FridaResult */ public function getData(): ?FridaResult { @@ -221,8 +219,6 @@ public function setData(?FridaResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseHighActivity.php b/src/Model/SignalResponseHighActivity.php index 9a1e755a..25998369 100644 --- a/src/Model/SignalResponseHighActivity.php +++ b/src/Model/SignalResponseHighActivity.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\HighActivityResult */ public function getData(): ?HighActivityResult { @@ -221,8 +219,6 @@ public function setData(?HighActivityResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseIncognito.php b/src/Model/SignalResponseIncognito.php index e8e87138..c7fff6eb 100644 --- a/src/Model/SignalResponseIncognito.php +++ b/src/Model/SignalResponseIncognito.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\IncognitoResult */ public function getData(): ?IncognitoResult { @@ -221,8 +219,6 @@ public function setData(?IncognitoResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ public function getError(): ?IdentificationError { diff --git a/src/Model/SignalResponseIpBlocklist.php b/src/Model/SignalResponseIpBlocklist.php index 00a37d29..c7936240 100644 --- a/src/Model/SignalResponseIpBlocklist.php +++ b/src/Model/SignalResponseIpBlocklist.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\IpBlockListResult */ public function getData(): ?IpBlockListResult { @@ -221,8 +219,6 @@ public function setData(?IpBlockListResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseIpInfo.php b/src/Model/SignalResponseIpInfo.php index 48e5fa40..4314cc08 100644 --- a/src/Model/SignalResponseIpInfo.php +++ b/src/Model/SignalResponseIpInfo.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\IpInfoResult */ public function getData(): ?IpInfoResult { @@ -221,8 +219,6 @@ public function setData(?IpInfoResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseJailbroken.php b/src/Model/SignalResponseJailbroken.php index 5d33f2fe..3e61ce07 100644 --- a/src/Model/SignalResponseJailbroken.php +++ b/src/Model/SignalResponseJailbroken.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\JailbrokenResult */ public function getData(): ?JailbrokenResult { @@ -221,8 +219,6 @@ public function setData(?JailbrokenResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseLocationSpoofing.php b/src/Model/SignalResponseLocationSpoofing.php index aef5b071..c56ae7ac 100644 --- a/src/Model/SignalResponseLocationSpoofing.php +++ b/src/Model/SignalResponseLocationSpoofing.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\LocationSpoofingResult */ public function getData(): ?LocationSpoofingResult { @@ -221,8 +219,6 @@ public function setData(?LocationSpoofingResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponsePrivacySettings.php b/src/Model/SignalResponsePrivacySettings.php index a97c78aa..24491013 100644 --- a/src/Model/SignalResponsePrivacySettings.php +++ b/src/Model/SignalResponsePrivacySettings.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\PrivacySettingsResult */ public function getData(): ?PrivacySettingsResult { @@ -221,8 +219,6 @@ public function setData(?PrivacySettingsResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseProxy.php b/src/Model/SignalResponseProxy.php index 0f354989..9e6b6322 100644 --- a/src/Model/SignalResponseProxy.php +++ b/src/Model/SignalResponseProxy.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\ProxyResult */ public function getData(): ?ProxyResult { @@ -221,8 +219,6 @@ public function setData(?ProxyResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseRawDeviceAttributes.php b/src/Model/SignalResponseRawDeviceAttributes.php index 68a20adc..fa20abb4 100644 --- a/src/Model/SignalResponseRawDeviceAttributes.php +++ b/src/Model/SignalResponseRawDeviceAttributes.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult */ public function getData(): array { @@ -221,8 +219,6 @@ public function setData(?array $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ public function getError(): ?IdentificationError { diff --git a/src/Model/SignalResponseRemoteControl.php b/src/Model/SignalResponseRemoteControl.php index afec1f39..8fc480f4 100644 --- a/src/Model/SignalResponseRemoteControl.php +++ b/src/Model/SignalResponseRemoteControl.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\RemoteControlResult */ public function getData(): ?RemoteControlResult { @@ -221,8 +219,6 @@ public function setData(?RemoteControlResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseRootApps.php b/src/Model/SignalResponseRootApps.php index d5ed6c79..9796070e 100644 --- a/src/Model/SignalResponseRootApps.php +++ b/src/Model/SignalResponseRootApps.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\RootAppsResult */ public function getData(): ?RootAppsResult { @@ -221,8 +219,6 @@ public function setData(?RootAppsResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseSuspectScore.php b/src/Model/SignalResponseSuspectScore.php index 3614acf0..3c0e43d4 100644 --- a/src/Model/SignalResponseSuspectScore.php +++ b/src/Model/SignalResponseSuspectScore.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\SuspectScoreResult */ public function getData(): ?SuspectScoreResult { @@ -221,8 +219,6 @@ public function setData(?SuspectScoreResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseTampering.php b/src/Model/SignalResponseTampering.php index 68c818ea..e5802690 100644 --- a/src/Model/SignalResponseTampering.php +++ b/src/Model/SignalResponseTampering.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\TamperingResult */ public function getData(): ?TamperingResult { @@ -221,8 +219,6 @@ public function setData(?TamperingResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ public function getError(): ?IdentificationError { diff --git a/src/Model/SignalResponseTor.php b/src/Model/SignalResponseTor.php index 06ac9768..e1d0a4d0 100644 --- a/src/Model/SignalResponseTor.php +++ b/src/Model/SignalResponseTor.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\TorResult */ public function getData(): ?TorResult { @@ -221,8 +219,6 @@ public function setData(?TorResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseVelocity.php b/src/Model/SignalResponseVelocity.php index 3ccfbdbe..0c717ca2 100644 --- a/src/Model/SignalResponseVelocity.php +++ b/src/Model/SignalResponseVelocity.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\VelocityResult */ public function getData(): ?VelocityResult { @@ -221,8 +219,6 @@ public function setData(?VelocityResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseVirtualMachine.php b/src/Model/SignalResponseVirtualMachine.php index 906eedd2..50f1d4fe 100644 --- a/src/Model/SignalResponseVirtualMachine.php +++ b/src/Model/SignalResponseVirtualMachine.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\VirtualMachineResult */ public function getData(): ?VirtualMachineResult { @@ -221,8 +219,6 @@ public function setData(?VirtualMachineResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseVpn.php b/src/Model/SignalResponseVpn.php index b96d13c5..0f1f63c7 100644 --- a/src/Model/SignalResponseVpn.php +++ b/src/Model/SignalResponseVpn.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\VpnResult */ public function getData(): ?VpnResult { @@ -221,8 +219,6 @@ public function setData(?VpnResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/Subdivision.php b/src/Model/Subdivision.php index 0c2835d8..32997076 100644 --- a/src/Model/Subdivision.php +++ b/src/Model/Subdivision.php @@ -197,8 +197,6 @@ public function valid(): bool /** * Gets iso_code. - * - * @return ?string */ public function getIsoCode(): ?string { @@ -221,8 +219,6 @@ public function setIsoCode(?string $iso_code): self /** * Gets name. - * - * @return ?string */ public function getName(): ?string { diff --git a/src/Model/VelocityIntervalResult.php b/src/Model/VelocityIntervalResult.php index efa97f7d..2f60b5d5 100644 --- a/src/Model/VelocityIntervalResult.php +++ b/src/Model/VelocityIntervalResult.php @@ -258,8 +258,6 @@ public function set1h(int $_1h): self /** * Gets _24h. - * - * @return ?int */ public function get24h(): ?int { diff --git a/src/Model/VelocityIntervals.php b/src/Model/VelocityIntervals.php index f2a84395..f1cf6697 100644 --- a/src/Model/VelocityIntervals.php +++ b/src/Model/VelocityIntervals.php @@ -191,8 +191,6 @@ public function valid(): bool /** * Gets intervals. - * - * @return ?\Fingerprint\ServerAPI\Model\VelocityIntervalResult */ public function getIntervals(): ?VelocityIntervalResult { diff --git a/src/Model/Visit.php b/src/Model/Visit.php index 63ad75b2..4798b030 100644 --- a/src/Model/Visit.php +++ b/src/Model/Visit.php @@ -390,8 +390,6 @@ public function setIp(string $ip): self /** * Gets ip_location. - * - * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ public function getIpLocation(): ?DeprecatedIPLocation { @@ -504,8 +502,6 @@ public function setTag(?array $tag): self /** * Gets linked_id. - * - * @return ?string */ public function getLinkedId(): ?string { @@ -528,8 +524,6 @@ public function setLinkedId(?string $linked_id): self /** * Gets confidence. - * - * @return ?\Fingerprint\ServerAPI\Model\Confidence */ public function getConfidence(): ?Confidence { diff --git a/src/Model/VpnResult.php b/src/Model/VpnResult.php index 2b5651e8..0a593da4 100644 --- a/src/Model/VpnResult.php +++ b/src/Model/VpnResult.php @@ -265,8 +265,6 @@ public function setOriginTimezone(string $origin_timezone): self /** * Gets origin_country. - * - * @return ?string */ public function getOriginCountry(): ?string { diff --git a/src/Model/WebhookVisit.php b/src/Model/WebhookVisit.php index 585c084a..f7872300 100644 --- a/src/Model/WebhookVisit.php +++ b/src/Model/WebhookVisit.php @@ -477,8 +477,6 @@ public function setVisitorId(string $visitor_id): self /** * Gets client_referrer. - * - * @return ?string */ public function getClientReferrer(): ?string { @@ -501,8 +499,6 @@ public function setClientReferrer(?string $client_referrer): self /** * Gets user_agent. - * - * @return ?string */ public function getUserAgent(): ?string { @@ -525,8 +521,6 @@ public function setUserAgent(?string $user_agent): self /** * Gets bot. - * - * @return ?\Fingerprint\ServerAPI\Model\BotdDetectionResult */ public function getBot(): ?BotdDetectionResult { @@ -549,8 +543,6 @@ public function setBot(?BotdDetectionResult $bot): self /** * Gets ip_info. - * - * @return ?\Fingerprint\ServerAPI\Model\IpInfoResult */ public function getIpInfo(): ?IpInfoResult { @@ -595,8 +587,6 @@ public function setIncognito(bool $incognito): self /** * Gets root_apps. - * - * @return ?\Fingerprint\ServerAPI\Model\RootAppsResult */ public function getRootApps(): ?RootAppsResult { @@ -619,8 +609,6 @@ public function setRootApps(?RootAppsResult $root_apps): self /** * Gets emulator. - * - * @return ?\Fingerprint\ServerAPI\Model\EmulatorResult */ public function getEmulator(): ?EmulatorResult { @@ -643,8 +631,6 @@ public function setEmulator(?EmulatorResult $emulator): self /** * Gets cloned_app. - * - * @return ?\Fingerprint\ServerAPI\Model\ClonedAppResult */ public function getClonedApp(): ?ClonedAppResult { @@ -667,8 +653,6 @@ public function setClonedApp(?ClonedAppResult $cloned_app): self /** * Gets factory_reset. - * - * @return ?\Fingerprint\ServerAPI\Model\FactoryResetResult */ public function getFactoryReset(): ?FactoryResetResult { @@ -691,8 +675,6 @@ public function setFactoryReset(?FactoryResetResult $factory_reset): self /** * Gets jailbroken. - * - * @return ?\Fingerprint\ServerAPI\Model\JailbrokenResult */ public function getJailbroken(): ?JailbrokenResult { @@ -715,8 +697,6 @@ public function setJailbroken(?JailbrokenResult $jailbroken): self /** * Gets frida. - * - * @return ?\Fingerprint\ServerAPI\Model\FridaResult */ public function getFrida(): ?FridaResult { @@ -739,8 +719,6 @@ public function setFrida(?FridaResult $frida): self /** * Gets ip_blocklist. - * - * @return ?\Fingerprint\ServerAPI\Model\IpBlockListResult */ public function getIpBlocklist(): ?IpBlockListResult { @@ -763,8 +741,6 @@ public function setIpBlocklist(?IpBlockListResult $ip_blocklist): self /** * Gets tor. - * - * @return ?\Fingerprint\ServerAPI\Model\TorResult */ public function getTor(): ?TorResult { @@ -787,8 +763,6 @@ public function setTor(?TorResult $tor): self /** * Gets privacy_settings. - * - * @return ?\Fingerprint\ServerAPI\Model\PrivacySettingsResult */ public function getPrivacySettings(): ?PrivacySettingsResult { @@ -811,8 +785,6 @@ public function setPrivacySettings(?PrivacySettingsResult $privacy_settings): se /** * Gets virtual_machine. - * - * @return ?\Fingerprint\ServerAPI\Model\VirtualMachineResult */ public function getVirtualMachine(): ?VirtualMachineResult { @@ -835,8 +807,6 @@ public function setVirtualMachine(?VirtualMachineResult $virtual_machine): self /** * Gets vpn. - * - * @return ?\Fingerprint\ServerAPI\Model\VpnResult */ public function getVpn(): ?VpnResult { @@ -859,8 +829,6 @@ public function setVpn(?VpnResult $vpn): self /** * Gets proxy. - * - * @return ?\Fingerprint\ServerAPI\Model\ProxyResult */ public function getProxy(): ?ProxyResult { @@ -883,8 +851,6 @@ public function setProxy(?ProxyResult $proxy): self /** * Gets tampering. - * - * @return ?\Fingerprint\ServerAPI\Model\TamperingResult */ public function getTampering(): ?TamperingResult { @@ -907,8 +873,6 @@ public function setTampering(?TamperingResult $tampering): self /** * Gets raw_device_attributes. - * - * @return ?\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult */ public function getRawDeviceAttributes(): ?RawDeviceAttributesResult { @@ -931,8 +895,6 @@ public function setRawDeviceAttributes(?RawDeviceAttributesResult $raw_device_at /** * Gets high_activity. - * - * @return ?\Fingerprint\ServerAPI\Model\HighActivityResult */ public function getHighActivity(): ?HighActivityResult { @@ -955,8 +917,6 @@ public function setHighActivity(?HighActivityResult $high_activity): self /** * Gets location_spoofing. - * - * @return ?\Fingerprint\ServerAPI\Model\LocationSpoofingResult */ public function getLocationSpoofing(): ?LocationSpoofingResult { @@ -979,8 +939,6 @@ public function setLocationSpoofing(?LocationSpoofingResult $location_spoofing): /** * Gets suspect_score. - * - * @return ?\Fingerprint\ServerAPI\Model\SuspectScoreResult */ public function getSuspectScore(): ?SuspectScoreResult { @@ -1003,8 +961,6 @@ public function setSuspectScore(?SuspectScoreResult $suspect_score): self /** * Gets remote_control. - * - * @return ?\Fingerprint\ServerAPI\Model\RemoteControlResult */ public function getRemoteControl(): ?RemoteControlResult { @@ -1027,8 +983,6 @@ public function setRemoteControl(?RemoteControlResult $remote_control): self /** * Gets velocity. - * - * @return ?\Fingerprint\ServerAPI\Model\VelocityResult */ public function getVelocity(): ?VelocityResult { @@ -1051,8 +1005,6 @@ public function setVelocity(?VelocityResult $velocity): self /** * Gets developer_tools. - * - * @return ?\Fingerprint\ServerAPI\Model\DeveloperToolsResult */ public function getDeveloperTools(): ?DeveloperToolsResult { @@ -1141,8 +1093,6 @@ public function setIp(string $ip): self /** * Gets ip_location. - * - * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ public function getIpLocation(): ?DeprecatedIPLocation { @@ -1255,8 +1205,6 @@ public function setTag(?array $tag): self /** * Gets linked_id. - * - * @return ?string */ public function getLinkedId(): ?string { @@ -1279,8 +1227,6 @@ public function setLinkedId(?string $linked_id): self /** * Gets confidence. - * - * @return ?\Fingerprint\ServerAPI\Model\Confidence */ public function getConfidence(): ?Confidence { From 99011b736a2782fc50f488d5e83d489540a860fb Mon Sep 17 00:00:00 2001 From: Orkun Date: Wed, 4 Sep 2024 15:10:54 +0300 Subject: [PATCH 05/11] fix: php-cs-fixer keep nullable return annotations --- .php-cs-fixer.php | 6 ++ scripts/generate.sh | 8 +++ src/Api/FingerprintApi.php | 4 +- src/Configuration.php | 9 ++- src/Model/ASN.php | 4 ++ src/Model/BotdDetectionResult.php | 4 ++ src/Model/BotdResult.php | 4 ++ src/Model/BrowserDetails.php | 4 ++ src/Model/ClonedAppResult.php | 2 + src/Model/Common403ErrorResponse.php | 2 + src/Model/Confidence.php | 4 ++ src/Model/DataCenter.php | 4 ++ src/Model/DeprecatedIPLocation.php | 14 +++++ src/Model/DeprecatedIPLocationCity.php | 4 ++ src/Model/DeveloperToolsResult.php | 2 + src/Model/EmulatorResult.php | 2 + src/Model/ErrorCommon403Response.php | 4 ++ src/Model/ErrorCommon429Response.php | 4 ++ src/Model/ErrorCommon429ResponseError.php | 2 + src/Model/ErrorEvent404Response.php | 4 ++ src/Model/ErrorEvent404ResponseError.php | 2 + src/Model/ErrorUpdateEvent400Response.php | 4 ++ .../ErrorUpdateEvent400ResponseError.php | 2 + src/Model/ErrorUpdateEvent409Response.php | 4 ++ .../ErrorUpdateEvent409ResponseError.php | 2 + src/Model/ErrorVisitor400Response.php | 4 ++ src/Model/ErrorVisitor400ResponseError.php | 2 + src/Model/ErrorVisitor404Response.php | 4 ++ src/Model/ErrorVisitor404ResponseError.php | 2 + src/Model/ErrorVisits403.php | 2 + src/Model/EventResponse.php | 4 ++ src/Model/EventUpdateRequest.php | 8 +++ src/Model/FactoryResetResult.php | 2 + src/Model/FridaResult.php | 2 + src/Model/HighActivityResult.php | 4 ++ src/Model/IPLocation.php | 14 +++++ src/Model/IPLocationCity.php | 4 ++ src/Model/IdentificationError.php | 2 + src/Model/IncognitoResult.php | 2 + src/Model/IpBlockListResult.php | 2 + src/Model/IpBlockListResultDetails.php | 2 + src/Model/IpInfoResult.php | 6 ++ src/Model/IpInfoResultV4.php | 6 ++ src/Model/IpInfoResultV6.php | 6 ++ src/Model/JailbrokenResult.php | 2 + src/Model/Location.php | 2 + src/Model/LocationSpoofingResult.php | 2 + src/Model/PrivacySettingsResult.php | 2 + src/Model/ProductError.php | 2 + src/Model/ProductsResponse.php | 50 +++++++++++++++++ src/Model/ProductsResponseBotd.php | 6 ++ src/Model/ProductsResponseIdentification.php | 6 ++ .../ProductsResponseIdentificationData.php | 8 +++ src/Model/ProxyResult.php | 2 + src/Model/RawDeviceAttributesResult.php | 2 + src/Model/RemoteControlResult.php | 2 + src/Model/Response.php | 6 ++ src/Model/ResponseVisits.php | 8 +++ src/Model/RootAppsResult.php | 2 + src/Model/SeenAt.php | 2 + src/Model/SignalResponseClonedApp.php | 6 ++ src/Model/SignalResponseDeveloperTools.php | 6 ++ src/Model/SignalResponseEmulator.php | 6 ++ src/Model/SignalResponseFactoryReset.php | 6 ++ src/Model/SignalResponseFrida.php | 6 ++ src/Model/SignalResponseHighActivity.php | 6 ++ src/Model/SignalResponseIncognito.php | 6 ++ src/Model/SignalResponseIpBlocklist.php | 6 ++ src/Model/SignalResponseIpInfo.php | 6 ++ src/Model/SignalResponseJailbroken.php | 6 ++ src/Model/SignalResponseLocationSpoofing.php | 6 ++ src/Model/SignalResponsePrivacySettings.php | 6 ++ src/Model/SignalResponseProxy.php | 6 ++ .../SignalResponseRawDeviceAttributes.php | 6 ++ src/Model/SignalResponseRemoteControl.php | 6 ++ src/Model/SignalResponseRootApps.php | 6 ++ src/Model/SignalResponseSuspectScore.php | 6 ++ src/Model/SignalResponseTampering.php | 6 ++ src/Model/SignalResponseTor.php | 6 ++ src/Model/SignalResponseVelocity.php | 6 ++ src/Model/SignalResponseVirtualMachine.php | 6 ++ src/Model/SignalResponseVpn.php | 6 ++ src/Model/Subdivision.php | 6 ++ src/Model/SuspectScoreResult.php | 2 + src/Model/TamperingResult.php | 2 + src/Model/TooManyRequestsResponse.php | 2 + src/Model/TorResult.php | 2 + src/Model/VelocityIntervalResult.php | 4 ++ src/Model/VelocityIntervals.php | 4 ++ src/Model/VelocityResult.php | 2 + src/Model/VirtualMachineResult.php | 2 + src/Model/Visit.php | 8 +++ src/Model/VpnResult.php | 4 ++ src/Model/VpnResultMethods.php | 2 + src/Model/WebhookVisit.php | 56 +++++++++++++++++++ src/ObjectSerializer.php | 6 +- 96 files changed, 514 insertions(+), 7 deletions(-) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 59505d88..e7b05d41 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -14,6 +14,12 @@ 'operators' => ['=>' => null], ], 'multiline_whitespace_before_semicolons' => false, + 'phpdoc_trim' => false, + 'phpdoc_no_empty_return' => false, + 'phpdoc_types_order' => [ + 'null_adjustment' => 'always_last', + 'sort_algorithm' => 'none', + ], ]) ->setFinder( PhpCsFixer\Finder::create() diff --git a/scripts/generate.sh b/scripts/generate.sh index 2ca7bd38..291233e1 100755 --- a/scripts/generate.sh +++ b/scripts/generate.sh @@ -40,6 +40,14 @@ rm -f ./src/Model/* java -jar ./bin/swagger-codegen-cli.jar generate -t ./template -l php -i ./res/fingerprint-server-api.yaml -o ./ -c config.json +if [ ! -f .php-cs-fixer.php ]; then + echo ".php-cs-fixer.php configuration file not found!" + exit 1 +fi + +echo "Using .php-cs-fixer.php configuration:" +cat .php-cs-fixer.php + docker run --rm -v $(pwd):/code ghcr.io/php-cs-fixer/php-cs-fixer:${FIXER_VERSION:-3-php8.3} fix --config=/code/.php-cs-fixer.php /code/src # fix invalid code generated for structure with additionalProperties diff --git a/src/Api/FingerprintApi.php b/src/Api/FingerprintApi.php index d0aef052..68673377 100644 --- a/src/Api/FingerprintApi.php +++ b/src/Api/FingerprintApi.php @@ -259,7 +259,7 @@ function ($e) { * * @param string $request_id The unique [identifier](https://dev.fingerprint.com/docs/js-agent#requestid) of each identification request. (required) * - * @return array{ null|\Fingerprint\ServerAPI\Model\EventResponse, \Psr\Http\Message\ResponseInterface } + * @return array{ \Fingerprint\ServerAPI\Model\EventResponse|null, \Psr\Http\Message\ResponseInterface } * * @throws \InvalidArgumentException * @throws SerializationException @@ -435,7 +435,7 @@ function ($e) { * @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) * - * @return array{ null|\Fingerprint\ServerAPI\Model\Response, \Psr\Http\Message\ResponseInterface } + * @return array{ \Fingerprint\ServerAPI\Model\Response|null, \Psr\Http\Message\ResponseInterface } * * @throws \InvalidArgumentException * @throws SerializationException diff --git a/src/Configuration.php b/src/Configuration.php index ce17f4b7..62f7d065 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -124,7 +124,7 @@ public function setApiKey(string $apiKeyIdentifier, string $key): self * * @param string $apiKeyIdentifier API key identifier (authentication scheme) * - * @return null|string API key or token + * @return string|null API key or token */ public function getApiKey(string $apiKeyIdentifier): ?string { @@ -150,6 +150,7 @@ public function setApiKeyPrefix(string $apiKeyIdentifier, string $prefix): self * Gets API key prefix. * * @param string $apiKeyIdentifier API key identifier (authentication scheme) + * */ public function getApiKeyPrefix(string $apiKeyIdentifier): ?string { @@ -329,6 +330,7 @@ public function setDebug(bool $debug): self /** * Gets the debug flag. + * */ public function getDebug(): bool { @@ -351,6 +353,7 @@ public function setDebugFile(string $debugFile): self /** * Gets the debug file. + * */ public function getDebugFile(): string { @@ -383,6 +386,7 @@ public function getTempFolderPath(): string /** * Gets the default configuration instance, with apiKey and host params. + * */ public static function getDefaultConfiguration(?string $api_key = null, ?string $region = self::REGION_GLOBAL): self { @@ -400,6 +404,7 @@ public static function getDefaultConfiguration(?string $api_key = null, ?string * Sets the detault configuration instance. * * @param Configuration $config An instance of the Configuration Object + * */ public static function setDefaultConfiguration(Configuration $config): void { @@ -428,7 +433,7 @@ public static function toDebugReport(): string * * @param string $apiKeyIdentifier name of apikey * - * @return null|string API key with the prefix + * @return string|null API key with the prefix */ public function getApiKeyWithPrefix(string $apiKeyIdentifier): ?string { diff --git a/src/Model/ASN.php b/src/Model/ASN.php index 5bffc27b..513d1637 100644 --- a/src/Model/ASN.php +++ b/src/Model/ASN.php @@ -42,6 +42,7 @@ class ASN implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ASN'; @@ -118,6 +119,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -256,6 +258,8 @@ public function setNetwork(string $network): self /** * Gets name. + * + * @return ?string */ public function getName(): ?string { diff --git a/src/Model/BotdDetectionResult.php b/src/Model/BotdDetectionResult.php index 2bb3d40c..2bb4185d 100644 --- a/src/Model/BotdDetectionResult.php +++ b/src/Model/BotdDetectionResult.php @@ -48,6 +48,7 @@ class BotdDetectionResult implements ModelInterface, \ArrayAccess /** * The original name of the model. + * */ protected static string $swaggerModelName = 'BotdDetectionResult'; @@ -118,6 +119,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -260,6 +262,8 @@ public function setResult(string $result): self /** * Gets type. + * + * @return ?string */ public function getType(): ?string { diff --git a/src/Model/BotdResult.php b/src/Model/BotdResult.php index eaa02aca..5759f744 100644 --- a/src/Model/BotdResult.php +++ b/src/Model/BotdResult.php @@ -44,6 +44,7 @@ class BotdResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'BotdResult'; @@ -144,6 +145,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -360,6 +362,8 @@ public function setRequestId(string $request_id): self /** * Gets linked_id. + * + * @return ?string */ public function getLinkedId(): ?string { diff --git a/src/Model/BrowserDetails.php b/src/Model/BrowserDetails.php index cc8d8250..dfaf11b5 100644 --- a/src/Model/BrowserDetails.php +++ b/src/Model/BrowserDetails.php @@ -42,6 +42,7 @@ class BrowserDetails implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'BrowserDetails'; @@ -148,6 +149,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -411,6 +413,8 @@ public function setUserAgent(string $user_agent): self /** * Gets bot_probability. + * + * @return ?int */ public function getBotProbability(): ?int { diff --git a/src/Model/ClonedAppResult.php b/src/Model/ClonedAppResult.php index 61fd7c2d..bb6058c3 100644 --- a/src/Model/ClonedAppResult.php +++ b/src/Model/ClonedAppResult.php @@ -42,6 +42,7 @@ class ClonedAppResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ClonedAppResult'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/Common403ErrorResponse.php b/src/Model/Common403ErrorResponse.php index f8e5fd06..08fccec6 100644 --- a/src/Model/Common403ErrorResponse.php +++ b/src/Model/Common403ErrorResponse.php @@ -48,6 +48,7 @@ class Common403ErrorResponse implements ModelInterface, \ArrayAccess /** * The original name of the model. + * */ protected static string $swaggerModelName = 'Common403ErrorResponse'; @@ -118,6 +119,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/Confidence.php b/src/Model/Confidence.php index 4ecbc53a..d0e6b0d5 100644 --- a/src/Model/Confidence.php +++ b/src/Model/Confidence.php @@ -42,6 +42,7 @@ class Confidence implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'Confidence'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -225,6 +227,8 @@ public function setScore(float $score): self /** * Gets revision. + * + * @return ?string */ public function getRevision(): ?string { diff --git a/src/Model/DataCenter.php b/src/Model/DataCenter.php index cd6edc93..be8676e8 100644 --- a/src/Model/DataCenter.php +++ b/src/Model/DataCenter.php @@ -42,6 +42,7 @@ class DataCenter implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'DataCenter'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -225,6 +227,8 @@ public function setResult(bool $result): self /** * Gets name. + * + * @return ?string */ public function getName(): ?string { diff --git a/src/Model/DeprecatedIPLocation.php b/src/Model/DeprecatedIPLocation.php index 92ec70fc..78bef7a4 100644 --- a/src/Model/DeprecatedIPLocation.php +++ b/src/Model/DeprecatedIPLocation.php @@ -44,6 +44,7 @@ class DeprecatedIPLocation implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'DeprecatedIPLocation'; @@ -156,6 +157,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -241,6 +243,8 @@ public function valid(): bool /** * Gets accuracy_radius. + * + * @return ?int */ public function getAccuracyRadius(): ?int { @@ -311,6 +315,8 @@ public function setLongitude(?float $longitude): self /** * Gets postal_code. + * + * @return ?string */ public function getPostalCode(): ?string { @@ -333,6 +339,8 @@ public function setPostalCode(?string $postal_code): self /** * Gets timezone. + * + * @return ?string */ public function getTimezone(): ?string { @@ -355,6 +363,8 @@ public function setTimezone(?string $timezone): self /** * Gets city. + * + * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocationCity */ public function getCity(): ?DeprecatedIPLocationCity { @@ -377,6 +387,8 @@ public function setCity(?DeprecatedIPLocationCity $city): self /** * Gets country. + * + * @return ?\Fingerprint\ServerAPI\Model\Location */ public function getCountry(): ?Location { @@ -399,6 +411,8 @@ public function setCountry(?Location $country): self /** * Gets continent. + * + * @return ?\Fingerprint\ServerAPI\Model\Location */ public function getContinent(): ?Location { diff --git a/src/Model/DeprecatedIPLocationCity.php b/src/Model/DeprecatedIPLocationCity.php index 80b25d81..00eb95da 100644 --- a/src/Model/DeprecatedIPLocationCity.php +++ b/src/Model/DeprecatedIPLocationCity.php @@ -42,6 +42,7 @@ class DeprecatedIPLocationCity implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'DeprecatedIPLocationCity'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -191,6 +193,8 @@ public function valid(): bool /** * Gets name. + * + * @return ?string */ public function getName(): ?string { diff --git a/src/Model/DeveloperToolsResult.php b/src/Model/DeveloperToolsResult.php index 2047bf72..9f16ce60 100644 --- a/src/Model/DeveloperToolsResult.php +++ b/src/Model/DeveloperToolsResult.php @@ -42,6 +42,7 @@ class DeveloperToolsResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'DeveloperToolsResult'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/EmulatorResult.php b/src/Model/EmulatorResult.php index 0a4398fd..2ff045a9 100644 --- a/src/Model/EmulatorResult.php +++ b/src/Model/EmulatorResult.php @@ -42,6 +42,7 @@ class EmulatorResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'EmulatorResult'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/ErrorCommon403Response.php b/src/Model/ErrorCommon403Response.php index 72801e89..91a5334a 100644 --- a/src/Model/ErrorCommon403Response.php +++ b/src/Model/ErrorCommon403Response.php @@ -42,6 +42,7 @@ class ErrorCommon403Response implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ErrorCommon403Response'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -191,6 +193,8 @@ public function valid(): bool /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\Common403ErrorResponse */ public function getError(): ?Common403ErrorResponse { diff --git a/src/Model/ErrorCommon429Response.php b/src/Model/ErrorCommon429Response.php index ef544255..7a5100d9 100644 --- a/src/Model/ErrorCommon429Response.php +++ b/src/Model/ErrorCommon429Response.php @@ -42,6 +42,7 @@ class ErrorCommon429Response implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ErrorCommon429Response'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -191,6 +193,8 @@ public function valid(): bool /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ErrorCommon429ResponseError */ public function getError(): ?ErrorCommon429ResponseError { diff --git a/src/Model/ErrorCommon429ResponseError.php b/src/Model/ErrorCommon429ResponseError.php index f214c931..7e930734 100644 --- a/src/Model/ErrorCommon429ResponseError.php +++ b/src/Model/ErrorCommon429ResponseError.php @@ -44,6 +44,7 @@ class ErrorCommon429ResponseError implements ModelInterface, \ArrayAccess /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ErrorCommon429Response_error'; @@ -114,6 +115,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/ErrorEvent404Response.php b/src/Model/ErrorEvent404Response.php index 2142983c..62b9aba2 100644 --- a/src/Model/ErrorEvent404Response.php +++ b/src/Model/ErrorEvent404Response.php @@ -42,6 +42,7 @@ class ErrorEvent404Response implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ErrorEvent404Response'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -191,6 +193,8 @@ public function valid(): bool /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ErrorEvent404ResponseError */ public function getError(): ?ErrorEvent404ResponseError { diff --git a/src/Model/ErrorEvent404ResponseError.php b/src/Model/ErrorEvent404ResponseError.php index 0337f0bd..1e8e08ff 100644 --- a/src/Model/ErrorEvent404ResponseError.php +++ b/src/Model/ErrorEvent404ResponseError.php @@ -44,6 +44,7 @@ class ErrorEvent404ResponseError implements ModelInterface, \ArrayAccess /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ErrorEvent404ResponseError'; @@ -114,6 +115,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/ErrorUpdateEvent400Response.php b/src/Model/ErrorUpdateEvent400Response.php index f2157ca0..0f5f502a 100644 --- a/src/Model/ErrorUpdateEvent400Response.php +++ b/src/Model/ErrorUpdateEvent400Response.php @@ -42,6 +42,7 @@ class ErrorUpdateEvent400Response implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ErrorUpdateEvent400Response'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -191,6 +193,8 @@ public function valid(): bool /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ErrorUpdateEvent400ResponseError */ public function getError(): ?ErrorUpdateEvent400ResponseError { diff --git a/src/Model/ErrorUpdateEvent400ResponseError.php b/src/Model/ErrorUpdateEvent400ResponseError.php index ec5eedb8..1a846943 100644 --- a/src/Model/ErrorUpdateEvent400ResponseError.php +++ b/src/Model/ErrorUpdateEvent400ResponseError.php @@ -45,6 +45,7 @@ class ErrorUpdateEvent400ResponseError implements ModelInterface, \ArrayAccess /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ErrorUpdateEvent400ResponseError'; @@ -115,6 +116,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/ErrorUpdateEvent409Response.php b/src/Model/ErrorUpdateEvent409Response.php index 3e1bed4d..f2b60816 100644 --- a/src/Model/ErrorUpdateEvent409Response.php +++ b/src/Model/ErrorUpdateEvent409Response.php @@ -42,6 +42,7 @@ class ErrorUpdateEvent409Response implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ErrorUpdateEvent409Response'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -191,6 +193,8 @@ public function valid(): bool /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ErrorUpdateEvent409ResponseError */ public function getError(): ?ErrorUpdateEvent409ResponseError { diff --git a/src/Model/ErrorUpdateEvent409ResponseError.php b/src/Model/ErrorUpdateEvent409ResponseError.php index 7104bb91..d5e59471 100644 --- a/src/Model/ErrorUpdateEvent409ResponseError.php +++ b/src/Model/ErrorUpdateEvent409ResponseError.php @@ -44,6 +44,7 @@ class ErrorUpdateEvent409ResponseError implements ModelInterface, \ArrayAccess /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ErrorUpdateEvent409ResponseError'; @@ -114,6 +115,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/ErrorVisitor400Response.php b/src/Model/ErrorVisitor400Response.php index b8069300..619453b2 100644 --- a/src/Model/ErrorVisitor400Response.php +++ b/src/Model/ErrorVisitor400Response.php @@ -42,6 +42,7 @@ class ErrorVisitor400Response implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ErrorVisitor400Response'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -191,6 +193,8 @@ public function valid(): bool /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ErrorVisitor400ResponseError */ public function getError(): ?ErrorVisitor400ResponseError { diff --git a/src/Model/ErrorVisitor400ResponseError.php b/src/Model/ErrorVisitor400ResponseError.php index f3a7511d..75686a3f 100644 --- a/src/Model/ErrorVisitor400ResponseError.php +++ b/src/Model/ErrorVisitor400ResponseError.php @@ -44,6 +44,7 @@ class ErrorVisitor400ResponseError implements ModelInterface, \ArrayAccess /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ErrorVisitor400Response_error'; @@ -114,6 +115,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/ErrorVisitor404Response.php b/src/Model/ErrorVisitor404Response.php index 844c224b..cb60f246 100644 --- a/src/Model/ErrorVisitor404Response.php +++ b/src/Model/ErrorVisitor404Response.php @@ -42,6 +42,7 @@ class ErrorVisitor404Response implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ErrorVisitor404Response'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -191,6 +193,8 @@ public function valid(): bool /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ErrorVisitor404ResponseError */ public function getError(): ?ErrorVisitor404ResponseError { diff --git a/src/Model/ErrorVisitor404ResponseError.php b/src/Model/ErrorVisitor404ResponseError.php index 6365d384..5180dfb1 100644 --- a/src/Model/ErrorVisitor404ResponseError.php +++ b/src/Model/ErrorVisitor404ResponseError.php @@ -44,6 +44,7 @@ class ErrorVisitor404ResponseError implements ModelInterface, \ArrayAccess /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ErrorVisitor404ResponseError'; @@ -114,6 +115,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/ErrorVisits403.php b/src/Model/ErrorVisits403.php index 297998f3..d2791a9d 100644 --- a/src/Model/ErrorVisits403.php +++ b/src/Model/ErrorVisits403.php @@ -42,6 +42,7 @@ class ErrorVisits403 implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ErrorVisits403'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/EventResponse.php b/src/Model/EventResponse.php index 4cf0bcb7..677ddc1e 100644 --- a/src/Model/EventResponse.php +++ b/src/Model/EventResponse.php @@ -44,6 +44,7 @@ class EventResponse implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'EventResponse'; @@ -114,6 +115,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -227,6 +229,8 @@ public function setProducts(ProductsResponse $products): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/EventUpdateRequest.php b/src/Model/EventUpdateRequest.php index 57bf7668..48a75da9 100644 --- a/src/Model/EventUpdateRequest.php +++ b/src/Model/EventUpdateRequest.php @@ -42,6 +42,7 @@ class EventUpdateRequest implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'EventUpdateRequest'; @@ -118,6 +119,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -203,6 +205,8 @@ public function valid(): bool /** * Gets linked_id. + * + * @return ?string */ public function getLinkedId(): ?string { @@ -225,6 +229,8 @@ public function setLinkedId(?string $linked_id): self /** * Gets tag. + * + * @return ?object */ public function getTag(): ?object { @@ -247,6 +253,8 @@ public function setTag(?object $tag): self /** * Gets suspect. + * + * @return ?bool */ public function getSuspect(): ?bool { diff --git a/src/Model/FactoryResetResult.php b/src/Model/FactoryResetResult.php index 8d6872fa..1ac00a95 100644 --- a/src/Model/FactoryResetResult.php +++ b/src/Model/FactoryResetResult.php @@ -42,6 +42,7 @@ class FactoryResetResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'FactoryResetResult'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/FridaResult.php b/src/Model/FridaResult.php index ad511bad..e8b4d788 100644 --- a/src/Model/FridaResult.php +++ b/src/Model/FridaResult.php @@ -42,6 +42,7 @@ class FridaResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'FridaResult'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/HighActivityResult.php b/src/Model/HighActivityResult.php index ab323cad..eb1b6655 100644 --- a/src/Model/HighActivityResult.php +++ b/src/Model/HighActivityResult.php @@ -42,6 +42,7 @@ class HighActivityResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'HighActivityResult'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -225,6 +227,8 @@ public function setResult(bool $result): self /** * Gets daily_requests. + * + * @return ?float */ public function getDailyRequests(): ?float { diff --git a/src/Model/IPLocation.php b/src/Model/IPLocation.php index 057d545b..0d860886 100644 --- a/src/Model/IPLocation.php +++ b/src/Model/IPLocation.php @@ -42,6 +42,7 @@ class IPLocation implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'IPLocation'; @@ -154,6 +155,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -239,6 +241,8 @@ public function valid(): bool /** * Gets accuracy_radius. + * + * @return ?int */ public function getAccuracyRadius(): ?int { @@ -309,6 +313,8 @@ public function setLongitude(?float $longitude): self /** * Gets postal_code. + * + * @return ?string */ public function getPostalCode(): ?string { @@ -331,6 +337,8 @@ public function setPostalCode(?string $postal_code): self /** * Gets timezone. + * + * @return ?string */ public function getTimezone(): ?string { @@ -353,6 +361,8 @@ public function setTimezone(?string $timezone): self /** * Gets city. + * + * @return ?\Fingerprint\ServerAPI\Model\IPLocationCity */ public function getCity(): ?IPLocationCity { @@ -375,6 +385,8 @@ public function setCity(?IPLocationCity $city): self /** * Gets country. + * + * @return ?\Fingerprint\ServerAPI\Model\Location */ public function getCountry(): ?Location { @@ -397,6 +409,8 @@ public function setCountry(?Location $country): self /** * Gets continent. + * + * @return ?\Fingerprint\ServerAPI\Model\Location */ public function getContinent(): ?Location { diff --git a/src/Model/IPLocationCity.php b/src/Model/IPLocationCity.php index 5e066dcb..3daa33ad 100644 --- a/src/Model/IPLocationCity.php +++ b/src/Model/IPLocationCity.php @@ -42,6 +42,7 @@ class IPLocationCity implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'IPLocationCity'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -191,6 +193,8 @@ public function valid(): bool /** * Gets name. + * + * @return ?string */ public function getName(): ?string { diff --git a/src/Model/IdentificationError.php b/src/Model/IdentificationError.php index c8890cc4..690dc8f1 100644 --- a/src/Model/IdentificationError.php +++ b/src/Model/IdentificationError.php @@ -45,6 +45,7 @@ class IdentificationError implements ModelInterface, \ArrayAccess /** * The original name of the model. + * */ protected static string $swaggerModelName = 'IdentificationError'; @@ -115,6 +116,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/IncognitoResult.php b/src/Model/IncognitoResult.php index 6299cc93..f5920155 100644 --- a/src/Model/IncognitoResult.php +++ b/src/Model/IncognitoResult.php @@ -42,6 +42,7 @@ class IncognitoResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'IncognitoResult'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/IpBlockListResult.php b/src/Model/IpBlockListResult.php index c6131829..d57b0ce4 100644 --- a/src/Model/IpBlockListResult.php +++ b/src/Model/IpBlockListResult.php @@ -42,6 +42,7 @@ class IpBlockListResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'IpBlockListResult'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/IpBlockListResultDetails.php b/src/Model/IpBlockListResultDetails.php index 0695fbc1..901937e8 100644 --- a/src/Model/IpBlockListResultDetails.php +++ b/src/Model/IpBlockListResultDetails.php @@ -42,6 +42,7 @@ class IpBlockListResultDetails implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'IpBlockListResult_details'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/IpInfoResult.php b/src/Model/IpInfoResult.php index f414d4fb..53c4609e 100644 --- a/src/Model/IpInfoResult.php +++ b/src/Model/IpInfoResult.php @@ -44,6 +44,7 @@ class IpInfoResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'IpInfoResult'; @@ -114,6 +115,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -199,6 +201,8 @@ public function valid(): bool /** * Gets v4. + * + * @return ?\Fingerprint\ServerAPI\Model\IpInfoResultV4 */ public function getV4(): ?IpInfoResultV4 { @@ -221,6 +225,8 @@ public function setV4(?IpInfoResultV4 $v4): self /** * Gets v6. + * + * @return ?\Fingerprint\ServerAPI\Model\IpInfoResultV6 */ public function getV6(): ?IpInfoResultV6 { diff --git a/src/Model/IpInfoResultV4.php b/src/Model/IpInfoResultV4.php index 28e3dc98..c23b605e 100644 --- a/src/Model/IpInfoResultV4.php +++ b/src/Model/IpInfoResultV4.php @@ -42,6 +42,7 @@ class IpInfoResultV4 implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'IpInfoResult_v4'; @@ -124,6 +125,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -262,6 +264,8 @@ public function setGeolocation(IPLocation $geolocation): self /** * Gets asn. + * + * @return ?\Fingerprint\ServerAPI\Model\ASN */ public function getAsn(): ?ASN { @@ -284,6 +288,8 @@ public function setAsn(?ASN $asn): self /** * Gets datacenter. + * + * @return ?\Fingerprint\ServerAPI\Model\DataCenter */ public function getDatacenter(): ?DataCenter { diff --git a/src/Model/IpInfoResultV6.php b/src/Model/IpInfoResultV6.php index 3916d40f..9ea20b53 100644 --- a/src/Model/IpInfoResultV6.php +++ b/src/Model/IpInfoResultV6.php @@ -42,6 +42,7 @@ class IpInfoResultV6 implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'IpInfoResult_v6'; @@ -124,6 +125,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -262,6 +264,8 @@ public function setGeolocation(IPLocation $geolocation): self /** * Gets asn. + * + * @return ?\Fingerprint\ServerAPI\Model\ASN */ public function getAsn(): ?ASN { @@ -284,6 +288,8 @@ public function setAsn(?ASN $asn): self /** * Gets datacenter. + * + * @return ?\Fingerprint\ServerAPI\Model\DataCenter */ public function getDatacenter(): ?DataCenter { diff --git a/src/Model/JailbrokenResult.php b/src/Model/JailbrokenResult.php index fa94ca4d..09dde5a3 100644 --- a/src/Model/JailbrokenResult.php +++ b/src/Model/JailbrokenResult.php @@ -42,6 +42,7 @@ class JailbrokenResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'JailbrokenResult'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/Location.php b/src/Model/Location.php index 10af00e7..72c7a482 100644 --- a/src/Model/Location.php +++ b/src/Model/Location.php @@ -42,6 +42,7 @@ class Location implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'Location'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/LocationSpoofingResult.php b/src/Model/LocationSpoofingResult.php index fb7e697c..3e9ae815 100644 --- a/src/Model/LocationSpoofingResult.php +++ b/src/Model/LocationSpoofingResult.php @@ -42,6 +42,7 @@ class LocationSpoofingResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'LocationSpoofingResult'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/PrivacySettingsResult.php b/src/Model/PrivacySettingsResult.php index 28bcb9a6..efe0093d 100644 --- a/src/Model/PrivacySettingsResult.php +++ b/src/Model/PrivacySettingsResult.php @@ -42,6 +42,7 @@ class PrivacySettingsResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'PrivacySettingsResult'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/ProductError.php b/src/Model/ProductError.php index 5a0879e9..36cc5c1e 100644 --- a/src/Model/ProductError.php +++ b/src/Model/ProductError.php @@ -45,6 +45,7 @@ class ProductError implements ModelInterface, \ArrayAccess /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ProductError'; @@ -115,6 +116,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/ProductsResponse.php b/src/Model/ProductsResponse.php index 684f78fc..3a7c6f37 100644 --- a/src/Model/ProductsResponse.php +++ b/src/Model/ProductsResponse.php @@ -44,6 +44,7 @@ class ProductsResponse implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ProductsResponse'; @@ -246,6 +247,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -331,6 +333,8 @@ public function valid(): bool /** * Gets identification. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductsResponseIdentification */ public function getIdentification(): ?ProductsResponseIdentification { @@ -353,6 +357,8 @@ public function setIdentification(?ProductsResponseIdentification $identificatio /** * Gets botd. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductsResponseBotd */ public function getBotd(): ?ProductsResponseBotd { @@ -375,6 +381,8 @@ public function setBotd(?ProductsResponseBotd $botd): self /** * Gets ip_info. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseIpInfo */ public function getIpInfo(): ?SignalResponseIpInfo { @@ -397,6 +405,8 @@ public function setIpInfo(?SignalResponseIpInfo $ip_info): self /** * Gets incognito. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseIncognito */ public function getIncognito(): ?SignalResponseIncognito { @@ -419,6 +429,8 @@ public function setIncognito(?SignalResponseIncognito $incognito): self /** * Gets root_apps. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseRootApps */ public function getRootApps(): ?SignalResponseRootApps { @@ -441,6 +453,8 @@ public function setRootApps(?SignalResponseRootApps $root_apps): self /** * Gets emulator. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseEmulator */ public function getEmulator(): ?SignalResponseEmulator { @@ -463,6 +477,8 @@ public function setEmulator(?SignalResponseEmulator $emulator): self /** * Gets cloned_app. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseClonedApp */ public function getClonedApp(): ?SignalResponseClonedApp { @@ -485,6 +501,8 @@ public function setClonedApp(?SignalResponseClonedApp $cloned_app): self /** * Gets factory_reset. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseFactoryReset */ public function getFactoryReset(): ?SignalResponseFactoryReset { @@ -507,6 +525,8 @@ public function setFactoryReset(?SignalResponseFactoryReset $factory_reset): sel /** * Gets jailbroken. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseJailbroken */ public function getJailbroken(): ?SignalResponseJailbroken { @@ -529,6 +549,8 @@ public function setJailbroken(?SignalResponseJailbroken $jailbroken): self /** * Gets frida. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseFrida */ public function getFrida(): ?SignalResponseFrida { @@ -551,6 +573,8 @@ public function setFrida(?SignalResponseFrida $frida): self /** * Gets ip_blocklist. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseIpBlocklist */ public function getIpBlocklist(): ?SignalResponseIpBlocklist { @@ -573,6 +597,8 @@ public function setIpBlocklist(?SignalResponseIpBlocklist $ip_blocklist): self /** * Gets tor. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseTor */ public function getTor(): ?SignalResponseTor { @@ -595,6 +621,8 @@ public function setTor(?SignalResponseTor $tor): self /** * Gets privacy_settings. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponsePrivacySettings */ public function getPrivacySettings(): ?SignalResponsePrivacySettings { @@ -617,6 +645,8 @@ public function setPrivacySettings(?SignalResponsePrivacySettings $privacy_setti /** * Gets virtual_machine. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseVirtualMachine */ public function getVirtualMachine(): ?SignalResponseVirtualMachine { @@ -639,6 +669,8 @@ public function setVirtualMachine(?SignalResponseVirtualMachine $virtual_machine /** * Gets vpn. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseVpn */ public function getVpn(): ?SignalResponseVpn { @@ -661,6 +693,8 @@ public function setVpn(?SignalResponseVpn $vpn): self /** * Gets proxy. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseProxy */ public function getProxy(): ?SignalResponseProxy { @@ -683,6 +717,8 @@ public function setProxy(?SignalResponseProxy $proxy): self /** * Gets tampering. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseTampering */ public function getTampering(): ?SignalResponseTampering { @@ -705,6 +741,8 @@ public function setTampering(?SignalResponseTampering $tampering): self /** * Gets high_activity. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseHighActivity */ public function getHighActivity(): ?SignalResponseHighActivity { @@ -727,6 +765,8 @@ public function setHighActivity(?SignalResponseHighActivity $high_activity): sel /** * Gets location_spoofing. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseLocationSpoofing */ public function getLocationSpoofing(): ?SignalResponseLocationSpoofing { @@ -749,6 +789,8 @@ public function setLocationSpoofing(?SignalResponseLocationSpoofing $location_sp /** * Gets suspect_score. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseSuspectScore */ public function getSuspectScore(): ?SignalResponseSuspectScore { @@ -771,6 +813,8 @@ public function setSuspectScore(?SignalResponseSuspectScore $suspect_score): sel /** * Gets raw_device_attributes. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseRawDeviceAttributes */ public function getRawDeviceAttributes(): ?SignalResponseRawDeviceAttributes { @@ -793,6 +837,8 @@ public function setRawDeviceAttributes(?SignalResponseRawDeviceAttributes $raw_d /** * Gets remote_control. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseRemoteControl */ public function getRemoteControl(): ?SignalResponseRemoteControl { @@ -815,6 +861,8 @@ public function setRemoteControl(?SignalResponseRemoteControl $remote_control): /** * Gets velocity. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseVelocity */ public function getVelocity(): ?SignalResponseVelocity { @@ -837,6 +885,8 @@ public function setVelocity(?SignalResponseVelocity $velocity): self /** * Gets developer_tools. + * + * @return ?\Fingerprint\ServerAPI\Model\SignalResponseDeveloperTools */ public function getDeveloperTools(): ?SignalResponseDeveloperTools { diff --git a/src/Model/ProductsResponseBotd.php b/src/Model/ProductsResponseBotd.php index e1dc0d34..9f1c8923 100644 --- a/src/Model/ProductsResponseBotd.php +++ b/src/Model/ProductsResponseBotd.php @@ -42,6 +42,7 @@ class ProductsResponseBotd implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ProductsResponseBotd'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\BotdResult */ public function getData(): ?BotdResult { @@ -219,6 +223,8 @@ public function setData(?BotdResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/ProductsResponseIdentification.php b/src/Model/ProductsResponseIdentification.php index aeeb57c0..d69e0a42 100644 --- a/src/Model/ProductsResponseIdentification.php +++ b/src/Model/ProductsResponseIdentification.php @@ -42,6 +42,7 @@ class ProductsResponseIdentification implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ProductsResponseIdentification'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductsResponseIdentificationData */ public function getData(): ?ProductsResponseIdentificationData { @@ -219,6 +223,8 @@ public function setData(?ProductsResponseIdentificationData $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ public function getError(): ?IdentificationError { diff --git a/src/Model/ProductsResponseIdentificationData.php b/src/Model/ProductsResponseIdentificationData.php index c2ae2e4f..b527165e 100644 --- a/src/Model/ProductsResponseIdentificationData.php +++ b/src/Model/ProductsResponseIdentificationData.php @@ -42,6 +42,7 @@ class ProductsResponseIdentificationData implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ProductsResponseIdentificationData'; @@ -190,6 +191,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -402,6 +404,8 @@ public function setIp(string $ip): self /** * Gets ip_location. + * + * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ public function getIpLocation(): ?DeprecatedIPLocation { @@ -514,6 +518,8 @@ public function setTag(array $tag): self /** * Gets linked_id. + * + * @return ?string */ public function getLinkedId(): ?string { @@ -536,6 +542,8 @@ public function setLinkedId(?string $linked_id): self /** * Gets confidence. + * + * @return ?\Fingerprint\ServerAPI\Model\Confidence */ public function getConfidence(): ?Confidence { diff --git a/src/Model/ProxyResult.php b/src/Model/ProxyResult.php index 0ba7fc50..17d7e2c8 100644 --- a/src/Model/ProxyResult.php +++ b/src/Model/ProxyResult.php @@ -42,6 +42,7 @@ class ProxyResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ProxyResult'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/RawDeviceAttributesResult.php b/src/Model/RawDeviceAttributesResult.php index 1e560cb3..2f13768d 100644 --- a/src/Model/RawDeviceAttributesResult.php +++ b/src/Model/RawDeviceAttributesResult.php @@ -44,6 +44,7 @@ class RawDeviceAttributesResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'RawDeviceAttributesResult'; @@ -105,6 +106,7 @@ public function __construct(?array $data = null) {} /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/RemoteControlResult.php b/src/Model/RemoteControlResult.php index 125baf85..69020e7e 100644 --- a/src/Model/RemoteControlResult.php +++ b/src/Model/RemoteControlResult.php @@ -42,6 +42,7 @@ class RemoteControlResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'RemoteControlResult'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/Response.php b/src/Model/Response.php index 93de00cc..7cc4f418 100644 --- a/src/Model/Response.php +++ b/src/Model/Response.php @@ -44,6 +44,7 @@ class Response implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'Response'; @@ -126,6 +127,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -266,6 +268,8 @@ public function setVisits(array $visits): self /** * Gets last_timestamp. + * + * @return ?int */ public function getLastTimestamp(): ?int { @@ -288,6 +292,8 @@ public function setLastTimestamp(?int $last_timestamp): self /** * Gets pagination_key. + * + * @return ?string */ public function getPaginationKey(): ?string { diff --git a/src/Model/ResponseVisits.php b/src/Model/ResponseVisits.php index 3621a1a5..10504a59 100644 --- a/src/Model/ResponseVisits.php +++ b/src/Model/ResponseVisits.php @@ -42,6 +42,7 @@ class ResponseVisits implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'ResponseVisits'; @@ -184,6 +185,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -393,6 +395,8 @@ public function setIp(string $ip): self /** * Gets ip_location. + * + * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ public function getIpLocation(): ?DeprecatedIPLocation { @@ -505,6 +509,8 @@ public function setTag(array $tag): self /** * Gets linked_id. + * + * @return ?string */ public function getLinkedId(): ?string { @@ -527,6 +533,8 @@ public function setLinkedId(?string $linked_id): self /** * Gets confidence. + * + * @return ?\Fingerprint\ServerAPI\Model\Confidence */ public function getConfidence(): ?Confidence { diff --git a/src/Model/RootAppsResult.php b/src/Model/RootAppsResult.php index 6c1c82cf..cc4138eb 100644 --- a/src/Model/RootAppsResult.php +++ b/src/Model/RootAppsResult.php @@ -42,6 +42,7 @@ class RootAppsResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'RootAppsResult'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/SeenAt.php b/src/Model/SeenAt.php index 29de802d..26e11533 100644 --- a/src/Model/SeenAt.php +++ b/src/Model/SeenAt.php @@ -42,6 +42,7 @@ class SeenAt implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SeenAt'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/SignalResponseClonedApp.php b/src/Model/SignalResponseClonedApp.php index 588a2cf2..c32a395c 100644 --- a/src/Model/SignalResponseClonedApp.php +++ b/src/Model/SignalResponseClonedApp.php @@ -42,6 +42,7 @@ class SignalResponseClonedApp implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseClonedApp'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\ClonedAppResult */ public function getData(): ?ClonedAppResult { @@ -219,6 +223,8 @@ public function setData(?ClonedAppResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseDeveloperTools.php b/src/Model/SignalResponseDeveloperTools.php index e65db632..14b191c6 100644 --- a/src/Model/SignalResponseDeveloperTools.php +++ b/src/Model/SignalResponseDeveloperTools.php @@ -42,6 +42,7 @@ class SignalResponseDeveloperTools implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseDeveloperTools'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\DeveloperToolsResult */ public function getData(): ?DeveloperToolsResult { @@ -219,6 +223,8 @@ public function setData(?DeveloperToolsResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseEmulator.php b/src/Model/SignalResponseEmulator.php index 61b0ee07..cca465a7 100644 --- a/src/Model/SignalResponseEmulator.php +++ b/src/Model/SignalResponseEmulator.php @@ -42,6 +42,7 @@ class SignalResponseEmulator implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseEmulator'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\EmulatorResult */ public function getData(): ?EmulatorResult { @@ -219,6 +223,8 @@ public function setData(?EmulatorResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseFactoryReset.php b/src/Model/SignalResponseFactoryReset.php index d61b0132..ad4848f0 100644 --- a/src/Model/SignalResponseFactoryReset.php +++ b/src/Model/SignalResponseFactoryReset.php @@ -42,6 +42,7 @@ class SignalResponseFactoryReset implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseFactoryReset'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\FactoryResetResult */ public function getData(): ?FactoryResetResult { @@ -219,6 +223,8 @@ public function setData(?FactoryResetResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseFrida.php b/src/Model/SignalResponseFrida.php index 7db7a1f4..fc915ca5 100644 --- a/src/Model/SignalResponseFrida.php +++ b/src/Model/SignalResponseFrida.php @@ -42,6 +42,7 @@ class SignalResponseFrida implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseFrida'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\FridaResult */ public function getData(): ?FridaResult { @@ -219,6 +223,8 @@ public function setData(?FridaResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseHighActivity.php b/src/Model/SignalResponseHighActivity.php index 25998369..919a4827 100644 --- a/src/Model/SignalResponseHighActivity.php +++ b/src/Model/SignalResponseHighActivity.php @@ -42,6 +42,7 @@ class SignalResponseHighActivity implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseHighActivity'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\HighActivityResult */ public function getData(): ?HighActivityResult { @@ -219,6 +223,8 @@ public function setData(?HighActivityResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseIncognito.php b/src/Model/SignalResponseIncognito.php index c7fff6eb..1fb3e089 100644 --- a/src/Model/SignalResponseIncognito.php +++ b/src/Model/SignalResponseIncognito.php @@ -42,6 +42,7 @@ class SignalResponseIncognito implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseIncognito'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\IncognitoResult */ public function getData(): ?IncognitoResult { @@ -219,6 +223,8 @@ public function setData(?IncognitoResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ public function getError(): ?IdentificationError { diff --git a/src/Model/SignalResponseIpBlocklist.php b/src/Model/SignalResponseIpBlocklist.php index c7936240..ccff61c3 100644 --- a/src/Model/SignalResponseIpBlocklist.php +++ b/src/Model/SignalResponseIpBlocklist.php @@ -42,6 +42,7 @@ class SignalResponseIpBlocklist implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseIpBlocklist'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\IpBlockListResult */ public function getData(): ?IpBlockListResult { @@ -219,6 +223,8 @@ public function setData(?IpBlockListResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseIpInfo.php b/src/Model/SignalResponseIpInfo.php index 4314cc08..8dbcc562 100644 --- a/src/Model/SignalResponseIpInfo.php +++ b/src/Model/SignalResponseIpInfo.php @@ -42,6 +42,7 @@ class SignalResponseIpInfo implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseIpInfo'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\IpInfoResult */ public function getData(): ?IpInfoResult { @@ -219,6 +223,8 @@ public function setData(?IpInfoResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseJailbroken.php b/src/Model/SignalResponseJailbroken.php index 3e61ce07..2d628b15 100644 --- a/src/Model/SignalResponseJailbroken.php +++ b/src/Model/SignalResponseJailbroken.php @@ -42,6 +42,7 @@ class SignalResponseJailbroken implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseJailbroken'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\JailbrokenResult */ public function getData(): ?JailbrokenResult { @@ -219,6 +223,8 @@ public function setData(?JailbrokenResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseLocationSpoofing.php b/src/Model/SignalResponseLocationSpoofing.php index c56ae7ac..344e2d61 100644 --- a/src/Model/SignalResponseLocationSpoofing.php +++ b/src/Model/SignalResponseLocationSpoofing.php @@ -42,6 +42,7 @@ class SignalResponseLocationSpoofing implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseLocationSpoofing'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\LocationSpoofingResult */ public function getData(): ?LocationSpoofingResult { @@ -219,6 +223,8 @@ public function setData(?LocationSpoofingResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponsePrivacySettings.php b/src/Model/SignalResponsePrivacySettings.php index 24491013..3fb7744e 100644 --- a/src/Model/SignalResponsePrivacySettings.php +++ b/src/Model/SignalResponsePrivacySettings.php @@ -42,6 +42,7 @@ class SignalResponsePrivacySettings implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponsePrivacySettings'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\PrivacySettingsResult */ public function getData(): ?PrivacySettingsResult { @@ -219,6 +223,8 @@ public function setData(?PrivacySettingsResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseProxy.php b/src/Model/SignalResponseProxy.php index 9e6b6322..e4fc356a 100644 --- a/src/Model/SignalResponseProxy.php +++ b/src/Model/SignalResponseProxy.php @@ -42,6 +42,7 @@ class SignalResponseProxy implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseProxy'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\ProxyResult */ public function getData(): ?ProxyResult { @@ -219,6 +223,8 @@ public function setData(?ProxyResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseRawDeviceAttributes.php b/src/Model/SignalResponseRawDeviceAttributes.php index fa20abb4..7c1cef09 100644 --- a/src/Model/SignalResponseRawDeviceAttributes.php +++ b/src/Model/SignalResponseRawDeviceAttributes.php @@ -42,6 +42,7 @@ class SignalResponseRawDeviceAttributes implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseRawDeviceAttributes'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult */ public function getData(): array { @@ -219,6 +223,8 @@ public function setData(?array $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ public function getError(): ?IdentificationError { diff --git a/src/Model/SignalResponseRemoteControl.php b/src/Model/SignalResponseRemoteControl.php index 8fc480f4..f3298e10 100644 --- a/src/Model/SignalResponseRemoteControl.php +++ b/src/Model/SignalResponseRemoteControl.php @@ -42,6 +42,7 @@ class SignalResponseRemoteControl implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseRemoteControl'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\RemoteControlResult */ public function getData(): ?RemoteControlResult { @@ -219,6 +223,8 @@ public function setData(?RemoteControlResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseRootApps.php b/src/Model/SignalResponseRootApps.php index 9796070e..3e8dc013 100644 --- a/src/Model/SignalResponseRootApps.php +++ b/src/Model/SignalResponseRootApps.php @@ -42,6 +42,7 @@ class SignalResponseRootApps implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseRootApps'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\RootAppsResult */ public function getData(): ?RootAppsResult { @@ -219,6 +223,8 @@ public function setData(?RootAppsResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseSuspectScore.php b/src/Model/SignalResponseSuspectScore.php index 3c0e43d4..21d0ac61 100644 --- a/src/Model/SignalResponseSuspectScore.php +++ b/src/Model/SignalResponseSuspectScore.php @@ -42,6 +42,7 @@ class SignalResponseSuspectScore implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseSuspectScore'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\SuspectScoreResult */ public function getData(): ?SuspectScoreResult { @@ -219,6 +223,8 @@ public function setData(?SuspectScoreResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseTampering.php b/src/Model/SignalResponseTampering.php index e5802690..40c6e9ea 100644 --- a/src/Model/SignalResponseTampering.php +++ b/src/Model/SignalResponseTampering.php @@ -42,6 +42,7 @@ class SignalResponseTampering implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseTampering'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\TamperingResult */ public function getData(): ?TamperingResult { @@ -219,6 +223,8 @@ public function setData(?TamperingResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ public function getError(): ?IdentificationError { diff --git a/src/Model/SignalResponseTor.php b/src/Model/SignalResponseTor.php index e1d0a4d0..07444f24 100644 --- a/src/Model/SignalResponseTor.php +++ b/src/Model/SignalResponseTor.php @@ -42,6 +42,7 @@ class SignalResponseTor implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseTor'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\TorResult */ public function getData(): ?TorResult { @@ -219,6 +223,8 @@ public function setData(?TorResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseVelocity.php b/src/Model/SignalResponseVelocity.php index 0c717ca2..ca56dc84 100644 --- a/src/Model/SignalResponseVelocity.php +++ b/src/Model/SignalResponseVelocity.php @@ -42,6 +42,7 @@ class SignalResponseVelocity implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseVelocity'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\VelocityResult */ public function getData(): ?VelocityResult { @@ -219,6 +223,8 @@ public function setData(?VelocityResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseVirtualMachine.php b/src/Model/SignalResponseVirtualMachine.php index 50f1d4fe..3fa6d92a 100644 --- a/src/Model/SignalResponseVirtualMachine.php +++ b/src/Model/SignalResponseVirtualMachine.php @@ -42,6 +42,7 @@ class SignalResponseVirtualMachine implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseVirtualMachine'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\VirtualMachineResult */ public function getData(): ?VirtualMachineResult { @@ -219,6 +223,8 @@ public function setData(?VirtualMachineResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseVpn.php b/src/Model/SignalResponseVpn.php index 0f1f63c7..3e60dfdf 100644 --- a/src/Model/SignalResponseVpn.php +++ b/src/Model/SignalResponseVpn.php @@ -42,6 +42,7 @@ class SignalResponseVpn implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SignalResponseVpn'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets data. + * + * @return ?\Fingerprint\ServerAPI\Model\VpnResult */ public function getData(): ?VpnResult { @@ -219,6 +223,8 @@ public function setData(?VpnResult $data): self /** * Gets error. + * + * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/Subdivision.php b/src/Model/Subdivision.php index 32997076..a7ac9adb 100644 --- a/src/Model/Subdivision.php +++ b/src/Model/Subdivision.php @@ -42,6 +42,7 @@ class Subdivision implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'Subdivision'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -197,6 +199,8 @@ public function valid(): bool /** * Gets iso_code. + * + * @return ?string */ public function getIsoCode(): ?string { @@ -219,6 +223,8 @@ public function setIsoCode(?string $iso_code): self /** * Gets name. + * + * @return ?string */ public function getName(): ?string { diff --git a/src/Model/SuspectScoreResult.php b/src/Model/SuspectScoreResult.php index 3225bda1..5b0e0653 100644 --- a/src/Model/SuspectScoreResult.php +++ b/src/Model/SuspectScoreResult.php @@ -42,6 +42,7 @@ class SuspectScoreResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'SuspectScoreResult'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/TamperingResult.php b/src/Model/TamperingResult.php index e642bcd4..2653a12f 100644 --- a/src/Model/TamperingResult.php +++ b/src/Model/TamperingResult.php @@ -42,6 +42,7 @@ class TamperingResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'TamperingResult'; @@ -112,6 +113,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/TooManyRequestsResponse.php b/src/Model/TooManyRequestsResponse.php index 6034721b..e3bfd5a5 100644 --- a/src/Model/TooManyRequestsResponse.php +++ b/src/Model/TooManyRequestsResponse.php @@ -42,6 +42,7 @@ class TooManyRequestsResponse implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'TooManyRequestsResponse'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/TorResult.php b/src/Model/TorResult.php index c09aeaaf..2d803ab0 100644 --- a/src/Model/TorResult.php +++ b/src/Model/TorResult.php @@ -42,6 +42,7 @@ class TorResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'TorResult'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/VelocityIntervalResult.php b/src/Model/VelocityIntervalResult.php index 2f60b5d5..46b32c29 100644 --- a/src/Model/VelocityIntervalResult.php +++ b/src/Model/VelocityIntervalResult.php @@ -44,6 +44,7 @@ class VelocityIntervalResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'VelocityIntervalResult'; @@ -120,6 +121,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -258,6 +260,8 @@ public function set1h(int $_1h): self /** * Gets _24h. + * + * @return ?int */ public function get24h(): ?int { diff --git a/src/Model/VelocityIntervals.php b/src/Model/VelocityIntervals.php index f1cf6697..591577fa 100644 --- a/src/Model/VelocityIntervals.php +++ b/src/Model/VelocityIntervals.php @@ -42,6 +42,7 @@ class VelocityIntervals implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'VelocityIntervals'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -191,6 +193,8 @@ public function valid(): bool /** * Gets intervals. + * + * @return ?\Fingerprint\ServerAPI\Model\VelocityIntervalResult */ public function getIntervals(): ?VelocityIntervalResult { diff --git a/src/Model/VelocityResult.php b/src/Model/VelocityResult.php index 5e2a665e..c49a4f3b 100644 --- a/src/Model/VelocityResult.php +++ b/src/Model/VelocityResult.php @@ -44,6 +44,7 @@ class VelocityResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'VelocityResult'; @@ -126,6 +127,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/VirtualMachineResult.php b/src/Model/VirtualMachineResult.php index 644f9144..3bf44306 100644 --- a/src/Model/VirtualMachineResult.php +++ b/src/Model/VirtualMachineResult.php @@ -42,6 +42,7 @@ class VirtualMachineResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'VirtualMachineResult'; @@ -106,6 +107,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/Visit.php b/src/Model/Visit.php index 4798b030..1cf5e874 100644 --- a/src/Model/Visit.php +++ b/src/Model/Visit.php @@ -42,6 +42,7 @@ class Visit implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'Visit'; @@ -184,6 +185,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -390,6 +392,8 @@ public function setIp(string $ip): self /** * Gets ip_location. + * + * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ public function getIpLocation(): ?DeprecatedIPLocation { @@ -502,6 +506,8 @@ public function setTag(?array $tag): self /** * Gets linked_id. + * + * @return ?string */ public function getLinkedId(): ?string { @@ -524,6 +530,8 @@ public function setLinkedId(?string $linked_id): self /** * Gets confidence. + * + * @return ?\Fingerprint\ServerAPI\Model\Confidence */ public function getConfidence(): ?Confidence { diff --git a/src/Model/VpnResult.php b/src/Model/VpnResult.php index 0a593da4..d6f37950 100644 --- a/src/Model/VpnResult.php +++ b/src/Model/VpnResult.php @@ -42,6 +42,7 @@ class VpnResult implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'VpnResult'; @@ -124,6 +125,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -265,6 +267,8 @@ public function setOriginTimezone(string $origin_timezone): self /** * Gets origin_country. + * + * @return ?string */ public function getOriginCountry(): ?string { diff --git a/src/Model/VpnResultMethods.php b/src/Model/VpnResultMethods.php index 36f39b53..061daf32 100644 --- a/src/Model/VpnResultMethods.php +++ b/src/Model/VpnResultMethods.php @@ -42,6 +42,7 @@ class VpnResultMethods implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'VpnResult_methods'; @@ -124,6 +125,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { diff --git a/src/Model/WebhookVisit.php b/src/Model/WebhookVisit.php index f7872300..ab9c9791 100644 --- a/src/Model/WebhookVisit.php +++ b/src/Model/WebhookVisit.php @@ -42,6 +42,7 @@ class WebhookVisit implements ModelInterface, \ArrayAccess { /** * The original name of the model. + * */ protected static string $swaggerModelName = 'WebhookVisit'; @@ -334,6 +335,7 @@ public function __construct(?array $data = null) /** * Gets the string presentation of the object. + * */ public function __toString(): string { @@ -477,6 +479,8 @@ public function setVisitorId(string $visitor_id): self /** * Gets client_referrer. + * + * @return ?string */ public function getClientReferrer(): ?string { @@ -499,6 +503,8 @@ public function setClientReferrer(?string $client_referrer): self /** * Gets user_agent. + * + * @return ?string */ public function getUserAgent(): ?string { @@ -521,6 +527,8 @@ public function setUserAgent(?string $user_agent): self /** * Gets bot. + * + * @return ?\Fingerprint\ServerAPI\Model\BotdDetectionResult */ public function getBot(): ?BotdDetectionResult { @@ -543,6 +551,8 @@ public function setBot(?BotdDetectionResult $bot): self /** * Gets ip_info. + * + * @return ?\Fingerprint\ServerAPI\Model\IpInfoResult */ public function getIpInfo(): ?IpInfoResult { @@ -587,6 +597,8 @@ public function setIncognito(bool $incognito): self /** * Gets root_apps. + * + * @return ?\Fingerprint\ServerAPI\Model\RootAppsResult */ public function getRootApps(): ?RootAppsResult { @@ -609,6 +621,8 @@ public function setRootApps(?RootAppsResult $root_apps): self /** * Gets emulator. + * + * @return ?\Fingerprint\ServerAPI\Model\EmulatorResult */ public function getEmulator(): ?EmulatorResult { @@ -631,6 +645,8 @@ public function setEmulator(?EmulatorResult $emulator): self /** * Gets cloned_app. + * + * @return ?\Fingerprint\ServerAPI\Model\ClonedAppResult */ public function getClonedApp(): ?ClonedAppResult { @@ -653,6 +669,8 @@ public function setClonedApp(?ClonedAppResult $cloned_app): self /** * Gets factory_reset. + * + * @return ?\Fingerprint\ServerAPI\Model\FactoryResetResult */ public function getFactoryReset(): ?FactoryResetResult { @@ -675,6 +693,8 @@ public function setFactoryReset(?FactoryResetResult $factory_reset): self /** * Gets jailbroken. + * + * @return ?\Fingerprint\ServerAPI\Model\JailbrokenResult */ public function getJailbroken(): ?JailbrokenResult { @@ -697,6 +717,8 @@ public function setJailbroken(?JailbrokenResult $jailbroken): self /** * Gets frida. + * + * @return ?\Fingerprint\ServerAPI\Model\FridaResult */ public function getFrida(): ?FridaResult { @@ -719,6 +741,8 @@ public function setFrida(?FridaResult $frida): self /** * Gets ip_blocklist. + * + * @return ?\Fingerprint\ServerAPI\Model\IpBlockListResult */ public function getIpBlocklist(): ?IpBlockListResult { @@ -741,6 +765,8 @@ public function setIpBlocklist(?IpBlockListResult $ip_blocklist): self /** * Gets tor. + * + * @return ?\Fingerprint\ServerAPI\Model\TorResult */ public function getTor(): ?TorResult { @@ -763,6 +789,8 @@ public function setTor(?TorResult $tor): self /** * Gets privacy_settings. + * + * @return ?\Fingerprint\ServerAPI\Model\PrivacySettingsResult */ public function getPrivacySettings(): ?PrivacySettingsResult { @@ -785,6 +813,8 @@ public function setPrivacySettings(?PrivacySettingsResult $privacy_settings): se /** * Gets virtual_machine. + * + * @return ?\Fingerprint\ServerAPI\Model\VirtualMachineResult */ public function getVirtualMachine(): ?VirtualMachineResult { @@ -807,6 +837,8 @@ public function setVirtualMachine(?VirtualMachineResult $virtual_machine): self /** * Gets vpn. + * + * @return ?\Fingerprint\ServerAPI\Model\VpnResult */ public function getVpn(): ?VpnResult { @@ -829,6 +861,8 @@ public function setVpn(?VpnResult $vpn): self /** * Gets proxy. + * + * @return ?\Fingerprint\ServerAPI\Model\ProxyResult */ public function getProxy(): ?ProxyResult { @@ -851,6 +885,8 @@ public function setProxy(?ProxyResult $proxy): self /** * Gets tampering. + * + * @return ?\Fingerprint\ServerAPI\Model\TamperingResult */ public function getTampering(): ?TamperingResult { @@ -873,6 +909,8 @@ public function setTampering(?TamperingResult $tampering): self /** * Gets raw_device_attributes. + * + * @return ?\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult */ public function getRawDeviceAttributes(): ?RawDeviceAttributesResult { @@ -895,6 +933,8 @@ public function setRawDeviceAttributes(?RawDeviceAttributesResult $raw_device_at /** * Gets high_activity. + * + * @return ?\Fingerprint\ServerAPI\Model\HighActivityResult */ public function getHighActivity(): ?HighActivityResult { @@ -917,6 +957,8 @@ public function setHighActivity(?HighActivityResult $high_activity): self /** * Gets location_spoofing. + * + * @return ?\Fingerprint\ServerAPI\Model\LocationSpoofingResult */ public function getLocationSpoofing(): ?LocationSpoofingResult { @@ -939,6 +981,8 @@ public function setLocationSpoofing(?LocationSpoofingResult $location_spoofing): /** * Gets suspect_score. + * + * @return ?\Fingerprint\ServerAPI\Model\SuspectScoreResult */ public function getSuspectScore(): ?SuspectScoreResult { @@ -961,6 +1005,8 @@ public function setSuspectScore(?SuspectScoreResult $suspect_score): self /** * Gets remote_control. + * + * @return ?\Fingerprint\ServerAPI\Model\RemoteControlResult */ public function getRemoteControl(): ?RemoteControlResult { @@ -983,6 +1029,8 @@ public function setRemoteControl(?RemoteControlResult $remote_control): self /** * Gets velocity. + * + * @return ?\Fingerprint\ServerAPI\Model\VelocityResult */ public function getVelocity(): ?VelocityResult { @@ -1005,6 +1053,8 @@ public function setVelocity(?VelocityResult $velocity): self /** * Gets developer_tools. + * + * @return ?\Fingerprint\ServerAPI\Model\DeveloperToolsResult */ public function getDeveloperTools(): ?DeveloperToolsResult { @@ -1093,6 +1143,8 @@ public function setIp(string $ip): self /** * Gets ip_location. + * + * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ public function getIpLocation(): ?DeprecatedIPLocation { @@ -1205,6 +1257,8 @@ public function setTag(?array $tag): self /** * Gets linked_id. + * + * @return ?string */ public function getLinkedId(): ?string { @@ -1227,6 +1281,8 @@ public function setLinkedId(?string $linked_id): self /** * Gets confidence. + * + * @return ?\Fingerprint\ServerAPI\Model\Confidence */ public function getConfidence(): ?Confidence { diff --git a/src/ObjectSerializer.php b/src/ObjectSerializer.php index 6eaa1a32..d716f907 100644 --- a/src/ObjectSerializer.php +++ b/src/ObjectSerializer.php @@ -46,7 +46,7 @@ class ObjectSerializer * Serialize data. * * @param mixed $data the data to serialize - * @param null|string $format the format of the Swagger type of the data + * @param string|null $format the format of the Swagger type of the data * * @return array|object|string serialized form of $data */ @@ -117,7 +117,7 @@ public static function toPathValue(string $value): string * later. * * @param \DateTime|string|string[] $object an object to be serialized to a string - * @param null|string $format the format of the parameter + * @param string|null $format the format of the parameter * * @return string the serialized object */ @@ -137,7 +137,7 @@ public static function toQueryValue(array|\DateTime|string $object, ?string $for * If it's a date, format it in Y-m-d. * * @param \DateTime|string $value the value of the parameter - * @param null|string $format the format of the parameter + * @param string|null $format the format of the parameter * * @return string the header string */ From 6e099a91f72c56bae89233c64c4bdfcfafd2f386 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 4 Sep 2024 12:22:53 +0000 Subject: [PATCH 06/11] chore(release): 5.0.0-develop.3 [skip ci] ## [5.0.0-develop.3](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/compare/v5.0.0-develop.2...v5.0.0-develop.3) (2024-09-04) ### Bug Fixes * php-cs-fixer keep nullable return annotations ([99011b7](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/99011b736a2782fc50f488d5e83d489540a860fb)) --- CHANGELOG.md | 7 +++ README.md | 2 +- composer.json | 2 +- config.json | 2 +- src/Api/FingerprintApi.php | 2 +- src/Configuration.php | 4 +- src/Model/ASN.php | 2 - src/Model/BotdDetectionResult.php | 2 - src/Model/BotdResult.php | 2 - src/Model/BrowserDetails.php | 2 - src/Model/Confidence.php | 2 - src/Model/DataCenter.php | 2 - src/Model/DeprecatedIPLocation.php | 12 ----- src/Model/DeprecatedIPLocationCity.php | 2 - src/Model/ErrorCommon403Response.php | 2 - src/Model/ErrorCommon429Response.php | 2 - src/Model/ErrorEvent404Response.php | 2 - src/Model/ErrorUpdateEvent400Response.php | 2 - src/Model/ErrorUpdateEvent409Response.php | 2 - src/Model/ErrorVisitor400Response.php | 2 - src/Model/ErrorVisitor404Response.php | 2 - src/Model/EventResponse.php | 2 - src/Model/EventUpdateRequest.php | 6 --- src/Model/HighActivityResult.php | 2 - src/Model/IPLocation.php | 12 ----- src/Model/IPLocationCity.php | 2 - src/Model/IpInfoResult.php | 4 -- src/Model/IpInfoResultV4.php | 4 -- src/Model/IpInfoResultV6.php | 4 -- src/Model/ProductsResponse.php | 48 ----------------- src/Model/ProductsResponseBotd.php | 4 -- src/Model/ProductsResponseIdentification.php | 4 -- .../ProductsResponseIdentificationData.php | 6 --- src/Model/Response.php | 4 -- src/Model/ResponseVisits.php | 6 --- src/Model/SignalResponseClonedApp.php | 4 -- src/Model/SignalResponseDeveloperTools.php | 4 -- src/Model/SignalResponseEmulator.php | 4 -- src/Model/SignalResponseFactoryReset.php | 4 -- src/Model/SignalResponseFrida.php | 4 -- src/Model/SignalResponseHighActivity.php | 4 -- src/Model/SignalResponseIncognito.php | 4 -- src/Model/SignalResponseIpBlocklist.php | 4 -- src/Model/SignalResponseIpInfo.php | 4 -- src/Model/SignalResponseJailbroken.php | 4 -- src/Model/SignalResponseLocationSpoofing.php | 4 -- src/Model/SignalResponsePrivacySettings.php | 4 -- src/Model/SignalResponseProxy.php | 4 -- .../SignalResponseRawDeviceAttributes.php | 4 -- src/Model/SignalResponseRemoteControl.php | 4 -- src/Model/SignalResponseRootApps.php | 4 -- src/Model/SignalResponseSuspectScore.php | 4 -- src/Model/SignalResponseTampering.php | 4 -- src/Model/SignalResponseTor.php | 4 -- src/Model/SignalResponseVelocity.php | 4 -- src/Model/SignalResponseVirtualMachine.php | 4 -- src/Model/SignalResponseVpn.php | 4 -- src/Model/Subdivision.php | 4 -- src/Model/VelocityIntervalResult.php | 2 - src/Model/VelocityIntervals.php | 2 - src/Model/Visit.php | 6 --- src/Model/VpnResult.php | 2 - src/Model/WebhookVisit.php | 54 ------------------- 63 files changed, 13 insertions(+), 312 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea49b228..6c2ecb72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [5.0.0-develop.3](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/compare/v5.0.0-develop.2...v5.0.0-develop.3) (2024-09-04) + + +### Bug Fixes + +* php-cs-fixer keep nullable return annotations ([99011b7](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/99011b736a2782fc50f488d5e83d489540a860fb)) + ## [5.0.0-develop.2](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/compare/v5.0.0-develop.1...v5.0.0-develop.2) (2024-09-04) diff --git a/README.md b/README.md index 71c74e70..dc7fdf0e 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: 3 - - Package version: dev-5.0.0-2 + - Package version: dev-5.0.0-3 - Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen ## Requirements diff --git a/composer.json b/composer.json index 7194e053..4beeca0d 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "fingerprint/fingerprint-pro-server-api-sdk", - "version": "dev-5.0.0-2", + "version": "dev-5.0.0-3", "description": "Fingerprint Pro Server API provides a way for validating visitors’ data issued by Fingerprint Pro.", "keywords": [ "swagger", diff --git a/config.json b/config.json index 67c2989d..e6e8cbf4 100644 --- a/config.json +++ b/config.json @@ -8,5 +8,5 @@ "gitUserId": "fingerprintjs", "gitRepoId": "fingerprint-pro-server-api-php-sdk", "description": "Fingerprint Pro Server API provides a way for validating visitors’ data issued by Fingerprint Pro.", - "artifactVersion": "dev-5.0.0-2" + "artifactVersion": "dev-5.0.0-3" } diff --git a/src/Api/FingerprintApi.php b/src/Api/FingerprintApi.php index 68673377..1e254066 100644 --- a/src/Api/FingerprintApi.php +++ b/src/Api/FingerprintApi.php @@ -56,7 +56,7 @@ class FingerprintApi protected ClientInterface $client; protected Configuration $config; - protected string $integration_info = 'fingerprint-pro-server-php-sdk/dev-5.0.0-2'; + protected string $integration_info = 'fingerprint-pro-server-php-sdk/dev-5.0.0-3'; public function __construct( ?ClientInterface $client = null, diff --git a/src/Configuration.php b/src/Configuration.php index 62f7d065..1a2ca3df 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -81,7 +81,7 @@ class Configuration /** * User agent of the HTTP request, set to "PHP-Swagger" by default. */ - protected string $userAgent = 'Swagger-Codegen/dev-5.0.0-2/php'; + protected string $userAgent = 'Swagger-Codegen/dev-5.0.0-3/php'; /** * Debug switch (default set to false). @@ -422,7 +422,7 @@ public static function toDebugReport(): string $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-2'.PHP_EOL; + $report .= ' SDK Package Version: dev-5.0.0-3'.PHP_EOL; $report .= ' Temp Folder Path: '.self::getDefaultConfiguration()->getTempFolderPath().PHP_EOL; return $report; diff --git a/src/Model/ASN.php b/src/Model/ASN.php index 513d1637..1bc0bc51 100644 --- a/src/Model/ASN.php +++ b/src/Model/ASN.php @@ -258,8 +258,6 @@ public function setNetwork(string $network): self /** * Gets name. - * - * @return ?string */ public function getName(): ?string { diff --git a/src/Model/BotdDetectionResult.php b/src/Model/BotdDetectionResult.php index 2bb4185d..2e30f92d 100644 --- a/src/Model/BotdDetectionResult.php +++ b/src/Model/BotdDetectionResult.php @@ -262,8 +262,6 @@ public function setResult(string $result): self /** * Gets type. - * - * @return ?string */ public function getType(): ?string { diff --git a/src/Model/BotdResult.php b/src/Model/BotdResult.php index 5759f744..1a1da623 100644 --- a/src/Model/BotdResult.php +++ b/src/Model/BotdResult.php @@ -362,8 +362,6 @@ public function setRequestId(string $request_id): self /** * Gets linked_id. - * - * @return ?string */ public function getLinkedId(): ?string { diff --git a/src/Model/BrowserDetails.php b/src/Model/BrowserDetails.php index dfaf11b5..d5f10a56 100644 --- a/src/Model/BrowserDetails.php +++ b/src/Model/BrowserDetails.php @@ -413,8 +413,6 @@ public function setUserAgent(string $user_agent): self /** * Gets bot_probability. - * - * @return ?int */ public function getBotProbability(): ?int { diff --git a/src/Model/Confidence.php b/src/Model/Confidence.php index d0e6b0d5..b2686b0c 100644 --- a/src/Model/Confidence.php +++ b/src/Model/Confidence.php @@ -227,8 +227,6 @@ public function setScore(float $score): self /** * Gets revision. - * - * @return ?string */ public function getRevision(): ?string { diff --git a/src/Model/DataCenter.php b/src/Model/DataCenter.php index be8676e8..4c979ad9 100644 --- a/src/Model/DataCenter.php +++ b/src/Model/DataCenter.php @@ -227,8 +227,6 @@ public function setResult(bool $result): self /** * Gets name. - * - * @return ?string */ public function getName(): ?string { diff --git a/src/Model/DeprecatedIPLocation.php b/src/Model/DeprecatedIPLocation.php index 78bef7a4..3229d2b3 100644 --- a/src/Model/DeprecatedIPLocation.php +++ b/src/Model/DeprecatedIPLocation.php @@ -243,8 +243,6 @@ public function valid(): bool /** * Gets accuracy_radius. - * - * @return ?int */ public function getAccuracyRadius(): ?int { @@ -315,8 +313,6 @@ public function setLongitude(?float $longitude): self /** * Gets postal_code. - * - * @return ?string */ public function getPostalCode(): ?string { @@ -339,8 +335,6 @@ public function setPostalCode(?string $postal_code): self /** * Gets timezone. - * - * @return ?string */ public function getTimezone(): ?string { @@ -363,8 +357,6 @@ public function setTimezone(?string $timezone): self /** * Gets city. - * - * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocationCity */ public function getCity(): ?DeprecatedIPLocationCity { @@ -387,8 +379,6 @@ public function setCity(?DeprecatedIPLocationCity $city): self /** * Gets country. - * - * @return ?\Fingerprint\ServerAPI\Model\Location */ public function getCountry(): ?Location { @@ -411,8 +401,6 @@ public function setCountry(?Location $country): self /** * Gets continent. - * - * @return ?\Fingerprint\ServerAPI\Model\Location */ public function getContinent(): ?Location { diff --git a/src/Model/DeprecatedIPLocationCity.php b/src/Model/DeprecatedIPLocationCity.php index 00eb95da..72bfcd22 100644 --- a/src/Model/DeprecatedIPLocationCity.php +++ b/src/Model/DeprecatedIPLocationCity.php @@ -193,8 +193,6 @@ public function valid(): bool /** * Gets name. - * - * @return ?string */ public function getName(): ?string { diff --git a/src/Model/ErrorCommon403Response.php b/src/Model/ErrorCommon403Response.php index 91a5334a..fdc00757 100644 --- a/src/Model/ErrorCommon403Response.php +++ b/src/Model/ErrorCommon403Response.php @@ -193,8 +193,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\Common403ErrorResponse */ public function getError(): ?Common403ErrorResponse { diff --git a/src/Model/ErrorCommon429Response.php b/src/Model/ErrorCommon429Response.php index 7a5100d9..0d8bcee4 100644 --- a/src/Model/ErrorCommon429Response.php +++ b/src/Model/ErrorCommon429Response.php @@ -193,8 +193,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ErrorCommon429ResponseError */ public function getError(): ?ErrorCommon429ResponseError { diff --git a/src/Model/ErrorEvent404Response.php b/src/Model/ErrorEvent404Response.php index 62b9aba2..03cc4f6f 100644 --- a/src/Model/ErrorEvent404Response.php +++ b/src/Model/ErrorEvent404Response.php @@ -193,8 +193,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ErrorEvent404ResponseError */ public function getError(): ?ErrorEvent404ResponseError { diff --git a/src/Model/ErrorUpdateEvent400Response.php b/src/Model/ErrorUpdateEvent400Response.php index 0f5f502a..ec572fed 100644 --- a/src/Model/ErrorUpdateEvent400Response.php +++ b/src/Model/ErrorUpdateEvent400Response.php @@ -193,8 +193,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ErrorUpdateEvent400ResponseError */ public function getError(): ?ErrorUpdateEvent400ResponseError { diff --git a/src/Model/ErrorUpdateEvent409Response.php b/src/Model/ErrorUpdateEvent409Response.php index f2b60816..988f3f87 100644 --- a/src/Model/ErrorUpdateEvent409Response.php +++ b/src/Model/ErrorUpdateEvent409Response.php @@ -193,8 +193,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ErrorUpdateEvent409ResponseError */ public function getError(): ?ErrorUpdateEvent409ResponseError { diff --git a/src/Model/ErrorVisitor400Response.php b/src/Model/ErrorVisitor400Response.php index 619453b2..a060ea8e 100644 --- a/src/Model/ErrorVisitor400Response.php +++ b/src/Model/ErrorVisitor400Response.php @@ -193,8 +193,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ErrorVisitor400ResponseError */ public function getError(): ?ErrorVisitor400ResponseError { diff --git a/src/Model/ErrorVisitor404Response.php b/src/Model/ErrorVisitor404Response.php index cb60f246..95b78522 100644 --- a/src/Model/ErrorVisitor404Response.php +++ b/src/Model/ErrorVisitor404Response.php @@ -193,8 +193,6 @@ public function valid(): bool /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ErrorVisitor404ResponseError */ public function getError(): ?ErrorVisitor404ResponseError { diff --git a/src/Model/EventResponse.php b/src/Model/EventResponse.php index 677ddc1e..96de7913 100644 --- a/src/Model/EventResponse.php +++ b/src/Model/EventResponse.php @@ -229,8 +229,6 @@ public function setProducts(ProductsResponse $products): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/EventUpdateRequest.php b/src/Model/EventUpdateRequest.php index 48a75da9..6ca304fa 100644 --- a/src/Model/EventUpdateRequest.php +++ b/src/Model/EventUpdateRequest.php @@ -205,8 +205,6 @@ public function valid(): bool /** * Gets linked_id. - * - * @return ?string */ public function getLinkedId(): ?string { @@ -229,8 +227,6 @@ public function setLinkedId(?string $linked_id): self /** * Gets tag. - * - * @return ?object */ public function getTag(): ?object { @@ -253,8 +249,6 @@ public function setTag(?object $tag): self /** * Gets suspect. - * - * @return ?bool */ public function getSuspect(): ?bool { diff --git a/src/Model/HighActivityResult.php b/src/Model/HighActivityResult.php index eb1b6655..1e6a1d8e 100644 --- a/src/Model/HighActivityResult.php +++ b/src/Model/HighActivityResult.php @@ -227,8 +227,6 @@ public function setResult(bool $result): self /** * Gets daily_requests. - * - * @return ?float */ public function getDailyRequests(): ?float { diff --git a/src/Model/IPLocation.php b/src/Model/IPLocation.php index 0d860886..d2eae611 100644 --- a/src/Model/IPLocation.php +++ b/src/Model/IPLocation.php @@ -241,8 +241,6 @@ public function valid(): bool /** * Gets accuracy_radius. - * - * @return ?int */ public function getAccuracyRadius(): ?int { @@ -313,8 +311,6 @@ public function setLongitude(?float $longitude): self /** * Gets postal_code. - * - * @return ?string */ public function getPostalCode(): ?string { @@ -337,8 +333,6 @@ public function setPostalCode(?string $postal_code): self /** * Gets timezone. - * - * @return ?string */ public function getTimezone(): ?string { @@ -361,8 +355,6 @@ public function setTimezone(?string $timezone): self /** * Gets city. - * - * @return ?\Fingerprint\ServerAPI\Model\IPLocationCity */ public function getCity(): ?IPLocationCity { @@ -385,8 +377,6 @@ public function setCity(?IPLocationCity $city): self /** * Gets country. - * - * @return ?\Fingerprint\ServerAPI\Model\Location */ public function getCountry(): ?Location { @@ -409,8 +399,6 @@ public function setCountry(?Location $country): self /** * Gets continent. - * - * @return ?\Fingerprint\ServerAPI\Model\Location */ public function getContinent(): ?Location { diff --git a/src/Model/IPLocationCity.php b/src/Model/IPLocationCity.php index 3daa33ad..531de8b4 100644 --- a/src/Model/IPLocationCity.php +++ b/src/Model/IPLocationCity.php @@ -193,8 +193,6 @@ public function valid(): bool /** * Gets name. - * - * @return ?string */ public function getName(): ?string { diff --git a/src/Model/IpInfoResult.php b/src/Model/IpInfoResult.php index 53c4609e..c8940ff3 100644 --- a/src/Model/IpInfoResult.php +++ b/src/Model/IpInfoResult.php @@ -201,8 +201,6 @@ public function valid(): bool /** * Gets v4. - * - * @return ?\Fingerprint\ServerAPI\Model\IpInfoResultV4 */ public function getV4(): ?IpInfoResultV4 { @@ -225,8 +223,6 @@ public function setV4(?IpInfoResultV4 $v4): self /** * Gets v6. - * - * @return ?\Fingerprint\ServerAPI\Model\IpInfoResultV6 */ public function getV6(): ?IpInfoResultV6 { diff --git a/src/Model/IpInfoResultV4.php b/src/Model/IpInfoResultV4.php index c23b605e..3989e4e6 100644 --- a/src/Model/IpInfoResultV4.php +++ b/src/Model/IpInfoResultV4.php @@ -264,8 +264,6 @@ public function setGeolocation(IPLocation $geolocation): self /** * Gets asn. - * - * @return ?\Fingerprint\ServerAPI\Model\ASN */ public function getAsn(): ?ASN { @@ -288,8 +286,6 @@ public function setAsn(?ASN $asn): self /** * Gets datacenter. - * - * @return ?\Fingerprint\ServerAPI\Model\DataCenter */ public function getDatacenter(): ?DataCenter { diff --git a/src/Model/IpInfoResultV6.php b/src/Model/IpInfoResultV6.php index 9ea20b53..9f4914d4 100644 --- a/src/Model/IpInfoResultV6.php +++ b/src/Model/IpInfoResultV6.php @@ -264,8 +264,6 @@ public function setGeolocation(IPLocation $geolocation): self /** * Gets asn. - * - * @return ?\Fingerprint\ServerAPI\Model\ASN */ public function getAsn(): ?ASN { @@ -288,8 +286,6 @@ public function setAsn(?ASN $asn): self /** * Gets datacenter. - * - * @return ?\Fingerprint\ServerAPI\Model\DataCenter */ public function getDatacenter(): ?DataCenter { diff --git a/src/Model/ProductsResponse.php b/src/Model/ProductsResponse.php index 3a7c6f37..27df5c6e 100644 --- a/src/Model/ProductsResponse.php +++ b/src/Model/ProductsResponse.php @@ -333,8 +333,6 @@ public function valid(): bool /** * Gets identification. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductsResponseIdentification */ public function getIdentification(): ?ProductsResponseIdentification { @@ -357,8 +355,6 @@ public function setIdentification(?ProductsResponseIdentification $identificatio /** * Gets botd. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductsResponseBotd */ public function getBotd(): ?ProductsResponseBotd { @@ -381,8 +377,6 @@ public function setBotd(?ProductsResponseBotd $botd): self /** * Gets ip_info. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseIpInfo */ public function getIpInfo(): ?SignalResponseIpInfo { @@ -405,8 +399,6 @@ public function setIpInfo(?SignalResponseIpInfo $ip_info): self /** * Gets incognito. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseIncognito */ public function getIncognito(): ?SignalResponseIncognito { @@ -429,8 +421,6 @@ public function setIncognito(?SignalResponseIncognito $incognito): self /** * Gets root_apps. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseRootApps */ public function getRootApps(): ?SignalResponseRootApps { @@ -453,8 +443,6 @@ public function setRootApps(?SignalResponseRootApps $root_apps): self /** * Gets emulator. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseEmulator */ public function getEmulator(): ?SignalResponseEmulator { @@ -477,8 +465,6 @@ public function setEmulator(?SignalResponseEmulator $emulator): self /** * Gets cloned_app. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseClonedApp */ public function getClonedApp(): ?SignalResponseClonedApp { @@ -501,8 +487,6 @@ public function setClonedApp(?SignalResponseClonedApp $cloned_app): self /** * Gets factory_reset. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseFactoryReset */ public function getFactoryReset(): ?SignalResponseFactoryReset { @@ -525,8 +509,6 @@ public function setFactoryReset(?SignalResponseFactoryReset $factory_reset): sel /** * Gets jailbroken. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseJailbroken */ public function getJailbroken(): ?SignalResponseJailbroken { @@ -549,8 +531,6 @@ public function setJailbroken(?SignalResponseJailbroken $jailbroken): self /** * Gets frida. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseFrida */ public function getFrida(): ?SignalResponseFrida { @@ -573,8 +553,6 @@ public function setFrida(?SignalResponseFrida $frida): self /** * Gets ip_blocklist. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseIpBlocklist */ public function getIpBlocklist(): ?SignalResponseIpBlocklist { @@ -597,8 +575,6 @@ public function setIpBlocklist(?SignalResponseIpBlocklist $ip_blocklist): self /** * Gets tor. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseTor */ public function getTor(): ?SignalResponseTor { @@ -621,8 +597,6 @@ public function setTor(?SignalResponseTor $tor): self /** * Gets privacy_settings. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponsePrivacySettings */ public function getPrivacySettings(): ?SignalResponsePrivacySettings { @@ -645,8 +619,6 @@ public function setPrivacySettings(?SignalResponsePrivacySettings $privacy_setti /** * Gets virtual_machine. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseVirtualMachine */ public function getVirtualMachine(): ?SignalResponseVirtualMachine { @@ -669,8 +641,6 @@ public function setVirtualMachine(?SignalResponseVirtualMachine $virtual_machine /** * Gets vpn. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseVpn */ public function getVpn(): ?SignalResponseVpn { @@ -693,8 +663,6 @@ public function setVpn(?SignalResponseVpn $vpn): self /** * Gets proxy. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseProxy */ public function getProxy(): ?SignalResponseProxy { @@ -717,8 +685,6 @@ public function setProxy(?SignalResponseProxy $proxy): self /** * Gets tampering. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseTampering */ public function getTampering(): ?SignalResponseTampering { @@ -741,8 +707,6 @@ public function setTampering(?SignalResponseTampering $tampering): self /** * Gets high_activity. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseHighActivity */ public function getHighActivity(): ?SignalResponseHighActivity { @@ -765,8 +729,6 @@ public function setHighActivity(?SignalResponseHighActivity $high_activity): sel /** * Gets location_spoofing. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseLocationSpoofing */ public function getLocationSpoofing(): ?SignalResponseLocationSpoofing { @@ -789,8 +751,6 @@ public function setLocationSpoofing(?SignalResponseLocationSpoofing $location_sp /** * Gets suspect_score. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseSuspectScore */ public function getSuspectScore(): ?SignalResponseSuspectScore { @@ -813,8 +773,6 @@ public function setSuspectScore(?SignalResponseSuspectScore $suspect_score): sel /** * Gets raw_device_attributes. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseRawDeviceAttributes */ public function getRawDeviceAttributes(): ?SignalResponseRawDeviceAttributes { @@ -837,8 +795,6 @@ public function setRawDeviceAttributes(?SignalResponseRawDeviceAttributes $raw_d /** * Gets remote_control. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseRemoteControl */ public function getRemoteControl(): ?SignalResponseRemoteControl { @@ -861,8 +817,6 @@ public function setRemoteControl(?SignalResponseRemoteControl $remote_control): /** * Gets velocity. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseVelocity */ public function getVelocity(): ?SignalResponseVelocity { @@ -885,8 +839,6 @@ public function setVelocity(?SignalResponseVelocity $velocity): self /** * Gets developer_tools. - * - * @return ?\Fingerprint\ServerAPI\Model\SignalResponseDeveloperTools */ public function getDeveloperTools(): ?SignalResponseDeveloperTools { diff --git a/src/Model/ProductsResponseBotd.php b/src/Model/ProductsResponseBotd.php index 9f1c8923..bf541d04 100644 --- a/src/Model/ProductsResponseBotd.php +++ b/src/Model/ProductsResponseBotd.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\BotdResult */ public function getData(): ?BotdResult { @@ -223,8 +221,6 @@ public function setData(?BotdResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/ProductsResponseIdentification.php b/src/Model/ProductsResponseIdentification.php index d69e0a42..c5ab4354 100644 --- a/src/Model/ProductsResponseIdentification.php +++ b/src/Model/ProductsResponseIdentification.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductsResponseIdentificationData */ public function getData(): ?ProductsResponseIdentificationData { @@ -223,8 +221,6 @@ public function setData(?ProductsResponseIdentificationData $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ public function getError(): ?IdentificationError { diff --git a/src/Model/ProductsResponseIdentificationData.php b/src/Model/ProductsResponseIdentificationData.php index b527165e..97c553d8 100644 --- a/src/Model/ProductsResponseIdentificationData.php +++ b/src/Model/ProductsResponseIdentificationData.php @@ -404,8 +404,6 @@ public function setIp(string $ip): self /** * Gets ip_location. - * - * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ public function getIpLocation(): ?DeprecatedIPLocation { @@ -518,8 +516,6 @@ public function setTag(array $tag): self /** * Gets linked_id. - * - * @return ?string */ public function getLinkedId(): ?string { @@ -542,8 +538,6 @@ public function setLinkedId(?string $linked_id): self /** * Gets confidence. - * - * @return ?\Fingerprint\ServerAPI\Model\Confidence */ public function getConfidence(): ?Confidence { diff --git a/src/Model/Response.php b/src/Model/Response.php index 7cc4f418..6cb9ed72 100644 --- a/src/Model/Response.php +++ b/src/Model/Response.php @@ -268,8 +268,6 @@ public function setVisits(array $visits): self /** * Gets last_timestamp. - * - * @return ?int */ public function getLastTimestamp(): ?int { @@ -292,8 +290,6 @@ public function setLastTimestamp(?int $last_timestamp): self /** * Gets pagination_key. - * - * @return ?string */ public function getPaginationKey(): ?string { diff --git a/src/Model/ResponseVisits.php b/src/Model/ResponseVisits.php index 10504a59..e5dd8525 100644 --- a/src/Model/ResponseVisits.php +++ b/src/Model/ResponseVisits.php @@ -395,8 +395,6 @@ public function setIp(string $ip): self /** * Gets ip_location. - * - * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ public function getIpLocation(): ?DeprecatedIPLocation { @@ -509,8 +507,6 @@ public function setTag(array $tag): self /** * Gets linked_id. - * - * @return ?string */ public function getLinkedId(): ?string { @@ -533,8 +529,6 @@ public function setLinkedId(?string $linked_id): self /** * Gets confidence. - * - * @return ?\Fingerprint\ServerAPI\Model\Confidence */ public function getConfidence(): ?Confidence { diff --git a/src/Model/SignalResponseClonedApp.php b/src/Model/SignalResponseClonedApp.php index c32a395c..c65df140 100644 --- a/src/Model/SignalResponseClonedApp.php +++ b/src/Model/SignalResponseClonedApp.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\ClonedAppResult */ public function getData(): ?ClonedAppResult { @@ -223,8 +221,6 @@ public function setData(?ClonedAppResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseDeveloperTools.php b/src/Model/SignalResponseDeveloperTools.php index 14b191c6..42005f32 100644 --- a/src/Model/SignalResponseDeveloperTools.php +++ b/src/Model/SignalResponseDeveloperTools.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\DeveloperToolsResult */ public function getData(): ?DeveloperToolsResult { @@ -223,8 +221,6 @@ public function setData(?DeveloperToolsResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseEmulator.php b/src/Model/SignalResponseEmulator.php index cca465a7..08735ee4 100644 --- a/src/Model/SignalResponseEmulator.php +++ b/src/Model/SignalResponseEmulator.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\EmulatorResult */ public function getData(): ?EmulatorResult { @@ -223,8 +221,6 @@ public function setData(?EmulatorResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseFactoryReset.php b/src/Model/SignalResponseFactoryReset.php index ad4848f0..89f9b02a 100644 --- a/src/Model/SignalResponseFactoryReset.php +++ b/src/Model/SignalResponseFactoryReset.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\FactoryResetResult */ public function getData(): ?FactoryResetResult { @@ -223,8 +221,6 @@ public function setData(?FactoryResetResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseFrida.php b/src/Model/SignalResponseFrida.php index fc915ca5..dbb10401 100644 --- a/src/Model/SignalResponseFrida.php +++ b/src/Model/SignalResponseFrida.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\FridaResult */ public function getData(): ?FridaResult { @@ -223,8 +221,6 @@ public function setData(?FridaResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseHighActivity.php b/src/Model/SignalResponseHighActivity.php index 919a4827..17a9deb6 100644 --- a/src/Model/SignalResponseHighActivity.php +++ b/src/Model/SignalResponseHighActivity.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\HighActivityResult */ public function getData(): ?HighActivityResult { @@ -223,8 +221,6 @@ public function setData(?HighActivityResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseIncognito.php b/src/Model/SignalResponseIncognito.php index 1fb3e089..420858fd 100644 --- a/src/Model/SignalResponseIncognito.php +++ b/src/Model/SignalResponseIncognito.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\IncognitoResult */ public function getData(): ?IncognitoResult { @@ -223,8 +221,6 @@ public function setData(?IncognitoResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ public function getError(): ?IdentificationError { diff --git a/src/Model/SignalResponseIpBlocklist.php b/src/Model/SignalResponseIpBlocklist.php index ccff61c3..f3af9c5a 100644 --- a/src/Model/SignalResponseIpBlocklist.php +++ b/src/Model/SignalResponseIpBlocklist.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\IpBlockListResult */ public function getData(): ?IpBlockListResult { @@ -223,8 +221,6 @@ public function setData(?IpBlockListResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseIpInfo.php b/src/Model/SignalResponseIpInfo.php index 8dbcc562..9b143421 100644 --- a/src/Model/SignalResponseIpInfo.php +++ b/src/Model/SignalResponseIpInfo.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\IpInfoResult */ public function getData(): ?IpInfoResult { @@ -223,8 +221,6 @@ public function setData(?IpInfoResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseJailbroken.php b/src/Model/SignalResponseJailbroken.php index 2d628b15..5c54d38b 100644 --- a/src/Model/SignalResponseJailbroken.php +++ b/src/Model/SignalResponseJailbroken.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\JailbrokenResult */ public function getData(): ?JailbrokenResult { @@ -223,8 +221,6 @@ public function setData(?JailbrokenResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseLocationSpoofing.php b/src/Model/SignalResponseLocationSpoofing.php index 344e2d61..7ed72479 100644 --- a/src/Model/SignalResponseLocationSpoofing.php +++ b/src/Model/SignalResponseLocationSpoofing.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\LocationSpoofingResult */ public function getData(): ?LocationSpoofingResult { @@ -223,8 +221,6 @@ public function setData(?LocationSpoofingResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponsePrivacySettings.php b/src/Model/SignalResponsePrivacySettings.php index 3fb7744e..918a9fe7 100644 --- a/src/Model/SignalResponsePrivacySettings.php +++ b/src/Model/SignalResponsePrivacySettings.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\PrivacySettingsResult */ public function getData(): ?PrivacySettingsResult { @@ -223,8 +221,6 @@ public function setData(?PrivacySettingsResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseProxy.php b/src/Model/SignalResponseProxy.php index e4fc356a..f5250ecb 100644 --- a/src/Model/SignalResponseProxy.php +++ b/src/Model/SignalResponseProxy.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\ProxyResult */ public function getData(): ?ProxyResult { @@ -223,8 +221,6 @@ public function setData(?ProxyResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseRawDeviceAttributes.php b/src/Model/SignalResponseRawDeviceAttributes.php index 7c1cef09..51074d90 100644 --- a/src/Model/SignalResponseRawDeviceAttributes.php +++ b/src/Model/SignalResponseRawDeviceAttributes.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult */ public function getData(): array { @@ -223,8 +221,6 @@ public function setData(?array $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ public function getError(): ?IdentificationError { diff --git a/src/Model/SignalResponseRemoteControl.php b/src/Model/SignalResponseRemoteControl.php index f3298e10..d8ab06d8 100644 --- a/src/Model/SignalResponseRemoteControl.php +++ b/src/Model/SignalResponseRemoteControl.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\RemoteControlResult */ public function getData(): ?RemoteControlResult { @@ -223,8 +221,6 @@ public function setData(?RemoteControlResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseRootApps.php b/src/Model/SignalResponseRootApps.php index 3e8dc013..7a9f1c87 100644 --- a/src/Model/SignalResponseRootApps.php +++ b/src/Model/SignalResponseRootApps.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\RootAppsResult */ public function getData(): ?RootAppsResult { @@ -223,8 +221,6 @@ public function setData(?RootAppsResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseSuspectScore.php b/src/Model/SignalResponseSuspectScore.php index 21d0ac61..d72b79a2 100644 --- a/src/Model/SignalResponseSuspectScore.php +++ b/src/Model/SignalResponseSuspectScore.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\SuspectScoreResult */ public function getData(): ?SuspectScoreResult { @@ -223,8 +221,6 @@ public function setData(?SuspectScoreResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseTampering.php b/src/Model/SignalResponseTampering.php index 40c6e9ea..fa639771 100644 --- a/src/Model/SignalResponseTampering.php +++ b/src/Model/SignalResponseTampering.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\TamperingResult */ public function getData(): ?TamperingResult { @@ -223,8 +221,6 @@ public function setData(?TamperingResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\IdentificationError */ public function getError(): ?IdentificationError { diff --git a/src/Model/SignalResponseTor.php b/src/Model/SignalResponseTor.php index 07444f24..5b5fdc4d 100644 --- a/src/Model/SignalResponseTor.php +++ b/src/Model/SignalResponseTor.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\TorResult */ public function getData(): ?TorResult { @@ -223,8 +221,6 @@ public function setData(?TorResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseVelocity.php b/src/Model/SignalResponseVelocity.php index ca56dc84..5a6dd716 100644 --- a/src/Model/SignalResponseVelocity.php +++ b/src/Model/SignalResponseVelocity.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\VelocityResult */ public function getData(): ?VelocityResult { @@ -223,8 +221,6 @@ public function setData(?VelocityResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseVirtualMachine.php b/src/Model/SignalResponseVirtualMachine.php index 3fa6d92a..0b15d17c 100644 --- a/src/Model/SignalResponseVirtualMachine.php +++ b/src/Model/SignalResponseVirtualMachine.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\VirtualMachineResult */ public function getData(): ?VirtualMachineResult { @@ -223,8 +221,6 @@ public function setData(?VirtualMachineResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/SignalResponseVpn.php b/src/Model/SignalResponseVpn.php index 3e60dfdf..5a583403 100644 --- a/src/Model/SignalResponseVpn.php +++ b/src/Model/SignalResponseVpn.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets data. - * - * @return ?\Fingerprint\ServerAPI\Model\VpnResult */ public function getData(): ?VpnResult { @@ -223,8 +221,6 @@ public function setData(?VpnResult $data): self /** * Gets error. - * - * @return ?\Fingerprint\ServerAPI\Model\ProductError */ public function getError(): ?ProductError { diff --git a/src/Model/Subdivision.php b/src/Model/Subdivision.php index a7ac9adb..7302bae8 100644 --- a/src/Model/Subdivision.php +++ b/src/Model/Subdivision.php @@ -199,8 +199,6 @@ public function valid(): bool /** * Gets iso_code. - * - * @return ?string */ public function getIsoCode(): ?string { @@ -223,8 +221,6 @@ public function setIsoCode(?string $iso_code): self /** * Gets name. - * - * @return ?string */ public function getName(): ?string { diff --git a/src/Model/VelocityIntervalResult.php b/src/Model/VelocityIntervalResult.php index 46b32c29..ef23dd88 100644 --- a/src/Model/VelocityIntervalResult.php +++ b/src/Model/VelocityIntervalResult.php @@ -260,8 +260,6 @@ public function set1h(int $_1h): self /** * Gets _24h. - * - * @return ?int */ public function get24h(): ?int { diff --git a/src/Model/VelocityIntervals.php b/src/Model/VelocityIntervals.php index 591577fa..3a8c3735 100644 --- a/src/Model/VelocityIntervals.php +++ b/src/Model/VelocityIntervals.php @@ -193,8 +193,6 @@ public function valid(): bool /** * Gets intervals. - * - * @return ?\Fingerprint\ServerAPI\Model\VelocityIntervalResult */ public function getIntervals(): ?VelocityIntervalResult { diff --git a/src/Model/Visit.php b/src/Model/Visit.php index 1cf5e874..1ec382f2 100644 --- a/src/Model/Visit.php +++ b/src/Model/Visit.php @@ -392,8 +392,6 @@ public function setIp(string $ip): self /** * Gets ip_location. - * - * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ public function getIpLocation(): ?DeprecatedIPLocation { @@ -506,8 +504,6 @@ public function setTag(?array $tag): self /** * Gets linked_id. - * - * @return ?string */ public function getLinkedId(): ?string { @@ -530,8 +526,6 @@ public function setLinkedId(?string $linked_id): self /** * Gets confidence. - * - * @return ?\Fingerprint\ServerAPI\Model\Confidence */ public function getConfidence(): ?Confidence { diff --git a/src/Model/VpnResult.php b/src/Model/VpnResult.php index d6f37950..a06f6c8d 100644 --- a/src/Model/VpnResult.php +++ b/src/Model/VpnResult.php @@ -267,8 +267,6 @@ public function setOriginTimezone(string $origin_timezone): self /** * Gets origin_country. - * - * @return ?string */ public function getOriginCountry(): ?string { diff --git a/src/Model/WebhookVisit.php b/src/Model/WebhookVisit.php index ab9c9791..bdfdd777 100644 --- a/src/Model/WebhookVisit.php +++ b/src/Model/WebhookVisit.php @@ -479,8 +479,6 @@ public function setVisitorId(string $visitor_id): self /** * Gets client_referrer. - * - * @return ?string */ public function getClientReferrer(): ?string { @@ -503,8 +501,6 @@ public function setClientReferrer(?string $client_referrer): self /** * Gets user_agent. - * - * @return ?string */ public function getUserAgent(): ?string { @@ -527,8 +523,6 @@ public function setUserAgent(?string $user_agent): self /** * Gets bot. - * - * @return ?\Fingerprint\ServerAPI\Model\BotdDetectionResult */ public function getBot(): ?BotdDetectionResult { @@ -551,8 +545,6 @@ public function setBot(?BotdDetectionResult $bot): self /** * Gets ip_info. - * - * @return ?\Fingerprint\ServerAPI\Model\IpInfoResult */ public function getIpInfo(): ?IpInfoResult { @@ -597,8 +589,6 @@ public function setIncognito(bool $incognito): self /** * Gets root_apps. - * - * @return ?\Fingerprint\ServerAPI\Model\RootAppsResult */ public function getRootApps(): ?RootAppsResult { @@ -621,8 +611,6 @@ public function setRootApps(?RootAppsResult $root_apps): self /** * Gets emulator. - * - * @return ?\Fingerprint\ServerAPI\Model\EmulatorResult */ public function getEmulator(): ?EmulatorResult { @@ -645,8 +633,6 @@ public function setEmulator(?EmulatorResult $emulator): self /** * Gets cloned_app. - * - * @return ?\Fingerprint\ServerAPI\Model\ClonedAppResult */ public function getClonedApp(): ?ClonedAppResult { @@ -669,8 +655,6 @@ public function setClonedApp(?ClonedAppResult $cloned_app): self /** * Gets factory_reset. - * - * @return ?\Fingerprint\ServerAPI\Model\FactoryResetResult */ public function getFactoryReset(): ?FactoryResetResult { @@ -693,8 +677,6 @@ public function setFactoryReset(?FactoryResetResult $factory_reset): self /** * Gets jailbroken. - * - * @return ?\Fingerprint\ServerAPI\Model\JailbrokenResult */ public function getJailbroken(): ?JailbrokenResult { @@ -717,8 +699,6 @@ public function setJailbroken(?JailbrokenResult $jailbroken): self /** * Gets frida. - * - * @return ?\Fingerprint\ServerAPI\Model\FridaResult */ public function getFrida(): ?FridaResult { @@ -741,8 +721,6 @@ public function setFrida(?FridaResult $frida): self /** * Gets ip_blocklist. - * - * @return ?\Fingerprint\ServerAPI\Model\IpBlockListResult */ public function getIpBlocklist(): ?IpBlockListResult { @@ -765,8 +743,6 @@ public function setIpBlocklist(?IpBlockListResult $ip_blocklist): self /** * Gets tor. - * - * @return ?\Fingerprint\ServerAPI\Model\TorResult */ public function getTor(): ?TorResult { @@ -789,8 +765,6 @@ public function setTor(?TorResult $tor): self /** * Gets privacy_settings. - * - * @return ?\Fingerprint\ServerAPI\Model\PrivacySettingsResult */ public function getPrivacySettings(): ?PrivacySettingsResult { @@ -813,8 +787,6 @@ public function setPrivacySettings(?PrivacySettingsResult $privacy_settings): se /** * Gets virtual_machine. - * - * @return ?\Fingerprint\ServerAPI\Model\VirtualMachineResult */ public function getVirtualMachine(): ?VirtualMachineResult { @@ -837,8 +809,6 @@ public function setVirtualMachine(?VirtualMachineResult $virtual_machine): self /** * Gets vpn. - * - * @return ?\Fingerprint\ServerAPI\Model\VpnResult */ public function getVpn(): ?VpnResult { @@ -861,8 +831,6 @@ public function setVpn(?VpnResult $vpn): self /** * Gets proxy. - * - * @return ?\Fingerprint\ServerAPI\Model\ProxyResult */ public function getProxy(): ?ProxyResult { @@ -885,8 +853,6 @@ public function setProxy(?ProxyResult $proxy): self /** * Gets tampering. - * - * @return ?\Fingerprint\ServerAPI\Model\TamperingResult */ public function getTampering(): ?TamperingResult { @@ -909,8 +875,6 @@ public function setTampering(?TamperingResult $tampering): self /** * Gets raw_device_attributes. - * - * @return ?\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult */ public function getRawDeviceAttributes(): ?RawDeviceAttributesResult { @@ -933,8 +897,6 @@ public function setRawDeviceAttributes(?RawDeviceAttributesResult $raw_device_at /** * Gets high_activity. - * - * @return ?\Fingerprint\ServerAPI\Model\HighActivityResult */ public function getHighActivity(): ?HighActivityResult { @@ -957,8 +919,6 @@ public function setHighActivity(?HighActivityResult $high_activity): self /** * Gets location_spoofing. - * - * @return ?\Fingerprint\ServerAPI\Model\LocationSpoofingResult */ public function getLocationSpoofing(): ?LocationSpoofingResult { @@ -981,8 +941,6 @@ public function setLocationSpoofing(?LocationSpoofingResult $location_spoofing): /** * Gets suspect_score. - * - * @return ?\Fingerprint\ServerAPI\Model\SuspectScoreResult */ public function getSuspectScore(): ?SuspectScoreResult { @@ -1005,8 +963,6 @@ public function setSuspectScore(?SuspectScoreResult $suspect_score): self /** * Gets remote_control. - * - * @return ?\Fingerprint\ServerAPI\Model\RemoteControlResult */ public function getRemoteControl(): ?RemoteControlResult { @@ -1029,8 +985,6 @@ public function setRemoteControl(?RemoteControlResult $remote_control): self /** * Gets velocity. - * - * @return ?\Fingerprint\ServerAPI\Model\VelocityResult */ public function getVelocity(): ?VelocityResult { @@ -1053,8 +1007,6 @@ public function setVelocity(?VelocityResult $velocity): self /** * Gets developer_tools. - * - * @return ?\Fingerprint\ServerAPI\Model\DeveloperToolsResult */ public function getDeveloperTools(): ?DeveloperToolsResult { @@ -1143,8 +1095,6 @@ public function setIp(string $ip): self /** * Gets ip_location. - * - * @return ?\Fingerprint\ServerAPI\Model\DeprecatedIPLocation */ public function getIpLocation(): ?DeprecatedIPLocation { @@ -1257,8 +1207,6 @@ public function setTag(?array $tag): self /** * Gets linked_id. - * - * @return ?string */ public function getLinkedId(): ?string { @@ -1281,8 +1229,6 @@ public function setLinkedId(?string $linked_id): self /** * Gets confidence. - * - * @return ?\Fingerprint\ServerAPI\Model\Confidence */ public function getConfidence(): ?Confidence { From 383dfbf2375e8e35a0f229f78a3625c11bfbff84 Mon Sep 17 00:00:00 2001 From: Orkun Date: Mon, 9 Sep 2024 11:49:19 +0300 Subject: [PATCH 07/11] chore: dont overload config from cli for php-cs-fixer --- .git_hooks/pre-commit | 2 +- .php-cs-fixer.php | 2 +- scripts/generate.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.git_hooks/pre-commit b/.git_hooks/pre-commit index 4dfceeb5..9563dadc 100755 --- a/.git_hooks/pre-commit +++ b/.git_hooks/pre-commit @@ -1,3 +1,3 @@ #!/bin/sh -docker run --rm -v $(pwd):/code ghcr.io/php-cs-fixer/php-cs-fixer:${FIXER_VERSION:-3-php8.3} fix --config=/code/.php-cs-fixer.php /code/src \ No newline at end of file +docker run --rm -v $(pwd):/code ghcr.io/php-cs-fixer/php-cs-fixer:${FIXER_VERSION:-3-php8.3} fix --config=/code/.php-cs-fixer.php \ No newline at end of file diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index e7b05d41..9986e176 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -23,5 +23,5 @@ ]) ->setFinder( PhpCsFixer\Finder::create() - ->in(__DIR__) + ->in(__DIR__ . "/src") ); \ No newline at end of file diff --git a/scripts/generate.sh b/scripts/generate.sh index 291233e1..e3bf58cb 100755 --- a/scripts/generate.sh +++ b/scripts/generate.sh @@ -48,7 +48,7 @@ fi echo "Using .php-cs-fixer.php configuration:" cat .php-cs-fixer.php -docker run --rm -v $(pwd):/code ghcr.io/php-cs-fixer/php-cs-fixer:${FIXER_VERSION:-3-php8.3} fix --config=/code/.php-cs-fixer.php /code/src +docker run --rm -v $(pwd):/code ghcr.io/php-cs-fixer/php-cs-fixer:${FIXER_VERSION:-3-php8.3} fix --config=/code/.php-cs-fixer.php # fix invalid code generated for structure with additionalProperties ( From 91e18c93c7ba31c65b880b0092e26cc279d7b6a8 Mon Sep 17 00:00:00 2001 From: Orkun Date: Mon, 9 Sep 2024 11:50:19 +0300 Subject: [PATCH 08/11] chore: remove coversnothing attribute from tests --- test/FingerprintApiTest.php | 5 ----- test/Sealed/SealedTest.php | 5 ----- test/WebhookVerifierTest.php | 5 ----- 3 files changed, 15 deletions(-) diff --git a/test/FingerprintApiTest.php b/test/FingerprintApiTest.php index 9967fee0..8f946e36 100644 --- a/test/FingerprintApiTest.php +++ b/test/FingerprintApiTest.php @@ -22,11 +22,6 @@ use GuzzleHttp\Psr7\Response; use PHPUnit\Framework\TestCase; -/** - * @internal - * - * @coversNothing - */ class FingerprintApiTest extends TestCase { public const MOCK_REQUEST_ID = '1708102555327.NLOjmg'; diff --git a/test/Sealed/SealedTest.php b/test/Sealed/SealedTest.php index 3e5f0edd..2f584b36 100644 --- a/test/Sealed/SealedTest.php +++ b/test/Sealed/SealedTest.php @@ -11,11 +11,6 @@ use GuzzleHttp\Psr7\Response; use PHPUnit\Framework\TestCase; -/** - * @internal - * - * @coversNothing - */ class SealedTest extends TestCase { public const VALID_KEY = 'p2PA7MGy5tx56cnyJaFZMr96BCFwZeHjZV2EqMvTq53='; diff --git a/test/WebhookVerifierTest.php b/test/WebhookVerifierTest.php index 228fdcfc..db0a5896 100644 --- a/test/WebhookVerifierTest.php +++ b/test/WebhookVerifierTest.php @@ -5,11 +5,6 @@ use Fingerprint\ServerAPI\Webhook\WebhookVerifier; use PHPUnit\Framework\TestCase; -/** - * @internal - * - * @coversNothing - */ class WebhookVerifierTest extends TestCase { private $secret = 'secret'; From e58356e44951c923462c35412951cd1a88ab249e Mon Sep 17 00:00:00 2001 From: Orkun Date: Mon, 9 Sep 2024 12:09:52 +0300 Subject: [PATCH 09/11] chore: force php-cs-fixer to use version 3.64 --- .git_hooks/pre-commit | 2 +- docker-compose.yml | 2 +- scripts/generate.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.git_hooks/pre-commit b/.git_hooks/pre-commit index 9563dadc..3af22284 100755 --- a/.git_hooks/pre-commit +++ b/.git_hooks/pre-commit @@ -1,3 +1,3 @@ #!/bin/sh -docker run --rm -v $(pwd):/code ghcr.io/php-cs-fixer/php-cs-fixer:${FIXER_VERSION:-3-php8.3} fix --config=/code/.php-cs-fixer.php \ No newline at end of file +docker run --rm -v $(pwd):/code ghcr.io/php-cs-fixer/php-cs-fixer:3.64-php8.3 fix --config=/code/.php-cs-fixer.php \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index bfbd8270..a8c68839 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,7 +22,7 @@ services: env_file: - .env lint: - image: ghcr.io/php-cs-fixer/php-cs-fixer:${FIXER_VERSION:-3-php8.3} + image: ghcr.io/php-cs-fixer/php-cs-fixer:3.64-php8.3 volumes: - .:/code - ./.php-cs-fixer.php:/code/.php-cs-fixer.php diff --git a/scripts/generate.sh b/scripts/generate.sh index e3bf58cb..d4e5289e 100755 --- a/scripts/generate.sh +++ b/scripts/generate.sh @@ -48,7 +48,7 @@ fi echo "Using .php-cs-fixer.php configuration:" cat .php-cs-fixer.php -docker run --rm -v $(pwd):/code ghcr.io/php-cs-fixer/php-cs-fixer:${FIXER_VERSION:-3-php8.3} fix --config=/code/.php-cs-fixer.php +docker run --rm -v $(pwd):/code ghcr.io/php-cs-fixer/php-cs-fixer:3.64-php8.3 fix --config=/code/.php-cs-fixer.php # fix invalid code generated for structure with additionalProperties ( From cb4b8ae9dfec44a946fbac3294eb059e042efca1 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Mon, 9 Sep 2024 09:27:05 +0000 Subject: [PATCH 10/11] chore(release): 5.0.0-develop.3 [skip ci] ## [5.0.0-develop.3](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/compare/v5.0.0-develop.2...v5.0.0-develop.3) (2024-09-09) ### Bug Fixes * php-cs-fixer keep nullable return annotations ([99011b7](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/99011b736a2782fc50f488d5e83d489540a860fb)) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c2ecb72..13bc1541 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [5.0.0-develop.3](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/compare/v5.0.0-develop.2...v5.0.0-develop.3) (2024-09-09) + + +### Bug Fixes + +* php-cs-fixer keep nullable return annotations ([99011b7](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/99011b736a2782fc50f488d5e83d489540a860fb)) + ## [5.0.0-develop.3](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/compare/v5.0.0-develop.2...v5.0.0-develop.3) (2024-09-04) From ec06309af73236b585025a671ca8c10333f45879 Mon Sep 17 00:00:00 2001 From: Orkun Date: Mon, 9 Sep 2024 12:57:54 +0300 Subject: [PATCH 11/11] chore: run ci checks