From abb338bd9f1453cd36dd3f13e5a0fba2e9ea67fb Mon Sep 17 00:00:00 2001 From: Orkun Date: Fri, 26 Jul 2024 12:56:08 +0300 Subject: [PATCH] refactor: code style and error handling --- .git_hooks/pre-commit | 2 +- .php-cs-fixer.php | 23 + composer.json | 9 +- composer.lock | 3292 +++++------------ docker-compose.yml | 10 +- run_checks.php | 2 - scripts/generate.sh | 4 +- src/Api/FingerprintApi.php | 424 ++- src/ApiException.php | 76 +- src/Configuration.php | 149 +- src/Model/ASN.php | 230 +- src/Model/BotdDetectionResult.php | 224 +- src/Model/BotdResult.php | 311 +- src/Model/BrowserDetails.php | 320 +- src/Model/ClonedAppResult.php | 200 +- src/Model/Confidence.php | 202 +- src/Model/DataCenter.php | 212 +- src/Model/DeprecatedIPLocation.php | 348 +- src/Model/DeprecatedIPLocationCity.php | 201 +- src/Model/EmulatorResult.php | 200 +- src/Model/ErrorEvent403Response.php | 205 +- src/Model/ErrorEvent403ResponseError.php | 230 +- src/Model/ErrorEvent404Response.php | 205 +- src/Model/ErrorEvent404ResponseError.php | 218 +- src/Model/ErrorVisits403.php | 202 +- src/Model/EventResponse.php | 221 +- src/Model/FactoryResetResult.php | 216 +- src/Model/FridaResult.php | 200 +- src/Model/HighActivityResult.php | 216 +- src/Model/IPLocation.php | 347 +- src/Model/IPLocationCity.php | 201 +- src/Model/IdentificationError.php | 222 +- src/Model/IncognitoResult.php | 202 +- src/Model/IpBlockListResult.php | 220 +- src/Model/IpBlockListResultDetails.php | 218 +- src/Model/IpInfoResult.php | 222 +- src/Model/IpInfoResultV4.php | 258 +- src/Model/IpInfoResultV6.php | 258 +- src/Model/JailbrokenResult.php | 200 +- src/Model/Location.php | 214 +- src/Model/LocationSpoofingResult.php | 202 +- src/Model/ManyRequestsResponse.php | 202 +- src/Model/ModelInterface.php | 22 +- src/Model/PrivacySettingsResult.php | 200 +- src/Model/ProductError.php | 222 +- src/Model/ProductsResponse.php | 614 ++- src/Model/ProductsResponseBotd.php | 221 +- src/Model/ProductsResponseIdentification.php | 221 +- .../ProductsResponseIdentificationData.php | 492 ++- src/Model/ProxyResult.php | 202 +- src/Model/RawDeviceAttributesResult.php | 194 +- src/Model/Response.php | 247 +- src/Model/ResponseVisits.php | 472 ++- src/Model/RootAppsResult.php | 200 +- src/Model/SeenAt.php | 214 +- src/Model/SignalResponseClonedApp.php | 221 +- src/Model/SignalResponseEmulator.php | 221 +- src/Model/SignalResponseFactoryReset.php | 221 +- src/Model/SignalResponseFrida.php | 221 +- src/Model/SignalResponseHighActivity.php | 221 +- src/Model/SignalResponseIncognito.php | 221 +- src/Model/SignalResponseIpBlocklist.php | 221 +- src/Model/SignalResponseIpInfo.php | 221 +- src/Model/SignalResponseJailbroken.php | 221 +- src/Model/SignalResponseLocationSpoofing.php | 221 +- src/Model/SignalResponsePrivacySettings.php | 221 +- src/Model/SignalResponseProxy.php | 221 +- .../SignalResponseRawDeviceAttributes.php | 221 +- src/Model/SignalResponseRootApps.php | 221 +- src/Model/SignalResponseSuspectScore.php | 221 +- src/Model/SignalResponseTampering.php | 221 +- src/Model/SignalResponseTor.php | 221 +- src/Model/SignalResponseVirtualMachine.php | 221 +- src/Model/SignalResponseVpn.php | 221 +- src/Model/Subdivision.php | 213 +- src/Model/SuspectScoreResult.php | 200 +- src/Model/TamperingResult.php | 216 +- src/Model/TorResult.php | 202 +- src/Model/VirtualMachineResult.php | 200 +- src/Model/Visit.php | 472 ++- src/Model/VpnResult.php | 256 +- src/Model/VpnResultMethods.php | 236 +- src/Model/WebhookVisit.php | 882 +++-- src/ObjectSerializer.php | 161 +- src/Sealed/DecompressionException.php | 6 +- src/Sealed/InvalidSealedDataException.php | 6 +- .../InvalidSealedDataHeaderException.php | 6 +- src/Sealed/Sealed.php | 36 +- src/Sealed/UnsealAggregateException.php | 11 +- src/Sealed/UnsealException.php | 12 +- src/SerializationException.php | 5 +- template/ApiException.mustache | 75 + template/api.mustache | 58 +- template/composer.mustache | 4 +- 94 files changed, 10378 insertions(+), 11917 deletions(-) create mode 100644 .php-cs-fixer.php create mode 100644 template/ApiException.mustache diff --git a/.git_hooks/pre-commit b/.git_hooks/pre-commit index 6a5f1dae..0d1e2b3f 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 src \ No newline at end of file +docker-compose run --rm lint \ No newline at end of file diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php new file mode 100644 index 00000000..d91c14a8 --- /dev/null +++ b/.php-cs-fixer.php @@ -0,0 +1,23 @@ +setRules([ + '@PSR1' => true, + '@PSR2' => true, + '@PSR12' => true, + '@PhpCsFixer' => true, + 'array_indentation' => true, + 'trailing_comma_in_multiline' => ['elements' => ['arrays']], + 'no_whitespace_before_comma_in_array' => true, + 'whitespace_after_comma_in_array' => true, + 'array_syntax' => ['syntax' => 'short'], + 'binary_operator_spaces' => [ + 'default' => 'single_space', + 'operators' => ['=>' => null], + ], + 'multiline_whitespace_before_semicolons' => false, + ]) + ->setFinder( + PhpCsFixer\Finder::create() + ->in(__DIR__) + ); \ No newline at end of file diff --git a/composer.json b/composer.json index b3a04720..e8db066d 100644 --- a/composer.json +++ b/composer.json @@ -36,12 +36,11 @@ "ext-mbstring": "*", "guzzlehttp/guzzle": "~7.2", "ext-zlib": "*", - "ext-openssl": "*" + "ext-openssl": "*", + "vlucas/phpdotenv": "^5.6" }, "require-dev": { - "phpunit/phpunit": "8.5.33", - "squizlabs/php_codesniffer": "~2.6", - "friendsofphp/php-cs-fixer": "~2.19" + "phpunit/phpunit": "8.5.33" }, "autoload": { "psr-4": { "Fingerprint\\ServerAPI\\" : "./src" } @@ -49,4 +48,4 @@ "autoload-dev": { "psr-4": { "Fingerprint\\ServerAPI\\" : "test/" } } -} \ No newline at end of file +} diff --git a/composer.lock b/composer.lock index c2fd2464..2b131405 100644 --- a/composer.lock +++ b/composer.lock @@ -4,28 +4,28 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "683b80cf00c63b24702815cf520d56ec", + "content-hash": "d252675910c39b945743e945daf6ff88", "packages": [ { "name": "graham-campbell/result-type", - "version": "v1.1.1", + "version": "v1.1.3", "source": { "type": "git", "url": "https://github.com/GrahamCampbell/Result-Type.git", - "reference": "672eff8cf1d6fe1ef09ca0f89c4b287d6a3eb831" + "reference": "3ba905c11371512af9d9bdd27d99b782216b6945" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/672eff8cf1d6fe1ef09ca0f89c4b287d6a3eb831", - "reference": "672eff8cf1d6fe1ef09ca0f89c4b287d6a3eb831", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/3ba905c11371512af9d9bdd27d99b782216b6945", + "reference": "3ba905c11371512af9d9bdd27d99b782216b6945", "shasum": "" }, "require": { "php": "^7.2.5 || ^8.0", - "phpoption/phpoption": "^1.9.1" + "phpoption/phpoption": "^1.9.3" }, "require-dev": { - "phpunit/phpunit": "^8.5.32 || ^9.6.3 || ^10.0.12" + "phpunit/phpunit": "^8.5.39 || ^9.6.20 || ^10.5.28" }, "type": "library", "autoload": { @@ -54,7 +54,7 @@ ], "support": { "issues": "https://github.com/GrahamCampbell/Result-Type/issues", - "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.1" + "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.3" }, "funding": [ { @@ -66,26 +66,26 @@ "type": "tidelift" } ], - "time": "2023-02-25T20:23:15+00:00" + "time": "2024-07-20T21:45:45+00:00" }, { "name": "guzzlehttp/guzzle", - "version": "7.5.0", + "version": "7.9.2", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "b50a2a1251152e43f6a37f0fa053e730a67d25ba" + "reference": "d281ed313b989f213357e3be1a179f02196ac99b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/b50a2a1251152e43f6a37f0fa053e730a67d25ba", - "reference": "b50a2a1251152e43f6a37f0fa053e730a67d25ba", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/d281ed313b989f213357e3be1a179f02196ac99b", + "reference": "d281ed313b989f213357e3be1a179f02196ac99b", "shasum": "" }, "require": { "ext-json": "*", - "guzzlehttp/promises": "^1.5", - "guzzlehttp/psr7": "^1.9 || ^2.4", + "guzzlehttp/promises": "^1.5.3 || ^2.0.3", + "guzzlehttp/psr7": "^2.7.0", "php": "^7.2.5 || ^8.0", "psr/http-client": "^1.0", "symfony/deprecation-contracts": "^2.2 || ^3.0" @@ -94,10 +94,11 @@ "psr/http-client-implementation": "1.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.1", + "bamarni/composer-bin-plugin": "^1.8.2", "ext-curl": "*", - "php-http/client-integration-tests": "^3.0", - "phpunit/phpunit": "^8.5.29 || ^9.5.23", + "guzzle/client-integration-tests": "3.0.2", + "php-http/message-factory": "^1.1", + "phpunit/phpunit": "^8.5.39 || ^9.6.20", "psr/log": "^1.1 || ^2.0 || ^3.0" }, "suggest": { @@ -110,9 +111,6 @@ "bamarni-bin": { "bin-links": true, "forward-command": false - }, - "branch-alias": { - "dev-master": "7.5-dev" } }, "autoload": { @@ -176,38 +174,55 @@ "rest", "web service" ], - "time": "2022-08-28T15:39:27+00:00" + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.9.2" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", + "type": "tidelift" + } + ], + "time": "2024-07-24T11:22:20+00:00" }, { "name": "guzzlehttp/promises", - "version": "1.5.2", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "b94b2807d85443f9719887892882d0329d1e2598" + "reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/b94b2807d85443f9719887892882d0329d1e2598", - "reference": "b94b2807d85443f9719887892882d0329d1e2598", + "url": "https://api.github.com/repos/guzzle/promises/zipball/6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8", + "reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8", "shasum": "" }, "require": { - "php": ">=5.5" + "php": "^7.2.5 || ^8.0" }, "require-dev": { - "symfony/phpunit-bridge": "^4.4 || ^5.1" + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.39 || ^9.6.20" }, "type": "library", "extra": { - "branch-alias": { - "dev-master": "1.5-dev" + "bamarni-bin": { + "bin-links": true, + "forward-command": false } }, "autoload": { - "files": [ - "src/functions_include.php" - ], "psr-4": { "GuzzleHttp\\Promise\\": "src/" } @@ -242,20 +257,38 @@ "keywords": [ "promise" ], - "time": "2022-08-28T14:55:35+00:00" + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/2.0.3" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", + "type": "tidelift" + } + ], + "time": "2024-07-18T10:29:17+00:00" }, { "name": "guzzlehttp/psr7", - "version": "2.5.0", + "version": "2.7.0", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "b635f279edd83fc275f822a1188157ffea568ff6" + "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/b635f279edd83fc275f822a1188157ffea568ff6", - "reference": "b635f279edd83fc275f822a1188157ffea568ff6", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/a70f5c95fb43bc83f07c9c948baa0dc1829bf201", + "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201", "shasum": "" }, "require": { @@ -269,9 +302,9 @@ "psr/http-message-implementation": "1.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.1", - "http-interop/http-factory-tests": "^0.9", - "phpunit/phpunit": "^8.5.29 || ^9.5.23" + "bamarni/composer-bin-plugin": "^1.8.2", + "http-interop/http-factory-tests": "0.9.0", + "phpunit/phpunit": "^8.5.39 || ^9.6.20" }, "suggest": { "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" @@ -342,7 +375,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.5.0" + "source": "https://github.com/guzzle/psr7/tree/2.7.0" }, "funding": [ { @@ -358,20 +391,20 @@ "type": "tidelift" } ], - "time": "2023-04-17T16:11:26+00:00" + "time": "2024-07-18T11:15:46+00:00" }, { "name": "phpoption/phpoption", - "version": "1.9.1", + "version": "1.9.3", "source": { "type": "git", "url": "https://github.com/schmittjoh/php-option.git", - "reference": "dd3a383e599f49777d8b628dadbb90cae435b87e" + "reference": "e3fac8b24f56113f7cb96af14958c0dd16330f54" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/dd3a383e599f49777d8b628dadbb90cae435b87e", - "reference": "dd3a383e599f49777d8b628dadbb90cae435b87e", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/e3fac8b24f56113f7cb96af14958c0dd16330f54", + "reference": "e3fac8b24f56113f7cb96af14958c0dd16330f54", "shasum": "" }, "require": { @@ -379,13 +412,13 @@ }, "require-dev": { "bamarni/composer-bin-plugin": "^1.8.2", - "phpunit/phpunit": "^8.5.32 || ^9.6.3 || ^10.0.12" + "phpunit/phpunit": "^8.5.39 || ^9.6.20 || ^10.5.28" }, "type": "library", "extra": { "bamarni-bin": { "bin-links": true, - "forward-command": true + "forward-command": false }, "branch-alias": { "dev-master": "1.9-dev" @@ -421,7 +454,7 @@ ], "support": { "issues": "https://github.com/schmittjoh/php-option/issues", - "source": "https://github.com/schmittjoh/php-option/tree/1.9.1" + "source": "https://github.com/schmittjoh/php-option/tree/1.9.3" }, "funding": [ { @@ -433,25 +466,25 @@ "type": "tidelift" } ], - "time": "2023-02-25T19:38:58+00:00" + "time": "2024-07-20T21:41:07+00:00" }, { "name": "psr/http-client", - "version": "1.0.1", + "version": "1.0.3", "source": { "type": "git", "url": "https://github.com/php-fig/http-client.git", - "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621" + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", - "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", "shasum": "" }, "require": { "php": "^7.0 || ^8.0", - "psr/http-message": "^1.0" + "psr/http-message": "^1.0 || ^2.0" }, "type": "library", "extra": { @@ -471,7 +504,7 @@ "authors": [ { "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "homepage": "https://www.php-fig.org/" } ], "description": "Common interface for HTTP clients", @@ -482,24 +515,27 @@ "psr", "psr-18" ], - "time": "2020-06-29T06:28:15+00:00" + "support": { + "source": "https://github.com/php-fig/http-client" + }, + "time": "2023-09-23T14:17:50+00:00" }, { "name": "psr/http-factory", - "version": "1.0.2", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/php-fig/http-factory.git", - "reference": "e616d01114759c4c489f93b099585439f795fe35" + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35", - "reference": "e616d01114759c4c489f93b099585439f795fe35", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", "shasum": "" }, "require": { - "php": ">=7.0.0", + "php": ">=7.1", "psr/http-message": "^1.0 || ^2.0" }, "type": "library", @@ -523,7 +559,7 @@ "homepage": "https://www.php-fig.org/" } ], - "description": "Common interfaces for PSR-7 HTTP message factories", + "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", "keywords": [ "factory", "http", @@ -535,22 +571,22 @@ "response" ], "support": { - "source": "https://github.com/php-fig/http-factory/tree/1.0.2" + "source": "https://github.com/php-fig/http-factory" }, - "time": "2023-04-10T20:10:41+00:00" + "time": "2024-04-15T12:06:14+00:00" }, { "name": "psr/http-message", - "version": "1.1", + "version": "2.0", "source": { "type": "git", "url": "https://github.com/php-fig/http-message.git", - "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba" + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba", - "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", "shasum": "" }, "require": { @@ -559,7 +595,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1.x-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { @@ -574,7 +610,7 @@ "authors": [ { "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "homepage": "https://www.php-fig.org/" } ], "description": "Common interface for HTTP messages", @@ -588,9 +624,9 @@ "response" ], "support": { - "source": "https://github.com/php-fig/http-message/tree/1.1" + "source": "https://github.com/php-fig/http-message/tree/2.0" }, - "time": "2023-04-04T09:50:52+00:00" + "time": "2023-04-04T09:54:51+00:00" }, { "name": "ralouphie/getallheaders", @@ -638,25 +674,25 @@ }, { "name": "symfony/deprecation-contracts", - "version": "v2.5.2", + "version": "v3.5.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66" + "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66", - "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", + "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.1" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "2.5-dev" + "dev-main": "3.5-dev" }, "thanks": { "name": "symfony/contracts", @@ -684,20 +720,37 @@ ], "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", - "time": "2022-01-02T09:53:40+00:00" + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-04-18T09:32:20+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.27.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "5bbc823adecdae860bb64756d639ecfec17b050a" + "reference": "0424dff1c58f028c451efff2045f5d92410bd540" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/5bbc823adecdae860bb64756d639ecfec17b050a", - "reference": "5bbc823adecdae860bb64756d639ecfec17b050a", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/0424dff1c58f028c451efff2045f5d92410bd540", + "reference": "0424dff1c58f028c451efff2045f5d92410bd540", "shasum": "" }, "require": { @@ -711,9 +764,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -749,20 +799,37 @@ "polyfill", "portable" ], - "time": "2022-11-03T14:55:06+00:00" + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.30.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-05-31T15:07:36+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.27.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534" + "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534", - "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fd22ab50000ef01661e2a31d850ebaa297f8e03c", + "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c", "shasum": "" }, "require": { @@ -776,9 +843,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -815,20 +879,37 @@ "portable", "shim" ], - "time": "2022-11-03T14:55:06+00:00" + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.30.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-06-19T12:30:46+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.27.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936" + "reference": "77fa7995ac1b21ab60769b7323d600a991a90433" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", - "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/77fa7995ac1b21ab60769b7323d600a991a90433", + "reference": "77fa7995ac1b21ab60769b7323d600a991a90433", "shasum": "" }, "require": { @@ -836,9 +917,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -881,35 +959,52 @@ "portable", "shim" ], - "time": "2022-11-03T14:55:06+00:00" + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.30.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-05-31T15:07:36+00:00" }, { "name": "vlucas/phpdotenv", - "version": "v5.5.0", + "version": "v5.6.1", "source": { "type": "git", "url": "https://github.com/vlucas/phpdotenv.git", - "reference": "1a7ea2afc49c3ee6d87061f5a233e3a035d0eae7" + "reference": "a59a13791077fe3d44f90e7133eb68e7d22eaff2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/1a7ea2afc49c3ee6d87061f5a233e3a035d0eae7", - "reference": "1a7ea2afc49c3ee6d87061f5a233e3a035d0eae7", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/a59a13791077fe3d44f90e7133eb68e7d22eaff2", + "reference": "a59a13791077fe3d44f90e7133eb68e7d22eaff2", "shasum": "" }, "require": { "ext-pcre": "*", - "graham-campbell/result-type": "^1.0.2", - "php": "^7.1.3 || ^8.0", - "phpoption/phpoption": "^1.8", - "symfony/polyfill-ctype": "^1.23", - "symfony/polyfill-mbstring": "^1.23.1", - "symfony/polyfill-php80": "^1.23.1" + "graham-campbell/result-type": "^1.1.3", + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9.3", + "symfony/polyfill-ctype": "^1.24", + "symfony/polyfill-mbstring": "^1.24", + "symfony/polyfill-php80": "^1.24" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.4.1", + "bamarni/composer-bin-plugin": "^1.8.2", "ext-filter": "*", - "phpunit/phpunit": "^7.5.20 || ^8.5.30 || ^9.5.25" + "phpunit/phpunit": "^8.5.34 || ^9.6.13 || ^10.4.2" }, "suggest": { "ext-filter": "Required to use the boolean validator." @@ -918,10 +1013,10 @@ "extra": { "bamarni-bin": { "bin-links": true, - "forward-command": true + "forward-command": false }, "branch-alias": { - "dev-master": "5.5-dev" + "dev-master": "5.6-dev" } }, "autoload": { @@ -953,7 +1048,7 @@ ], "support": { "issues": "https://github.com/vlucas/phpdotenv/issues", - "source": "https://github.com/vlucas/phpdotenv/tree/v5.5.0" + "source": "https://github.com/vlucas/phpdotenv/tree/v5.6.1" }, "funding": [ { @@ -965,41 +1060,41 @@ "type": "tidelift" } ], - "time": "2022-10-16T01:01:54+00:00" + "time": "2024-07-20T21:52:34+00:00" } ], "packages-dev": [ { - "name": "composer/pcre", - "version": "1.0.1", + "name": "doctrine/instantiator", + "version": "1.5.0", "source": { "type": "git", - "url": "https://github.com/composer/pcre.git", - "reference": "67a32d7d6f9f560b726ab25a061b38ff3a80c560" + "url": "https://github.com/doctrine/instantiator.git", + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/67a32d7d6f9f560b726ab25a061b38ff3a80c560", - "reference": "67a32d7d6f9f560b726ab25a061b38ff3a80c560", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", "shasum": "" }, "require": { - "php": "^5.3.2 || ^7.0 || ^8.0" + "php": "^7.1 || ^8.0" }, "require-dev": { - "phpstan/phpstan": "^1.3", - "phpstan/phpstan-strict-rules": "^1.1", - "symfony/phpunit-bridge": "^4.2 || ^5" + "doctrine/coding-standard": "^9 || ^11", + "ext-pdo": "*", + "ext-phar": "*", + "phpbench/phpbench": "^0.16 || ^1", + "phpstan/phpstan": "^1.4", + "phpstan/phpstan-phpunit": "^1", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.30 || ^5.4" }, "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.x-dev" - } - }, "autoload": { "psr-4": { - "Composer\\Pcre\\": "src" + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" } }, "notification-url": "https://packagist.org/downloads/", @@ -1008,572 +1103,180 @@ ], "authors": [ { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be", - "homepage": "http://seld.be" + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "https://ocramius.github.io/" } ], - "description": "PCRE wrapping library that offers type-safe preg_* replacements.", + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://www.doctrine-project.org/projects/instantiator.html", "keywords": [ - "PCRE", - "preg", - "regex", - "regular expression" + "constructor", + "instantiate" ], - "time": "2022-01-21T20:24:37+00:00" - }, - { - "name": "composer/semver", - "version": "3.3.2", - "source": { - "type": "git", - "url": "https://github.com/composer/semver.git", - "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/3953f23262f2bff1919fc82183ad9acb13ff62c9", - "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9", - "shasum": "" - }, - "require": { - "php": "^5.3.2 || ^7.0 || ^8.0" - }, - "require-dev": { - "phpstan/phpstan": "^1.4", - "symfony/phpunit-bridge": "^4.2 || ^5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.x-dev" - } - }, - "autoload": { - "psr-4": { - "Composer\\Semver\\": "src" - } + "support": { + "issues": "https://github.com/doctrine/instantiator/issues", + "source": "https://github.com/doctrine/instantiator/tree/1.5.0" }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ + "funding": [ { - "name": "Nils Adermann", - "email": "naderman@naderman.de", - "homepage": "http://www.naderman.de" + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" }, { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be", - "homepage": "http://seld.be" + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" }, { - "name": "Rob Bast", - "email": "rob.bast@gmail.com", - "homepage": "http://robbast.nl" + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "type": "tidelift" } ], - "description": "Semver library that offers utilities, version constraint parsing and validation.", - "keywords": [ - "semantic", - "semver", - "validation", - "versioning" - ], - "time": "2022-04-01T19:23:25+00:00" + "time": "2022-12-30T00:15:36+00:00" }, { - "name": "composer/xdebug-handler", - "version": "2.0.5", + "name": "myclabs/deep-copy", + "version": "1.12.0", "source": { "type": "git", - "url": "https://github.com/composer/xdebug-handler.git", - "reference": "9e36aeed4616366d2b690bdce11f71e9178c579a" + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/9e36aeed4616366d2b690bdce11f71e9178c579a", - "reference": "9e36aeed4616366d2b690bdce11f71e9178c579a", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", + "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", "shasum": "" }, "require": { - "composer/pcre": "^1", - "php": "^5.3.2 || ^7.0 || ^8.0", - "psr/log": "^1 || ^2 || ^3" + "php": "^7.1 || ^8.0" + }, + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3 <3.2.2" }, "require-dev": { - "phpstan/phpstan": "^1.0", - "phpstan/phpstan-strict-rules": "^1.1", - "symfony/phpunit-bridge": "^4.2 || ^5.0 || ^6.0" + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpspec/prophecy": "^1.10", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" }, "type": "library", "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], "psr-4": { - "Composer\\XdebugHandler\\": "src" + "DeepCopy\\": "src/DeepCopy/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "authors": [ + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.12.0" + }, + "funding": [ { - "name": "John Stevenson", - "email": "john-stevenson@blueyonder.co.uk" + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" } ], - "description": "Restarts a process without Xdebug.", - "keywords": [ - "Xdebug", - "performance" - ], - "time": "2022-02-24T20:20:32+00:00" + "time": "2024-06-12T14:39:25+00:00" }, { - "name": "doctrine/annotations", - "version": "1.14.3", + "name": "phar-io/manifest", + "version": "2.0.4", "source": { "type": "git", - "url": "https://github.com/doctrine/annotations.git", - "reference": "fb0d71a7393298a7b232cbf4c8b1f73f3ec3d5af" + "url": "https://github.com/phar-io/manifest.git", + "reference": "54750ef60c58e43759730615a392c31c80e23176" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/fb0d71a7393298a7b232cbf4c8b1f73f3ec3d5af", - "reference": "fb0d71a7393298a7b232cbf4c8b1f73f3ec3d5af", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176", + "reference": "54750ef60c58e43759730615a392c31c80e23176", "shasum": "" }, "require": { - "doctrine/lexer": "^1 || ^2", - "ext-tokenizer": "*", - "php": "^7.1 || ^8.0", - "psr/cache": "^1 || ^2 || ^3" - }, - "require-dev": { - "doctrine/cache": "^1.11 || ^2.0", - "doctrine/coding-standard": "^9 || ^10", - "phpstan/phpstan": "~1.4.10 || ^1.8.0", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "symfony/cache": "^4.4 || ^5.4 || ^6", - "vimeo/psalm": "^4.10" - }, - "suggest": { - "php": "PHP 8.0 or higher comes with attributes, a native replacement for annotations" + "ext-dom": "*", + "ext-libxml": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" }, "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" } }, + "autoload": { + "classmap": [ + "src/" + ] + }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" }, { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com" + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" }, { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" } ], - "description": "Docblock Annotations Parser", - "homepage": "https://www.doctrine-project.org/projects/annotations.html", - "keywords": [ - "annotations", - "docblock", - "parser" + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } ], - "time": "2023-02-01T09:20:38+00:00" + "time": "2024-03-03T12:33:53+00:00" }, { - "name": "doctrine/deprecations", - "version": "v1.0.0", + "name": "phar-io/version", + "version": "3.2.1", "source": { "type": "git", - "url": "https://github.com/doctrine/deprecations.git", - "reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de" + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/deprecations/zipball/0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de", - "reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", "shasum": "" }, "require": { - "php": "^7.1|^8.0" - }, - "require-dev": { - "doctrine/coding-standard": "^9", - "phpunit/phpunit": "^7.5|^8.5|^9.5", - "psr/log": "^1|^2|^3" - }, - "suggest": { - "psr/log": "Allows logging deprecations via PSR-3 logger implementation" - }, - "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", - "homepage": "https://www.doctrine-project.org/", - "time": "2022-05-02T15:47:09+00:00" - }, - { - "name": "doctrine/instantiator", - "version": "1.5.0", - "source": { - "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", - "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "require-dev": { - "doctrine/coding-standard": "^9 || ^11", - "ext-pdo": "*", - "ext-phar": "*", - "phpbench/phpbench": "^0.16 || ^1", - "phpstan/phpstan": "^1.4", - "phpstan/phpstan-phpunit": "^1", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "vimeo/psalm": "^4.30 || ^5.4" - }, - "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com", - "homepage": "https://ocramius.github.io/" - } - ], - "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://www.doctrine-project.org/projects/instantiator.html", - "keywords": [ - "constructor", - "instantiate" - ], - "time": "2022-12-30T00:15:36+00:00" - }, - { - "name": "doctrine/lexer", - "version": "2.1.0", - "source": { - "type": "git", - "url": "https://github.com/doctrine/lexer.git", - "reference": "39ab8fcf5a51ce4b85ca97c7a7d033eb12831124" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/lexer/zipball/39ab8fcf5a51ce4b85ca97c7a7d033eb12831124", - "reference": "39ab8fcf5a51ce4b85ca97c7a7d033eb12831124", - "shasum": "" - }, - "require": { - "doctrine/deprecations": "^1.0", - "php": "^7.1 || ^8.0" - }, - "require-dev": { - "doctrine/coding-standard": "^9 || ^10", - "phpstan/phpstan": "^1.3", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "psalm/plugin-phpunit": "^0.18.3", - "vimeo/psalm": "^4.11 || ^5.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\Common\\Lexer\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com" - } - ], - "description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.", - "homepage": "https://www.doctrine-project.org/projects/lexer.html", - "keywords": [ - "annotations", - "docblock", - "lexer", - "parser", - "php" - ], - "time": "2022-12-14T08:49:07+00:00" - }, - { - "name": "friendsofphp/php-cs-fixer", - "version": "v2.19.3", - "source": { - "type": "git", - "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", - "reference": "75ac86f33fab4714ea5a39a396784d83ae3b5ed8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/75ac86f33fab4714ea5a39a396784d83ae3b5ed8", - "reference": "75ac86f33fab4714ea5a39a396784d83ae3b5ed8", - "shasum": "" - }, - "require": { - "composer/semver": "^1.4 || ^2.0 || ^3.0", - "composer/xdebug-handler": "^1.2 || ^2.0", - "doctrine/annotations": "^1.2", - "ext-json": "*", - "ext-tokenizer": "*", - "php": "^5.6 || ^7.0 || ^8.0", - "php-cs-fixer/diff": "^1.3", - "symfony/console": "^3.4.43 || ^4.1.6 || ^5.0", - "symfony/event-dispatcher": "^3.0 || ^4.0 || ^5.0", - "symfony/filesystem": "^3.0 || ^4.0 || ^5.0", - "symfony/finder": "^3.0 || ^4.0 || ^5.0", - "symfony/options-resolver": "^3.0 || ^4.0 || ^5.0", - "symfony/polyfill-php70": "^1.0", - "symfony/polyfill-php72": "^1.4", - "symfony/process": "^3.0 || ^4.0 || ^5.0", - "symfony/stopwatch": "^3.0 || ^4.0 || ^5.0" - }, - "require-dev": { - "justinrainbow/json-schema": "^5.0", - "keradus/cli-executor": "^1.4", - "mikey179/vfsstream": "^1.6", - "php-coveralls/php-coveralls": "^2.4.2", - "php-cs-fixer/accessible-object": "^1.0", - "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2", - "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1", - "phpspec/prophecy-phpunit": "^1.1 || ^2.0", - "phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.13 || ^9.5", - "phpunitgoodpractices/polyfill": "^1.5", - "phpunitgoodpractices/traits": "^1.9.1", - "sanmai/phpunit-legacy-adapter": "^6.4 || ^8.2.1", - "symfony/phpunit-bridge": "^5.2.1", - "symfony/yaml": "^3.0 || ^4.0 || ^5.0" - }, - "suggest": { - "ext-dom": "For handling output formats in XML", - "ext-mbstring": "For handling non-UTF8 characters.", - "php-cs-fixer/phpunit-constraint-isidenticalstring": "For IsIdenticalString constraint.", - "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "For XmlMatchesXsd constraint.", - "symfony/polyfill-mbstring": "When enabling `ext-mbstring` is not possible." - }, - "bin": [ - "php-cs-fixer" - ], - "type": "application", - "extra": { - "branch-alias": { - "dev-master": "2.19-dev" - } - }, - "autoload": { - "psr-4": { - "PhpCsFixer\\": "src/" - }, - "classmap": [ - "tests/Test/AbstractFixerTestCase.php", - "tests/Test/AbstractIntegrationCaseFactory.php", - "tests/Test/AbstractIntegrationTestCase.php", - "tests/Test/Assert/AssertTokensTrait.php", - "tests/Test/IntegrationCase.php", - "tests/Test/IntegrationCaseFactory.php", - "tests/Test/IntegrationCaseFactoryInterface.php", - "tests/Test/InternalIntegrationCaseFactory.php", - "tests/Test/IsIdenticalConstraint.php", - "tests/Test/TokensWithObservedTransformers.php", - "tests/TestCase.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Dariusz RumiƄski", - "email": "dariusz.ruminski@gmail.com" - } - ], - "description": "A tool to automatically fix PHP code style", - "time": "2021-11-15T17:17:55+00:00" - }, - { - "name": "myclabs/deep-copy", - "version": "1.11.0", - "source": { - "type": "git", - "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", - "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "conflict": { - "doctrine/collections": "<1.6.8", - "doctrine/common": "<2.13.3 || >=3,<3.2.2" - }, - "require-dev": { - "doctrine/collections": "^1.6.8", - "doctrine/common": "^2.13.3 || ^3.2.2", - "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" - }, - "type": "library", - "autoload": { - "files": [ - "src/DeepCopy/deep_copy.php" - ], - "psr-4": { - "DeepCopy\\": "src/DeepCopy/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Create deep copies (clones) of your objects", - "keywords": [ - "clone", - "copy", - "duplicate", - "object", - "object graph" - ], - "time": "2022-03-03T13:19:32+00:00" - }, - { - "name": "phar-io/manifest", - "version": "2.0.3", - "source": { - "type": "git", - "url": "https://github.com/phar-io/manifest.git", - "reference": "97803eca37d319dfa7826cc2437fc020857acb53" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", - "reference": "97803eca37d319dfa7826cc2437fc020857acb53", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-phar": "*", - "ext-xmlwriter": "*", - "phar-io/version": "^3.0.1", - "php": "^7.2 || ^8.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - }, - { - "name": "Sebastian Heuer", - "email": "sebastian@phpeople.de", - "role": "Developer" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "Developer" - } - ], - "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", - "time": "2021-07-20T11:28:43+00:00" - }, - { - "name": "phar-io/version", - "version": "3.2.1", - "source": { - "type": "git", - "url": "https://github.com/phar-io/version.git", - "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", - "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" + "php": "^7.2 || ^8.0" }, "type": "library", "autoload": { @@ -1603,72 +1306,24 @@ } ], "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, "time": "2022-02-21T01:04:05+00:00" }, { - "name": "php-cs-fixer/diff", - "version": "v1.3.1", + "name": "phpunit/php-code-coverage", + "version": "7.0.17", "source": { "type": "git", - "url": "https://github.com/PHP-CS-Fixer/diff.git", - "reference": "dbd31aeb251639ac0b9e7e29405c1441907f5759" + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "40a4ed114a4aea5afd6df8d0f0c9cd3033097f66" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/diff/zipball/dbd31aeb251639ac0b9e7e29405c1441907f5759", - "reference": "dbd31aeb251639ac0b9e7e29405c1441907f5759", - "shasum": "" - }, - "require": { - "php": "^5.6 || ^7.0 || ^8.0" - }, - "require-dev": { - "phpunit/phpunit": "^5.7.23 || ^6.4.3 || ^7.0", - "symfony/process": "^3.3" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - }, - { - "name": "SpacePossum" - } - ], - "description": "sebastian/diff v2 backport support for PHP5.6", - "homepage": "https://github.com/PHP-CS-Fixer", - "keywords": [ - "diff" - ], - "abandoned": true, - "time": "2020-10-14T08:39:05+00:00" - }, - { - "name": "phpunit/php-code-coverage", - "version": "7.0.15", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "819f92bba8b001d4363065928088de22f25a3a48" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/819f92bba8b001d4363065928088de22f25a3a48", - "reference": "819f92bba8b001d4363065928088de22f25a3a48", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/40a4ed114a4aea5afd6df8d0f0c9cd3033097f66", + "reference": "40a4ed114a4aea5afd6df8d0f0c9cd3033097f66", "shasum": "" }, "require": { @@ -1677,1051 +1332,22 @@ "php": ">=7.2", "phpunit/php-file-iterator": "^2.0.2", "phpunit/php-text-template": "^1.2.1", - "phpunit/php-token-stream": "^3.1.3 || ^4.0", - "sebastian/code-unit-reverse-lookup": "^1.0.1", - "sebastian/environment": "^4.2.2", - "sebastian/version": "^2.0.1", - "theseer/tokenizer": "^1.1.3" - }, - "require-dev": { - "phpunit/phpunit": "^8.2.2" - }, - "suggest": { - "ext-xdebug": "^2.7.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "7.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", - "homepage": "https://github.com/sebastianbergmann/php-code-coverage", - "keywords": [ - "coverage", - "testing", - "xunit" - ], - "time": "2021-07-26T12:20:09+00:00" - }, - { - "name": "phpunit/php-file-iterator", - "version": "2.0.5", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5", - "reference": "42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "require-dev": { - "phpunit/phpunit": "^8.5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "FilterIterator implementation that filters files based on a list of suffixes.", - "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", - "keywords": [ - "filesystem", - "iterator" - ], - "time": "2021-12-02T12:42:26+00:00" - }, - { - "name": "phpunit/php-text-template", - "version": "1.2.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", - "keywords": [ - "template" - ], - "time": "2015-06-21T13:50:34+00:00" - }, - { - "name": "phpunit/php-timer", - "version": "2.1.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "2454ae1765516d20c4ffe103d85a58a9a3bd5662" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/2454ae1765516d20c4ffe103d85a58a9a3bd5662", - "reference": "2454ae1765516d20c4ffe103d85a58a9a3bd5662", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "require-dev": { - "phpunit/phpunit": "^8.5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.1-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", - "keywords": [ - "timer" - ], - "time": "2020-11-30T08:20:02+00:00" - }, - { - "name": "phpunit/php-token-stream", - "version": "4.0.4", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "a853a0e183b9db7eed023d7933a858fa1c8d25a3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/a853a0e183b9db7eed023d7933a858fa1c8d25a3", - "reference": "a853a0e183b9db7eed023d7933a858fa1c8d25a3", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "php": "^7.3 || ^8.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Wrapper around PHP's tokenizer extension.", - "homepage": "https://github.com/sebastianbergmann/php-token-stream/", - "keywords": [ - "tokenizer" - ], - "abandoned": true, - "time": "2020-08-04T08:28:15+00:00" - }, - { - "name": "phpunit/phpunit", - "version": "8.5.33", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "7d1ff0e8c6b35db78ff13e3e05517d7cbf7aa32e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/7d1ff0e8c6b35db78ff13e3e05517d7cbf7aa32e", - "reference": "7d1ff0e8c6b35db78ff13e3e05517d7cbf7aa32e", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.3.1", - "ext-dom": "*", - "ext-json": "*", - "ext-libxml": "*", - "ext-mbstring": "*", - "ext-xml": "*", - "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.10.0", - "phar-io/manifest": "^2.0.3", - "phar-io/version": "^3.0.2", - "php": ">=7.2", - "phpunit/php-code-coverage": "^7.0.12", - "phpunit/php-file-iterator": "^2.0.4", - "phpunit/php-text-template": "^1.2.1", - "phpunit/php-timer": "^2.1.2", - "sebastian/comparator": "^3.0.5", - "sebastian/diff": "^3.0.2", - "sebastian/environment": "^4.2.3", - "sebastian/exporter": "^3.1.5", - "sebastian/global-state": "^3.0.0", - "sebastian/object-enumerator": "^3.0.3", - "sebastian/resource-operations": "^2.0.1", - "sebastian/type": "^1.1.3", - "sebastian/version": "^2.0.1" - }, - "suggest": { - "ext-soap": "*", - "ext-xdebug": "*", - "phpunit/php-invoker": "^2.0.0" - }, - "bin": [ - "phpunit" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "8.5-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "The PHP Unit Testing framework.", - "homepage": "https://phpunit.de/", - "keywords": [ - "phpunit", - "testing", - "xunit" - ], - "time": "2023-02-27T13:04:50+00:00" - }, - { - "name": "psr/cache", - "version": "1.0.1", - "source": { - "type": "git", - "url": "https://github.com/php-fig/cache.git", - "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8", - "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Cache\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common interface for caching libraries", - "keywords": [ - "cache", - "psr", - "psr-6" - ], - "time": "2016-08-06T20:24:11+00:00" - }, - { - "name": "psr/container", - "version": "1.1.2", - "source": { - "type": "git", - "url": "https://github.com/php-fig/container.git", - "reference": "513e0666f7216c7459170d56df27dfcefe1689ea" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea", - "reference": "513e0666f7216c7459170d56df27dfcefe1689ea", - "shasum": "" - }, - "require": { - "php": ">=7.4.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Psr\\Container\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common Container Interface (PHP FIG PSR-11)", - "homepage": "https://github.com/php-fig/container", - "keywords": [ - "PSR-11", - "container", - "container-interface", - "container-interop", - "psr" - ], - "time": "2021-11-05T16:50:12+00:00" - }, - { - "name": "psr/event-dispatcher", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/event-dispatcher.git", - "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", - "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", - "shasum": "" - }, - "require": { - "php": ">=7.2.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\EventDispatcher\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Standard interfaces for event handling.", - "keywords": [ - "events", - "psr", - "psr-14" - ], - "time": "2019-01-08T18:20:26+00:00" - }, - { - "name": "psr/log", - "version": "1.1.4", - "source": { - "type": "git", - "url": "https://github.com/php-fig/log.git", - "reference": "d49695b909c3b7628b6289db5479a1c204601f11" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", - "reference": "d49695b909c3b7628b6289db5479a1c204601f11", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Log\\": "Psr/Log/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common interface for logging libraries", - "homepage": "https://github.com/php-fig/log", - "keywords": [ - "log", - "psr", - "psr-3" - ], - "time": "2021-05-03T11:20:27+00:00" - }, - { - "name": "sebastian/code-unit-reverse-lookup", - "version": "1.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/1de8cd5c010cb153fcd68b8d0f64606f523f7619", - "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619", - "shasum": "" - }, - "require": { - "php": ">=5.6" - }, - "require-dev": { - "phpunit/phpunit": "^8.5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Looks up which function or method a line of code belongs to", - "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", - "time": "2020-11-30T08:15:22+00:00" - }, - { - "name": "sebastian/comparator", - "version": "3.0.5", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1dc7ceb4a24aede938c7af2a9ed1de09609ca770", - "reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770", - "shasum": "" - }, - "require": { - "php": ">=7.1", - "sebastian/diff": "^3.0", - "sebastian/exporter": "^3.1" - }, - "require-dev": { - "phpunit/phpunit": "^8.5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" - } - ], - "description": "Provides the functionality to compare PHP values for equality", - "homepage": "https://github.com/sebastianbergmann/comparator", - "keywords": [ - "comparator", - "compare", - "equality" - ], - "time": "2022-09-14T12:31:48+00:00" - }, - { - "name": "sebastian/diff", - "version": "3.0.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "14f72dd46eaf2f2293cbe79c93cc0bc43161a211" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/14f72dd46eaf2f2293cbe79c93cc0bc43161a211", - "reference": "14f72dd46eaf2f2293cbe79c93cc0bc43161a211", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "require-dev": { - "phpunit/phpunit": "^7.5 || ^8.0", - "symfony/process": "^2 || ^3.3 || ^4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - } - ], - "description": "Diff implementation", - "homepage": "https://github.com/sebastianbergmann/diff", - "keywords": [ - "diff", - "udiff", - "unidiff", - "unified diff" - ], - "time": "2020-11-30T07:59:04+00:00" - }, - { - "name": "sebastian/environment", - "version": "4.2.4", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "d47bbbad83711771f167c72d4e3f25f7fcc1f8b0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/d47bbbad83711771f167c72d4e3f25f7fcc1f8b0", - "reference": "d47bbbad83711771f167c72d4e3f25f7fcc1f8b0", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "require-dev": { - "phpunit/phpunit": "^7.5" - }, - "suggest": { - "ext-posix": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.2-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "http://www.github.com/sebastianbergmann/environment", - "keywords": [ - "Xdebug", - "environment", - "hhvm" - ], - "time": "2020-11-30T07:53:42+00:00" - }, - { - "name": "sebastian/exporter", - "version": "3.1.5", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "73a9676f2833b9a7c36968f9d882589cd75511e6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/73a9676f2833b9a7c36968f9d882589cd75511e6", - "reference": "73a9676f2833b9a7c36968f9d882589cd75511e6", - "shasum": "" - }, - "require": { - "php": ">=7.0", - "sebastian/recursion-context": "^3.0" - }, - "require-dev": { - "ext-mbstring": "*", - "phpunit/phpunit": "^8.5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.1.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - } - ], - "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "http://www.github.com/sebastianbergmann/exporter", - "keywords": [ - "export", - "exporter" - ], - "time": "2022-09-14T06:00:17+00:00" - }, - { - "name": "sebastian/global-state", - "version": "3.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "de036ec91d55d2a9e0db2ba975b512cdb1c23921" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/de036ec91d55d2a9e0db2ba975b512cdb1c23921", - "reference": "de036ec91d55d2a9e0db2ba975b512cdb1c23921", - "shasum": "" - }, - "require": { - "php": ">=7.2", - "sebastian/object-reflector": "^1.1.1", - "sebastian/recursion-context": "^3.0" - }, - "require-dev": { - "ext-dom": "*", - "phpunit/phpunit": "^8.0" - }, - "suggest": { - "ext-uopz": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Snapshotting of global state", - "homepage": "http://www.github.com/sebastianbergmann/global-state", - "keywords": [ - "global state" - ], - "time": "2022-02-10T06:55:38+00:00" - }, - { - "name": "sebastian/object-enumerator", - "version": "3.0.4", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2", - "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2", - "shasum": "" - }, - "require": { - "php": ">=7.0", - "sebastian/object-reflector": "^1.1.1", - "sebastian/recursion-context": "^3.0" - }, - "require-dev": { - "phpunit/phpunit": "^6.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Traverses array structures and object graphs to enumerate all referenced objects", - "homepage": "https://github.com/sebastianbergmann/object-enumerator/", - "time": "2020-11-30T07:40:27+00:00" - }, - { - "name": "sebastian/object-reflector", - "version": "1.1.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/9b8772b9cbd456ab45d4a598d2dd1a1bced6363d", - "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d", - "shasum": "" - }, - "require": { - "php": ">=7.0" - }, - "require-dev": { - "phpunit/phpunit": "^6.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Allows reflection of object attributes, including inherited and non-public ones", - "homepage": "https://github.com/sebastianbergmann/object-reflector/", - "time": "2020-11-30T07:37:18+00:00" - }, - { - "name": "sebastian/recursion-context", - "version": "3.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/367dcba38d6e1977be014dc4b22f47a484dac7fb", - "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb", - "shasum": "" - }, - "require": { - "php": ">=7.0" - }, - "require-dev": { - "phpunit/phpunit": "^6.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - } - ], - "description": "Provides functionality to recursively process PHP variables", - "homepage": "http://www.github.com/sebastianbergmann/recursion-context", - "time": "2020-11-30T07:34:24+00:00" - }, - { - "name": "sebastian/resource-operations", - "version": "2.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "31d35ca87926450c44eae7e2611d45a7a65ea8b3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/31d35ca87926450c44eae7e2611d45a7a65ea8b3", - "reference": "31d35ca87926450c44eae7e2611d45a7a65ea8b3", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides a list of PHP built-in functions that operate on resources", - "homepage": "https://www.github.com/sebastianbergmann/resource-operations", - "time": "2020-11-30T07:30:19+00:00" - }, - { - "name": "sebastian/type", - "version": "1.1.4", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/type.git", - "reference": "0150cfbc4495ed2df3872fb31b26781e4e077eb4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/0150cfbc4495ed2df3872fb31b26781e4e077eb4", - "reference": "0150cfbc4495ed2df3872fb31b26781e4e077eb4", - "shasum": "" - }, - "require": { - "php": ">=7.2" + "phpunit/php-token-stream": "^3.1.3 || ^4.0", + "sebastian/code-unit-reverse-lookup": "^1.0.1", + "sebastian/environment": "^4.2.2", + "sebastian/version": "^2.0.1", + "theseer/tokenizer": "^1.1.3" }, "require-dev": { - "phpunit/phpunit": "^8.2" + "phpunit/phpunit": "^8.2.2" + }, + "suggest": { + "ext-xdebug": "^2.7.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-master": "7.0-dev" } }, "autoload": { @@ -2740,26 +1366,44 @@ "role": "lead" } ], - "description": "Collection of value objects that represent the types of the PHP type system", - "homepage": "https://github.com/sebastianbergmann/type", - "time": "2020-11-30T07:25:11+00:00" + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/7.0.17" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T06:09:37+00:00" }, { - "name": "sebastian/version", - "version": "2.0.1", + "name": "phpunit/php-file-iterator", + "version": "2.0.6", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/version.git", - "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "69deeb8664f611f156a924154985fbd4911eb36b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", - "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/69deeb8664f611f156a924154985fbd4911eb36b", + "reference": "69deeb8664f611f156a924154985fbd4911eb36b", "shasum": "" }, "require": { - "php": ">=5.6" + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" }, "type": "library", "extra": { @@ -2783,68 +1427,45 @@ "role": "lead" } ], - "description": "Library that helps with managing the version number of Git-hosted PHP projects", - "homepage": "https://github.com/sebastianbergmann/version", - "time": "2016-10-03T07:35:21+00:00" + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/2.0.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-01T13:39:50+00:00" }, { - "name": "squizlabs/php_codesniffer", - "version": "2.9.2", + "name": "phpunit/php-text-template", + "version": "1.2.1", "source": { "type": "git", - "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "2acf168de78487db620ab4bc524135a13cfe6745" + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/2acf168de78487db620ab4bc524135a13cfe6745", - "reference": "2acf168de78487db620ab4bc524135a13cfe6745", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", "shasum": "" }, "require": { - "ext-simplexml": "*", - "ext-tokenizer": "*", - "ext-xmlwriter": "*", - "php": ">=5.1.2" - }, - "require-dev": { - "phpunit/phpunit": "~4.0" + "php": ">=5.3.3" }, - "bin": [ - "scripts/phpcs", - "scripts/phpcbf" - ], "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.x-dev" - } - }, "autoload": { "classmap": [ - "CodeSniffer.php", - "CodeSniffer/CLI.php", - "CodeSniffer/Exception.php", - "CodeSniffer/File.php", - "CodeSniffer/Fixer.php", - "CodeSniffer/Report.php", - "CodeSniffer/Reporting.php", - "CodeSniffer/Sniff.php", - "CodeSniffer/Tokens.php", - "CodeSniffer/Reports/", - "CodeSniffer/Tokenizers/", - "CodeSniffer/DocGenerators/", - "CodeSniffer/Standards/AbstractPatternSniff.php", - "CodeSniffer/Standards/AbstractScopeSniff.php", - "CodeSniffer/Standards/AbstractVariableSniff.php", - "CodeSniffer/Standards/IncorrectPatternException.php", - "CodeSniffer/Standards/Generic/Sniffs/", - "CodeSniffer/Standards/MySource/Sniffs/", - "CodeSniffer/Standards/PEAR/Sniffs/", - "CodeSniffer/Standards/PSR1/Sniffs/", - "CodeSniffer/Standards/PSR2/Sniffs/", - "CodeSniffer/Standards/Squiz/Sniffs/", - "CodeSniffer/Standards/Zend/Sniffs/" + "src/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -2853,915 +1474,978 @@ ], "authors": [ { - "name": "Greg Sherwood", + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", "role": "lead" } ], - "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", - "homepage": "http://www.squizlabs.com/php-codesniffer", + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", "keywords": [ - "phpcs", - "standards" + "template" ], - "time": "2018-11-07T22:31:41+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/1.2.1" + }, + "time": "2015-06-21T13:50:34+00:00" }, { - "name": "symfony/console", - "version": "v5.4.21", + "name": "phpunit/php-timer", + "version": "2.1.4", "source": { "type": "git", - "url": "https://github.com/symfony/console.git", - "reference": "c77433ddc6cdc689caf48065d9ea22ca0853fbd9" + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "a691211e94ff39a34811abd521c31bd5b305b0bb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/c77433ddc6cdc689caf48065d9ea22ca0853fbd9", - "reference": "c77433ddc6cdc689caf48065d9ea22ca0853fbd9", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/a691211e94ff39a34811abd521c31bd5b305b0bb", + "reference": "a691211e94ff39a34811abd521c31bd5b305b0bb", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php73": "^1.9", - "symfony/polyfill-php80": "^1.16", - "symfony/service-contracts": "^1.1|^2|^3", - "symfony/string": "^5.1|^6.0" - }, - "conflict": { - "psr/log": ">=3", - "symfony/dependency-injection": "<4.4", - "symfony/dotenv": "<5.1", - "symfony/event-dispatcher": "<4.4", - "symfony/lock": "<4.4", - "symfony/process": "<4.4" - }, - "provide": { - "psr/log-implementation": "1.0|2.0" + "php": ">=7.1" }, "require-dev": { - "psr/log": "^1|^2", - "symfony/config": "^4.4|^5.0|^6.0", - "symfony/dependency-injection": "^4.4|^5.0|^6.0", - "symfony/event-dispatcher": "^4.4|^5.0|^6.0", - "symfony/lock": "^4.4|^5.0|^6.0", - "symfony/process": "^4.4|^5.0|^6.0", - "symfony/var-dumper": "^4.4|^5.0|^6.0" - }, - "suggest": { - "psr/log": "For using the console logger", - "symfony/event-dispatcher": "", - "symfony/lock": "", - "symfony/process": "" + "phpunit/phpunit": "^8.5" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" + } + }, "autoload": { - "psr-4": { - "Symfony\\Component\\Console\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" + "classmap": [ + "src/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Eases the creation of beautiful and testable command line interfaces", - "homepage": "https://symfony.com", + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", "keywords": [ - "cli", - "command line", - "console", - "terminal" + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/2.1.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } ], - "time": "2023-02-25T16:59:41+00:00" + "time": "2024-03-01T13:42:41+00:00" }, { - "name": "symfony/event-dispatcher", - "version": "v5.4.21", + "name": "phpunit/php-token-stream", + "version": "4.0.4", "source": { "type": "git", - "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "f0ae1383a8285dfc6752b8d8602790953118ff5a" + "url": "https://github.com/sebastianbergmann/php-token-stream.git", + "reference": "a853a0e183b9db7eed023d7933a858fa1c8d25a3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/f0ae1383a8285dfc6752b8d8602790953118ff5a", - "reference": "f0ae1383a8285dfc6752b8d8602790953118ff5a", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/a853a0e183b9db7eed023d7933a858fa1c8d25a3", + "reference": "a853a0e183b9db7eed023d7933a858fa1c8d25a3", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/event-dispatcher-contracts": "^2|^3", - "symfony/polyfill-php80": "^1.16" - }, - "conflict": { - "symfony/dependency-injection": "<4.4" - }, - "provide": { - "psr/event-dispatcher-implementation": "1.0", - "symfony/event-dispatcher-implementation": "2.0" + "ext-tokenizer": "*", + "php": "^7.3 || ^8.0" }, "require-dev": { - "psr/log": "^1|^2|^3", - "symfony/config": "^4.4|^5.0|^6.0", - "symfony/dependency-injection": "^4.4|^5.0|^6.0", - "symfony/error-handler": "^4.4|^5.0|^6.0", - "symfony/expression-language": "^4.4|^5.0|^6.0", - "symfony/http-foundation": "^4.4|^5.0|^6.0", - "symfony/service-contracts": "^1.1|^2|^3", - "symfony/stopwatch": "^4.4|^5.0|^6.0" - }, - "suggest": { - "symfony/dependency-injection": "", - "symfony/http-kernel": "" + "phpunit/phpunit": "^9.0" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, "autoload": { - "psr-4": { - "Symfony\\Component\\EventDispatcher\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" + "classmap": [ + "src/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Wrapper around PHP's tokenizer extension.", + "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "keywords": [ + "tokenizer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-token-stream/issues", + "source": "https://github.com/sebastianbergmann/php-token-stream/tree/master" + }, + "funding": [ { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "url": "https://github.com/sebastianbergmann", + "type": "github" } ], - "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", - "homepage": "https://symfony.com", - "time": "2023-02-14T08:03:56+00:00" + "abandoned": true, + "time": "2020-08-04T08:28:15+00:00" }, { - "name": "symfony/event-dispatcher-contracts", - "version": "v2.5.2", + "name": "phpunit/phpunit", + "version": "8.5.33", "source": { "type": "git", - "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "f98b54df6ad059855739db6fcbc2d36995283fe1" + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "7d1ff0e8c6b35db78ff13e3e05517d7cbf7aa32e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/f98b54df6ad059855739db6fcbc2d36995283fe1", - "reference": "f98b54df6ad059855739db6fcbc2d36995283fe1", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/7d1ff0e8c6b35db78ff13e3e05517d7cbf7aa32e", + "reference": "7d1ff0e8c6b35db78ff13e3e05517d7cbf7aa32e", "shasum": "" }, "require": { - "php": ">=7.2.5", - "psr/event-dispatcher": "^1" + "doctrine/instantiator": "^1.3.1", + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.10.0", + "phar-io/manifest": "^2.0.3", + "phar-io/version": "^3.0.2", + "php": ">=7.2", + "phpunit/php-code-coverage": "^7.0.12", + "phpunit/php-file-iterator": "^2.0.4", + "phpunit/php-text-template": "^1.2.1", + "phpunit/php-timer": "^2.1.2", + "sebastian/comparator": "^3.0.5", + "sebastian/diff": "^3.0.2", + "sebastian/environment": "^4.2.3", + "sebastian/exporter": "^3.1.5", + "sebastian/global-state": "^3.0.0", + "sebastian/object-enumerator": "^3.0.3", + "sebastian/resource-operations": "^2.0.1", + "sebastian/type": "^1.1.3", + "sebastian/version": "^2.0.1" }, "suggest": { - "symfony/event-dispatcher-implementation": "" + "ext-soap": "*", + "ext-xdebug": "*", + "phpunit/php-invoker": "^2.0.0" }, + "bin": [ + "phpunit" + ], "type": "library", "extra": { "branch-alias": { - "dev-main": "2.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" + "dev-master": "8.5-dev" } }, "autoload": { - "psr-4": { - "Symfony\\Contracts\\EventDispatcher\\": "" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "source": "https://github.com/sebastianbergmann/phpunit/tree/8.5.33" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsors.html", + "type": "custom" }, { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" } ], - "description": "Generic abstractions related to dispatching event", - "homepage": "https://symfony.com", - "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" - ], - "time": "2022-01-02T09:53:40+00:00" + "time": "2023-02-27T13:04:50+00:00" }, { - "name": "symfony/filesystem", - "version": "v5.4.21", + "name": "sebastian/code-unit-reverse-lookup", + "version": "1.0.3", "source": { "type": "git", - "url": "https://github.com/symfony/filesystem.git", - "reference": "e75960b1bbfd2b8c9e483e0d74811d555ca3de9f" + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "92a1a52e86d34cde6caa54f1b5ffa9fda18e5d54" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/e75960b1bbfd2b8c9e483e0d74811d555ca3de9f", - "reference": "e75960b1bbfd2b8c9e483e0d74811d555ca3de9f", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/92a1a52e86d34cde6caa54f1b5ffa9fda18e5d54", + "reference": "92a1a52e86d34cde6caa54f1b5ffa9fda18e5d54", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-mbstring": "~1.8", - "symfony/polyfill-php80": "^1.16" + "php": ">=5.6" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" }, "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\Filesystem\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/1.0.3" + }, + "funding": [ { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "url": "https://github.com/sebastianbergmann", + "type": "github" } ], - "description": "Provides basic utilities for the filesystem", - "homepage": "https://symfony.com", - "time": "2023-02-14T08:03:56+00:00" + "time": "2024-03-01T13:45:45+00:00" }, { - "name": "symfony/finder", - "version": "v5.4.21", + "name": "sebastian/comparator", + "version": "3.0.5", "source": { "type": "git", - "url": "https://github.com/symfony/finder.git", - "reference": "078e9a5e1871fcfe6a5ce421b539344c21afef19" + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/078e9a5e1871fcfe6a5ce421b539344c21afef19", - "reference": "078e9a5e1871fcfe6a5ce421b539344c21afef19", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1dc7ceb4a24aede938c7af2a9ed1de09609ca770", + "reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-php80": "^1.16" + "php": ">=7.1", + "sebastian/diff": "^3.0", + "sebastian/exporter": "^3.1" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, "autoload": { - "psr-4": { - "Symfony\\Component\\Finder\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" + "classmap": [ + "src/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" }, { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" } ], - "description": "Finds files and directories via an intuitive fluent interface", - "homepage": "https://symfony.com", - "time": "2023-02-16T09:33:00+00:00" + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "source": "https://github.com/sebastianbergmann/comparator/tree/3.0.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-09-14T12:31:48+00:00" }, { - "name": "symfony/options-resolver", - "version": "v5.4.21", + "name": "sebastian/diff", + "version": "3.0.6", "source": { "type": "git", - "url": "https://github.com/symfony/options-resolver.git", - "reference": "4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9" + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "98ff311ca519c3aa73ccd3de053bdb377171d7b6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9", - "reference": "4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/98ff311ca519c3aa73ccd3de053bdb377171d7b6", + "reference": "98ff311ca519c3aa73ccd3de053bdb377171d7b6", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-php73": "~1.0", - "symfony/polyfill-php80": "^1.16" + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^7.5 || ^8.0", + "symfony/process": "^2 || ^3.3 || ^4" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, "autoload": { - "psr-4": { - "Symfony\\Component\\OptionsResolver\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" + "classmap": [ + "src/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" }, { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" } ], - "description": "Provides an improved replacement for the array_replace PHP function", - "homepage": "https://symfony.com", + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", "keywords": [ - "config", - "configuration", - "options" + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "source": "https://github.com/sebastianbergmann/diff/tree/3.0.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } ], - "time": "2023-02-14T08:03:56+00:00" + "time": "2024-03-02T06:16:36+00:00" }, { - "name": "symfony/polyfill-intl-grapheme", - "version": "v1.27.0", + "name": "sebastian/environment", + "version": "4.2.5", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "511a08c03c1960e08a883f4cffcacd219b758354" + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "56932f6049a0482853056ffd617c91ffcc754205" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/511a08c03c1960e08a883f4cffcacd219b758354", - "reference": "511a08c03c1960e08a883f4cffcacd219b758354", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/56932f6049a0482853056ffd617c91ffcc754205", + "reference": "56932f6049a0482853056ffd617c91ffcc754205", "shasum": "" }, "require": { "php": ">=7.1" }, + "require-dev": { + "phpunit/phpunit": "^7.5" + }, "suggest": { - "ext-intl": "For best performance" + "ext-posix": "*" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "1.27-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "dev-master": "4.2-dev" } }, "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Intl\\Grapheme\\": "" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" } ], - "description": "Symfony polyfill for intl's grapheme_* functions", - "homepage": "https://symfony.com", + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", "keywords": [ - "compatibility", - "grapheme", - "intl", - "polyfill", - "portable", - "shim" + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "source": "https://github.com/sebastianbergmann/environment/tree/4.2.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } ], - "time": "2022-11-03T14:55:06+00:00" + "time": "2024-03-01T13:49:59+00:00" }, { - "name": "symfony/polyfill-intl-normalizer", - "version": "v1.27.0", + "name": "sebastian/exporter", + "version": "3.1.6", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6" + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "1939bc8fd1d39adcfa88c5b35335910869214c56" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/19bd1e4fcd5b91116f14d8533c57831ed00571b6", - "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/1939bc8fd1d39adcfa88c5b35335910869214c56", + "reference": "1939bc8fd1d39adcfa88c5b35335910869214c56", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2", + "sebastian/recursion-context": "^3.0" }, - "suggest": { - "ext-intl": "For best performance" + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "^8.5" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "1.27-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "dev-master": "3.1.x-dev" } }, "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Intl\\Normalizer\\": "" - }, "classmap": [ - "Resources/stubs" + "src/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" }, { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" } ], - "description": "Symfony polyfill for intl's Normalizer class and related functions", - "homepage": "https://symfony.com", + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "http://www.github.com/sebastianbergmann/exporter", "keywords": [ - "compatibility", - "intl", - "normalizer", - "polyfill", - "portable", - "shim" + "export", + "exporter" ], - "time": "2022-11-03T14:55:06+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/3.1.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T06:21:38+00:00" }, { - "name": "symfony/polyfill-php70", - "version": "v1.20.0", + "name": "sebastian/global-state", + "version": "3.0.5", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-php70.git", - "reference": "5f03a781d984aae42cebd18e7912fa80f02ee644" + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "91c7c47047a971f02de57ed6f040087ef110c5d9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/5f03a781d984aae42cebd18e7912fa80f02ee644", - "reference": "5f03a781d984aae42cebd18e7912fa80f02ee644", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/91c7c47047a971f02de57ed6f040087ef110c5d9", + "reference": "91c7c47047a971f02de57ed6f040087ef110c5d9", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2", + "sebastian/object-reflector": "^1.1.1", + "sebastian/recursion-context": "^3.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^8.0" + }, + "suggest": { + "ext-uopz": "*" }, - "type": "metapackage", + "type": "library", "extra": { "branch-alias": { - "dev-main": "1.20-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "dev-master": "3.0-dev" } }, + "autoload": { + "classmap": [ + "src/" + ] + }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "source": "https://github.com/sebastianbergmann/global-state/tree/3.0.5" + }, + "funding": [ { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "url": "https://github.com/sebastianbergmann", + "type": "github" } ], - "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "time": "2020-10-23T14:02:19+00:00" + "time": "2024-03-02T06:13:16+00:00" }, { - "name": "symfony/polyfill-php72", - "version": "v1.27.0", + "name": "sebastian/object-enumerator", + "version": "3.0.5", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-php72.git", - "reference": "869329b1e9894268a8a61dabb69153029b7a8c97" + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "ac5b293dba925751b808e02923399fb44ff0d541" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/869329b1e9894268a8a61dabb69153029b7a8c97", - "reference": "869329b1e9894268a8a61dabb69153029b7a8c97", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/ac5b293dba925751b808e02923399fb44ff0d541", + "reference": "ac5b293dba925751b808e02923399fb44ff0d541", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.0", + "sebastian/object-reflector": "^1.1.1", + "sebastian/recursion-context": "^3.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "1.27-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "dev-master": "3.0.x-dev" } }, "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php72\\": "" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" } ], - "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/3.0.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } ], - "time": "2022-11-03T14:55:06+00:00" + "time": "2024-03-01T13:54:02+00:00" }, { - "name": "symfony/polyfill-php73", - "version": "v1.27.0", + "name": "sebastian/object-reflector", + "version": "1.1.3", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9" + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "1d439c229e61f244ff1f211e5c99737f90c67def" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/9e8ecb5f92152187c4799efd3c96b78ccab18ff9", - "reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/1d439c229e61f244ff1f211e5c99737f90c67def", + "reference": "1d439c229e61f244ff1f211e5c99737f90c67def", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "1.27-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "dev-master": "1.1-dev" } }, "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php73\\": "" - }, "classmap": [ - "Resources/stubs" + "src/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" } ], - "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/1.1.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } ], - "time": "2022-11-03T14:55:06+00:00" + "time": "2024-03-01T13:56:04+00:00" }, { - "name": "symfony/process", - "version": "v5.4.21", + "name": "sebastian/recursion-context", + "version": "3.0.2", "source": { "type": "git", - "url": "https://github.com/symfony/process.git", - "reference": "d4ce417ebcb0b7d090b4c178ed6d3accc518e8bd" + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "9bfd3c6f1f08c026f542032dfb42813544f7d64c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/d4ce417ebcb0b7d090b4c178ed6d3accc518e8bd", - "reference": "d4ce417ebcb0b7d090b4c178ed6d3accc518e8bd", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/9bfd3c6f1f08c026f542032dfb42813544f7d64c", + "reference": "9bfd3c6f1f08c026f542032dfb42813544f7d64c", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/polyfill-php80": "^1.16" + "php": ">=7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, "autoload": { - "psr-4": { - "Symfony\\Component\\Process\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" + "classmap": [ + "src/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" }, { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Adam Harvey", + "email": "aharvey@php.net" } ], - "description": "Executes commands in sub-processes", - "homepage": "https://symfony.com", - "time": "2023-02-21T19:46:44+00:00" + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/3.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-01T14:07:30+00:00" }, { - "name": "symfony/service-contracts", - "version": "v2.5.2", + "name": "sebastian/resource-operations", + "version": "2.0.3", "source": { "type": "git", - "url": "https://github.com/symfony/service-contracts.git", - "reference": "4b426aac47d6427cc1a1d0f7e2ac724627f5966c" + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "72a7f7674d053d548003b16ff5a106e7e0e06eee" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/4b426aac47d6427cc1a1d0f7e2ac724627f5966c", - "reference": "4b426aac47d6427cc1a1d0f7e2ac724627f5966c", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/72a7f7674d053d548003b16ff5a106e7e0e06eee", + "reference": "72a7f7674d053d548003b16ff5a106e7e0e06eee", "shasum": "" }, "require": { - "php": ">=7.2.5", - "psr/container": "^1.1", - "symfony/deprecation-contracts": "^2.1|^3" - }, - "conflict": { - "ext-psr": "<1.1|>=2" - }, - "suggest": { - "symfony/service-implementation": "" + "php": ">=7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "2.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" + "dev-master": "2.0-dev" } }, "autoload": { - "psr-4": { - "Symfony\\Contracts\\Service\\": "" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "support": { + "source": "https://github.com/sebastianbergmann/resource-operations/tree/2.0.3" + }, + "funding": [ { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "url": "https://github.com/sebastianbergmann", + "type": "github" } ], - "description": "Generic abstractions related to writing services", - "homepage": "https://symfony.com", - "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" - ], - "time": "2022-05-30T19:17:29+00:00" + "time": "2024-03-01T13:59:09+00:00" }, { - "name": "symfony/stopwatch", - "version": "v5.4.21", + "name": "sebastian/type", + "version": "1.1.5", "source": { "type": "git", - "url": "https://github.com/symfony/stopwatch.git", - "reference": "f83692cd869a6f2391691d40a01e8acb89e76fee" + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "18f071c3a29892b037d35e6b20ddf3ea39b42874" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/f83692cd869a6f2391691d40a01e8acb89e76fee", - "reference": "f83692cd869a6f2391691d40a01e8acb89e76fee", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/18f071c3a29892b037d35e6b20ddf3ea39b42874", + "reference": "18f071c3a29892b037d35e6b20ddf3ea39b42874", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/service-contracts": "^1|^2|^3" + "php": ">=7.2" + }, + "require-dev": { + "phpunit/phpunit": "^8.2" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, "autoload": { - "psr-4": { - "Symfony\\Component\\Stopwatch\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" + "classmap": [ + "src/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/1.1.5" + }, + "funding": [ { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "url": "https://github.com/sebastianbergmann", + "type": "github" } ], - "description": "Provides a way to profile code", - "homepage": "https://symfony.com", - "time": "2023-02-14T08:03:56+00:00" + "time": "2024-03-01T14:04:07+00:00" }, { - "name": "symfony/string", - "version": "v5.4.21", + "name": "sebastian/version", + "version": "2.0.1", "source": { "type": "git", - "url": "https://github.com/symfony/string.git", - "reference": "edac10d167b78b1d90f46a80320d632de0bd9f2f" + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/edac10d167b78b1d90f46a80320d632de0bd9f2f", - "reference": "edac10d167b78b1d90f46a80320d632de0bd9f2f", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-intl-grapheme": "~1.0", - "symfony/polyfill-intl-normalizer": "~1.0", - "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php80": "~1.15" - }, - "conflict": { - "symfony/translation-contracts": ">=3.0" - }, - "require-dev": { - "symfony/error-handler": "^4.4|^5.0|^6.0", - "symfony/http-client": "^4.4|^5.0|^6.0", - "symfony/translation-contracts": "^1.1|^2", - "symfony/var-exporter": "^4.4|^5.0|^6.0" + "php": ">=5.6" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, "autoload": { - "files": [ - "Resources/functions.php" - ], - "psr-4": { - "Symfony\\Component\\String\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" + "classmap": [ + "src/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", - "homepage": "https://symfony.com", - "keywords": [ - "grapheme", - "i18n", - "string", - "unicode", - "utf-8", - "utf8" - ], - "time": "2023-02-22T08:00:55+00:00" + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/master" + }, + "time": "2016-10-03T07:35:21+00:00" }, { "name": "theseer/tokenizer", - "version": "1.2.1", + "version": "1.2.3", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" + "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", - "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", + "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", "shasum": "" }, "require": { @@ -3788,7 +2472,17 @@ } ], "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", - "time": "2021-07-28T10:34:58+00:00" + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/1.2.3" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2024-03-03T12:36:25+00:00" } ], "aliases": [], @@ -3797,11 +2491,13 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=7.1", + "php": ">=8.1", "ext-curl": "*", "ext-json": "*", - "ext-mbstring": "*" + "ext-mbstring": "*", + "ext-zlib": "*", + "ext-openssl": "*" }, "platform-dev": [], - "plugin-api-version": "2.3.0" + "plugin-api-version": "2.6.0" } diff --git a/docker-compose.yml b/docker-compose.yml index bef1d6f3..d94eb86e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: '3' services: composer: - image: composer:1.9.3 + image: composer:2.7 environment: - COMPOSER_CACHE_DIR=/app/.cache/composer volumes: @@ -20,4 +20,10 @@ services: working_dir: /app entrypoint: vendor/bin/phpunit env_file: - - .env \ No newline at end of file + - .env + lint: + image: ghcr.io/php-cs-fixer/php-cs-fixer:${FIXER_VERSION:-3-php8.3} + volumes: + - .:/code + - ./.php-cs-fixer.php:/code/.php-cs-fixer.php + command: fix --config=/code/.php-cs-fixer.php /code/src \ No newline at end of file diff --git a/run_checks.php b/run_checks.php index f6f1abde..4f5831f2 100644 --- a/run_checks.php +++ b/run_checks.php @@ -1,7 +1,5 @@ client = $client ?: new Client(); $this->config = $config ?: new Configuration(); @@ -72,19 +72,19 @@ public function getConfig() return $this->config; } - /** - * Operation getEvent + * Operation getEvent. * * Get event by requestId * - * @param string $request_id The unique [identifier](https://dev.fingerprint.com/docs/js-agent#requestid) of each analysis request. (required) + * @param string $request_id The unique [identifier](https://dev.fingerprint.com/docs/js-agent#requestid) of each analysis request. (required) * - * @throws \Fingerprint\ServerAPI\ApiException on non-2xx response + * @return array{ null|\Fingerprint\ServerAPI\Model\EventResponse, \Psr\Http\Message\ResponseInterface } + * + * @throws ApiException on non-2xx response * @throws \InvalidArgumentException * @throws SerializationException * @throws GuzzleException - * @return array{ \Fingerprint\ServerAPI\Model\EventResponse|null, \Psr\Http\Message\ResponseInterface } */ public function getEvent($request_id) { @@ -93,32 +93,33 @@ public function getEvent($request_id) try { $options = $this->createHttpClientOption(); + try { $response = $this->client->send($request, $options); } catch (RequestException $e) { - $errorBody = $e->getResponse()->getBody()->getContents(); - $e->getResponse()->getBody()->rewind(); - throw new ApiException( + $apiException = new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $errorBody : null + $e->getCode() ); + $apiException->setResponseObject($e->getResponse()); + + throw $apiException; } $statusCode = $response->getStatusCode(); if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( + $apiException = new ApiException( sprintf( '[%d] Error connecting to the API (%s)', $statusCode, $request->getUri() ), - $statusCode, - $response->getHeaders(), - $response->getBody() + $statusCode ); + $apiException->setResponseObject($response); + + throw $apiException; } $responseBody = $response->getBody()->getContents(); @@ -131,53 +132,188 @@ public function getEvent($request_id) } return [$serialized, $response]; + } catch (ApiException $e) { + try { + switch ($e->getCode()) { + case 200: + /** @var ResponseInterface $response */ + $response = $e->getResponseObject(); + $responseBody = $response->getBody()->getContents(); + $response->getBody()->rewind(); + $data = ObjectSerializer::deserialize( + $responseBody, + '\Fingerprint\ServerAPI\Model\EventResponse', + $response->getHeaders() + ); + $e->setResponseObject($data); + + break; + + case 403: + /** @var ResponseInterface $response */ + $response = $e->getResponseObject(); + $responseBody = $response->getBody()->getContents(); + $response->getBody()->rewind(); + $data = ObjectSerializer::deserialize( + $responseBody, + '\Fingerprint\ServerAPI\Model\ErrorEvent403Response', + $response->getHeaders() + ); + $e->setResponseObject($data); + + break; + + case 404: + /** @var ResponseInterface $response */ + $response = $e->getResponseObject(); + $responseBody = $response->getBody()->getContents(); + $response->getBody()->rewind(); + $data = ObjectSerializer::deserialize( + $responseBody, + '\Fingerprint\ServerAPI\Model\ErrorEvent404Response', + $response->getHeaders() + ); + $e->setResponseObject($data); + + break; + } + + throw $e; + } catch (\Exception $_) { + } + } + } + + /** + * Operation getVisits. + * + * Get visits by visitorId + * + * @param string $visitor_id Unique identifier of the visitor 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) + * + * @return array{ null|\Fingerprint\ServerAPI\Model\Response, \Psr\Http\Message\ResponseInterface } + * + * @throws ApiException on non-2xx response + * @throws \InvalidArgumentException + * @throws SerializationException + * @throws GuzzleException + */ + public function getVisits($visitor_id, $request_id = null, $linked_id = null, $limit = null, $pagination_key = null, $before = null) + { + $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) { + $apiException = new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode() + ); + $apiException->setResponseObject($e->getResponse()); + + throw $apiException; + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + $apiException = new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode + ); + $apiException->setResponseObject($response); + + throw $apiException; + } + + $responseBody = $response->getBody()->getContents(); + $response->getBody()->rewind(); + + try { + $serialized = ObjectSerializer::deserialize($responseBody, $returnType, []); + } catch (\Exception $e) { + throw new SerializationException($response, $e); + } + return [$serialized, $response]; } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $responseBody = $e->getResponseBody(); - $data = ObjectSerializer::deserialize( - $responseBody, - '\Fingerprint\ServerAPI\Model\EventResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $responseBody = $e->getResponseBody(); - $data = ObjectSerializer::deserialize( - $responseBody, - '\Fingerprint\ServerAPI\Model\ErrorEvent403Response', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $responseBody = $e->getResponseBody(); - $data = ObjectSerializer::deserialize( - $responseBody, - '\Fingerprint\ServerAPI\Model\ErrorEvent404Response', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; + try { + switch ($e->getCode()) { + case 200: + /** @var ResponseInterface $response */ + $response = $e->getResponseObject(); + $responseBody = $response->getBody()->getContents(); + $response->getBody()->rewind(); + $data = ObjectSerializer::deserialize( + $responseBody, + '\Fingerprint\ServerAPI\Model\Response', + $response->getHeaders() + ); + $e->setResponseObject($data); + + break; + + case 403: + /** @var ResponseInterface $response */ + $response = $e->getResponseObject(); + $responseBody = $response->getBody()->getContents(); + $response->getBody()->rewind(); + $data = ObjectSerializer::deserialize( + $responseBody, + '\Fingerprint\ServerAPI\Model\ErrorVisits403', + $response->getHeaders() + ); + $e->setResponseObject($data); + + break; + + case 429: + /** @var ResponseInterface $response */ + $response = $e->getResponseObject(); + $responseBody = $response->getBody()->getContents(); + $response->getBody()->rewind(); + $data = ObjectSerializer::deserialize( + $responseBody, + '\Fingerprint\ServerAPI\Model\ManyRequestsResponse', + $response->getHeaders() + ); + $e->setResponseObject($data); + + break; + } + + throw $e; + } catch (\Exception $_) { } - throw $e; } } /** - * Create request for operation 'getEvent' + * Create request for operation 'getEvent'. * - * @param string $request_id The unique [identifier](https://dev.fingerprint.com/docs/js-agent#requestid) of each analysis request. (required) + * @param string $request_id The unique [identifier](https://dev.fingerprint.com/docs/js-agent#requestid) of each analysis request. (required) + * + * @return Request * * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request */ protected function getEventRequest($request_id) { // 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 getEvent' ); @@ -189,25 +325,23 @@ protected function getEventRequest($request_id) $headerParams = []; $httpBody = ''; - // path params - if ($request_id !== null) { + if (null !== $request_id) { $resourcePath = str_replace( - '{' . 'request_id' . '}', + '{request_id}', ObjectSerializer::toPathValue($request_id), $resourcePath ); } - // 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; } @@ -226,130 +360,33 @@ protected function getEventRequest($request_id) ); $query = http_build_query($queryParams); + return new Request( 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $this->config->getHost().$resourcePath.($query ? "?{$query}" : ''), $headers, $httpBody ); } - /** - * Operation getVisits - * - * Get visits by visitorId - * - * @param string $visitor_id Unique identifier of the visitor 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) + * Create request for operation 'getVisits'. * - * @throws \Fingerprint\ServerAPI\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @throws SerializationException - * @throws GuzzleException - * @return array{ \Fingerprint\ServerAPI\Model\Response|null, \Psr\Http\Message\ResponseInterface } - */ - public function getVisits($visitor_id, $request_id = null, $linked_id = null, $limit = null, $pagination_key = null, $before = null) - { - $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) { - $errorBody = $e->getResponse()->getBody()->getContents(); - $e->getResponse()->getBody()->rewind(); - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $errorBody : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - $responseBody = $response->getBody()->getContents(); - $response->getBody()->rewind(); - - try { - $serialized = ObjectSerializer::deserialize($responseBody, $returnType, []); - } catch (\Exception $e) { - throw new SerializationException($response, $e); - } - - return [$serialized, $response]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $responseBody = $e->getResponseBody(); - $data = ObjectSerializer::deserialize( - $responseBody, - '\Fingerprint\ServerAPI\Model\Response', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $responseBody = $e->getResponseBody(); - $data = ObjectSerializer::deserialize( - $responseBody, - '\Fingerprint\ServerAPI\Model\ErrorVisits403', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $responseBody = $e->getResponseBody(); - $data = ObjectSerializer::deserialize( - $responseBody, - '\Fingerprint\ServerAPI\Model\ManyRequestsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Create request for operation 'getVisits' + * @param string $visitor_id Unique identifier of the visitor 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) * - * @param string $visitor_id Unique identifier of the visitor 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) + * @return Request * * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request */ protected function getVisitsRequest($visitor_id, $request_id = null, $linked_id = null, $limit = null, $pagination_key = null, $before = null) { // verify the required parameter 'visitor_id' is set - if ($visitor_id === null || (is_array($visitor_id) && count($visitor_id) === 0)) { + if (null === $visitor_id || (is_array($visitor_id) && 0 === count($visitor_id))) { throw new \InvalidArgumentException( 'Missing the required parameter $visitor_id when calling getVisits' ); @@ -362,44 +399,43 @@ protected function getVisitsRequest($visitor_id, $request_id = null, $linked_id $httpBody = ''; // query params - if ($request_id !== null) { + if (null !== $request_id) { $queryParams['request_id'] = ObjectSerializer::toQueryValue($request_id, null); } // query params - if ($linked_id !== null) { + if (null !== $linked_id) { $queryParams['linked_id'] = ObjectSerializer::toQueryValue($linked_id, null); } // query params - if ($limit !== null) { + if (null !== $limit) { $queryParams['limit'] = ObjectSerializer::toQueryValue($limit, 'int32'); } // query params - if ($pagination_key !== null) { + if (null !== $pagination_key) { $queryParams['paginationKey'] = ObjectSerializer::toQueryValue($pagination_key, null); } // query params - if ($before !== null) { + if (null !== $before) { $queryParams['before'] = ObjectSerializer::toQueryValue($before, 'int64'); } // path params - if ($visitor_id !== null) { + if (null !== $visitor_id) { $resourcePath = str_replace( - '{' . 'visitor_id' . '}', + '{visitor_id}', ObjectSerializer::toPathValue($visitor_id), $resourcePath ); } - // 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; } @@ -418,19 +454,21 @@ protected function getVisitsRequest($visitor_id, $request_id = null, $linked_id ); $query = http_build_query($queryParams); + return new Request( 'GET', - $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 * @return array of http client options + * + * @throws \RuntimeException on file opening failure */ protected function createHttpClientOption() { @@ -438,7 +476,7 @@ protected function createHttpClientOption() 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 e9eaae55..846ec390 100644 --- a/src/ApiException.php +++ b/src/ApiException.php @@ -1,16 +1,17 @@ responseHeaders = $responseHeaders; - $this->responseBody = $responseBody; } /** - * Gets the HTTP response header - * - * @return string[]|null HTTP response header - */ - public function getResponseHeaders() - { - return $this->responseHeaders; - } - - /** - * Gets the HTTP body of the server response either as Json or string - * - * @return mixed HTTP body of the server response either as \stdClass or string - */ - public function getResponseBody() - { - return $this->responseBody; - } - - /** - * Sets the deseralized response object (during deserialization) + * Sets the deseralized response object (during deserialization). * * @param mixed $obj Deserialized response object - * - * @return void */ public function setResponseObject($obj) { @@ -108,7 +66,7 @@ public function setResponseObject($obj) } /** - * Gets the deseralized response object (during deserialization) + * Gets the deseralized response object (during deserialization). * * @return mixed the deserialized response object */ diff --git a/src/Configuration.php b/src/Configuration.php index 931a0514..c605ebd1 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) * @@ -148,21 +151,22 @@ public function getApiKey($apiKeyIdentifier) } /** - * 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($apiKeyIdentifier, $prefix) { $this->apiKeyPrefixes[$apiKeyIdentifier] = $prefix; + return $this; } /** - * Gets API key prefix + * Gets API key prefix. * * @param string $apiKeyIdentifier API key identifier (authentication scheme) * @@ -174,7 +178,7 @@ public function getApiKeyPrefix($apiKeyIdentifier) } /** - * Sets the access token for OAuth + * Sets the access token for OAuth. * * @param string $accessToken Token for OAuth * @@ -183,11 +187,12 @@ public function getApiKeyPrefix($apiKeyIdentifier) public function setAccessToken($accessToken) { $this->accessToken = $accessToken; + return $this; } /** - * Gets the access token for OAuth + * Gets the access token for OAuth. * * @return string Access token for OAuth */ @@ -197,7 +202,7 @@ public function getAccessToken() } /** - * Sets the username for HTTP basic authentication + * Sets the username for HTTP basic authentication. * * @param string $username Username for HTTP basic authentication * @@ -206,11 +211,12 @@ public function getAccessToken() public function setUsername($username) { $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 */ @@ -220,7 +226,7 @@ public function getUsername() } /** - * Sets the password for HTTP basic authentication + * Sets the password for HTTP basic authentication. * * @param string $password Password for HTTP basic authentication * @@ -229,11 +235,12 @@ public function getUsername() public function setPassword($password) { $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 */ @@ -243,7 +250,7 @@ public function getPassword() } /** - * Sets the host + * Sets the host. * * @param string $host Host * @@ -252,11 +259,12 @@ public function getPassword() public function setHost($host) { $this->host = $host; + return $this; } /** - * Gets the host + * Gets the host. * * @return string Host */ @@ -266,26 +274,30 @@ public function getHost() } /** - * @param $region * @return $this */ public function setRegion($region = self::REGION_GLOBAL) { 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; } @@ -293,11 +305,12 @@ public function setRegion($region = self::REGION_GLOBAL) } /** - * 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($userAgent) @@ -307,11 +320,12 @@ public function setUserAgent($userAgent) } $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 */ @@ -321,7 +335,7 @@ public function getUserAgent() } /** - * Sets debug flag + * Sets debug flag. * * @param bool $debug Debug flag * @@ -330,11 +344,12 @@ public function getUserAgent() public function setDebug($debug) { $this->debug = $debug; + return $this; } /** - * Gets the debug flag + * Gets the debug flag. * * @return bool */ @@ -344,7 +359,7 @@ public function getDebug() } /** - * Sets the debug file + * Sets the debug file. * * @param string $debugFile Debug file * @@ -353,11 +368,12 @@ public function getDebug() public function setDebugFile($debugFile) { $this->debugFile = $debugFile; + return $this; } /** - * Gets the debug file + * Gets the debug file. * * @return string */ @@ -367,7 +383,7 @@ public function getDebugFile() } /** - * Sets the temp folder path + * Sets the temp folder path. * * @param string $tempFolderPath Temp folder path * @@ -376,11 +392,12 @@ public function getDebugFile() public function setTempFolderPath($tempFolderPath) { $this->tempFolderPath = $tempFolderPath; + return $this; } /** - * Gets the temp folder path + * Gets the temp folder path. * * @return string Temp folder path */ @@ -390,15 +407,13 @@ public function getTempFolderPath() } /** - * Gets the default configuration instance, with apiKey and host params + * Gets the default configuration instance, with apiKey and host params. * - * @param $api_key - * @param $region * @return Configuration */ public static function getDefaultConfiguration($api_key = null, $region = self::REGION_GLOBAL) { - if (self::$defaultConfiguration === null) { + if (null === self::$defaultConfiguration) { self::$defaultConfiguration = new Configuration(); } @@ -409,11 +424,9 @@ public static function getDefaultConfiguration($api_key = null, $region = self:: } /** - * 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) { @@ -421,24 +434,24 @@ public static function setDefaultConfiguration(Configuration $config) } /** - * Gets the essential information for debugging + * Gets the essential information for debugging. * * @return string The report for debugging */ public static function toDebugReport() { - $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: 4.1.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: 4.1.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 * @@ -449,14 +462,14 @@ public function getApiKeyWithPrefix($apiKeyIdentifier) $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; diff --git a/src/Model/ASN.php b/src/Model/ASN.php index 0cd33a21..e27ebd1a 100644 --- a/src/Model/ASN.php +++ b/src/Model/ASN.php @@ -1,17 +1,18 @@ 'string', -'network' => 'string', -'name' => 'string' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'asn' => null, -'network' => null, -'name' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'asn' => 'string', + 'network' => 'string', + 'name' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'asn' => null, + '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 $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 $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 $getters = [ 'asn' => 'getAsn', -'network' => 'getNetwork', -'name' => 'getName' ]; + 'network' => 'getNetwork', + 'name' => 'getName']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -131,7 +169,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -141,7 +179,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -160,28 +198,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -191,29 +207,29 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets asn + * Gets asn. * * @return string */ @@ -223,7 +239,7 @@ public function getAsn() } /** - * Sets asn + * Sets asn. * * @param string $asn asn * @@ -237,7 +253,7 @@ public function setAsn($asn) } /** - * Gets network + * Gets network. * * @return string */ @@ -247,7 +263,7 @@ public function getNetwork() } /** - * Sets network + * Sets network. * * @param string $network network * @@ -261,7 +277,7 @@ public function setNetwork($network) } /** - * Gets name + * Gets name. * * @return string */ @@ -271,7 +287,7 @@ public function getName() } /** - * Sets name + * Sets name. * * @param string $name name * @@ -283,12 +299,13 @@ public function setName($name) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -299,7 +316,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -312,10 +329,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -330,30 +345,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 b96fa87f..db3b2e28 100644 --- a/src/Model/BotdDetectionResult.php +++ b/src/Model/BotdDetectionResult.php @@ -1,17 +1,18 @@ 'string', -'type' => 'string' ]; + public const RESULT_NOT_DETECTED = 'notDetected'; + public const RESULT_GOOD = 'good'; + public const RESULT_BAD = 'bad'; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'result' => null, -'type' => null ]; + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'BotdDetectionResult'; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'result' => 'string', + 'type' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'result' => null, + '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 $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 $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 $getters = [ 'result' => 'getResult', -'type' => 'getType' ]; + 'type' => 'getType']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -127,7 +169,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -137,7 +179,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -156,12 +198,8 @@ public function getModelName() return self::$swaggerModelName; } - public const RESULT_NOT_DETECTED = 'notDetected'; - public const RESULT_GOOD = 'good'; - public const RESULT_BAD = 'bad'; - /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -169,27 +207,8 @@ public function getResultAllowableValues() { return [ self::RESULT_NOT_DETECTED, -self::RESULT_GOOD, -self::RESULT_BAD, ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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, ]; } /** @@ -201,7 +220,7 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['result'] === null) { + if (null === $this->container['result']) { $invalidProperties[] = "'result' can't be null"; } $allowedValues = $this->getResultAllowableValues(); @@ -217,18 +236,17 @@ public function listInvalidProperties() /** * 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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result + * Gets result. * * @return string */ @@ -238,7 +256,7 @@ public function getResult() } /** - * 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 * @@ -261,7 +279,7 @@ public function setResult($result) } /** - * Gets type + * Gets type. * * @return string */ @@ -271,7 +289,7 @@ public function getType() } /** - * Sets type + * Sets type. * * @param string $type type * @@ -283,12 +301,13 @@ public function setType($type) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -299,7 +318,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -312,10 +331,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -330,30 +347,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 cb809460..526e9bc0 100644 --- a/src/Model/BotdResult.php +++ b/src/Model/BotdResult.php @@ -1,17 +1,18 @@ '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 $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 + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'ip' => '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 + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $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 $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 $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 $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 $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -152,7 +195,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -162,7 +205,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -181,32 +224,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -216,41 +233,41 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets ip + * Gets ip. * * @return string */ @@ -260,9 +277,9 @@ public function getIp() } /** - * 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 */ @@ -274,7 +291,7 @@ public function setIp($ip) } /** - * Gets time + * Gets time. * * @return \DateTime */ @@ -284,7 +301,7 @@ public function getTime() } /** - * 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 * @@ -298,7 +315,7 @@ public function setTime($time) } /** - * Gets url + * Gets url. * * @return string */ @@ -308,9 +325,9 @@ public function getUrl() } /** - * 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 */ @@ -322,7 +339,7 @@ public function setUrl($url) } /** - * Gets user_agent + * Gets user_agent. * * @return string */ @@ -332,7 +349,7 @@ public function getUserAgent() } /** - * Sets user_agent + * Sets user_agent. * * @param string $user_agent user_agent * @@ -346,7 +363,7 @@ public function setUserAgent($user_agent) } /** - * Gets request_id + * Gets request_id. * * @return string */ @@ -356,7 +373,7 @@ public function getRequestId() } /** - * Sets request_id + * Sets request_id. * * @param string $request_id request_id * @@ -370,7 +387,7 @@ public function setRequestId($request_id) } /** - * Gets linked_id + * Gets linked_id. * * @return string */ @@ -380,7 +397,7 @@ public function getLinkedId() } /** - * Sets linked_id + * Sets linked_id. * * @param string $linked_id linked_id * @@ -394,9 +411,9 @@ public function setLinkedId($linked_id) } /** - * Gets bot + * Gets bot. * - * @return \Fingerprint\ServerAPI\Model\BotdDetectionResult + * @return BotdDetectionResult */ public function getBot() { @@ -404,9 +421,9 @@ public function getBot() } /** - * Sets bot + * Sets bot. * - * @param \Fingerprint\ServerAPI\Model\BotdDetectionResult $bot bot + * @param BotdDetectionResult $bot bot * * @return $this */ @@ -416,12 +433,13 @@ public function setBot($bot) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -432,7 +450,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -445,10 +463,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -463,30 +479,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 e590825b..63fd242d 100644 --- a/src/Model/BrowserDetails.php +++ b/src/Model/BrowserDetails.php @@ -1,17 +1,18 @@ '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 $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 + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'browser_name' => '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 + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $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 $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 $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 $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 $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -156,7 +199,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -166,7 +209,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -185,33 +228,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -221,44 +237,44 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets browser_name + * Gets browser_name. * * @return string */ @@ -268,7 +284,7 @@ public function getBrowserName() } /** - * Sets browser_name + * Sets browser_name. * * @param string $browser_name browser_name * @@ -282,7 +298,7 @@ public function setBrowserName($browser_name) } /** - * Gets browser_major_version + * Gets browser_major_version. * * @return string */ @@ -292,7 +308,7 @@ public function getBrowserMajorVersion() } /** - * Sets browser_major_version + * Sets browser_major_version. * * @param string $browser_major_version browser_major_version * @@ -306,7 +322,7 @@ public function setBrowserMajorVersion($browser_major_version) } /** - * Gets browser_full_version + * Gets browser_full_version. * * @return string */ @@ -316,7 +332,7 @@ public function getBrowserFullVersion() } /** - * Sets browser_full_version + * Sets browser_full_version. * * @param string $browser_full_version browser_full_version * @@ -330,7 +346,7 @@ public function setBrowserFullVersion($browser_full_version) } /** - * Gets os + * Gets os. * * @return string */ @@ -340,7 +356,7 @@ public function getOs() } /** - * Sets os + * Sets os. * * @param string $os os * @@ -354,7 +370,7 @@ public function setOs($os) } /** - * Gets os_version + * Gets os_version. * * @return string */ @@ -364,7 +380,7 @@ public function getOsVersion() } /** - * Sets os_version + * Sets os_version. * * @param string $os_version os_version * @@ -378,7 +394,7 @@ public function setOsVersion($os_version) } /** - * Gets device + * Gets device. * * @return string */ @@ -388,7 +404,7 @@ public function getDevice() } /** - * Sets device + * Sets device. * * @param string $device device * @@ -402,7 +418,7 @@ public function setDevice($device) } /** - * Gets user_agent + * Gets user_agent. * * @return string */ @@ -412,7 +428,7 @@ public function getUserAgent() } /** - * Sets user_agent + * Sets user_agent. * * @param string $user_agent user_agent * @@ -426,7 +442,7 @@ public function setUserAgent($user_agent) } /** - * Gets bot_probability + * Gets bot_probability. * * @return int */ @@ -436,7 +452,7 @@ public function getBotProbability() } /** - * Sets bot_probability + * Sets bot_probability. * * @param int $bot_probability bot_probability * @@ -448,12 +464,13 @@ public function setBotProbability($bot_probability) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -464,7 +481,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -477,10 +494,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -495,30 +510,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 033bc380..fca05bcc 100644 --- a/src/Model/ClonedAppResult.php +++ b/src/Model/ClonedAppResult.php @@ -1,17 +1,18 @@ 'bool' ]; + 'result' => '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 $swaggerFormats = [ - 'result' => null ]; + 'result' => null]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes where the key is the local name, + * and the value is the original name. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $attributeMap = [ + 'result' => 'result']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses). * - * @return array + * @var string[] */ - public static function swaggerFormats() + protected static $setters = [ + 'result' => 'setResult']; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static $getters = [ + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) { - return self::$swaggerFormats; + $this->container['result'] = isset($data['result']) ? $data['result'] : null; } /** - * Array of attributes where the key is the local name, - * and the value is the original name + * Gets the string presentation of the object. * - * @var string[] + * @return string */ - protected static $attributeMap = [ - 'result' => 'result' ]; + public function __toString() + { + 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 attributes to setter functions (for deserialization of responses) + * Array of property to type mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $setters = [ - 'result' => 'setResult' ]; + public static function swaggerTypes() + { + return self::$swaggerTypes; + } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of property to format mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $getters = [ - 'result' => 'getResult' ]; + public static function swaggerFormats() + { + 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. * * @return array */ @@ -121,7 +157,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -131,7 +167,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -150,26 +186,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -179,26 +195,26 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result + * Gets result. * * @return bool */ @@ -208,7 +224,7 @@ public function getResult() } /** - * 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. * @@ -220,12 +236,13 @@ public function setResult($result) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -236,7 +253,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -249,10 +266,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -267,30 +282,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 4c65b832..833894ca 100644 --- a/src/Model/Confidence.php +++ b/src/Model/Confidence.php @@ -1,17 +1,18 @@ 'float' ]; + '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 $swaggerFormats = [ - 'score' => 'float' ]; + 'score' => 'float']; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes where the key is the local name, + * and the value is the original name. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $attributeMap = [ + 'score' => 'score']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses). * - * @return array + * @var string[] */ - public static function swaggerFormats() + protected static $setters = [ + 'score' => 'setScore']; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static $getters = [ + 'score' => 'getScore']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) { - return self::$swaggerFormats; + $this->container['score'] = isset($data['score']) ? $data['score'] : null; } /** - * Array of attributes where the key is the local name, - * and the value is the original name + * Gets the string presentation of the object. * - * @var string[] + * @return string */ - protected static $attributeMap = [ - 'score' => 'score' ]; + public function __toString() + { + 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 attributes to setter functions (for deserialization of responses) + * Array of property to type mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $setters = [ - 'score' => 'setScore' ]; + public static function swaggerTypes() + { + return self::$swaggerTypes; + } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of property to format mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $getters = [ - 'score' => 'getScore' ]; + public static function swaggerFormats() + { + 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. * * @return array */ @@ -121,7 +157,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -131,7 +167,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -150,26 +186,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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; - } - /** * Show all the invalid properties with reasons. * @@ -179,26 +195,26 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets score + * Gets score. * * @return float */ @@ -208,9 +224,9 @@ public function getScore() } /** - * 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 */ @@ -220,12 +236,13 @@ public function setScore($score) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -236,7 +253,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -249,10 +266,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -267,30 +282,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 7ddf5c6b..1c9562e7 100644 --- a/src/Model/DataCenter.php +++ b/src/Model/DataCenter.php @@ -1,17 +1,18 @@ 'bool', -'name' => 'string' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'result' => null, -'name' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'result' => 'bool', + 'name' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'result' => 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 $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 $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 $getters = [ 'result' => 'getResult', -'name' => 'getName' ]; + 'name' => 'getName']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -185,26 +201,26 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result + * Gets result. * * @return bool */ @@ -214,7 +230,7 @@ public function getResult() } /** - * Sets result + * Sets result. * * @param bool $result result * @@ -228,7 +244,7 @@ public function setResult($result) } /** - * Gets name + * Gets name. * * @return string */ @@ -238,7 +254,7 @@ public function getName() } /** - * Sets name + * Sets name. * * @param string $name name * @@ -250,12 +266,13 @@ public function setName($name) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -266,7 +283,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -279,10 +296,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -297,30 +312,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 ed3b35bd..1e460ff7 100644 --- a/src/Model/DeprecatedIPLocation.php +++ b/src/Model/DeprecatedIPLocation.php @@ -1,17 +1,18 @@ '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 $swaggerFormats = [ - 'accuracy_radius' => null, -'latitude' => 'double', -'longitude' => 'double', -'postal_code' => null, -'timezone' => 'timezone', -'city' => null, -'country' => null, -'continent' => null, -'subdivisions' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'accuracy_radius' => '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 + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $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 $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 $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 $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 $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -162,7 +207,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -172,7 +217,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -191,34 +236,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -226,25 +243,22 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets accuracy_radius + * Gets accuracy_radius. * * @return int */ @@ -254,9 +268,9 @@ public function getAccuracyRadius() } /** - * 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 */ @@ -268,9 +282,9 @@ public function setAccuracyRadius($accuracy_radius) } /** - * Gets latitude + * Gets latitude. * - * @return double + * @return float */ public function getLatitude() { @@ -278,9 +292,9 @@ public function getLatitude() } /** - * Sets latitude + * Sets latitude. * - * @param double $latitude latitude + * @param float $latitude latitude * * @return $this */ @@ -292,9 +306,9 @@ public function setLatitude($latitude) } /** - * Gets longitude + * Gets longitude. * - * @return double + * @return float */ public function getLongitude() { @@ -302,9 +316,9 @@ public function getLongitude() } /** - * Sets longitude + * Sets longitude. * - * @param double $longitude longitude + * @param float $longitude longitude * * @return $this */ @@ -316,7 +330,7 @@ public function setLongitude($longitude) } /** - * Gets postal_code + * Gets postal_code. * * @return string */ @@ -326,7 +340,7 @@ public function getPostalCode() } /** - * Sets postal_code + * Sets postal_code. * * @param string $postal_code postal_code * @@ -340,7 +354,7 @@ public function setPostalCode($postal_code) } /** - * Gets timezone + * Gets timezone. * * @return string */ @@ -350,7 +364,7 @@ public function getTimezone() } /** - * Sets timezone + * Sets timezone. * * @param string $timezone timezone * @@ -364,9 +378,9 @@ public function setTimezone($timezone) } /** - * Gets city + * Gets city. * - * @return \Fingerprint\ServerAPI\Model\DeprecatedIPLocationCity + * @return DeprecatedIPLocationCity */ public function getCity() { @@ -374,9 +388,9 @@ public function getCity() } /** - * Sets city + * Sets city. * - * @param \Fingerprint\ServerAPI\Model\DeprecatedIPLocationCity $city city + * @param DeprecatedIPLocationCity $city city * * @return $this */ @@ -388,9 +402,9 @@ public function setCity($city) } /** - * Gets country + * Gets country. * - * @return \Fingerprint\ServerAPI\Model\Location + * @return Location */ public function getCountry() { @@ -398,9 +412,9 @@ public function getCountry() } /** - * Sets country + * Sets country. * - * @param \Fingerprint\ServerAPI\Model\Location $country country + * @param Location $country country * * @return $this */ @@ -412,9 +426,9 @@ public function setCountry($country) } /** - * Gets continent + * Gets continent. * - * @return \Fingerprint\ServerAPI\Model\Location + * @return Location */ public function getContinent() { @@ -422,9 +436,9 @@ public function getContinent() } /** - * Sets continent + * Sets continent. * - * @param \Fingerprint\ServerAPI\Model\Location $continent continent + * @param Location $continent continent * * @return $this */ @@ -436,7 +450,7 @@ public function setContinent($continent) } /** - * Gets subdivisions + * Gets subdivisions. * * @return \Fingerprint\ServerAPI\Model\Subdivision[] */ @@ -446,7 +460,7 @@ public function getSubdivisions() } /** - * Sets subdivisions + * Sets subdivisions. * * @param \Fingerprint\ServerAPI\Model\Subdivision[] $subdivisions subdivisions * @@ -458,12 +472,13 @@ public function setSubdivisions($subdivisions) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -474,7 +489,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -487,10 +502,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -505,30 +518,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 04a743ab..e7d441d8 100644 --- a/src/Model/DeprecatedIPLocationCity.php +++ b/src/Model/DeprecatedIPLocationCity.php @@ -1,17 +1,18 @@ '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 $swaggerFormats = [ - 'name' => null ]; + 'name' => null]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes where the key is the local name, + * and the value is the original name. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $attributeMap = [ + 'name' => 'name']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses). * - * @return array + * @var string[] */ - public static function swaggerFormats() + protected static $setters = [ + 'name' => 'setName']; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) { - return self::$swaggerFormats; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; } /** - * Array of attributes where the key is the local name, - * and the value is the original name + * Gets the string presentation of the object. * - * @var string[] + * @return string */ - protected static $attributeMap = [ - 'name' => 'name' ]; + public function __toString() + { + 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 attributes to setter functions (for deserialization of responses) + * Array of property to type mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $setters = [ - 'name' => 'setName' ]; + public static function swaggerTypes() + { + return self::$swaggerTypes; + } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of property to format mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $getters = [ - 'name' => 'getName' ]; + public static function swaggerFormats() + { + 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. * * @return array */ @@ -121,7 +157,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -131,7 +167,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -150,26 +186,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -177,25 +193,22 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets name + * Gets name. * * @return string */ @@ -205,7 +218,7 @@ public function getName() } /** - * Sets name + * Sets name. * * @param string $name name * @@ -217,12 +230,13 @@ public function setName($name) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -233,7 +247,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -246,10 +260,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -264,30 +276,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 4b9502c7..492de46d 100644 --- a/src/Model/EmulatorResult.php +++ b/src/Model/EmulatorResult.php @@ -1,17 +1,18 @@ 'bool' ]; + 'result' => '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 $swaggerFormats = [ - 'result' => null ]; + 'result' => null]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes where the key is the local name, + * and the value is the original name. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $attributeMap = [ + 'result' => 'result']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses). * - * @return array + * @var string[] */ - public static function swaggerFormats() + protected static $setters = [ + 'result' => 'setResult']; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static $getters = [ + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) { - return self::$swaggerFormats; + $this->container['result'] = isset($data['result']) ? $data['result'] : null; } /** - * Array of attributes where the key is the local name, - * and the value is the original name + * Gets the string presentation of the object. * - * @var string[] + * @return string */ - protected static $attributeMap = [ - 'result' => 'result' ]; + public function __toString() + { + 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 attributes to setter functions (for deserialization of responses) + * Array of property to type mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $setters = [ - 'result' => 'setResult' ]; + public static function swaggerTypes() + { + return self::$swaggerTypes; + } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of property to format mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $getters = [ - 'result' => 'getResult' ]; + public static function swaggerFormats() + { + 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. * * @return array */ @@ -121,7 +157,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -131,7 +167,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -150,26 +186,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -179,26 +195,26 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result + * Gets result. * * @return bool */ @@ -208,7 +224,7 @@ public function getResult() } /** - * 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. * @@ -220,12 +236,13 @@ public function setResult($result) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -236,7 +253,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -249,10 +266,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -267,30 +282,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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/ErrorEvent403Response.php b/src/Model/ErrorEvent403Response.php index ef2cce50..8037e37e 100644 --- a/src/Model/ErrorEvent403Response.php +++ b/src/Model/ErrorEvent403Response.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\ErrorEvent403ResponseError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ErrorEvent403ResponseError']; /** - * 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 $swaggerFormats = [ - 'error' => null ]; + 'error' => null]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes where the key is the local name, + * and the value is the original name. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $attributeMap = [ + 'error' => 'error']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses). * - * @return array + * @var string[] */ - public static function swaggerFormats() + protected static $setters = [ + 'error' => 'setError']; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) { - return self::$swaggerFormats; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; } /** - * Array of attributes where the key is the local name, - * and the value is the original name + * Gets the string presentation of the object. * - * @var string[] + * @return string */ - protected static $attributeMap = [ - 'error' => 'error' ]; + public function __toString() + { + 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 attributes to setter functions (for deserialization of responses) + * Array of property to type mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $setters = [ - 'error' => 'setError' ]; + public static function swaggerTypes() + { + return self::$swaggerTypes; + } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of property to format mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $getters = [ - 'error' => 'getError' ]; + public static function swaggerFormats() + { + 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. * * @return array */ @@ -121,7 +157,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -131,7 +167,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -150,26 +186,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -177,27 +193,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ErrorEvent403ResponseError + * @return ErrorEvent403ResponseError */ public function getError() { @@ -205,9 +218,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ErrorEvent403ResponseError $error error + * @param ErrorEvent403ResponseError $error error * * @return $this */ @@ -217,12 +230,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -233,7 +247,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -246,10 +260,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -264,30 +276,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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/ErrorEvent403ResponseError.php b/src/Model/ErrorEvent403ResponseError.php index 83135173..bc5e8c46 100644 --- a/src/Model/ErrorEvent403ResponseError.php +++ b/src/Model/ErrorEvent403ResponseError.php @@ -1,17 +1,18 @@ 'string', -'message' => 'string' ]; + public const CODE_TOKEN_REQUIRED = 'TokenRequired'; + public const CODE_TOKEN_NOT_FOUND = 'TokenNotFound'; + public const CODE_SUBSCRIPTION_NOT_ACTIVE = 'SubscriptionNotActive'; + public const CODE_WRONG_REGION = 'WrongRegion'; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'code' => null, -'message' => null ]; + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'ErrorEvent403ResponseError'; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'code' => null, + '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 $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 $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 $getters = [ 'code' => 'getCode', -'message' => 'getMessage' ]; + 'message' => 'getMessage']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +168,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +178,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,13 +197,8 @@ public function getModelName() return self::$swaggerModelName; } - public const CODE_TOKEN_REQUIRED = 'TokenRequired'; - public const CODE_TOKEN_NOT_FOUND = 'TokenNotFound'; - public const CODE_SUBSCRIPTION_NOT_ACTIVE = 'SubscriptionNotActive'; - public const CODE_WRONG_REGION = 'WrongRegion'; - /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -169,28 +206,9 @@ public function getCodeAllowableValues() { return [ self::CODE_TOKEN_REQUIRED, -self::CODE_TOKEN_NOT_FOUND, -self::CODE_SUBSCRIPTION_NOT_ACTIVE, -self::CODE_WRONG_REGION, ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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, ]; } /** @@ -202,7 +220,7 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['code'] === null) { + if (null === $this->container['code']) { $invalidProperties[] = "'code' can't be null"; } $allowedValues = $this->getCodeAllowableValues(); @@ -213,26 +231,26 @@ public function listInvalidProperties() ); } - 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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets code + * Gets code. * * @return string */ @@ -242,7 +260,7 @@ public function getCode() } /** - * Sets code + * Sets code. * * @param string $code Error code: * `TokenRequired` - `Auth-API-Key` header is missing or empty * `TokenNotFound` - subscription not found for specified secret key * `SubscriptionNotActive` - subscription is not active * `WrongRegion` - server and subscription region differ * @@ -265,7 +283,7 @@ public function setCode($code) } /** - * Gets message + * Gets message. * * @return string */ @@ -275,7 +293,7 @@ public function getMessage() } /** - * Sets message + * Sets message. * * @param string $message message * @@ -287,12 +305,13 @@ public function setMessage($message) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -303,7 +322,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -316,10 +335,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -334,30 +351,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 8fb06d82..318465c0 100644 --- a/src/Model/ErrorEvent404Response.php +++ b/src/Model/ErrorEvent404Response.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\ErrorEvent404ResponseError' ]; + 'error' => '\Fingerprint\ServerAPI\Model\ErrorEvent404ResponseError']; /** - * 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 $swaggerFormats = [ - 'error' => null ]; + 'error' => null]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes where the key is the local name, + * and the value is the original name. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $attributeMap = [ + 'error' => 'error']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses). * - * @return array + * @var string[] */ - public static function swaggerFormats() + protected static $setters = [ + 'error' => 'setError']; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) { - return self::$swaggerFormats; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; } /** - * Array of attributes where the key is the local name, - * and the value is the original name + * Gets the string presentation of the object. * - * @var string[] + * @return string */ - protected static $attributeMap = [ - 'error' => 'error' ]; + public function __toString() + { + 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 attributes to setter functions (for deserialization of responses) + * Array of property to type mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $setters = [ - 'error' => 'setError' ]; + public static function swaggerTypes() + { + return self::$swaggerTypes; + } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of property to format mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $getters = [ - 'error' => 'getError' ]; + public static function swaggerFormats() + { + 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. * * @return array */ @@ -121,7 +157,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -131,7 +167,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -150,26 +186,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -177,27 +193,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ErrorEvent404ResponseError + * @return ErrorEvent404ResponseError */ public function getError() { @@ -205,9 +218,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ErrorEvent404ResponseError $error error + * @param ErrorEvent404ResponseError $error error * * @return $this */ @@ -217,12 +230,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -233,7 +247,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -246,10 +260,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -264,30 +276,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 ef933a88..b8f4bcbc 100644 --- a/src/Model/ErrorEvent404ResponseError.php +++ b/src/Model/ErrorEvent404ResponseError.php @@ -1,17 +1,18 @@ 'string', -'message' => 'string' ]; + public const CODE_REQUEST_NOT_FOUND = 'RequestNotFound'; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'code' => null, -'message' => null ]; + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'ErrorEvent404ResponseError'; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'code' => null, + '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 $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 $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 $getters = [ 'code' => 'getCode', -'message' => 'getMessage' ]; + 'message' => 'getMessage']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +165,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +175,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,10 +194,8 @@ public function getModelName() return self::$swaggerModelName; } - public const CODE_REQUEST_NOT_FOUND = 'RequestNotFound'; - /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -168,25 +205,6 @@ public function getCodeAllowableValues() self::CODE_REQUEST_NOT_FOUND, ]; } - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -196,7 +214,7 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['code'] === null) { + if (null === $this->container['code']) { $invalidProperties[] = "'code' can't be null"; } $allowedValues = $this->getCodeAllowableValues(); @@ -207,26 +225,26 @@ public function listInvalidProperties() ); } - 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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets code + * Gets code. * * @return string */ @@ -236,7 +254,7 @@ public function getCode() } /** - * Sets code + * Sets code. * * @param string $code Error code: * `RequestNotFound` - request not found for specified id * @@ -259,7 +277,7 @@ public function setCode($code) } /** - * Gets message + * Gets message. * * @return string */ @@ -269,7 +287,7 @@ public function getMessage() } /** - * Sets message + * Sets message. * * @param string $message message * @@ -281,12 +299,13 @@ public function setMessage($message) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -297,7 +316,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -310,10 +329,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -328,30 +345,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 baefef9e..35b8eab7 100644 --- a/src/Model/ErrorVisits403.php +++ b/src/Model/ErrorVisits403.php @@ -1,17 +1,18 @@ 'string' ]; + 'error' => '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 $swaggerFormats = [ - 'error' => null ]; + 'error' => null]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes where the key is the local name, + * and the value is the original name. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $attributeMap = [ + 'error' => 'error']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses). * - * @return array + * @var string[] */ - public static function swaggerFormats() + protected static $setters = [ + 'error' => 'setError']; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) { - return self::$swaggerFormats; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; } /** - * Array of attributes where the key is the local name, - * and the value is the original name + * Gets the string presentation of the object. * - * @var string[] + * @return string */ - protected static $attributeMap = [ - 'error' => 'error' ]; + public function __toString() + { + 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 attributes to setter functions (for deserialization of responses) + * Array of property to type mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $setters = [ - 'error' => 'setError' ]; + public static function swaggerTypes() + { + return self::$swaggerTypes; + } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of property to format mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $getters = [ - 'error' => 'getError' ]; + public static function swaggerFormats() + { + 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. * * @return array */ @@ -121,7 +157,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -131,7 +167,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -150,26 +186,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -179,26 +195,26 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets error + * Gets error. * * @return string */ @@ -208,9 +224,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param string $error Error text. + * @param string $error error text * * @return $this */ @@ -220,12 +236,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -236,7 +253,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -249,10 +266,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -267,30 +282,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 7d24c596..6f3ebd3e 100644 --- a/src/Model/EventResponse.php +++ b/src/Model/EventResponse.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\ProductsResponse', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'products' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'products' => '\Fingerprint\ServerAPI\Model\ProductsResponse', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'products' => null, + '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 $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 $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 $getters = [ 'products' => 'getProducts', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -127,7 +165,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -137,7 +175,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -156,27 +194,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -186,28 +203,28 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets products + * Gets products. * - * @return \Fingerprint\ServerAPI\Model\ProductsResponse + * @return ProductsResponse */ public function getProducts() { @@ -215,9 +232,9 @@ public function getProducts() } /** - * Sets products + * Sets products. * - * @param \Fingerprint\ServerAPI\Model\ProductsResponse $products products + * @param ProductsResponse $products products * * @return $this */ @@ -229,9 +246,9 @@ public function setProducts($products) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -239,9 +256,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -251,12 +268,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -267,7 +285,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -280,10 +298,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -298,30 +314,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 efa0b0ab..06cecc87 100644 --- a/src/Model/FactoryResetResult.php +++ b/src/Model/FactoryResetResult.php @@ -1,17 +1,18 @@ '\DateTime', -'timestamp' => 'int' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'time' => 'date-time', -'timestamp' => 'int64' ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'time' => '\DateTime', + 'timestamp' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'time' => 'date-time', + '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 $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 $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 $getters = [ 'time' => 'getTime', -'timestamp' => 'getTimestamp' ]; + 'timestamp' => 'getTimestamp']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -185,29 +201,29 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets time + * Gets time. * * @return \DateTime */ @@ -217,7 +233,7 @@ public function getTime() } /** - * Sets time + * Sets time. * * @param \DateTime $time Time in UTC when the most recent factory reset of the Android or iOS device was done. If there is no sign of factory reset or the client is not a mobile device, the field will contain the epoch time (1 January 1970) in UTC. * @@ -231,7 +247,7 @@ public function setTime($time) } /** - * Gets timestamp + * Gets timestamp. * * @return int */ @@ -241,9 +257,9 @@ public function getTimestamp() } /** - * Sets timestamp + * Sets timestamp. * - * @param int $timestamp Same value as it's in the `time` field but represented in timestamp format. + * @param int $timestamp same value as it's in the `time` field but represented in timestamp format * * @return $this */ @@ -253,12 +269,13 @@ public function setTimestamp($timestamp) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -269,7 +286,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -282,10 +299,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -300,30 +315,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 7ced36b4..a616ae49 100644 --- a/src/Model/FridaResult.php +++ b/src/Model/FridaResult.php @@ -1,17 +1,18 @@ 'bool' ]; + 'result' => '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 $swaggerFormats = [ - 'result' => null ]; + 'result' => null]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes where the key is the local name, + * and the value is the original name. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $attributeMap = [ + 'result' => 'result']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses). * - * @return array + * @var string[] */ - public static function swaggerFormats() + protected static $setters = [ + 'result' => 'setResult']; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static $getters = [ + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) { - return self::$swaggerFormats; + $this->container['result'] = isset($data['result']) ? $data['result'] : null; } /** - * Array of attributes where the key is the local name, - * and the value is the original name + * Gets the string presentation of the object. * - * @var string[] + * @return string */ - protected static $attributeMap = [ - 'result' => 'result' ]; + public function __toString() + { + 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 attributes to setter functions (for deserialization of responses) + * Array of property to type mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $setters = [ - 'result' => 'setResult' ]; + public static function swaggerTypes() + { + return self::$swaggerTypes; + } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of property to format mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $getters = [ - 'result' => 'getResult' ]; + public static function swaggerFormats() + { + 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. * * @return array */ @@ -121,7 +157,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -131,7 +167,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -150,26 +186,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -179,26 +195,26 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result + * Gets result. * * @return bool */ @@ -208,7 +224,7 @@ public function getResult() } /** - * 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. * @@ -220,12 +236,13 @@ public function setResult($result) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -236,7 +253,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -249,10 +266,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -267,30 +282,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 91d79bba..b46e2b28 100644 --- a/src/Model/HighActivityResult.php +++ b/src/Model/HighActivityResult.php @@ -1,17 +1,18 @@ 'bool', -'daily_requests' => 'float' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'result' => null, -'daily_requests' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'result' => 'bool', + 'daily_requests' => 'float']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'result' => null, + '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 $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 $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 $getters = [ 'result' => 'getResult', -'daily_requests' => 'getDailyRequests' ]; + 'daily_requests' => 'getDailyRequests']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -185,26 +201,26 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result + * Gets result. * * @return bool */ @@ -214,9 +230,9 @@ public function getResult() } /** - * 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 */ @@ -228,7 +244,7 @@ public function setResult($result) } /** - * Gets daily_requests + * Gets daily_requests. * * @return float */ @@ -238,9 +254,9 @@ public function getDailyRequests() } /** - * 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 */ @@ -250,12 +266,13 @@ public function setDailyRequests($daily_requests) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -266,7 +283,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -279,10 +296,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -297,30 +312,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 105009fa..0ca7bead 100644 --- a/src/Model/IPLocation.php +++ b/src/Model/IPLocation.php @@ -1,17 +1,18 @@ '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 $swaggerFormats = [ - 'accuracy_radius' => null, -'latitude' => 'double', -'longitude' => 'double', -'postal_code' => null, -'timezone' => 'timezone', -'city' => null, -'country' => null, -'continent' => null, -'subdivisions' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'accuracy_radius' => '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 + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $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 $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 $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 $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 $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -161,7 +205,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -171,7 +215,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -190,34 +234,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -225,25 +241,22 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets accuracy_radius + * Gets accuracy_radius. * * @return int */ @@ -253,9 +266,9 @@ public function getAccuracyRadius() } /** - * 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 */ @@ -267,9 +280,9 @@ public function setAccuracyRadius($accuracy_radius) } /** - * Gets latitude + * Gets latitude. * - * @return double + * @return float */ public function getLatitude() { @@ -277,9 +290,9 @@ public function getLatitude() } /** - * Sets latitude + * Sets latitude. * - * @param double $latitude latitude + * @param float $latitude latitude * * @return $this */ @@ -291,9 +304,9 @@ public function setLatitude($latitude) } /** - * Gets longitude + * Gets longitude. * - * @return double + * @return float */ public function getLongitude() { @@ -301,9 +314,9 @@ public function getLongitude() } /** - * Sets longitude + * Sets longitude. * - * @param double $longitude longitude + * @param float $longitude longitude * * @return $this */ @@ -315,7 +328,7 @@ public function setLongitude($longitude) } /** - * Gets postal_code + * Gets postal_code. * * @return string */ @@ -325,7 +338,7 @@ public function getPostalCode() } /** - * Sets postal_code + * Sets postal_code. * * @param string $postal_code postal_code * @@ -339,7 +352,7 @@ public function setPostalCode($postal_code) } /** - * Gets timezone + * Gets timezone. * * @return string */ @@ -349,7 +362,7 @@ public function getTimezone() } /** - * Sets timezone + * Sets timezone. * * @param string $timezone timezone * @@ -363,9 +376,9 @@ public function setTimezone($timezone) } /** - * Gets city + * Gets city. * - * @return \Fingerprint\ServerAPI\Model\IPLocationCity + * @return IPLocationCity */ public function getCity() { @@ -373,9 +386,9 @@ public function getCity() } /** - * Sets city + * Sets city. * - * @param \Fingerprint\ServerAPI\Model\IPLocationCity $city city + * @param IPLocationCity $city city * * @return $this */ @@ -387,9 +400,9 @@ public function setCity($city) } /** - * Gets country + * Gets country. * - * @return \Fingerprint\ServerAPI\Model\Location + * @return Location */ public function getCountry() { @@ -397,9 +410,9 @@ public function getCountry() } /** - * Sets country + * Sets country. * - * @param \Fingerprint\ServerAPI\Model\Location $country country + * @param Location $country country * * @return $this */ @@ -411,9 +424,9 @@ public function setCountry($country) } /** - * Gets continent + * Gets continent. * - * @return \Fingerprint\ServerAPI\Model\Location + * @return Location */ public function getContinent() { @@ -421,9 +434,9 @@ public function getContinent() } /** - * Sets continent + * Sets continent. * - * @param \Fingerprint\ServerAPI\Model\Location $continent continent + * @param Location $continent continent * * @return $this */ @@ -435,7 +448,7 @@ public function setContinent($continent) } /** - * Gets subdivisions + * Gets subdivisions. * * @return \Fingerprint\ServerAPI\Model\Subdivision[] */ @@ -445,7 +458,7 @@ public function getSubdivisions() } /** - * Sets subdivisions + * Sets subdivisions. * * @param \Fingerprint\ServerAPI\Model\Subdivision[] $subdivisions subdivisions * @@ -457,12 +470,13 @@ public function setSubdivisions($subdivisions) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -473,7 +487,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -486,10 +500,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -504,30 +516,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 912f56f7..d6a7f76d 100644 --- a/src/Model/IPLocationCity.php +++ b/src/Model/IPLocationCity.php @@ -1,17 +1,18 @@ '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 $swaggerFormats = [ - 'name' => null ]; + 'name' => null]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes where the key is the local name, + * and the value is the original name. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $attributeMap = [ + 'name' => 'name']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses). * - * @return array + * @var string[] */ - public static function swaggerFormats() + protected static $setters = [ + 'name' => 'setName']; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) { - return self::$swaggerFormats; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; } /** - * Array of attributes where the key is the local name, - * and the value is the original name + * Gets the string presentation of the object. * - * @var string[] + * @return string */ - protected static $attributeMap = [ - 'name' => 'name' ]; + public function __toString() + { + 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 attributes to setter functions (for deserialization of responses) + * Array of property to type mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $setters = [ - 'name' => 'setName' ]; + public static function swaggerTypes() + { + return self::$swaggerTypes; + } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of property to format mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $getters = [ - 'name' => 'getName' ]; + public static function swaggerFormats() + { + 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. * * @return array */ @@ -121,7 +157,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -131,7 +167,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -150,26 +186,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -177,25 +193,22 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets name + * Gets name. * * @return string */ @@ -205,7 +218,7 @@ public function getName() } /** - * Sets name + * Sets name. * * @param string $name name * @@ -217,12 +230,13 @@ public function setName($name) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -233,7 +247,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -246,10 +260,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -264,30 +276,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 caba198c..16b91f66 100644 --- a/src/Model/IdentificationError.php +++ b/src/Model/IdentificationError.php @@ -1,17 +1,18 @@ 'string', -'message' => 'string' ]; + public const CODE__429_TOO_MANY_REQUESTS = '429 Too Many Requests'; + public const CODE_FAILED = 'Failed'; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'code' => null, -'message' => null ]; + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'IdentificationError'; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'code' => null, + '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 $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 $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 $getters = [ 'code' => 'getCode', -'message' => 'getMessage' ]; + 'message' => 'getMessage']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +166,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +176,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,11 +195,8 @@ public function getModelName() return self::$swaggerModelName; } - public const CODE__429_TOO_MANY_REQUESTS = '429 Too Many Requests'; - public const CODE_FAILED = 'Failed'; - /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -167,26 +204,7 @@ public function getCodeAllowableValues() { return [ self::CODE__429_TOO_MANY_REQUESTS, -self::CODE_FAILED, ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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, ]; } /** @@ -198,7 +216,7 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['code'] === null) { + if (null === $this->container['code']) { $invalidProperties[] = "'code' can't be null"; } $allowedValues = $this->getCodeAllowableValues(); @@ -209,26 +227,26 @@ public function listInvalidProperties() ); } - 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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets code + * Gets code. * * @return string */ @@ -238,7 +256,7 @@ public function getCode() } /** - * 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 * @@ -261,7 +279,7 @@ public function setCode($code) } /** - * Gets message + * Gets message. * * @return string */ @@ -271,7 +289,7 @@ public function getMessage() } /** - * Sets message + * Sets message. * * @param string $message message * @@ -283,12 +301,13 @@ public function setMessage($message) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -299,7 +318,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -312,10 +331,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -330,30 +347,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 50abc0a9..e8d8713a 100644 --- a/src/Model/IncognitoResult.php +++ b/src/Model/IncognitoResult.php @@ -1,17 +1,18 @@ 'bool' ]; + 'result' => '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 $swaggerFormats = [ - 'result' => null ]; + 'result' => null]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes where the key is the local name, + * and the value is the original name. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $attributeMap = [ + 'result' => 'result']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses). * - * @return array + * @var string[] */ - public static function swaggerFormats() + protected static $setters = [ + 'result' => 'setResult']; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static $getters = [ + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) { - return self::$swaggerFormats; + $this->container['result'] = isset($data['result']) ? $data['result'] : null; } /** - * Array of attributes where the key is the local name, - * and the value is the original name + * Gets the string presentation of the object. * - * @var string[] + * @return string */ - protected static $attributeMap = [ - 'result' => 'result' ]; + public function __toString() + { + 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 attributes to setter functions (for deserialization of responses) + * Array of property to type mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $setters = [ - 'result' => 'setResult' ]; + public static function swaggerTypes() + { + return self::$swaggerTypes; + } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of property to format mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $getters = [ - 'result' => 'getResult' ]; + public static function swaggerFormats() + { + 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. * * @return array */ @@ -121,7 +157,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -131,7 +167,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -150,26 +186,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -179,26 +195,26 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result + * Gets result. * * @return bool */ @@ -208,9 +224,9 @@ public function getResult() } /** - * 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 */ @@ -220,12 +236,13 @@ public function setResult($result) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -236,7 +253,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -249,10 +266,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -267,30 +282,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 b6fbcbf4..b18d7066 100644 --- a/src/Model/IpBlockListResult.php +++ b/src/Model/IpBlockListResult.php @@ -1,17 +1,18 @@ 'bool', -'details' => '\Fingerprint\ServerAPI\Model\IpBlockListResultDetails' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'result' => null, -'details' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'result' => 'bool', + 'details' => '\Fingerprint\ServerAPI\Model\IpBlockListResultDetails']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'result' => null, + '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 $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 $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 $getters = [ 'result' => 'getResult', -'details' => 'getDetails' ]; + 'details' => 'getDetails']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -185,29 +201,29 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result + * Gets result. * * @return bool */ @@ -217,9 +233,9 @@ public function getResult() } /** - * 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 */ @@ -231,9 +247,9 @@ public function setResult($result) } /** - * Gets details + * Gets details. * - * @return \Fingerprint\ServerAPI\Model\IpBlockListResultDetails + * @return IpBlockListResultDetails */ public function getDetails() { @@ -241,9 +257,9 @@ public function getDetails() } /** - * Sets details + * Sets details. * - * @param \Fingerprint\ServerAPI\Model\IpBlockListResultDetails $details details + * @param IpBlockListResultDetails $details details * * @return $this */ @@ -253,12 +269,13 @@ public function setDetails($details) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -269,7 +286,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -282,10 +299,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -300,30 +315,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 a6fff095..3e60669b 100644 --- a/src/Model/IpBlockListResultDetails.php +++ b/src/Model/IpBlockListResultDetails.php @@ -1,17 +1,18 @@ 'bool', -'attack_source' => 'bool' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'email_spam' => null, -'attack_source' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'email_spam' => 'bool', + 'attack_source' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'email_spam' => null, + '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 $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 $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 $getters = [ 'email_spam' => 'getEmailSpam', -'attack_source' => 'getAttackSource' ]; + 'attack_source' => 'getAttackSource']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -185,29 +201,29 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets email_spam + * Gets email_spam. * * @return bool */ @@ -217,9 +233,9 @@ public function getEmailSpam() } /** - * 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 */ @@ -231,7 +247,7 @@ public function setEmailSpam($email_spam) } /** - * Gets attack_source + * Gets attack_source. * * @return bool */ @@ -241,9 +257,9 @@ public function getAttackSource() } /** - * 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 */ @@ -253,12 +269,13 @@ public function setAttackSource($attack_source) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -269,7 +286,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -282,10 +299,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -300,30 +315,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 de507494..ee5fc12b 100644 --- a/src/Model/IpInfoResult.php +++ b/src/Model/IpInfoResult.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\IpInfoResultV4', -'v6' => '\Fingerprint\ServerAPI\Model\IpInfoResultV6' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'v4' => null, -'v6' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'v4' => '\Fingerprint\ServerAPI\Model\IpInfoResultV4', + 'v6' => '\Fingerprint\ServerAPI\Model\IpInfoResultV6']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'v4' => null, + '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 $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 $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 $getters = [ 'v4' => 'getV4', -'v6' => 'getV6' ]; + 'v6' => 'getV6']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -127,7 +165,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -137,7 +175,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -156,27 +194,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -184,27 +201,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets v4 + * Gets v4. * - * @return \Fingerprint\ServerAPI\Model\IpInfoResultV4 + * @return IpInfoResultV4 */ public function getV4() { @@ -212,9 +226,9 @@ public function getV4() } /** - * Sets v4 + * Sets v4. * - * @param \Fingerprint\ServerAPI\Model\IpInfoResultV4 $v4 v4 + * @param IpInfoResultV4 $v4 v4 * * @return $this */ @@ -226,9 +240,9 @@ public function setV4($v4) } /** - * Gets v6 + * Gets v6. * - * @return \Fingerprint\ServerAPI\Model\IpInfoResultV6 + * @return IpInfoResultV6 */ public function getV6() { @@ -236,9 +250,9 @@ public function getV6() } /** - * Sets v6 + * Sets v6. * - * @param \Fingerprint\ServerAPI\Model\IpInfoResultV6 $v6 v6 + * @param IpInfoResultV6 $v6 v6 * * @return $this */ @@ -248,12 +262,13 @@ public function setV6($v6) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -264,7 +279,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -277,10 +292,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -295,30 +308,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 3ca971b3..c6a7674a 100644 --- a/src/Model/IpInfoResultV4.php +++ b/src/Model/IpInfoResultV4.php @@ -1,17 +1,18 @@ 'string', -'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[] - */ - protected static $swaggerFormats = [ - 'address' => 'ipv4', -'geolocation' => null, -'asn' => null, -'datacenter' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'address' => 'string', + '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 + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'address' => 'ipv4', + '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 $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 $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 $getters = [ 'address' => 'getAddress', -'geolocation' => 'getGeolocation', -'asn' => 'getAsn', -'datacenter' => 'getDatacenter' ]; + 'geolocation' => 'getGeolocation', + 'asn' => 'getAsn', + 'datacenter' => 'getDatacenter']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -136,7 +175,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -146,7 +185,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -165,29 +204,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -197,29 +213,29 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets address + * Gets address. * * @return string */ @@ -229,7 +245,7 @@ public function getAddress() } /** - * Sets address + * Sets address. * * @param string $address address * @@ -243,9 +259,9 @@ public function setAddress($address) } /** - * Gets geolocation + * Gets geolocation. * - * @return \Fingerprint\ServerAPI\Model\IPLocation + * @return IPLocation */ public function getGeolocation() { @@ -253,9 +269,9 @@ public function getGeolocation() } /** - * Sets geolocation + * Sets geolocation. * - * @param \Fingerprint\ServerAPI\Model\IPLocation $geolocation geolocation + * @param IPLocation $geolocation geolocation * * @return $this */ @@ -267,9 +283,9 @@ public function setGeolocation($geolocation) } /** - * Gets asn + * Gets asn. * - * @return \Fingerprint\ServerAPI\Model\ASN + * @return ASN */ public function getAsn() { @@ -277,9 +293,9 @@ public function getAsn() } /** - * Sets asn + * Sets asn. * - * @param \Fingerprint\ServerAPI\Model\ASN $asn asn + * @param ASN $asn asn * * @return $this */ @@ -291,9 +307,9 @@ public function setAsn($asn) } /** - * Gets datacenter + * Gets datacenter. * - * @return \Fingerprint\ServerAPI\Model\DataCenter + * @return DataCenter */ public function getDatacenter() { @@ -301,9 +317,9 @@ public function getDatacenter() } /** - * Sets datacenter + * Sets datacenter. * - * @param \Fingerprint\ServerAPI\Model\DataCenter $datacenter datacenter + * @param DataCenter $datacenter datacenter * * @return $this */ @@ -313,12 +329,13 @@ public function setDatacenter($datacenter) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -329,7 +346,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -342,10 +359,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -360,30 +375,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 121c639f..5157af7d 100644 --- a/src/Model/IpInfoResultV6.php +++ b/src/Model/IpInfoResultV6.php @@ -1,17 +1,18 @@ 'string', -'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[] - */ - protected static $swaggerFormats = [ - 'address' => 'ipv6', -'geolocation' => null, -'asn' => null, -'datacenter' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'address' => 'string', + '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 + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'address' => 'ipv6', + '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 $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 $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 $getters = [ 'address' => 'getAddress', -'geolocation' => 'getGeolocation', -'asn' => 'getAsn', -'datacenter' => 'getDatacenter' ]; + 'geolocation' => 'getGeolocation', + 'asn' => 'getAsn', + 'datacenter' => 'getDatacenter']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -136,7 +175,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -146,7 +185,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -165,29 +204,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -197,29 +213,29 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets address + * Gets address. * * @return string */ @@ -229,7 +245,7 @@ public function getAddress() } /** - * Sets address + * Sets address. * * @param string $address address * @@ -243,9 +259,9 @@ public function setAddress($address) } /** - * Gets geolocation + * Gets geolocation. * - * @return \Fingerprint\ServerAPI\Model\IPLocation + * @return IPLocation */ public function getGeolocation() { @@ -253,9 +269,9 @@ public function getGeolocation() } /** - * Sets geolocation + * Sets geolocation. * - * @param \Fingerprint\ServerAPI\Model\IPLocation $geolocation geolocation + * @param IPLocation $geolocation geolocation * * @return $this */ @@ -267,9 +283,9 @@ public function setGeolocation($geolocation) } /** - * Gets asn + * Gets asn. * - * @return \Fingerprint\ServerAPI\Model\ASN + * @return ASN */ public function getAsn() { @@ -277,9 +293,9 @@ public function getAsn() } /** - * Sets asn + * Sets asn. * - * @param \Fingerprint\ServerAPI\Model\ASN $asn asn + * @param ASN $asn asn * * @return $this */ @@ -291,9 +307,9 @@ public function setAsn($asn) } /** - * Gets datacenter + * Gets datacenter. * - * @return \Fingerprint\ServerAPI\Model\DataCenter + * @return DataCenter */ public function getDatacenter() { @@ -301,9 +317,9 @@ public function getDatacenter() } /** - * Sets datacenter + * Sets datacenter. * - * @param \Fingerprint\ServerAPI\Model\DataCenter $datacenter datacenter + * @param DataCenter $datacenter datacenter * * @return $this */ @@ -313,12 +329,13 @@ public function setDatacenter($datacenter) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -329,7 +346,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -342,10 +359,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -360,30 +375,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 3050fddd..25f58eaa 100644 --- a/src/Model/JailbrokenResult.php +++ b/src/Model/JailbrokenResult.php @@ -1,17 +1,18 @@ 'bool' ]; + 'result' => '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 $swaggerFormats = [ - 'result' => null ]; + 'result' => null]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes where the key is the local name, + * and the value is the original name. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $attributeMap = [ + 'result' => 'result']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses). * - * @return array + * @var string[] */ - public static function swaggerFormats() + protected static $setters = [ + 'result' => 'setResult']; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static $getters = [ + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) { - return self::$swaggerFormats; + $this->container['result'] = isset($data['result']) ? $data['result'] : null; } /** - * Array of attributes where the key is the local name, - * and the value is the original name + * Gets the string presentation of the object. * - * @var string[] + * @return string */ - protected static $attributeMap = [ - 'result' => 'result' ]; + public function __toString() + { + 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 attributes to setter functions (for deserialization of responses) + * Array of property to type mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $setters = [ - 'result' => 'setResult' ]; + public static function swaggerTypes() + { + return self::$swaggerTypes; + } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of property to format mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $getters = [ - 'result' => 'getResult' ]; + public static function swaggerFormats() + { + 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. * * @return array */ @@ -121,7 +157,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -131,7 +167,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -150,26 +186,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -179,26 +195,26 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result + * Gets result. * * @return bool */ @@ -208,7 +224,7 @@ public function getResult() } /** - * 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. * @@ -220,12 +236,13 @@ public function setResult($result) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -236,7 +253,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -249,10 +266,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -267,30 +282,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 9c4ef99d..aac2b040 100644 --- a/src/Model/Location.php +++ b/src/Model/Location.php @@ -1,17 +1,18 @@ 'string', -'name' => 'string' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'code' => null, -'name' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'code' => 'string', + 'name' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'code' => 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 $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 $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 $getters = [ 'code' => 'getCode', -'name' => 'getName' ]; + 'name' => 'getName']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -185,29 +201,29 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets code + * Gets code. * * @return string */ @@ -217,7 +233,7 @@ public function getCode() } /** - * Sets code + * Sets code. * * @param string $code code * @@ -231,7 +247,7 @@ public function setCode($code) } /** - * Gets name + * Gets name. * * @return string */ @@ -241,7 +257,7 @@ public function getName() } /** - * Sets name + * Sets name. * * @param string $name name * @@ -253,12 +269,13 @@ public function setName($name) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -269,7 +286,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -282,10 +299,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -300,30 +315,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 d7c4cea2..6ac2d299 100644 --- a/src/Model/LocationSpoofingResult.php +++ b/src/Model/LocationSpoofingResult.php @@ -1,17 +1,18 @@ 'bool' ]; + 'result' => '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 $swaggerFormats = [ - 'result' => null ]; + 'result' => null]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes where the key is the local name, + * and the value is the original name. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $attributeMap = [ + 'result' => 'result']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses). * - * @return array + * @var string[] */ - public static function swaggerFormats() + protected static $setters = [ + 'result' => 'setResult']; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static $getters = [ + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) { - return self::$swaggerFormats; + $this->container['result'] = isset($data['result']) ? $data['result'] : null; } /** - * Array of attributes where the key is the local name, - * and the value is the original name + * Gets the string presentation of the object. * - * @var string[] + * @return string */ - protected static $attributeMap = [ - 'result' => 'result' ]; + public function __toString() + { + 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 attributes to setter functions (for deserialization of responses) + * Array of property to type mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $setters = [ - 'result' => 'setResult' ]; + public static function swaggerTypes() + { + return self::$swaggerTypes; + } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of property to format mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $getters = [ - 'result' => 'getResult' ]; + public static function swaggerFormats() + { + 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. * * @return array */ @@ -121,7 +157,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -131,7 +167,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -150,26 +186,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -179,26 +195,26 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result + * Gets result. * * @return bool */ @@ -208,9 +224,9 @@ public function getResult() } /** - * 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 */ @@ -220,12 +236,13 @@ public function setResult($result) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -236,7 +253,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -249,10 +266,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -267,30 +282,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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/ManyRequestsResponse.php b/src/Model/ManyRequestsResponse.php index 2dc39488..8f97e293 100644 --- a/src/Model/ManyRequestsResponse.php +++ b/src/Model/ManyRequestsResponse.php @@ -1,17 +1,18 @@ 'string' ]; + 'error' => '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 $swaggerFormats = [ - 'error' => null ]; + 'error' => null]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes where the key is the local name, + * and the value is the original name. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $attributeMap = [ + 'error' => 'error']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses). * - * @return array + * @var string[] */ - public static function swaggerFormats() + protected static $setters = [ + 'error' => 'setError']; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) { - return self::$swaggerFormats; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; } /** - * Array of attributes where the key is the local name, - * and the value is the original name + * Gets the string presentation of the object. * - * @var string[] + * @return string */ - protected static $attributeMap = [ - 'error' => 'error' ]; + public function __toString() + { + 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 attributes to setter functions (for deserialization of responses) + * Array of property to type mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $setters = [ - 'error' => 'setError' ]; + public static function swaggerTypes() + { + return self::$swaggerTypes; + } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of property to format mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $getters = [ - 'error' => 'getError' ]; + public static function swaggerFormats() + { + 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. * * @return array */ @@ -121,7 +157,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -131,7 +167,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -150,26 +186,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -179,26 +195,26 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets error + * Gets error. * * @return string */ @@ -208,9 +224,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param string $error Error text. + * @param string $error error text * * @return $this */ @@ -220,12 +236,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -236,7 +253,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -249,10 +266,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -267,30 +282,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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' ]; + 'result' => '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 $swaggerFormats = [ - 'result' => null ]; + 'result' => null]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes where the key is the local name, + * and the value is the original name. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $attributeMap = [ + 'result' => 'result']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses). * - * @return array + * @var string[] */ - public static function swaggerFormats() + protected static $setters = [ + 'result' => 'setResult']; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static $getters = [ + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) { - return self::$swaggerFormats; + $this->container['result'] = isset($data['result']) ? $data['result'] : null; } /** - * Array of attributes where the key is the local name, - * and the value is the original name + * Gets the string presentation of the object. * - * @var string[] + * @return string */ - protected static $attributeMap = [ - 'result' => 'result' ]; + public function __toString() + { + 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 attributes to setter functions (for deserialization of responses) + * Array of property to type mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $setters = [ - 'result' => 'setResult' ]; + public static function swaggerTypes() + { + return self::$swaggerTypes; + } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of property to format mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $getters = [ - 'result' => 'getResult' ]; + public static function swaggerFormats() + { + 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. * * @return array */ @@ -121,7 +157,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -131,7 +167,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -150,26 +186,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -179,26 +195,26 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result + * Gets result. * * @return bool */ @@ -208,7 +224,7 @@ public function getResult() } /** - * 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`. * @@ -220,12 +236,13 @@ public function setResult($result) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -236,7 +253,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -249,10 +266,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -267,30 +282,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 87621846..7eba5405 100644 --- a/src/Model/ProductError.php +++ b/src/Model/ProductError.php @@ -1,17 +1,18 @@ 'string', -'message' => 'string' ]; + public const CODE_TOO_MANY_REQUESTS = 'TooManyRequests'; + public const CODE_FAILED = 'Failed'; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'code' => null, -'message' => null ]; + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'ProductError'; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'code' => null, + '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 $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 $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 $getters = [ 'code' => 'getCode', -'message' => 'getMessage' ]; + 'message' => 'getMessage']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +166,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +176,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,11 +195,8 @@ public function getModelName() return self::$swaggerModelName; } - public const CODE_TOO_MANY_REQUESTS = 'TooManyRequests'; - public const CODE_FAILED = 'Failed'; - /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -167,26 +204,7 @@ public function getCodeAllowableValues() { return [ self::CODE_TOO_MANY_REQUESTS, -self::CODE_FAILED, ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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, ]; } /** @@ -198,7 +216,7 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['code'] === null) { + if (null === $this->container['code']) { $invalidProperties[] = "'code' can't be null"; } $allowedValues = $this->getCodeAllowableValues(); @@ -209,26 +227,26 @@ public function listInvalidProperties() ); } - 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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets code + * Gets code. * * @return string */ @@ -238,7 +256,7 @@ public function getCode() } /** - * 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 * @@ -261,7 +279,7 @@ public function setCode($code) } /** - * Gets message + * Gets message. * * @return string */ @@ -271,7 +289,7 @@ public function getMessage() } /** - * Sets message + * Sets message. * * @param string $message message * @@ -283,12 +301,13 @@ public function setMessage($message) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -299,7 +318,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -312,10 +331,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -330,30 +347,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 ee4a8e18..c7867c8d 100644 --- a/src/Model/ProductsResponse.php +++ b/src/Model/ProductsResponse.php @@ -1,17 +1,18 @@ '\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' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $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 ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization + protected static $swaggerTypes = [ + 'identification' => '\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']; + + /** + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $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]; /** * 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 $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' ]; - - /** - * 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']; + + /** + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $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' ]; - - /** - * 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']; + + /** + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $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' ]; + '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']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['identification'] = isset($data['identification']) ? $data['identification'] : null; + $this->container['botd'] = isset($data['botd']) ? $data['botd'] : null; + $this->container['ip_info'] = isset($data['ip_info']) ? $data['ip_info'] : null; + $this->container['incognito'] = isset($data['incognito']) ? $data['incognito'] : null; + $this->container['root_apps'] = isset($data['root_apps']) ? $data['root_apps'] : null; + $this->container['emulator'] = isset($data['emulator']) ? $data['emulator'] : null; + $this->container['cloned_app'] = isset($data['cloned_app']) ? $data['cloned_app'] : null; + $this->container['factory_reset'] = isset($data['factory_reset']) ? $data['factory_reset'] : null; + $this->container['jailbroken'] = isset($data['jailbroken']) ? $data['jailbroken'] : null; + $this->container['frida'] = isset($data['frida']) ? $data['frida'] : null; + $this->container['ip_blocklist'] = isset($data['ip_blocklist']) ? $data['ip_blocklist'] : null; + $this->container['tor'] = isset($data['tor']) ? $data['tor'] : null; + $this->container['privacy_settings'] = isset($data['privacy_settings']) ? $data['privacy_settings'] : null; + $this->container['virtual_machine'] = isset($data['virtual_machine']) ? $data['virtual_machine'] : null; + $this->container['vpn'] = isset($data['vpn']) ? $data['vpn'] : null; + $this->container['proxy'] = isset($data['proxy']) ? $data['proxy'] : null; + $this->container['tampering'] = isset($data['tampering']) ? $data['tampering'] : null; + $this->container['high_activity'] = isset($data['high_activity']) ? $data['high_activity'] : null; + $this->container['location_spoofing'] = isset($data['location_spoofing']) ? $data['location_spoofing'] : null; + $this->container['suspect_score'] = isset($data['suspect_score']) ? $data['suspect_score'] : null; + $this->container['raw_device_attributes'] = isset($data['raw_device_attributes']) ? $data['raw_device_attributes'] : null; + } + + /** + * Gets the string presentation of the object. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -222,7 +279,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -232,7 +289,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -251,46 +308,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['identification'] = isset($data['identification']) ? $data['identification'] : null; - $this->container['botd'] = isset($data['botd']) ? $data['botd'] : null; - $this->container['ip_info'] = isset($data['ip_info']) ? $data['ip_info'] : null; - $this->container['incognito'] = isset($data['incognito']) ? $data['incognito'] : null; - $this->container['root_apps'] = isset($data['root_apps']) ? $data['root_apps'] : null; - $this->container['emulator'] = isset($data['emulator']) ? $data['emulator'] : null; - $this->container['cloned_app'] = isset($data['cloned_app']) ? $data['cloned_app'] : null; - $this->container['factory_reset'] = isset($data['factory_reset']) ? $data['factory_reset'] : null; - $this->container['jailbroken'] = isset($data['jailbroken']) ? $data['jailbroken'] : null; - $this->container['frida'] = isset($data['frida']) ? $data['frida'] : null; - $this->container['ip_blocklist'] = isset($data['ip_blocklist']) ? $data['ip_blocklist'] : null; - $this->container['tor'] = isset($data['tor']) ? $data['tor'] : null; - $this->container['privacy_settings'] = isset($data['privacy_settings']) ? $data['privacy_settings'] : null; - $this->container['virtual_machine'] = isset($data['virtual_machine']) ? $data['virtual_machine'] : null; - $this->container['vpn'] = isset($data['vpn']) ? $data['vpn'] : null; - $this->container['proxy'] = isset($data['proxy']) ? $data['proxy'] : null; - $this->container['tampering'] = isset($data['tampering']) ? $data['tampering'] : null; - $this->container['high_activity'] = isset($data['high_activity']) ? $data['high_activity'] : null; - $this->container['location_spoofing'] = isset($data['location_spoofing']) ? $data['location_spoofing'] : null; - $this->container['suspect_score'] = isset($data['suspect_score']) ? $data['suspect_score'] : null; - $this->container['raw_device_attributes'] = isset($data['raw_device_attributes']) ? $data['raw_device_attributes'] : null; - } - /** * Show all the invalid properties with reasons. * @@ -298,27 +315,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets identification + * Gets identification. * - * @return \Fingerprint\ServerAPI\Model\ProductsResponseIdentification + * @return ProductsResponseIdentification */ public function getIdentification() { @@ -326,9 +340,9 @@ public function getIdentification() } /** - * Sets identification + * Sets identification. * - * @param \Fingerprint\ServerAPI\Model\ProductsResponseIdentification $identification identification + * @param ProductsResponseIdentification $identification identification * * @return $this */ @@ -340,9 +354,9 @@ public function setIdentification($identification) } /** - * Gets botd + * Gets botd. * - * @return \Fingerprint\ServerAPI\Model\ProductsResponseBotd + * @return ProductsResponseBotd */ public function getBotd() { @@ -350,9 +364,9 @@ public function getBotd() } /** - * Sets botd + * Sets botd. * - * @param \Fingerprint\ServerAPI\Model\ProductsResponseBotd $botd botd + * @param ProductsResponseBotd $botd botd * * @return $this */ @@ -364,9 +378,9 @@ public function setBotd($botd) } /** - * Gets ip_info + * Gets ip_info. * - * @return \Fingerprint\ServerAPI\Model\SignalResponseIpInfo + * @return SignalResponseIpInfo */ public function getIpInfo() { @@ -374,9 +388,9 @@ public function getIpInfo() } /** - * Sets ip_info + * Sets ip_info. * - * @param \Fingerprint\ServerAPI\Model\SignalResponseIpInfo $ip_info ip_info + * @param SignalResponseIpInfo $ip_info ip_info * * @return $this */ @@ -388,9 +402,9 @@ public function setIpInfo($ip_info) } /** - * Gets incognito + * Gets incognito. * - * @return \Fingerprint\ServerAPI\Model\SignalResponseIncognito + * @return SignalResponseIncognito */ public function getIncognito() { @@ -398,9 +412,9 @@ public function getIncognito() } /** - * Sets incognito + * Sets incognito. * - * @param \Fingerprint\ServerAPI\Model\SignalResponseIncognito $incognito incognito + * @param SignalResponseIncognito $incognito incognito * * @return $this */ @@ -412,9 +426,9 @@ public function setIncognito($incognito) } /** - * Gets root_apps + * Gets root_apps. * - * @return \Fingerprint\ServerAPI\Model\SignalResponseRootApps + * @return SignalResponseRootApps */ public function getRootApps() { @@ -422,9 +436,9 @@ public function getRootApps() } /** - * Sets root_apps + * Sets root_apps. * - * @param \Fingerprint\ServerAPI\Model\SignalResponseRootApps $root_apps root_apps + * @param SignalResponseRootApps $root_apps root_apps * * @return $this */ @@ -436,9 +450,9 @@ public function setRootApps($root_apps) } /** - * Gets emulator + * Gets emulator. * - * @return \Fingerprint\ServerAPI\Model\SignalResponseEmulator + * @return SignalResponseEmulator */ public function getEmulator() { @@ -446,9 +460,9 @@ public function getEmulator() } /** - * Sets emulator + * Sets emulator. * - * @param \Fingerprint\ServerAPI\Model\SignalResponseEmulator $emulator emulator + * @param SignalResponseEmulator $emulator emulator * * @return $this */ @@ -460,9 +474,9 @@ public function setEmulator($emulator) } /** - * Gets cloned_app + * Gets cloned_app. * - * @return \Fingerprint\ServerAPI\Model\SignalResponseClonedApp + * @return SignalResponseClonedApp */ public function getClonedApp() { @@ -470,9 +484,9 @@ public function getClonedApp() } /** - * Sets cloned_app + * Sets cloned_app. * - * @param \Fingerprint\ServerAPI\Model\SignalResponseClonedApp $cloned_app cloned_app + * @param SignalResponseClonedApp $cloned_app cloned_app * * @return $this */ @@ -484,9 +498,9 @@ public function setClonedApp($cloned_app) } /** - * Gets factory_reset + * Gets factory_reset. * - * @return \Fingerprint\ServerAPI\Model\SignalResponseFactoryReset + * @return SignalResponseFactoryReset */ public function getFactoryReset() { @@ -494,9 +508,9 @@ public function getFactoryReset() } /** - * Sets factory_reset + * Sets factory_reset. * - * @param \Fingerprint\ServerAPI\Model\SignalResponseFactoryReset $factory_reset factory_reset + * @param SignalResponseFactoryReset $factory_reset factory_reset * * @return $this */ @@ -508,9 +522,9 @@ public function setFactoryReset($factory_reset) } /** - * Gets jailbroken + * Gets jailbroken. * - * @return \Fingerprint\ServerAPI\Model\SignalResponseJailbroken + * @return SignalResponseJailbroken */ public function getJailbroken() { @@ -518,9 +532,9 @@ public function getJailbroken() } /** - * Sets jailbroken + * Sets jailbroken. * - * @param \Fingerprint\ServerAPI\Model\SignalResponseJailbroken $jailbroken jailbroken + * @param SignalResponseJailbroken $jailbroken jailbroken * * @return $this */ @@ -532,9 +546,9 @@ public function setJailbroken($jailbroken) } /** - * Gets frida + * Gets frida. * - * @return \Fingerprint\ServerAPI\Model\SignalResponseFrida + * @return SignalResponseFrida */ public function getFrida() { @@ -542,9 +556,9 @@ public function getFrida() } /** - * Sets frida + * Sets frida. * - * @param \Fingerprint\ServerAPI\Model\SignalResponseFrida $frida frida + * @param SignalResponseFrida $frida frida * * @return $this */ @@ -556,9 +570,9 @@ public function setFrida($frida) } /** - * Gets ip_blocklist + * Gets ip_blocklist. * - * @return \Fingerprint\ServerAPI\Model\SignalResponseIpBlocklist + * @return SignalResponseIpBlocklist */ public function getIpBlocklist() { @@ -566,9 +580,9 @@ public function getIpBlocklist() } /** - * Sets ip_blocklist + * Sets ip_blocklist. * - * @param \Fingerprint\ServerAPI\Model\SignalResponseIpBlocklist $ip_blocklist ip_blocklist + * @param SignalResponseIpBlocklist $ip_blocklist ip_blocklist * * @return $this */ @@ -580,9 +594,9 @@ public function setIpBlocklist($ip_blocklist) } /** - * Gets tor + * Gets tor. * - * @return \Fingerprint\ServerAPI\Model\SignalResponseTor + * @return SignalResponseTor */ public function getTor() { @@ -590,9 +604,9 @@ public function getTor() } /** - * Sets tor + * Sets tor. * - * @param \Fingerprint\ServerAPI\Model\SignalResponseTor $tor tor + * @param SignalResponseTor $tor tor * * @return $this */ @@ -604,9 +618,9 @@ public function setTor($tor) } /** - * Gets privacy_settings + * Gets privacy_settings. * - * @return \Fingerprint\ServerAPI\Model\SignalResponsePrivacySettings + * @return SignalResponsePrivacySettings */ public function getPrivacySettings() { @@ -614,9 +628,9 @@ public function getPrivacySettings() } /** - * Sets privacy_settings + * Sets privacy_settings. * - * @param \Fingerprint\ServerAPI\Model\SignalResponsePrivacySettings $privacy_settings privacy_settings + * @param SignalResponsePrivacySettings $privacy_settings privacy_settings * * @return $this */ @@ -628,9 +642,9 @@ public function setPrivacySettings($privacy_settings) } /** - * Gets virtual_machine + * Gets virtual_machine. * - * @return \Fingerprint\ServerAPI\Model\SignalResponseVirtualMachine + * @return SignalResponseVirtualMachine */ public function getVirtualMachine() { @@ -638,9 +652,9 @@ public function getVirtualMachine() } /** - * Sets virtual_machine + * Sets virtual_machine. * - * @param \Fingerprint\ServerAPI\Model\SignalResponseVirtualMachine $virtual_machine virtual_machine + * @param SignalResponseVirtualMachine $virtual_machine virtual_machine * * @return $this */ @@ -652,9 +666,9 @@ public function setVirtualMachine($virtual_machine) } /** - * Gets vpn + * Gets vpn. * - * @return \Fingerprint\ServerAPI\Model\SignalResponseVpn + * @return SignalResponseVpn */ public function getVpn() { @@ -662,9 +676,9 @@ public function getVpn() } /** - * Sets vpn + * Sets vpn. * - * @param \Fingerprint\ServerAPI\Model\SignalResponseVpn $vpn vpn + * @param SignalResponseVpn $vpn vpn * * @return $this */ @@ -676,9 +690,9 @@ public function setVpn($vpn) } /** - * Gets proxy + * Gets proxy. * - * @return \Fingerprint\ServerAPI\Model\SignalResponseProxy + * @return SignalResponseProxy */ public function getProxy() { @@ -686,9 +700,9 @@ public function getProxy() } /** - * Sets proxy + * Sets proxy. * - * @param \Fingerprint\ServerAPI\Model\SignalResponseProxy $proxy proxy + * @param SignalResponseProxy $proxy proxy * * @return $this */ @@ -700,9 +714,9 @@ public function setProxy($proxy) } /** - * Gets tampering + * Gets tampering. * - * @return \Fingerprint\ServerAPI\Model\SignalResponseTampering + * @return SignalResponseTampering */ public function getTampering() { @@ -710,9 +724,9 @@ public function getTampering() } /** - * Sets tampering + * Sets tampering. * - * @param \Fingerprint\ServerAPI\Model\SignalResponseTampering $tampering tampering + * @param SignalResponseTampering $tampering tampering * * @return $this */ @@ -724,9 +738,9 @@ public function setTampering($tampering) } /** - * Gets high_activity + * Gets high_activity. * - * @return \Fingerprint\ServerAPI\Model\SignalResponseHighActivity + * @return SignalResponseHighActivity */ public function getHighActivity() { @@ -734,9 +748,9 @@ public function getHighActivity() } /** - * Sets high_activity + * Sets high_activity. * - * @param \Fingerprint\ServerAPI\Model\SignalResponseHighActivity $high_activity high_activity + * @param SignalResponseHighActivity $high_activity high_activity * * @return $this */ @@ -748,9 +762,9 @@ public function setHighActivity($high_activity) } /** - * Gets location_spoofing + * Gets location_spoofing. * - * @return \Fingerprint\ServerAPI\Model\SignalResponseLocationSpoofing + * @return SignalResponseLocationSpoofing */ public function getLocationSpoofing() { @@ -758,9 +772,9 @@ public function getLocationSpoofing() } /** - * Sets location_spoofing + * Sets location_spoofing. * - * @param \Fingerprint\ServerAPI\Model\SignalResponseLocationSpoofing $location_spoofing location_spoofing + * @param SignalResponseLocationSpoofing $location_spoofing location_spoofing * * @return $this */ @@ -772,9 +786,9 @@ public function setLocationSpoofing($location_spoofing) } /** - * Gets suspect_score + * Gets suspect_score. * - * @return \Fingerprint\ServerAPI\Model\SignalResponseSuspectScore + * @return SignalResponseSuspectScore */ public function getSuspectScore() { @@ -782,9 +796,9 @@ public function getSuspectScore() } /** - * Sets suspect_score + * Sets suspect_score. * - * @param \Fingerprint\ServerAPI\Model\SignalResponseSuspectScore $suspect_score suspect_score + * @param SignalResponseSuspectScore $suspect_score suspect_score * * @return $this */ @@ -796,9 +810,9 @@ public function setSuspectScore($suspect_score) } /** - * Gets raw_device_attributes + * Gets raw_device_attributes. * - * @return \Fingerprint\ServerAPI\Model\SignalResponseRawDeviceAttributes + * @return SignalResponseRawDeviceAttributes */ public function getRawDeviceAttributes() { @@ -806,9 +820,9 @@ public function getRawDeviceAttributes() } /** - * Sets raw_device_attributes + * Sets raw_device_attributes. * - * @param \Fingerprint\ServerAPI\Model\SignalResponseRawDeviceAttributes $raw_device_attributes raw_device_attributes + * @param SignalResponseRawDeviceAttributes $raw_device_attributes raw_device_attributes * * @return $this */ @@ -818,12 +832,13 @@ public function setRawDeviceAttributes($raw_device_attributes) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -834,7 +849,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -847,10 +862,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -865,30 +878,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 bd392ddf..2d5688d4 100644 --- a/src/Model/ProductsResponseBotd.php +++ b/src/Model/ProductsResponseBotd.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\BotdResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\BotdResult', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\BotdResult + * @return BotdResult */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\BotdResult $data data + * @param BotdResult $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 51569838..13f0f7b8 100644 --- a/src/Model/ProductsResponseIdentification.php +++ b/src/Model/ProductsResponseIdentification.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\ProductsResponseIdentificationData', -'error' => '\Fingerprint\ServerAPI\Model\IdentificationError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\ProductsResponseIdentificationData', + 'error' => '\Fingerprint\ServerAPI\Model\IdentificationError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\ProductsResponseIdentificationData + * @return ProductsResponseIdentificationData */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\ProductsResponseIdentificationData $data data + * @param ProductsResponseIdentificationData $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\IdentificationError + * @return IdentificationError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\IdentificationError $error error + * @param IdentificationError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 7af7e0c8..1b5c1d97 100644 --- a/src/Model/ProductsResponseIdentificationData.php +++ b/src/Model/ProductsResponseIdentificationData.php @@ -1,17 +1,18 @@ '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 $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 + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization + protected static $swaggerTypes = [ + 'request_id' => '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. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $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 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 $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 $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 $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 $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -191,7 +241,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -201,7 +251,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -220,40 +270,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -263,59 +279,59 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets request_id + * Gets request_id. * * @return string */ @@ -325,9 +341,9 @@ public function getRequestId() } /** - * 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 */ @@ -339,9 +355,9 @@ public function setRequestId($request_id) } /** - * Gets browser_details + * Gets browser_details. * - * @return \Fingerprint\ServerAPI\Model\BrowserDetails + * @return BrowserDetails */ public function getBrowserDetails() { @@ -349,9 +365,9 @@ public function getBrowserDetails() } /** - * Sets browser_details + * Sets browser_details. * - * @param \Fingerprint\ServerAPI\Model\BrowserDetails $browser_details browser_details + * @param BrowserDetails $browser_details browser_details * * @return $this */ @@ -363,7 +379,7 @@ public function setBrowserDetails($browser_details) } /** - * Gets incognito + * Gets incognito. * * @return bool */ @@ -373,9 +389,9 @@ public function getIncognito() } /** - * Sets incognito + * Sets incognito. * - * @param bool $incognito Flag if user used incognito session. + * @param bool $incognito flag if user used incognito session * * @return $this */ @@ -387,7 +403,7 @@ public function setIncognito($incognito) } /** - * Gets ip + * Gets ip. * * @return string */ @@ -397,7 +413,7 @@ public function getIp() } /** - * Sets ip + * Sets ip. * * @param string $ip ip * @@ -411,9 +427,9 @@ public function setIp($ip) } /** - * Gets ip_location + * Gets ip_location. * - * @return \Fingerprint\ServerAPI\Model\DeprecatedIPLocation + * @return DeprecatedIPLocation */ public function getIpLocation() { @@ -421,9 +437,9 @@ public function getIpLocation() } /** - * Sets ip_location + * Sets ip_location. * - * @param \Fingerprint\ServerAPI\Model\DeprecatedIPLocation $ip_location ip_location + * @param DeprecatedIPLocation $ip_location ip_location * * @return $this */ @@ -435,7 +451,7 @@ public function setIpLocation($ip_location) } /** - * Gets timestamp + * Gets timestamp. * * @return int */ @@ -445,9 +461,9 @@ public function getTimestamp() } /** - * 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 */ @@ -459,7 +475,7 @@ public function setTimestamp($timestamp) } /** - * Gets time + * Gets time. * * @return \DateTime */ @@ -469,9 +485,9 @@ public function getTime() } /** - * 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 */ @@ -483,7 +499,7 @@ public function setTime($time) } /** - * Gets url + * Gets url. * * @return string */ @@ -493,9 +509,9 @@ public function getUrl() } /** - * 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 */ @@ -507,7 +523,7 @@ public function setUrl($url) } /** - * Gets tag + * Gets tag. * * @return map[string,object] */ @@ -517,9 +533,9 @@ public function getTag() } /** - * 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 */ @@ -531,7 +547,7 @@ public function setTag($tag) } /** - * Gets linked_id + * Gets linked_id. * * @return string */ @@ -541,9 +557,9 @@ public function getLinkedId() } /** - * 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 */ @@ -555,9 +571,9 @@ public function setLinkedId($linked_id) } /** - * Gets confidence + * Gets confidence. * - * @return \Fingerprint\ServerAPI\Model\Confidence + * @return Confidence */ public function getConfidence() { @@ -565,9 +581,9 @@ public function getConfidence() } /** - * Sets confidence + * Sets confidence. * - * @param \Fingerprint\ServerAPI\Model\Confidence $confidence confidence + * @param Confidence $confidence confidence * * @return $this */ @@ -579,7 +595,7 @@ public function setConfidence($confidence) } /** - * Gets visitor_found + * Gets visitor_found. * * @return bool */ @@ -589,9 +605,9 @@ public function getVisitorFound() } /** - * 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 */ @@ -603,9 +619,9 @@ public function setVisitorFound($visitor_found) } /** - * Gets first_seen_at + * Gets first_seen_at. * - * @return \Fingerprint\ServerAPI\Model\SeenAt + * @return SeenAt */ public function getFirstSeenAt() { @@ -613,9 +629,9 @@ public function getFirstSeenAt() } /** - * 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 */ @@ -627,9 +643,9 @@ public function setFirstSeenAt($first_seen_at) } /** - * Gets last_seen_at + * Gets last_seen_at. * - * @return \Fingerprint\ServerAPI\Model\SeenAt + * @return SeenAt */ public function getLastSeenAt() { @@ -637,9 +653,9 @@ public function getLastSeenAt() } /** - * 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 */ @@ -651,7 +667,7 @@ public function setLastSeenAt($last_seen_at) } /** - * Gets visitor_id + * Gets visitor_id. * * @return string */ @@ -661,9 +677,9 @@ public function getVisitorId() } /** - * 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 */ @@ -673,12 +689,13 @@ public function setVisitorId($visitor_id) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -689,7 +706,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -702,10 +719,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -720,30 +735,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 2d3db6e6..09b180aa 100644 --- a/src/Model/ProxyResult.php +++ b/src/Model/ProxyResult.php @@ -1,17 +1,18 @@ 'bool' ]; + 'result' => '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 $swaggerFormats = [ - 'result' => null ]; + 'result' => null]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes where the key is the local name, + * and the value is the original name. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $attributeMap = [ + 'result' => 'result']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses). * - * @return array + * @var string[] */ - public static function swaggerFormats() + protected static $setters = [ + 'result' => 'setResult']; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static $getters = [ + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) { - return self::$swaggerFormats; + $this->container['result'] = isset($data['result']) ? $data['result'] : null; } /** - * Array of attributes where the key is the local name, - * and the value is the original name + * Gets the string presentation of the object. * - * @var string[] + * @return string */ - protected static $attributeMap = [ - 'result' => 'result' ]; + public function __toString() + { + 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 attributes to setter functions (for deserialization of responses) + * Array of property to type mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $setters = [ - 'result' => 'setResult' ]; + public static function swaggerTypes() + { + return self::$swaggerTypes; + } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of property to format mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $getters = [ - 'result' => 'getResult' ]; + public static function swaggerFormats() + { + 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. * * @return array */ @@ -121,7 +157,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -131,7 +167,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -150,26 +186,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -179,26 +195,26 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result + * Gets result. * * @return bool */ @@ -208,9 +224,9 @@ public function getResult() } /** - * 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 */ @@ -220,12 +236,13 @@ public function setResult($result) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -236,7 +253,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -249,10 +266,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -267,30 +282,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 af772cc9..4cd9caca 100644 --- a/src/Model/RawDeviceAttributesResult.php +++ b/src/Model/RawDeviceAttributesResult.php @@ -1,17 +1,18 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -209,7 +222,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -222,10 +235,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -240,30 +251,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 ed92336b..aa806a04 100644 --- a/src/Model/Response.php +++ b/src/Model/Response.php @@ -1,17 +1,18 @@ 'string', -'visits' => '\Fingerprint\ServerAPI\Model\ResponseVisits[]', -'last_timestamp' => 'int', -'pagination_key' => 'string' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'visitor_id' => null, -'visits' => null, -'last_timestamp' => 'int64', -'pagination_key' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'visitor_id' => 'string', + 'visits' => '\Fingerprint\ServerAPI\Model\ResponseVisits[]', + 'last_timestamp' => 'int', + 'pagination_key' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'visitor_id' => null, + '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 $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 $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 $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 $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -137,7 +177,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -147,7 +187,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -166,29 +206,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -198,29 +215,29 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets visitor_id + * Gets visitor_id. * * @return string */ @@ -230,7 +247,7 @@ public function getVisitorId() } /** - * Sets visitor_id + * Sets visitor_id. * * @param string $visitor_id visitor_id * @@ -244,7 +261,7 @@ public function setVisitorId($visitor_id) } /** - * Gets visits + * Gets visits. * * @return \Fingerprint\ServerAPI\Model\ResponseVisits[] */ @@ -254,7 +271,7 @@ public function getVisits() } /** - * Sets visits + * Sets visits. * * @param \Fingerprint\ServerAPI\Model\ResponseVisits[] $visits visits * @@ -268,7 +285,7 @@ public function setVisits($visits) } /** - * Gets last_timestamp + * Gets last_timestamp. * * @return int */ @@ -278,7 +295,7 @@ public function getLastTimestamp() } /** - * 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. * @@ -292,7 +309,7 @@ public function setLastTimestamp($last_timestamp) } /** - * Gets pagination_key + * Gets pagination_key. * * @return string */ @@ -302,7 +319,7 @@ public function getPaginationKey() } /** - * 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. * @@ -314,12 +331,13 @@ public function setPaginationKey($pagination_key) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -330,7 +348,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -343,10 +361,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -361,30 +377,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 919ce4e7..e055eeff 100644 --- a/src/Model/ResponseVisits.php +++ b/src/Model/ResponseVisits.php @@ -1,17 +1,18 @@ '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 $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 + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization + protected static $swaggerTypes = [ + 'request_id' => '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. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $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 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 $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 $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 $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 $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -186,7 +235,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -196,7 +245,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -215,39 +264,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -257,56 +273,56 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets request_id + * Gets request_id. * * @return string */ @@ -316,9 +332,9 @@ public function getRequestId() } /** - * 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 */ @@ -330,9 +346,9 @@ public function setRequestId($request_id) } /** - * Gets browser_details + * Gets browser_details. * - * @return \Fingerprint\ServerAPI\Model\BrowserDetails + * @return BrowserDetails */ public function getBrowserDetails() { @@ -340,9 +356,9 @@ public function getBrowserDetails() } /** - * Sets browser_details + * Sets browser_details. * - * @param \Fingerprint\ServerAPI\Model\BrowserDetails $browser_details browser_details + * @param BrowserDetails $browser_details browser_details * * @return $this */ @@ -354,7 +370,7 @@ public function setBrowserDetails($browser_details) } /** - * Gets incognito + * Gets incognito. * * @return bool */ @@ -364,9 +380,9 @@ public function getIncognito() } /** - * Sets incognito + * Sets incognito. * - * @param bool $incognito Flag if user used incognito session. + * @param bool $incognito flag if user used incognito session * * @return $this */ @@ -378,7 +394,7 @@ public function setIncognito($incognito) } /** - * Gets ip + * Gets ip. * * @return string */ @@ -388,7 +404,7 @@ public function getIp() } /** - * Sets ip + * Sets ip. * * @param string $ip ip * @@ -402,9 +418,9 @@ public function setIp($ip) } /** - * Gets ip_location + * Gets ip_location. * - * @return \Fingerprint\ServerAPI\Model\DeprecatedIPLocation + * @return DeprecatedIPLocation */ public function getIpLocation() { @@ -412,9 +428,9 @@ public function getIpLocation() } /** - * Sets ip_location + * Sets ip_location. * - * @param \Fingerprint\ServerAPI\Model\DeprecatedIPLocation $ip_location ip_location + * @param DeprecatedIPLocation $ip_location ip_location * * @return $this */ @@ -426,7 +442,7 @@ public function setIpLocation($ip_location) } /** - * Gets timestamp + * Gets timestamp. * * @return int */ @@ -436,9 +452,9 @@ public function getTimestamp() } /** - * 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 */ @@ -450,7 +466,7 @@ public function setTimestamp($timestamp) } /** - * Gets time + * Gets time. * * @return \DateTime */ @@ -460,9 +476,9 @@ public function getTime() } /** - * 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 */ @@ -474,7 +490,7 @@ public function setTime($time) } /** - * Gets url + * Gets url. * * @return string */ @@ -484,9 +500,9 @@ public function getUrl() } /** - * 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 */ @@ -498,7 +514,7 @@ public function setUrl($url) } /** - * Gets tag + * Gets tag. * * @return map[string,object] */ @@ -508,9 +524,9 @@ public function getTag() } /** - * 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 */ @@ -522,7 +538,7 @@ public function setTag($tag) } /** - * Gets linked_id + * Gets linked_id. * * @return string */ @@ -532,9 +548,9 @@ public function getLinkedId() } /** - * 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 */ @@ -546,9 +562,9 @@ public function setLinkedId($linked_id) } /** - * Gets confidence + * Gets confidence. * - * @return \Fingerprint\ServerAPI\Model\Confidence + * @return Confidence */ public function getConfidence() { @@ -556,9 +572,9 @@ public function getConfidence() } /** - * Sets confidence + * Sets confidence. * - * @param \Fingerprint\ServerAPI\Model\Confidence $confidence confidence + * @param Confidence $confidence confidence * * @return $this */ @@ -570,7 +586,7 @@ public function setConfidence($confidence) } /** - * Gets visitor_found + * Gets visitor_found. * * @return bool */ @@ -580,9 +596,9 @@ public function getVisitorFound() } /** - * 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 */ @@ -594,9 +610,9 @@ public function setVisitorFound($visitor_found) } /** - * Gets first_seen_at + * Gets first_seen_at. * - * @return \Fingerprint\ServerAPI\Model\SeenAt + * @return SeenAt */ public function getFirstSeenAt() { @@ -604,9 +620,9 @@ public function getFirstSeenAt() } /** - * 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 */ @@ -618,9 +634,9 @@ public function setFirstSeenAt($first_seen_at) } /** - * Gets last_seen_at + * Gets last_seen_at. * - * @return \Fingerprint\ServerAPI\Model\SeenAt + * @return SeenAt */ public function getLastSeenAt() { @@ -628,9 +644,9 @@ public function getLastSeenAt() } /** - * 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 */ @@ -640,12 +656,13 @@ public function setLastSeenAt($last_seen_at) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -656,7 +673,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -669,10 +686,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -687,30 +702,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 a65885f8..857c7a49 100644 --- a/src/Model/RootAppsResult.php +++ b/src/Model/RootAppsResult.php @@ -1,17 +1,18 @@ 'bool' ]; + 'result' => '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 $swaggerFormats = [ - 'result' => null ]; + 'result' => null]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes where the key is the local name, + * and the value is the original name. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $attributeMap = [ + 'result' => 'result']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses). * - * @return array + * @var string[] */ - public static function swaggerFormats() + protected static $setters = [ + 'result' => 'setResult']; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static $getters = [ + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) { - return self::$swaggerFormats; + $this->container['result'] = isset($data['result']) ? $data['result'] : null; } /** - * Array of attributes where the key is the local name, - * and the value is the original name + * Gets the string presentation of the object. * - * @var string[] + * @return string */ - protected static $attributeMap = [ - 'result' => 'result' ]; + public function __toString() + { + 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 attributes to setter functions (for deserialization of responses) + * Array of property to type mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $setters = [ - 'result' => 'setResult' ]; + public static function swaggerTypes() + { + return self::$swaggerTypes; + } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of property to format mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $getters = [ - 'result' => 'getResult' ]; + public static function swaggerFormats() + { + 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. * * @return array */ @@ -121,7 +157,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -131,7 +167,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -150,26 +186,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -179,26 +195,26 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result + * Gets result. * * @return bool */ @@ -208,7 +224,7 @@ public function getResult() } /** - * 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. * @@ -220,12 +236,13 @@ public function setResult($result) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -236,7 +253,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -249,10 +266,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -267,30 +282,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 90d4554e..d6b068d1 100644 --- a/src/Model/SeenAt.php +++ b/src/Model/SeenAt.php @@ -1,17 +1,18 @@ '\DateTime', -'subscription' => '\DateTime' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'global' => 'date-time', -'subscription' => 'date-time' ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'global' => '\DateTime', + 'subscription' => '\DateTime']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'global' => 'date-time', + '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 $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 $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 $getters = [ 'global' => 'getGlobal', -'subscription' => 'getSubscription' ]; + 'subscription' => 'getSubscription']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -185,29 +201,29 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets global + * Gets global. * * @return \DateTime */ @@ -217,7 +233,7 @@ public function getGlobal() } /** - * Sets global + * Sets global. * * @param \DateTime $global global * @@ -231,7 +247,7 @@ public function setGlobal($global) } /** - * Gets subscription + * Gets subscription. * * @return \DateTime */ @@ -241,7 +257,7 @@ public function getSubscription() } /** - * Sets subscription + * Sets subscription. * * @param \DateTime $subscription subscription * @@ -253,12 +269,13 @@ public function setSubscription($subscription) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -269,7 +286,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -282,10 +299,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -300,30 +315,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 a6425aa2..c1c421f0 100644 --- a/src/Model/SignalResponseClonedApp.php +++ b/src/Model/SignalResponseClonedApp.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\ClonedAppResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\ClonedAppResult', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\ClonedAppResult + * @return ClonedAppResult */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\ClonedAppResult $data data + * @param ClonedAppResult $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 68375671..f858ffc6 100644 --- a/src/Model/SignalResponseEmulator.php +++ b/src/Model/SignalResponseEmulator.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\EmulatorResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\EmulatorResult', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\EmulatorResult + * @return EmulatorResult */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\EmulatorResult $data data + * @param EmulatorResult $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 f9b764be..f64e8fcb 100644 --- a/src/Model/SignalResponseFactoryReset.php +++ b/src/Model/SignalResponseFactoryReset.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\FactoryResetResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\FactoryResetResult', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\FactoryResetResult + * @return FactoryResetResult */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\FactoryResetResult $data data + * @param FactoryResetResult $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 50d9e892..b929a385 100644 --- a/src/Model/SignalResponseFrida.php +++ b/src/Model/SignalResponseFrida.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\FridaResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\FridaResult', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\FridaResult + * @return FridaResult */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\FridaResult $data data + * @param FridaResult $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 2b270118..ccb4a057 100644 --- a/src/Model/SignalResponseHighActivity.php +++ b/src/Model/SignalResponseHighActivity.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\HighActivityResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\HighActivityResult', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\HighActivityResult + * @return HighActivityResult */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\HighActivityResult $data data + * @param HighActivityResult $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 7f720d14..9e1a0644 100644 --- a/src/Model/SignalResponseIncognito.php +++ b/src/Model/SignalResponseIncognito.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\IncognitoResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\IncognitoResult', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\IncognitoResult + * @return IncognitoResult */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\IncognitoResult $data data + * @param IncognitoResult $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 dcd61fe5..a9244059 100644 --- a/src/Model/SignalResponseIpBlocklist.php +++ b/src/Model/SignalResponseIpBlocklist.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\IpBlockListResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\IpBlockListResult', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\IpBlockListResult + * @return IpBlockListResult */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\IpBlockListResult $data data + * @param IpBlockListResult $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 be79e742..77f116e2 100644 --- a/src/Model/SignalResponseIpInfo.php +++ b/src/Model/SignalResponseIpInfo.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\IpInfoResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\IpInfoResult', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\IpInfoResult + * @return IpInfoResult */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\IpInfoResult $data data + * @param IpInfoResult $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 c6043bca..e6669e07 100644 --- a/src/Model/SignalResponseJailbroken.php +++ b/src/Model/SignalResponseJailbroken.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\JailbrokenResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\JailbrokenResult', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\JailbrokenResult + * @return JailbrokenResult */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\JailbrokenResult $data data + * @param JailbrokenResult $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 fb7dc72d..226ed8a2 100644 --- a/src/Model/SignalResponseLocationSpoofing.php +++ b/src/Model/SignalResponseLocationSpoofing.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\LocationSpoofingResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\LocationSpoofingResult', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\LocationSpoofingResult + * @return LocationSpoofingResult */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\LocationSpoofingResult $data data + * @param LocationSpoofingResult $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 4e20282f..9ebcbfd8 100644 --- a/src/Model/SignalResponsePrivacySettings.php +++ b/src/Model/SignalResponsePrivacySettings.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\PrivacySettingsResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\PrivacySettingsResult', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\PrivacySettingsResult + * @return PrivacySettingsResult */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\PrivacySettingsResult $data data + * @param PrivacySettingsResult $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 7e4aa4d9..b529f3eb 100644 --- a/src/Model/SignalResponseProxy.php +++ b/src/Model/SignalResponseProxy.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\ProxyResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\ProxyResult', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\ProxyResult + * @return ProxyResult */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\ProxyResult $data data + * @param ProxyResult $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 9640eaf9..0921c456 100644 --- a/src/Model/SignalResponseRawDeviceAttributes.php +++ b/src/Model/SignalResponseRawDeviceAttributes.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\RawDeviceAttributesResult + * @return RawDeviceAttributesResult */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\RawDeviceAttributesResult $data data + * @param RawDeviceAttributesResult $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 ac9dcecc..e25f947a 100644 --- a/src/Model/SignalResponseRootApps.php +++ b/src/Model/SignalResponseRootApps.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\RootAppsResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\RootAppsResult', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\RootAppsResult + * @return RootAppsResult */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\RootAppsResult $data data + * @param RootAppsResult $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 46bf8b0c..bfe2b90e 100644 --- a/src/Model/SignalResponseSuspectScore.php +++ b/src/Model/SignalResponseSuspectScore.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\SuspectScoreResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\SuspectScoreResult', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\SuspectScoreResult + * @return SuspectScoreResult */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\SuspectScoreResult $data data + * @param SuspectScoreResult $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 bfdf39a1..49be1f05 100644 --- a/src/Model/SignalResponseTampering.php +++ b/src/Model/SignalResponseTampering.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\TamperingResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\TamperingResult', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\TamperingResult + * @return TamperingResult */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\TamperingResult $data data + * @param TamperingResult $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 83603d8e..6e62b9a6 100644 --- a/src/Model/SignalResponseTor.php +++ b/src/Model/SignalResponseTor.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\TorResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\TorResult', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\TorResult + * @return TorResult */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\TorResult $data data + * @param TorResult $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 493fadac..8b13d675 100644 --- a/src/Model/SignalResponseVirtualMachine.php +++ b/src/Model/SignalResponseVirtualMachine.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\VirtualMachineResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\VirtualMachineResult', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\VirtualMachineResult + * @return VirtualMachineResult */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\VirtualMachineResult $data data + * @param VirtualMachineResult $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 391039bb..6d7a3e71 100644 --- a/src/Model/SignalResponseVpn.php +++ b/src/Model/SignalResponseVpn.php @@ -1,17 +1,18 @@ '\Fingerprint\ServerAPI\Model\VpnResult', -'error' => '\Fingerprint\ServerAPI\Model\ProductError' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'data' => null, -'error' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'data' => '\Fingerprint\ServerAPI\Model\VpnResult', + 'error' => '\Fingerprint\ServerAPI\Model\ProductError']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'data' => null, + '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 $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 $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 $getters = [ 'data' => 'getData', -'error' => 'getError' ]; + 'error' => 'getError']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,27 +199,24 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data + * Gets data. * - * @return \Fingerprint\ServerAPI\Model\VpnResult + * @return VpnResult */ public function getData() { @@ -211,9 +224,9 @@ public function getData() } /** - * Sets data + * Sets data. * - * @param \Fingerprint\ServerAPI\Model\VpnResult $data data + * @param VpnResult $data data * * @return $this */ @@ -225,9 +238,9 @@ public function setData($data) } /** - * Gets error + * Gets error. * - * @return \Fingerprint\ServerAPI\Model\ProductError + * @return ProductError */ public function getError() { @@ -235,9 +248,9 @@ public function getError() } /** - * Sets error + * Sets error. * - * @param \Fingerprint\ServerAPI\Model\ProductError $error error + * @param ProductError $error error * * @return $this */ @@ -247,12 +260,13 @@ public function setError($error) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 a21876d5..6724848a 100644 --- a/src/Model/Subdivision.php +++ b/src/Model/Subdivision.php @@ -1,17 +1,18 @@ 'string', -'name' => 'string' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'iso_code' => null, -'name' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'iso_code' => 'string', + 'name' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'iso_code' => 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 $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 $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 $getters = [ 'iso_code' => 'getIsoCode', -'name' => 'getName' ]; + 'name' => 'getName']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -183,25 +199,22 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets iso_code + * Gets iso_code. * * @return string */ @@ -211,7 +224,7 @@ public function getIsoCode() } /** - * Sets iso_code + * Sets iso_code. * * @param string $iso_code iso_code * @@ -225,7 +238,7 @@ public function setIsoCode($iso_code) } /** - * Gets name + * Gets name. * * @return string */ @@ -235,7 +248,7 @@ public function getName() } /** - * Sets name + * Sets name. * * @param string $name name * @@ -247,12 +260,13 @@ public function setName($name) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -263,7 +277,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -276,10 +290,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -294,30 +306,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 c9b61c2c..981c5192 100644 --- a/src/Model/SuspectScoreResult.php +++ b/src/Model/SuspectScoreResult.php @@ -1,17 +1,18 @@ 'int' ]; + 'result' => '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 $swaggerFormats = [ - 'result' => null ]; + 'result' => null]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes where the key is the local name, + * and the value is the original name. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $attributeMap = [ + 'result' => 'result']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses). * - * @return array + * @var string[] */ - public static function swaggerFormats() + protected static $setters = [ + 'result' => 'setResult']; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static $getters = [ + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) { - return self::$swaggerFormats; + $this->container['result'] = isset($data['result']) ? $data['result'] : null; } /** - * Array of attributes where the key is the local name, - * and the value is the original name + * Gets the string presentation of the object. * - * @var string[] + * @return string */ - protected static $attributeMap = [ - 'result' => 'result' ]; + public function __toString() + { + 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 attributes to setter functions (for deserialization of responses) + * Array of property to type mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $setters = [ - 'result' => 'setResult' ]; + public static function swaggerTypes() + { + return self::$swaggerTypes; + } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of property to format mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $getters = [ - 'result' => 'getResult' ]; + public static function swaggerFormats() + { + 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. * * @return array */ @@ -121,7 +157,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -131,7 +167,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -150,26 +186,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -179,26 +195,26 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result + * Gets result. * * @return int */ @@ -208,7 +224,7 @@ public function getResult() } /** - * 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 * @@ -220,12 +236,13 @@ public function setResult($result) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -236,7 +253,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -249,10 +266,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -267,30 +282,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 01a57964..cf390c54 100644 --- a/src/Model/TamperingResult.php +++ b/src/Model/TamperingResult.php @@ -1,17 +1,18 @@ 'bool', -'anomaly_score' => 'float' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'result' => null, -'anomaly_score' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'result' => 'bool', + 'anomaly_score' => 'float']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'result' => null, + '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 $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 $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 $getters = [ 'result' => 'getResult', -'anomaly_score' => 'getAnomalyScore' ]; + 'anomaly_score' => 'getAnomalyScore']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -126,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -136,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -155,27 +192,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -185,29 +201,29 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result + * Gets result. * * @return bool */ @@ -217,9 +233,9 @@ public function getResult() } /** - * 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 */ @@ -231,7 +247,7 @@ public function setResult($result) } /** - * Gets anomaly_score + * Gets anomaly_score. * * @return float */ @@ -241,7 +257,7 @@ public function getAnomalyScore() } /** - * 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. * @@ -253,12 +269,13 @@ public function setAnomalyScore($anomaly_score) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -269,7 +286,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -282,10 +299,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -300,30 +315,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 f67ce32f..e98b3f50 100644 --- a/src/Model/TorResult.php +++ b/src/Model/TorResult.php @@ -1,17 +1,18 @@ 'bool' ]; + 'result' => '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 $swaggerFormats = [ - 'result' => null ]; + 'result' => null]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes where the key is the local name, + * and the value is the original name. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $attributeMap = [ + 'result' => 'result']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses). * - * @return array + * @var string[] */ - public static function swaggerFormats() + protected static $setters = [ + 'result' => 'setResult']; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static $getters = [ + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) { - return self::$swaggerFormats; + $this->container['result'] = isset($data['result']) ? $data['result'] : null; } /** - * Array of attributes where the key is the local name, - * and the value is the original name + * Gets the string presentation of the object. * - * @var string[] + * @return string */ - protected static $attributeMap = [ - 'result' => 'result' ]; + public function __toString() + { + 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 attributes to setter functions (for deserialization of responses) + * Array of property to type mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $setters = [ - 'result' => 'setResult' ]; + public static function swaggerTypes() + { + return self::$swaggerTypes; + } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of property to format mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $getters = [ - 'result' => 'getResult' ]; + public static function swaggerFormats() + { + 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. * * @return array */ @@ -121,7 +157,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -131,7 +167,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -150,26 +186,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -179,26 +195,26 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result + * Gets result. * * @return bool */ @@ -208,9 +224,9 @@ public function getResult() } /** - * 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 */ @@ -220,12 +236,13 @@ public function setResult($result) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -236,7 +253,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -249,10 +266,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -267,30 +282,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 0b36e712..92c44b91 100644 --- a/src/Model/VirtualMachineResult.php +++ b/src/Model/VirtualMachineResult.php @@ -1,17 +1,18 @@ 'bool' ]; + 'result' => '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 $swaggerFormats = [ - 'result' => null ]; + 'result' => null]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes where the key is the local name, + * and the value is the original name. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $attributeMap = [ + 'result' => 'result']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses). * - * @return array + * @var string[] */ - public static function swaggerFormats() + protected static $setters = [ + 'result' => 'setResult']; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static $getters = [ + 'result' => 'getResult']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor. + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) { - return self::$swaggerFormats; + $this->container['result'] = isset($data['result']) ? $data['result'] : null; } /** - * Array of attributes where the key is the local name, - * and the value is the original name + * Gets the string presentation of the object. * - * @var string[] + * @return string */ - protected static $attributeMap = [ - 'result' => 'result' ]; + public function __toString() + { + 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 attributes to setter functions (for deserialization of responses) + * Array of property to type mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $setters = [ - 'result' => 'setResult' ]; + public static function swaggerTypes() + { + return self::$swaggerTypes; + } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of property to format mappings. Used for (de)serialization. * - * @var string[] + * @return array */ - protected static $getters = [ - 'result' => 'getResult' ]; + public static function swaggerFormats() + { + 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. * * @return array */ @@ -121,7 +157,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -131,7 +167,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -150,26 +186,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -179,26 +195,26 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result + * Gets result. * * @return bool */ @@ -208,7 +224,7 @@ public function getResult() } /** - * 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. * @@ -220,12 +236,13 @@ public function setResult($result) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -236,7 +253,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -249,10 +266,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -267,30 +282,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 79c743fa..ba742042 100644 --- a/src/Model/Visit.php +++ b/src/Model/Visit.php @@ -1,17 +1,18 @@ '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 $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 + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization + protected static $swaggerTypes = [ + 'request_id' => '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. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $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 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 $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 $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 $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 $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -186,7 +235,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -196,7 +245,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -215,39 +264,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -257,56 +273,56 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets request_id + * Gets request_id. * * @return string */ @@ -316,9 +332,9 @@ public function getRequestId() } /** - * 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 */ @@ -330,9 +346,9 @@ public function setRequestId($request_id) } /** - * Gets browser_details + * Gets browser_details. * - * @return \Fingerprint\ServerAPI\Model\BrowserDetails + * @return BrowserDetails */ public function getBrowserDetails() { @@ -340,9 +356,9 @@ public function getBrowserDetails() } /** - * Sets browser_details + * Sets browser_details. * - * @param \Fingerprint\ServerAPI\Model\BrowserDetails $browser_details browser_details + * @param BrowserDetails $browser_details browser_details * * @return $this */ @@ -354,7 +370,7 @@ public function setBrowserDetails($browser_details) } /** - * Gets incognito + * Gets incognito. * * @return bool */ @@ -364,9 +380,9 @@ public function getIncognito() } /** - * Sets incognito + * Sets incognito. * - * @param bool $incognito Flag if user used incognito session. + * @param bool $incognito flag if user used incognito session * * @return $this */ @@ -378,7 +394,7 @@ public function setIncognito($incognito) } /** - * Gets ip + * Gets ip. * * @return string */ @@ -388,7 +404,7 @@ public function getIp() } /** - * Sets ip + * Sets ip. * * @param string $ip ip * @@ -402,9 +418,9 @@ public function setIp($ip) } /** - * Gets ip_location + * Gets ip_location. * - * @return \Fingerprint\ServerAPI\Model\DeprecatedIPLocation + * @return DeprecatedIPLocation */ public function getIpLocation() { @@ -412,9 +428,9 @@ public function getIpLocation() } /** - * Sets ip_location + * Sets ip_location. * - * @param \Fingerprint\ServerAPI\Model\DeprecatedIPLocation $ip_location ip_location + * @param DeprecatedIPLocation $ip_location ip_location * * @return $this */ @@ -426,7 +442,7 @@ public function setIpLocation($ip_location) } /** - * Gets timestamp + * Gets timestamp. * * @return int */ @@ -436,9 +452,9 @@ public function getTimestamp() } /** - * 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 */ @@ -450,7 +466,7 @@ public function setTimestamp($timestamp) } /** - * Gets time + * Gets time. * * @return \DateTime */ @@ -460,9 +476,9 @@ public function getTime() } /** - * 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 */ @@ -474,7 +490,7 @@ public function setTime($time) } /** - * Gets url + * Gets url. * * @return string */ @@ -484,9 +500,9 @@ public function getUrl() } /** - * 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 */ @@ -498,7 +514,7 @@ public function setUrl($url) } /** - * Gets tag + * Gets tag. * * @return map[string,object] */ @@ -508,9 +524,9 @@ public function getTag() } /** - * 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 */ @@ -522,7 +538,7 @@ public function setTag($tag) } /** - * Gets linked_id + * Gets linked_id. * * @return string */ @@ -532,9 +548,9 @@ public function getLinkedId() } /** - * 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 */ @@ -546,9 +562,9 @@ public function setLinkedId($linked_id) } /** - * Gets confidence + * Gets confidence. * - * @return \Fingerprint\ServerAPI\Model\Confidence + * @return Confidence */ public function getConfidence() { @@ -556,9 +572,9 @@ public function getConfidence() } /** - * Sets confidence + * Sets confidence. * - * @param \Fingerprint\ServerAPI\Model\Confidence $confidence confidence + * @param Confidence $confidence confidence * * @return $this */ @@ -570,7 +586,7 @@ public function setConfidence($confidence) } /** - * Gets visitor_found + * Gets visitor_found. * * @return bool */ @@ -580,9 +596,9 @@ public function getVisitorFound() } /** - * 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 */ @@ -594,9 +610,9 @@ public function setVisitorFound($visitor_found) } /** - * Gets first_seen_at + * Gets first_seen_at. * - * @return \Fingerprint\ServerAPI\Model\SeenAt + * @return SeenAt */ public function getFirstSeenAt() { @@ -604,9 +620,9 @@ public function getFirstSeenAt() } /** - * 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 */ @@ -618,9 +634,9 @@ public function setFirstSeenAt($first_seen_at) } /** - * Gets last_seen_at + * Gets last_seen_at. * - * @return \Fingerprint\ServerAPI\Model\SeenAt + * @return SeenAt */ public function getLastSeenAt() { @@ -628,9 +644,9 @@ public function getLastSeenAt() } /** - * 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 */ @@ -640,12 +656,13 @@ public function setLastSeenAt($last_seen_at) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -656,7 +673,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -669,10 +686,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -687,30 +702,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 a0647950..1a1cefa7 100644 --- a/src/Model/VpnResult.php +++ b/src/Model/VpnResult.php @@ -1,17 +1,18 @@ 'bool', -'origin_timezone' => 'string', -'origin_country' => 'string', -'methods' => '\Fingerprint\ServerAPI\Model\VpnResultMethods' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'result' => null, -'origin_timezone' => null, -'origin_country' => null, -'methods' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'result' => 'bool', + 'origin_timezone' => 'string', + 'origin_country' => 'string', + 'methods' => '\Fingerprint\ServerAPI\Model\VpnResultMethods']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'result' => null, + '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 $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 $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 $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 $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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -136,7 +175,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -146,7 +185,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -165,29 +204,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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. * @@ -197,32 +213,32 @@ public function listInvalidProperties() { $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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets result + * Gets result. * * @return bool */ @@ -232,9 +248,9 @@ public function getResult() } /** - * 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 */ @@ -246,7 +262,7 @@ public function setResult($result) } /** - * Gets origin_timezone + * Gets origin_timezone. * * @return string */ @@ -256,9 +272,9 @@ public function getOriginTimezone() } /** - * 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 */ @@ -270,7 +286,7 @@ public function setOriginTimezone($origin_timezone) } /** - * Gets origin_country + * Gets origin_country. * * @return string */ @@ -280,7 +296,7 @@ public function getOriginCountry() } /** - * 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). * @@ -294,9 +310,9 @@ public function setOriginCountry($origin_country) } /** - * Gets methods + * Gets methods. * - * @return \Fingerprint\ServerAPI\Model\VpnResultMethods + * @return VpnResultMethods */ public function getMethods() { @@ -304,9 +320,9 @@ public function getMethods() } /** - * Sets methods + * Sets methods. * - * @param \Fingerprint\ServerAPI\Model\VpnResultMethods $methods methods + * @param VpnResultMethods $methods methods * * @return $this */ @@ -316,12 +332,13 @@ public function setMethods($methods) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -332,7 +349,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -345,10 +362,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -363,30 +378,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 b57a059f..bf991334 100644 --- a/src/Model/VpnResultMethods.php +++ b/src/Model/VpnResultMethods.php @@ -1,17 +1,18 @@ 'bool', -'public_vpn' => 'bool', -'auxiliary_mobile' => 'bool' ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'timezone_mismatch' => null, -'public_vpn' => null, -'auxiliary_mobile' => null ]; - - /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } + protected static $swaggerTypes = [ + 'timezone_mismatch' => 'bool', + 'public_vpn' => 'bool', + 'auxiliary_mobile' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $swaggerFormats = [ + 'timezone_mismatch' => null, + 'public_vpn' => null, + 'auxiliary_mobile' => 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 $attributeMap = [ 'timezone_mismatch' => 'timezoneMismatch', -'public_vpn' => 'publicVPN', -'auxiliary_mobile' => 'auxiliaryMobile' ]; + 'public_vpn' => 'publicVPN', + 'auxiliary_mobile' => 'auxiliaryMobile']; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'timezone_mismatch' => 'setTimezoneMismatch', -'public_vpn' => 'setPublicVpn', -'auxiliary_mobile' => 'setAuxiliaryMobile' ]; + 'public_vpn' => 'setPublicVpn', + 'auxiliary_mobile' => 'setAuxiliaryMobile']; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'timezone_mismatch' => 'getTimezoneMismatch', -'public_vpn' => 'getPublicVpn', -'auxiliary_mobile' => 'getAuxiliaryMobile' ]; + 'public_vpn' => 'getPublicVpn', + 'auxiliary_mobile' => 'getAuxiliaryMobile']; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected $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; + } + + /** + * Gets the string presentation of the object. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + 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. * * @return array */ @@ -131,7 +169,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -141,7 +179,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -160,28 +198,6 @@ public function getModelName() return self::$swaggerModelName; } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $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; - } - /** * Show all the invalid properties with reasons. * @@ -191,32 +207,32 @@ public function listInvalidProperties() { $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"; } + 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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets timezone_mismatch + * Gets timezone_mismatch. * * @return bool */ @@ -226,9 +242,9 @@ public function getTimezoneMismatch() } /** - * Sets timezone_mismatch + * Sets timezone_mismatch. * - * @param bool $timezone_mismatch User's browser timezone doesn't match the timezone from which the request was originally made. + * @param bool $timezone_mismatch user's browser timezone doesn't match the timezone from which the request was originally made * * @return $this */ @@ -240,7 +256,7 @@ public function setTimezoneMismatch($timezone_mismatch) } /** - * Gets public_vpn + * Gets public_vpn. * * @return bool */ @@ -250,9 +266,9 @@ public function getPublicVpn() } /** - * 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 */ @@ -264,7 +280,7 @@ public function setPublicVpn($public_vpn) } /** - * Gets auxiliary_mobile + * Gets auxiliary_mobile. * * @return bool */ @@ -274,7 +290,7 @@ public function getAuxiliaryMobile() } /** - * 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. * @@ -286,12 +302,13 @@ public function setAuxiliaryMobile($auxiliary_mobile) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -302,7 +319,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -315,10 +332,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -333,30 +348,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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 008c9a2b..e2bad593 100644 --- a/src/Model/WebhookVisit.php +++ b/src/Model/WebhookVisit.php @@ -1,17 +1,18 @@ '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', -'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 $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, -'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 + * Array of property to type mappings. Used for (de)serialization. * - * @return array + * @var string[] */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization + protected static $swaggerTypes = [ + 'visitor_id' => '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', + '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. * - * @return array + * @var string[] */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } + protected static $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, + '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 $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', -'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', + '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 $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', -'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', + '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 $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', -'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 - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - 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', + '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 $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; @@ -380,6 +318,84 @@ 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. + * + * @return string + */ + public function __toString() + { + 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. + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + /** * Show all the invalid properties with reasons. * @@ -389,59 +405,59 @@ public function listInvalidProperties() { $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['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() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets visitor_id + * Gets visitor_id. * * @return string */ @@ -451,7 +467,7 @@ public function getVisitorId() } /** - * Sets visitor_id + * Sets visitor_id. * * @param string $visitor_id visitor_id * @@ -465,7 +481,7 @@ public function setVisitorId($visitor_id) } /** - * Gets client_referrer + * Gets client_referrer. * * @return string */ @@ -475,7 +491,7 @@ public function getClientReferrer() } /** - * Sets client_referrer + * Sets client_referrer. * * @param string $client_referrer client_referrer * @@ -489,7 +505,7 @@ public function setClientReferrer($client_referrer) } /** - * Gets user_agent + * Gets user_agent. * * @return string */ @@ -499,7 +515,7 @@ public function getUserAgent() } /** - * Sets user_agent + * Sets user_agent. * * @param string $user_agent user_agent * @@ -513,9 +529,9 @@ public function setUserAgent($user_agent) } /** - * Gets bot + * Gets bot. * - * @return \Fingerprint\ServerAPI\Model\BotdDetectionResult + * @return BotdDetectionResult */ public function getBot() { @@ -523,9 +539,9 @@ public function getBot() } /** - * Sets bot + * Sets bot. * - * @param \Fingerprint\ServerAPI\Model\BotdDetectionResult $bot bot + * @param BotdDetectionResult $bot bot * * @return $this */ @@ -537,9 +553,9 @@ public function setBot($bot) } /** - * Gets ip_info + * Gets ip_info. * - * @return \Fingerprint\ServerAPI\Model\IpInfoResult + * @return IpInfoResult */ public function getIpInfo() { @@ -547,9 +563,9 @@ public function getIpInfo() } /** - * Sets ip_info + * Sets ip_info. * - * @param \Fingerprint\ServerAPI\Model\IpInfoResult $ip_info ip_info + * @param IpInfoResult $ip_info ip_info * * @return $this */ @@ -561,7 +577,7 @@ public function setIpInfo($ip_info) } /** - * Gets incognito + * Gets incognito. * * @return bool */ @@ -571,9 +587,9 @@ public function getIncognito() } /** - * Sets incognito + * Sets incognito. * - * @param bool $incognito Flag if user used incognito session. + * @param bool $incognito flag if user used incognito session * * @return $this */ @@ -585,9 +601,9 @@ public function setIncognito($incognito) } /** - * Gets root_apps + * Gets root_apps. * - * @return \Fingerprint\ServerAPI\Model\RootAppsResult + * @return RootAppsResult */ public function getRootApps() { @@ -595,9 +611,9 @@ public function getRootApps() } /** - * Sets root_apps + * Sets root_apps. * - * @param \Fingerprint\ServerAPI\Model\RootAppsResult $root_apps root_apps + * @param RootAppsResult $root_apps root_apps * * @return $this */ @@ -609,9 +625,9 @@ public function setRootApps($root_apps) } /** - * Gets emulator + * Gets emulator. * - * @return \Fingerprint\ServerAPI\Model\EmulatorResult + * @return EmulatorResult */ public function getEmulator() { @@ -619,9 +635,9 @@ public function getEmulator() } /** - * Sets emulator + * Sets emulator. * - * @param \Fingerprint\ServerAPI\Model\EmulatorResult $emulator emulator + * @param EmulatorResult $emulator emulator * * @return $this */ @@ -633,9 +649,9 @@ public function setEmulator($emulator) } /** - * Gets cloned_app + * Gets cloned_app. * - * @return \Fingerprint\ServerAPI\Model\ClonedAppResult + * @return ClonedAppResult */ public function getClonedApp() { @@ -643,9 +659,9 @@ public function getClonedApp() } /** - * Sets cloned_app + * Sets cloned_app. * - * @param \Fingerprint\ServerAPI\Model\ClonedAppResult $cloned_app cloned_app + * @param ClonedAppResult $cloned_app cloned_app * * @return $this */ @@ -657,9 +673,9 @@ public function setClonedApp($cloned_app) } /** - * Gets factory_reset + * Gets factory_reset. * - * @return \Fingerprint\ServerAPI\Model\FactoryResetResult + * @return FactoryResetResult */ public function getFactoryReset() { @@ -667,9 +683,9 @@ public function getFactoryReset() } /** - * Sets factory_reset + * Sets factory_reset. * - * @param \Fingerprint\ServerAPI\Model\FactoryResetResult $factory_reset factory_reset + * @param FactoryResetResult $factory_reset factory_reset * * @return $this */ @@ -681,9 +697,9 @@ public function setFactoryReset($factory_reset) } /** - * Gets jailbroken + * Gets jailbroken. * - * @return \Fingerprint\ServerAPI\Model\JailbrokenResult + * @return JailbrokenResult */ public function getJailbroken() { @@ -691,9 +707,9 @@ public function getJailbroken() } /** - * Sets jailbroken + * Sets jailbroken. * - * @param \Fingerprint\ServerAPI\Model\JailbrokenResult $jailbroken jailbroken + * @param JailbrokenResult $jailbroken jailbroken * * @return $this */ @@ -705,9 +721,9 @@ public function setJailbroken($jailbroken) } /** - * Gets frida + * Gets frida. * - * @return \Fingerprint\ServerAPI\Model\FridaResult + * @return FridaResult */ public function getFrida() { @@ -715,9 +731,9 @@ public function getFrida() } /** - * Sets frida + * Sets frida. * - * @param \Fingerprint\ServerAPI\Model\FridaResult $frida frida + * @param FridaResult $frida frida * * @return $this */ @@ -729,9 +745,9 @@ public function setFrida($frida) } /** - * Gets ip_blocklist + * Gets ip_blocklist. * - * @return \Fingerprint\ServerAPI\Model\IpBlockListResult + * @return IpBlockListResult */ public function getIpBlocklist() { @@ -739,9 +755,9 @@ public function getIpBlocklist() } /** - * Sets ip_blocklist + * Sets ip_blocklist. * - * @param \Fingerprint\ServerAPI\Model\IpBlockListResult $ip_blocklist ip_blocklist + * @param IpBlockListResult $ip_blocklist ip_blocklist * * @return $this */ @@ -753,9 +769,9 @@ public function setIpBlocklist($ip_blocklist) } /** - * Gets tor + * Gets tor. * - * @return \Fingerprint\ServerAPI\Model\TorResult + * @return TorResult */ public function getTor() { @@ -763,9 +779,9 @@ public function getTor() } /** - * Sets tor + * Sets tor. * - * @param \Fingerprint\ServerAPI\Model\TorResult $tor tor + * @param TorResult $tor tor * * @return $this */ @@ -777,9 +793,9 @@ public function setTor($tor) } /** - * Gets privacy_settings + * Gets privacy_settings. * - * @return \Fingerprint\ServerAPI\Model\PrivacySettingsResult + * @return PrivacySettingsResult */ public function getPrivacySettings() { @@ -787,9 +803,9 @@ public function getPrivacySettings() } /** - * Sets privacy_settings + * Sets privacy_settings. * - * @param \Fingerprint\ServerAPI\Model\PrivacySettingsResult $privacy_settings privacy_settings + * @param PrivacySettingsResult $privacy_settings privacy_settings * * @return $this */ @@ -801,9 +817,9 @@ public function setPrivacySettings($privacy_settings) } /** - * Gets virtual_machine + * Gets virtual_machine. * - * @return \Fingerprint\ServerAPI\Model\VirtualMachineResult + * @return VirtualMachineResult */ public function getVirtualMachine() { @@ -811,9 +827,9 @@ public function getVirtualMachine() } /** - * Sets virtual_machine + * Sets virtual_machine. * - * @param \Fingerprint\ServerAPI\Model\VirtualMachineResult $virtual_machine virtual_machine + * @param VirtualMachineResult $virtual_machine virtual_machine * * @return $this */ @@ -825,9 +841,9 @@ public function setVirtualMachine($virtual_machine) } /** - * Gets vpn + * Gets vpn. * - * @return \Fingerprint\ServerAPI\Model\VpnResult + * @return VpnResult */ public function getVpn() { @@ -835,9 +851,9 @@ public function getVpn() } /** - * Sets vpn + * Sets vpn. * - * @param \Fingerprint\ServerAPI\Model\VpnResult $vpn vpn + * @param VpnResult $vpn vpn * * @return $this */ @@ -849,9 +865,9 @@ public function setVpn($vpn) } /** - * Gets proxy + * Gets proxy. * - * @return \Fingerprint\ServerAPI\Model\ProxyResult + * @return ProxyResult */ public function getProxy() { @@ -859,9 +875,9 @@ public function getProxy() } /** - * Sets proxy + * Sets proxy. * - * @param \Fingerprint\ServerAPI\Model\ProxyResult $proxy proxy + * @param ProxyResult $proxy proxy * * @return $this */ @@ -873,9 +889,9 @@ public function setProxy($proxy) } /** - * Gets tampering + * Gets tampering. * - * @return \Fingerprint\ServerAPI\Model\TamperingResult + * @return TamperingResult */ public function getTampering() { @@ -883,9 +899,9 @@ public function getTampering() } /** - * Sets tampering + * Sets tampering. * - * @param \Fingerprint\ServerAPI\Model\TamperingResult $tampering tampering + * @param TamperingResult $tampering tampering * * @return $this */ @@ -897,9 +913,9 @@ public function setTampering($tampering) } /** - * Gets raw_device_attributes + * Gets raw_device_attributes. * - * @return \Fingerprint\ServerAPI\Model\RawDeviceAttributesResult + * @return RawDeviceAttributesResult */ public function getRawDeviceAttributes() { @@ -907,9 +923,9 @@ public function getRawDeviceAttributes() } /** - * Sets raw_device_attributes + * Sets raw_device_attributes. * - * @param \Fingerprint\ServerAPI\Model\RawDeviceAttributesResult $raw_device_attributes raw_device_attributes + * @param RawDeviceAttributesResult $raw_device_attributes raw_device_attributes * * @return $this */ @@ -921,9 +937,9 @@ public function setRawDeviceAttributes($raw_device_attributes) } /** - * Gets high_activity + * Gets high_activity. * - * @return \Fingerprint\ServerAPI\Model\HighActivityResult + * @return HighActivityResult */ public function getHighActivity() { @@ -931,9 +947,9 @@ public function getHighActivity() } /** - * Sets high_activity + * Sets high_activity. * - * @param \Fingerprint\ServerAPI\Model\HighActivityResult $high_activity high_activity + * @param HighActivityResult $high_activity high_activity * * @return $this */ @@ -945,9 +961,9 @@ public function setHighActivity($high_activity) } /** - * Gets location_spoofing + * Gets location_spoofing. * - * @return \Fingerprint\ServerAPI\Model\LocationSpoofingResult + * @return LocationSpoofingResult */ public function getLocationSpoofing() { @@ -955,9 +971,9 @@ public function getLocationSpoofing() } /** - * Sets location_spoofing + * Sets location_spoofing. * - * @param \Fingerprint\ServerAPI\Model\LocationSpoofingResult $location_spoofing location_spoofing + * @param LocationSpoofingResult $location_spoofing location_spoofing * * @return $this */ @@ -969,9 +985,9 @@ public function setLocationSpoofing($location_spoofing) } /** - * Gets suspect_score + * Gets suspect_score. * - * @return \Fingerprint\ServerAPI\Model\SuspectScoreResult + * @return SuspectScoreResult */ public function getSuspectScore() { @@ -979,9 +995,9 @@ public function getSuspectScore() } /** - * Sets suspect_score + * Sets suspect_score. * - * @param \Fingerprint\ServerAPI\Model\SuspectScoreResult $suspect_score suspect_score + * @param SuspectScoreResult $suspect_score suspect_score * * @return $this */ @@ -993,7 +1009,7 @@ public function setSuspectScore($suspect_score) } /** - * Gets request_id + * Gets request_id. * * @return string */ @@ -1003,9 +1019,9 @@ public function getRequestId() } /** - * 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 */ @@ -1017,9 +1033,9 @@ public function setRequestId($request_id) } /** - * Gets browser_details + * Gets browser_details. * - * @return \Fingerprint\ServerAPI\Model\BrowserDetails + * @return BrowserDetails */ public function getBrowserDetails() { @@ -1027,9 +1043,9 @@ public function getBrowserDetails() } /** - * Sets browser_details + * Sets browser_details. * - * @param \Fingerprint\ServerAPI\Model\BrowserDetails $browser_details browser_details + * @param BrowserDetails $browser_details browser_details * * @return $this */ @@ -1041,7 +1057,7 @@ public function setBrowserDetails($browser_details) } /** - * Gets ip + * Gets ip. * * @return string */ @@ -1051,7 +1067,7 @@ public function getIp() } /** - * Sets ip + * Sets ip. * * @param string $ip ip * @@ -1065,9 +1081,9 @@ public function setIp($ip) } /** - * Gets ip_location + * Gets ip_location. * - * @return \Fingerprint\ServerAPI\Model\DeprecatedIPLocation + * @return DeprecatedIPLocation */ public function getIpLocation() { @@ -1075,9 +1091,9 @@ public function getIpLocation() } /** - * Sets ip_location + * Sets ip_location. * - * @param \Fingerprint\ServerAPI\Model\DeprecatedIPLocation $ip_location ip_location + * @param DeprecatedIPLocation $ip_location ip_location * * @return $this */ @@ -1089,7 +1105,7 @@ public function setIpLocation($ip_location) } /** - * Gets timestamp + * Gets timestamp. * * @return int */ @@ -1099,9 +1115,9 @@ public function getTimestamp() } /** - * 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 */ @@ -1113,7 +1129,7 @@ public function setTimestamp($timestamp) } /** - * Gets time + * Gets time. * * @return \DateTime */ @@ -1123,9 +1139,9 @@ public function getTime() } /** - * 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 */ @@ -1137,7 +1153,7 @@ public function setTime($time) } /** - * Gets url + * Gets url. * * @return string */ @@ -1147,9 +1163,9 @@ public function getUrl() } /** - * 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 */ @@ -1161,7 +1177,7 @@ public function setUrl($url) } /** - * Gets tag + * Gets tag. * * @return map[string,object] */ @@ -1171,9 +1187,9 @@ public function getTag() } /** - * 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 */ @@ -1185,7 +1201,7 @@ public function setTag($tag) } /** - * Gets linked_id + * Gets linked_id. * * @return string */ @@ -1195,9 +1211,9 @@ public function getLinkedId() } /** - * 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 */ @@ -1209,9 +1225,9 @@ public function setLinkedId($linked_id) } /** - * Gets confidence + * Gets confidence. * - * @return \Fingerprint\ServerAPI\Model\Confidence + * @return Confidence */ public function getConfidence() { @@ -1219,9 +1235,9 @@ public function getConfidence() } /** - * Sets confidence + * Sets confidence. * - * @param \Fingerprint\ServerAPI\Model\Confidence $confidence confidence + * @param Confidence $confidence confidence * * @return $this */ @@ -1233,7 +1249,7 @@ public function setConfidence($confidence) } /** - * Gets visitor_found + * Gets visitor_found. * * @return bool */ @@ -1243,9 +1259,9 @@ public function getVisitorFound() } /** - * 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 */ @@ -1257,9 +1273,9 @@ public function setVisitorFound($visitor_found) } /** - * Gets first_seen_at + * Gets first_seen_at. * - * @return \Fingerprint\ServerAPI\Model\SeenAt + * @return SeenAt */ public function getFirstSeenAt() { @@ -1267,9 +1283,9 @@ public function getFirstSeenAt() } /** - * 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 */ @@ -1281,9 +1297,9 @@ public function setFirstSeenAt($first_seen_at) } /** - * Gets last_seen_at + * Gets last_seen_at. * - * @return \Fingerprint\ServerAPI\Model\SeenAt + * @return SeenAt */ public function getLastSeenAt() { @@ -1291,9 +1307,9 @@ public function getLastSeenAt() } /** - * 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 */ @@ -1303,12 +1319,13 @@ public function setLastSeenAt($last_seen_at) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) @@ -1319,7 +1336,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -1332,10 +1349,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void + * @param int $offset Offset + * @param mixed $value Value to be set */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -1350,30 +1365,11 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset - * - * @return void + * @param int $offset Offset */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - 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/ObjectSerializer.php b/src/ObjectSerializer.php index 05e28574..214bb57a 100644 --- a/src/ObjectSerializer.php +++ b/src/ObjectSerializer.php @@ -1,17 +1,18 @@ format('Y-m-d') : $data->format(\DateTime::ATOM); - } elseif (is_array($data)) { + } + if ($data instanceof \DateTime) { + return ('date' === $format) ? $data->format('Y-m-d') : $data->format(\DateTime::ATOM); + } + if (is_array($data)) { foreach ($data as $property => $value) { $data[$property] = self::sanitizeForSerialization($value); } + return $data; - } elseif ($data instanceof \stdClass) { + } + if ($data instanceof \stdClass) { foreach ($data as $property => $value) { - $data->$property = self::sanitizeForSerialization($value); + $data->{$property} = self::sanitizeForSerialization($value); } + return $data; - } elseif (is_object($data)) { + } + if (is_object($data)) { $values = []; $formats = $data::swaggerFormats(); foreach ($data::swaggerTypes() as $property => $swaggerType) { $getter = $data::getters()[$property]; - $value = $data->$getter(); - if ($value !== null + $value = $data->{$getter}(); + if (null !== $value && !in_array($swaggerType, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true) && method_exists($swaggerType, 'getAllowableEnumValues') && !in_array($value, $swaggerType::getAllowableEnumValues())) { $imploded = implode("', '", $swaggerType::getAllowableEnumValues()); - throw new InvalidArgumentException("Invalid value for enum '$swaggerType', must be one of: '$imploded'"); + + throw new \InvalidArgumentException("Invalid value for enum '{$swaggerType}', must be one of: '{$imploded}'"); } - if ($value !== null) { + if (null !== $value) { $values[$data::attributeMap()[$property]] = self::sanitizeForSerialization($value, $swaggerType, $formats[$property]); } } - return (object)$values; - } else { - return (string)$data; + + return (object) $values; } + + return (string) $data; } /** * Sanitize filename by removing path. - * e.g. ../../sun.gif becomes sun.gif + * e.g. ../../sun.gif becomes sun.gif. * * @param string $filename filename to be sanitized * @@ -98,11 +105,11 @@ public static function sanitizeForSerialization($data, $format = null) */ public static function sanitizeFilename($filename) { - if (preg_match("/.*[\/\\\\](.*)$/", $filename, $match)) { + if (preg_match('/.*[\/\\\](.*)$/', $filename, $match)) { return $match[1]; - } else { - return $filename; } + + return $filename; } /** @@ -124,8 +131,8 @@ public static function toPathValue($value) * If it's a string, pass through unchanged. It will be url-encoded * later. * - * @param string[]|string|\DateTime $object an object to be serialized to a string - * @param string|null $format the format of the parameter + * @param \DateTime|string|string[] $object an object to be serialized to a string + * @param null|string $format the format of the parameter * * @return string the serialized object */ @@ -133,15 +140,15 @@ public static function toQueryValue($object, $format = null) { if (is_array($object)) { return implode(',', $object); - } else { - return self::toString($object, $format); } + + return self::toString($object, $format); } /** * Take value and turn it into a string suitable for inclusion in * the header. If it's a string, pass through unchanged - * If it's a datetime object, format it in RFC3339 + * If it's a datetime object, format it in RFC3339. * * @param string $value a string which will be part of the header * @@ -155,9 +162,9 @@ public static function toHeaderValue($value) /** * Take value and turn it into a string suitable for inclusion in * the http body (form parameter). If it's a string, pass through unchanged - * If it's a datetime object, format it in RFC3339 + * If it's a datetime object, format it in RFC3339. * - * @param string|\SplFileObject $value the value of the form parameter + * @param \SplFileObject|string $value the value of the form parameter * * @return string the form string */ @@ -165,29 +172,29 @@ public static function toFormValue($value) { if ($value instanceof \SplFileObject) { return $value->getRealPath(); - } else { - return self::toString($value); } + + return self::toString($value); } /** * Take value and turn it into a string suitable for inclusion in * the parameter. If it's a string, pass through unchanged * If it's a datetime object, format it in RFC3339 - * If it's a date, format it in Y-m-d + * If it's a date, format it in Y-m-d. * - * @param string|\DateTime $value the value of the parameter - * @param string|null $format the format of the parameter + * @param \DateTime|string $value the value of the parameter + * @param null|string $format the format of the parameter * * @return string the header string */ public static function toString($value, $format = null) { if ($value instanceof \DateTime) { - return ($format === 'date') ? $value->format('Y-m-d') : $value->format(\DateTime::ATOM); - } else { - return $value; + return ('date' === $format) ? $value->format('Y-m-d') : $value->format(\DateTime::ATOM); } + + return $value; } /** @@ -195,7 +202,7 @@ public static function toString($value, $format = null) * * @param array $collection collection to serialize to a string * @param string $collectionFormat the format use for serialization (csv, - * ssv, tsv, pipes, multi) + * ssv, tsv, pipes, multi) * @param bool $allowCollectionFormatMulti allow collection format to be a multidimensional array * * @return string @@ -207,6 +214,7 @@ public static function serializeCollection(array $collection, $collectionFormat, // need to fix the result of multidimensional arrays. return preg_replace('/%5B[0-9]+%5D=/', '=', http_build_query($collection, '', '&')); } + switch ($collectionFormat) { case 'pipes': return implode('|', $collection); @@ -225,41 +233,47 @@ public static function serializeCollection(array $collection, $collectionFormat, } /** - * Deserialize a JSON string into an object + * Deserialize a JSON string into an object. * - * @param mixed $data object or primitive to be deserialized - * @param string $class class name is passed as a string + * @param mixed $data object or primitive to be deserialized + * @param string $class class name is passed as a string * @param string[] $httpHeaders HTTP headers * - * @return mixed - * @throws Exception + * @throws \Exception */ public static function deserialize($data, $class, $httpHeaders = null): mixed { if (null === $data) { return null; - } elseif (substr($class, 0, 4) === 'map[') { // for associative array e.g. map[string,int] + } + if ('map[' === substr($class, 0, 4)) { // for associative array e.g. map[string,int] $inner = substr($class, 4, -1); $deserialized = []; - if (strrpos($inner, ",") !== false) { + if (false !== strrpos($inner, ',')) { $subClass_array = explode(',', $inner, 2); $subClass = $subClass_array[1]; foreach ($data as $key => $value) { $deserialized[$key] = self::deserialize($value, $subClass, null); } } + return $deserialized; - } elseif (strcasecmp(substr($class, -2), '[]') === 0) { + } + if (0 === strcasecmp(substr($class, -2), '[]')) { $subClass = substr($class, 0, -2); $values = []; foreach ($data as $key => $value) { $values[] = self::deserialize($value, $subClass, null); } + return $values; - } elseif ($class === 'object' || $class === '\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult') { + } + if ('object' === $class || '\Fingerprint\ServerAPI\Model\RawDeviceAttributesResult' === $class) { settype($data, 'array'); + return $data; - } elseif ($class === '\DateTime') { + } + if ('\DateTime' === $class) { // Some API's return an invalid, empty string as a // date-time property. DateTime::__construct() will return // the current time for empty input which is probably not @@ -268,37 +282,45 @@ public static function deserialize($data, $class, $httpHeaders = null): mixed // this graceful. if (!empty($data)) { return new \DateTime($data); - } else { - return null; } - } elseif (in_array($class, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)) { + + return null; + } + if (in_array($class, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)) { $originalData = $data; $normalizedClass = strtolower($class); + switch ($normalizedClass) { - case "int": - $normalizedClass = "integer"; + case 'int': + $normalizedClass = 'integer'; + break; - case "bool": - $normalizedClass = "boolean"; + + case 'bool': + $normalizedClass = 'boolean'; + break; } - if ($normalizedClass === "float" && is_numeric($originalData)) { - return (float)$originalData; + if ('float' === $normalizedClass && is_numeric($originalData)) { + return (float) $originalData; } - if ($normalizedClass === 'string' && is_object($data)) { - throw new Exception("Cannot convert object to string"); + if ('string' === $normalizedClass && is_object($data)) { + throw new \Exception('Cannot convert object to string'); } settype($data, $class); if (gettype($data) === $normalizedClass) { return $data; } - throw new Exception("Serialization error: Could not convert " . gettype($originalData) . " to " . $class); + + throw new \Exception('Serialization error: Could not convert '.gettype($originalData).' to '.$class); } elseif (method_exists($class, 'getAllowableEnumValues')) { if (!in_array($data, $class::getAllowableEnumValues())) { $imploded = implode("', '", $class::getAllowableEnumValues()); - throw new InvalidArgumentException("Invalid value for enum '$class', must be one of: '$imploded'"); + + throw new \InvalidArgumentException("Invalid value for enum '{$class}', must be one of: '{$imploded}'"); } + return $data; } @@ -312,9 +334,10 @@ public static function deserialize($data, $class, $httpHeaders = null): mixed $propertyValue = $data->{$instance::attributeMap()[$property]}; if (isset($propertyValue)) { - $instance->$propertySetter(self::deserialize($propertyValue, $type, null)); + $instance->{$propertySetter}(self::deserialize($propertyValue, $type, null)); } } + return $instance; } } diff --git a/src/Sealed/DecompressionException.php b/src/Sealed/DecompressionException.php index 8ea512d4..6f6d3763 100644 --- a/src/Sealed/DecompressionException.php +++ b/src/Sealed/DecompressionException.php @@ -2,12 +2,10 @@ namespace Fingerprint\ServerAPI\Sealed; -use Exception; - -class DecompressionException extends Exception +class DecompressionException extends \Exception { public function __construct() { - parent::__construct("Decompression failed"); + parent::__construct('Decompression failed'); } } diff --git a/src/Sealed/InvalidSealedDataException.php b/src/Sealed/InvalidSealedDataException.php index e97070eb..809199f9 100644 --- a/src/Sealed/InvalidSealedDataException.php +++ b/src/Sealed/InvalidSealedDataException.php @@ -2,12 +2,10 @@ namespace Fingerprint\ServerAPI\Sealed; -use InvalidArgumentException; - -class InvalidSealedDataException extends InvalidArgumentException +class InvalidSealedDataException extends \InvalidArgumentException { public function __construct() { - parent::__construct("Invalid sealed data"); + parent::__construct('Invalid sealed data'); } } diff --git a/src/Sealed/InvalidSealedDataHeaderException.php b/src/Sealed/InvalidSealedDataHeaderException.php index dad3d638..9f4d70e9 100644 --- a/src/Sealed/InvalidSealedDataHeaderException.php +++ b/src/Sealed/InvalidSealedDataHeaderException.php @@ -2,12 +2,10 @@ namespace Fingerprint\ServerAPI\Sealed; -use InvalidArgumentException; - -class InvalidSealedDataHeaderException extends InvalidArgumentException +class InvalidSealedDataHeaderException extends \InvalidArgumentException { public function __construct() { - parent::__construct("Invalid sealed data header"); + parent::__construct('Invalid sealed data header'); } } diff --git a/src/Sealed/Sealed.php b/src/Sealed/Sealed.php index 6414e093..5bd26c57 100644 --- a/src/Sealed/Sealed.php +++ b/src/Sealed/Sealed.php @@ -2,20 +2,17 @@ namespace Fingerprint\ServerAPI\Sealed; -use Exception; use Fingerprint\ServerAPI\Model\EventResponse; -use InvalidArgumentException; class Sealed { - private static $SEAL_HEADER = "\x9E\x85\xDC\xED"; private const NONCE_LENGTH = 12; private const AUTH_TAG_LENGTH = 16; + private static $SEAL_HEADER = "\x9E\x85\xDC\xED"; /** - * @param string $sealed * @param DecryptionKey[] $keys - * @return EventResponse + * * @throws UnsealAggregateException */ public static function unsealEventResponse(string $sealed, array $keys): EventResponse @@ -34,9 +31,9 @@ public static function unsealEventResponse(string $sealed, array $keys): EventRe /** * Decrypts the sealed response with the provided keys. * - * @param string $sealed Base64 encoded sealed data - * @param DecryptionKey[] $keys Decryption keys. The SDK will try to decrypt the result with each key until it succeeds. - * @return string + * @param string $sealed Base64 encoded sealed data + * @param DecryptionKey[] $keys Decryption keys. The SDK will try to decrypt the result with each key until it succeeds. + * * @throws UnsealAggregateException */ public static function unseal(string $sealed, array $keys): string @@ -52,18 +49,20 @@ public static function unseal(string $sealed, array $keys): string case DecryptionAlgorithm::AES_256_GCM: try { $data = substr($sealed, strlen(self::$SEAL_HEADER)); + return self::decryptAes256Gcm($data, $key->getKey()); - } catch (Exception $exception) { + } catch (\Exception $exception) { $aggregateException->addException(new UnsealException( - "Failed to decrypt", + 'Failed to decrypt', $exception, $key )); } + break; default: - throw new InvalidArgumentException("Invalid decryption algorithm"); + throw new \InvalidArgumentException('Invalid decryption algorithm'); } } @@ -71,7 +70,10 @@ public static function unseal(string $sealed, array $keys): string } /** - * @throws Exception + * @param mixed $sealedData + * @param mixed $decryptionKey + * + * @throws \Exception */ private static function decryptAes256Gcm($sealedData, $decryptionKey): string { @@ -83,21 +85,23 @@ private static function decryptAes256Gcm($sealedData, $decryptionKey): string $decryptedData = openssl_decrypt($ciphertext, 'aes-256-gcm', $decryptionKey, OPENSSL_RAW_DATA, $nonce, $tag); - if ($decryptedData === false) { - throw new Exception("Decryption failed"); + if (false === $decryptedData) { + throw new \Exception('Decryption failed'); } return self::decompress($decryptedData); } /** - * @throws Exception + * @param mixed $data + * + * @throws \Exception */ private static function decompress($data): string { $inflated = gzinflate($data); - if ($inflated === false) { + if (false === $inflated) { throw new DecompressionException(); } diff --git a/src/Sealed/UnsealAggregateException.php b/src/Sealed/UnsealAggregateException.php index 0131c2a1..00f3969b 100644 --- a/src/Sealed/UnsealAggregateException.php +++ b/src/Sealed/UnsealAggregateException.php @@ -2,26 +2,23 @@ namespace Fingerprint\ServerAPI\Sealed; -use Exception; - -class UnsealAggregateException extends Exception +class UnsealAggregateException extends \Exception { /** - * @var Exception[] + * @var \Exception[] */ private $exceptions; public function __construct() { - parent::__construct("Failed to unseal with all decryption keys"); + parent::__construct('Failed to unseal with all decryption keys'); } - public function addException(Exception $exception) + public function addException(\Exception $exception) { $this->exceptions[] = $exception; } - public function getExceptions() { return $this->exceptions; diff --git a/src/Sealed/UnsealException.php b/src/Sealed/UnsealException.php index 19c36f64..16bbad3a 100644 --- a/src/Sealed/UnsealException.php +++ b/src/Sealed/UnsealException.php @@ -2,9 +2,7 @@ namespace Fingerprint\ServerAPI\Sealed; -use Exception; - -class UnsealException extends Exception +class UnsealException extends \Exception { public $decryptionKeyDescription; @@ -16,10 +14,10 @@ public function __construct($message, $cause, $decryptionKey) public function __toString() { - return "UnsealException{" . - "decryptionKey=" . $this->decryptionKeyDescription . - ", message=" . $this->getMessage() . - ", cause=" . $this->getPrevious() . + return 'UnsealException{'. + 'decryptionKey='.$this->decryptionKeyDescription. + ', message='.$this->getMessage(). + ', cause='.$this->getPrevious(). '}'; } } diff --git a/src/SerializationException.php b/src/SerializationException.php index 0214a464..9c0fe867 100644 --- a/src/SerializationException.php +++ b/src/SerializationException.php @@ -2,14 +2,13 @@ namespace Fingerprint\ServerAPI; -use Exception; use Psr\Http\Message\ResponseInterface; -final class SerializationException extends Exception +final class SerializationException extends \Exception { protected readonly ResponseInterface $response; - public function __construct(ResponseInterface $response, Exception $prev) + public function __construct(ResponseInterface $response, \Exception $prev) { parent::__construct("Response from the server couldn't be serialized", $prev->getCode(), $prev); $this->response = $response; diff --git a/template/ApiException.mustache b/template/ApiException.mustache new file mode 100644 index 00000000..d8b983c9 --- /dev/null +++ b/template/ApiException.mustache @@ -0,0 +1,75 @@ +partial_header}} +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace {{invokerPackage}}; + +use \Exception; + +/** + * ApiException Class Doc Comment + * + * @category Class + * @package {{invokerPackage}} + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class ApiException extends Exception +{ + + /** + * The deserialized response object + * + * @var $responseObject; + */ + protected $responseObject; + + /** + * Constructor + * + * @param string $message Error message + * @param int $code HTTP status code + * @param string[]|null $responseHeaders HTTP response header + * @param mixed $responseBody HTTP decoded body of the server response either as \stdClass or string + */ + public function __construct($message = "", $code = 0) + { + parent::__construct($message, $code); + } + + /** + * Sets the deseralized response object (during deserialization) + * + * @param mixed $obj Deserialized response object + * + * @return void + */ + public function setResponseObject($obj) + { + $this->responseObject = $obj; + } + + /** + * Gets the deseralized response object (during deserialization) + * + * @return mixed the deserialized response object + */ + public function getResponseObject() + { + return $this->responseObject; + } +} \ No newline at end of file diff --git a/template/api.mustache b/template/api.mustache index da7fee4e..a47717ca 100644 --- a/template/api.mustache +++ b/template/api.mustache @@ -27,6 +27,8 @@ use {{invokerPackage}}\ApiException; use {{invokerPackage}}\Configuration; use {{invokerPackage}}\ObjectSerializer; use {{invokerPackage}}\SerializationException; +use Psr\Http\Message\ResponseInterface; +use \GuzzleHttp\Exception\GuzzleException; /** * {{classname}} Class Doc Comment @@ -97,29 +99,27 @@ use {{invokerPackage}}\SerializationException; try { $response = $this->client->send($request, $options); } catch (RequestException $e) { - $errorBody = $e->getResponse()->getBody()->getContents(); - $e->getResponse()->getBody()->rewind(); - throw new ApiException( + $apiException = new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $errorBody : null + $e->getCode() ); + $apiException->setResponseObject($e->getResponse()); + throw $apiException; } $statusCode = $response->getStatusCode(); if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( + $apiException = new ApiException( sprintf( '[%d] Error connecting to the API (%s)', $statusCode, $request->getUri() ), - $statusCode, - $response->getHeaders(), - $response->getBody() + $statusCode ); + $apiException->setResponseObject($response); + throw $apiException; } {{#returnType}} @@ -139,23 +139,29 @@ use {{invokerPackage}}\SerializationException; {{/returnType}} } catch (ApiException $e) { - switch ($e->getCode()) { - {{#responses}} - {{#dataType}} - {{^isWildcard}}case {{code}}:{{/isWildcard}}{{#isWildcard}}default:{{/isWildcard}} - $responseBody = $e->getResponseBody(); - $data = ObjectSerializer::deserialize( - $responseBody, - '{{dataType}}', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - {{/dataType}} - {{/responses}} + try { + switch ($e->getCode()) { + {{#responses}} + {{#dataType}} + {{^isWildcard}}case {{code}}:{{/isWildcard}}{{#isWildcard}}default:{{/isWildcard}} + /** @var ResponseInterface $response */ + $response = $e->getResponseObject(); + $responseBody = $response->getBody()->getContents(); + $response->getBody()->rewind(); + $data = ObjectSerializer::deserialize( + $responseBody, + '{{dataType}}', + $response->getHeaders() + ); + $e->setResponseObject($data); + break; + {{/dataType}} + {{/responses}} + } + throw $e; + } catch (\Exception $_) { + } } - throw $e; - } } /** diff --git a/template/composer.mustache b/template/composer.mustache index 397d75a8..eb11e0bc 100644 --- a/template/composer.mustache +++ b/template/composer.mustache @@ -41,9 +41,7 @@ "ext-openssl": "*" }, "require-dev": { - "phpunit/phpunit": "8.5.33", - "squizlabs/php_codesniffer": "~2.6", - "friendsofphp/php-cs-fixer": "~2.19" + "phpunit/phpunit": "8.5.33" }, "autoload": { "psr-4": { "{{escapedInvokerPackage}}\\" : "{{srcBasePath}}/src" }