From 70b97b2b47496ddb9fd8507d33711c1abe43321b Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 21 Mar 2023 11:38:32 +0100 Subject: [PATCH 1/5] update composer to php 8.2, Add github actions, add phpunit et infection configuration --- .github/workflows/infection.yaml | 34 + .github/workflows/phpstan-5.yaml | 23 + .github/workflows/phpstan-6.yaml | 23 + .github/workflows/phpstan-7.yaml | 23 + .github/workflows/phpstan-8.yaml | 23 + .github/workflows/phpunit.yaml | 30 + .github/workflows/quality.yaml | 36 + .gitignore | 14 + .php-cs-fixer.dist.php | 1 + README.md | 12 + composer.json | 14 +- composer.lock | 3578 +++++++++++++++++++++++++----- infection.json.dist | 23 + phpunit.xml | 32 + 14 files changed, 3291 insertions(+), 575 deletions(-) create mode 100644 .github/workflows/infection.yaml create mode 100644 .github/workflows/phpstan-5.yaml create mode 100644 .github/workflows/phpstan-6.yaml create mode 100644 .github/workflows/phpstan-7.yaml create mode 100644 .github/workflows/phpstan-8.yaml create mode 100644 .github/workflows/phpunit.yaml create mode 100644 .github/workflows/quality.yaml create mode 100644 README.md create mode 100644 infection.json.dist create mode 100644 phpunit.xml diff --git a/.github/workflows/infection.yaml b/.github/workflows/infection.yaml new file mode 100644 index 00000000..f972cb72 --- /dev/null +++ b/.github/workflows/infection.yaml @@ -0,0 +1,34 @@ +name: Infection +on: push +jobs: + infection: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + tools: composer:v2 + coverage: pcov + - uses: actions/cache@v3 + with: + path: '**/vendor' + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-composer- + - uses: php-actions/composer@v6 + with: + args: --prefer-dist --ignore-platform-reqs + php_version: '8.2' + + - name: Infection + run: | + wget -q https://github.com/infection/infection/releases/download/0.26.18/infection.phar + wget -q https://github.com/infection/infection/releases/download/0.26.18/infection.phar.asc + chmod +x infection.phar + ./infection.phar + + - name: Store infection log + uses: actions/upload-artifact@v3 + with: + path: infection.log diff --git a/.github/workflows/phpstan-5.yaml b/.github/workflows/phpstan-5.yaml new file mode 100644 index 00000000..862625d3 --- /dev/null +++ b/.github/workflows/phpstan-5.yaml @@ -0,0 +1,23 @@ +name: PHPStan level 5 +on: push +jobs: + phpstan: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: '**/vendor' + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-composer- + - uses: php-actions/composer@v6 + with: + args: --prefer-dist + php_version: '8.2' + + - name: PHPStan + uses: php-actions/phpstan@v3 + with: + path: src/ + level: 5 diff --git a/.github/workflows/phpstan-6.yaml b/.github/workflows/phpstan-6.yaml new file mode 100644 index 00000000..8fe418d9 --- /dev/null +++ b/.github/workflows/phpstan-6.yaml @@ -0,0 +1,23 @@ +name: PHPStan level 6 +on: push +jobs: + phpstan: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: '**/vendor' + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-composer- + - uses: php-actions/composer@v6 + with: + args: --prefer-dist + php_version: '8.2' + + - name: PHPStan + uses: php-actions/phpstan@v3 + with: + path: src/ + level: 6 diff --git a/.github/workflows/phpstan-7.yaml b/.github/workflows/phpstan-7.yaml new file mode 100644 index 00000000..e7d8d6e1 --- /dev/null +++ b/.github/workflows/phpstan-7.yaml @@ -0,0 +1,23 @@ +name: PHPStan level 7 +on: push +jobs: + phpstan: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: '**/vendor' + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-composer- + - uses: php-actions/composer@v6 + with: + args: --prefer-dist + php_version: '8.2' + + - name: PHPStan + uses: php-actions/phpstan@v3 + with: + path: src/ + level: 7 diff --git a/.github/workflows/phpstan-8.yaml b/.github/workflows/phpstan-8.yaml new file mode 100644 index 00000000..39cebe0f --- /dev/null +++ b/.github/workflows/phpstan-8.yaml @@ -0,0 +1,23 @@ +name: PHPStan level 8 +on: push +jobs: + phpstan: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: '**/vendor' + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-composer- + - uses: php-actions/composer@v6 + with: + args: --prefer-dist + php_version: '8.2' + + - name: PHPStan + uses: php-actions/phpstan@v3 + with: + path: src/ + level: 8 diff --git a/.github/workflows/phpunit.yaml b/.github/workflows/phpunit.yaml new file mode 100644 index 00000000..8b8af0c7 --- /dev/null +++ b/.github/workflows/phpunit.yaml @@ -0,0 +1,30 @@ +name: PHPUnit +on: push +jobs: + phpunit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + tools: composer:v2 + coverage: pcov + - uses: actions/cache@v3 + with: + path: '**/vendor' + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-composer- + - uses: php-actions/composer@v6 + with: + args: --prefer-dist + php_version: '8.2' + + - name: Run tests & generate Coverage + run: bin/phpunit functional --coverage-html var/coverage + + - name: Store coverage files + uses: actions/upload-artifact@v3 + with: + path: var/coverage diff --git a/.github/workflows/quality.yaml b/.github/workflows/quality.yaml new file mode 100644 index 00000000..8e70ec6d --- /dev/null +++ b/.github/workflows/quality.yaml @@ -0,0 +1,36 @@ +name: Quality (PHPStan lvl 4) +on: push +jobs: + cs-fixer: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + - name: Cs-Fixer + run: | + wget -q https://cs.symfony.com/download/php-cs-fixer-v3.phar -O php-cs-fixer + chmod a+x php-cs-fixer + PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run + + phpstan: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: '**/vendor' + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-composer- + - uses: php-actions/composer@v6 + with: + args: --prefer-dist + php_version: '8.2' + + - name: PHPStan + uses: php-actions/phpstan@v3 + with: + path: src/ + level: 4 diff --git a/.gitignore b/.gitignore index 57872d0f..cf6b2d74 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,15 @@ /vendor/ +/.php-cs-fixer.cache +/bin/json5 +/bin/php-cs-fixer +/bin/php-parse +/bin/phpstan +/bin/phpstan.phar +/bin/phpunit +/bin/rector +/bin/validate-json +/bin/var-dump-server +/bin/yaml-lint +/bin/infection +/bin/jane +/bin/jane-openapi diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index fe5d2d61..2a172a04 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -7,6 +7,7 @@ return (new PhpCsFixer\Config()) ->setRiskyAllowed(true) ->setRules([ + '@PHP82Migration' => true, '@PHP81Migration' => true, '@PHP80Migration:risky' => true, '@PHPUnit84Migration:risky' => true, diff --git a/README.md b/README.md new file mode 100644 index 00000000..7f4b37e1 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +Gyroscops Api Client +=== + +[![Quality (PHPStan lvl 4)](https://github.com/php-etl/gyroscops-api-client/actions/workflows/quality.yaml/badge.svg)](https://github.com/php-etl/gyroscops-api-client/actions/workflows/quality.yaml) +[![PHPUnit](https://github.com/php-etl/gyroscops-api-client/actions/workflows/phpunit.yaml/badge.svg)](https://github.com/php-etl/gyroscops-api-client/actions/workflows/phpunit.yaml) +[![Infection](https://github.com/php-etl/gyroscops-api-client/actions/workflows/infection.yaml/badge.svg)](https://github.com/php-etl/gyroscops-api-client/actions/workflows/infection.yaml) +[![PHPStan level 5](https://github.com/php-etl/gyroscops-api-client/actions/workflows/phpstan-5.yaml/badge.svg)](https://github.com/php-etl/gyroscops-api-client/actions/workflows/phpstan-5.yaml) +[![PHPStan level 6](https://github.com/php-etl/gyroscops-api-client/actions/workflows/phpstan-6.yaml/badge.svg)](https://github.com/php-etl/gyroscops-api-client/actions/workflows/phpstan-6.yaml) +[![PHPStan level 7](https://github.com/php-etl/gyroscops-api-client/actions/workflows/phpstan-7.yaml/badge.svg)](https://github.com/php-etl/gyroscops-api-client/actions/workflows/phpstan-7.yaml) +[![PHPStan level 8](https://github.com/php-etl/gyroscops-api-client/actions/workflows/phpstan-8.yaml/badge.svg)](https://github.com/php-etl/gyroscops-api-client/actions/workflows/phpstan-8.yaml) +![PHP](https://img.shields.io/packagist/php-v/php-etl/gyroscops-api-client) + diff --git a/composer.json b/composer.json index 65241f00..8f9392f5 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "minimum-stability": "dev", "prefer-stable": true, "require": { - "php": "^8.0", + "php": "^8.2", "jane-php/open-api-runtime": "^7.2" }, "autoload": { @@ -26,15 +26,23 @@ }, "require-dev": { "jane-php/open-api-3": "^7.2", + "phpunit/phpunit": "^9.5 || ^10.0", + "phpstan/phpstan": "^1.10", + "infection/infection": "^0.26.18", "friendsofphp/php-cs-fixer": "^3.11", "rector/rector": "^0.15.19" }, "config": { - "bin-dir": "bin" + "bin-dir": "bin", + "allow-plugins": { + "infection/extension-installer": true, + "php-http/discovery": true + } }, "extra": { "branch-alias": { - "dev-main": "0.1.x-dev" + "dev-main": "0.2.x-dev", + "dev-feature/qualityflow-improvments": "0.2.x-dev" } } } diff --git a/composer.lock b/composer.lock index 23351225..7aebb788 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f92cdffed9660bc62be2be2f4243623e", + "content-hash": "5afea42da448f387052ba2417bf2977d", "packages": [ { "name": "clue/stream-filter", @@ -74,23 +74,23 @@ }, { "name": "jane-php/json-schema-runtime", - "version": "v7.3.1", + "version": "v7.4.2", "source": { "type": "git", "url": "https://github.com/janephp/json-schema-runtime.git", - "reference": "46aed7d2ac26b86e713c45091d18b4a591121143" + "reference": "0c48480e1fccda01908085cd985346aa0ce7651b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/janephp/json-schema-runtime/zipball/46aed7d2ac26b86e713c45091d18b4a591121143", - "reference": "46aed7d2ac26b86e713c45091d18b4a591121143", + "url": "https://api.github.com/repos/janephp/json-schema-runtime/zipball/0c48480e1fccda01908085cd985346aa0ce7651b", + "reference": "0c48480e1fccda01908085cd985346aa0ce7651b", "shasum": "" }, "require": { "ext-json": "*", "league/uri": "^6.0", "php": "^7.2 || ^8.0", - "php-jsonpointer/php-jsonpointer": "^3.0", + "php-jsonpointer/php-jsonpointer": "^3.0 || ^4.0", "symfony/serializer": "^4.4 || ^5.0 || ^6.0", "symfony/yaml": "~4.4.9 || ^5.0 || ^6.0" }, @@ -130,13 +130,13 @@ ], "description": "Jane runtime Library", "support": { - "source": "https://github.com/janephp/json-schema-runtime/tree/v7.3.1" + "source": "https://github.com/janephp/json-schema-runtime/tree/v7.4.2" }, - "time": "2021-12-16T13:26:58+00:00" + "time": "2023-01-24T07:25:29+00:00" }, { "name": "jane-php/open-api-runtime", - "version": "v7.3.1", + "version": "v7.4.2", "source": { "type": "git", "url": "https://github.com/janephp/open-api-runtime.git", @@ -193,7 +193,7 @@ ], "description": "Jane OpenAPI Runtime Library, dependencies and utility class for a library generated by jane/openapi", "support": { - "source": "https://github.com/janephp/open-api-runtime/tree/v7.3.1" + "source": "https://github.com/janephp/open-api-runtime/tree/v7.4.2" }, "time": "2021-12-16T13:26:58+00:00" }, @@ -445,38 +445,44 @@ }, { "name": "php-http/discovery", - "version": "1.14.3", + "version": "1.15.2", "source": { "type": "git", "url": "https://github.com/php-http/discovery.git", - "reference": "31d8ee46d0215108df16a8527c7438e96a4d7735" + "reference": "5cc428320191ac1d0b6520034c2dc0698628ced5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-http/discovery/zipball/31d8ee46d0215108df16a8527c7438e96a4d7735", - "reference": "31d8ee46d0215108df16a8527c7438e96a4d7735", + "url": "https://api.github.com/repos/php-http/discovery/zipball/5cc428320191ac1d0b6520034c2dc0698628ced5", + "reference": "5cc428320191ac1d0b6520034c2dc0698628ced5", "shasum": "" }, "require": { + "composer-plugin-api": "^1.0|^2.0", "php": "^7.1 || ^8.0" }, "conflict": { "nyholm/psr7": "<1.0" }, + "provide": { + "php-http/async-client-implementation": "*", + "php-http/client-implementation": "*", + "psr/http-client-implementation": "*", + "psr/http-factory-implementation": "*", + "psr/http-message-implementation": "*" + }, "require-dev": { + "composer/composer": "^1.0.2|^2.0", "graham-campbell/phpspec-skip-example-extension": "^5.0", "php-http/httplug": "^1.0 || ^2.0", "php-http/message-factory": "^1.0", - "phpspec/phpspec": "^5.1 || ^6.1" - }, - "suggest": { - "php-http/message": "Allow to use Guzzle, Diactoros or Slim Framework factories" + "phpspec/phpspec": "^5.1 || ^6.1 || ^7.3", + "symfony/phpunit-bridge": "^6.2" }, - "type": "library", + "type": "composer-plugin", "extra": { - "branch-alias": { - "dev-master": "1.9-dev" - } + "class": "Http\\Discovery\\Composer\\Plugin", + "plugin-optional": true }, "autoload": { "psr-4": { @@ -493,7 +499,7 @@ "email": "mark.sagikazar@gmail.com" } ], - "description": "Finds installed HTTPlug implementations and PSR-7 message factories", + "description": "Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations", "homepage": "http://php-http.org", "keywords": [ "adapter", @@ -502,13 +508,14 @@ "factory", "http", "message", + "psr17", "psr7" ], "support": { "issues": "https://github.com/php-http/discovery/issues", - "source": "https://github.com/php-http/discovery/tree/1.14.3" + "source": "https://github.com/php-http/discovery/tree/1.15.2" }, - "time": "2022-07-11T14:04:40+00:00" + "time": "2023-02-11T08:28:41+00:00" }, { "name": "php-http/httplug", @@ -821,24 +828,24 @@ }, { "name": "php-jsonpointer/php-jsonpointer", - "version": "v3.0.2", + "version": "v4.0.0", "source": { "type": "git", "url": "https://github.com/raphaelstolt/php-jsonpointer.git", - "reference": "4428f86c6f23846e9faa5a420c4ef14e485b3afb" + "reference": "fd50fc1aecd80dedb5bc59c9a1d70d4cfec7933b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/raphaelstolt/php-jsonpointer/zipball/4428f86c6f23846e9faa5a420c4ef14e485b3afb", - "reference": "4428f86c6f23846e9faa5a420c4ef14e485b3afb", + "url": "https://api.github.com/repos/raphaelstolt/php-jsonpointer/zipball/fd50fc1aecd80dedb5bc59c9a1d70d4cfec7933b", + "reference": "fd50fc1aecd80dedb5bc59c9a1d70d4cfec7933b", "shasum": "" }, "require": { - "php": ">=5.4" + "php": ">=7.4" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^1.11", - "phpunit/phpunit": "4.6.*" + "friendsofphp/php-cs-fixer": "^3.0", + "phpunit/phpunit": "8.*" }, "type": "library", "extra": { @@ -871,9 +878,9 @@ ], "support": { "issues": "https://github.com/raphaelstolt/php-jsonpointer/issues", - "source": "https://github.com/raphaelstolt/php-jsonpointer/tree/master" + "source": "https://github.com/raphaelstolt/php-jsonpointer/tree/v4.0.0" }, - "time": "2016-08-29T08:51:01+00:00" + "time": "2022-01-11T14:28:07+00:00" }, { "name": "psr/http-client", @@ -1037,16 +1044,16 @@ }, { "name": "symfony/deprecation-contracts", - "version": "v3.1.1", + "version": "v3.2.1", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918" + "reference": "e2d1534420bd723d0ef5aec58a22c5fe60ce6f5e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918", - "reference": "07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e2d1534420bd723d0ef5aec58a22c5fe60ce6f5e", + "reference": "e2d1534420bd723d0ef5aec58a22c5fe60ce6f5e", "shasum": "" }, "require": { @@ -1055,7 +1062,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "3.1-dev" + "dev-main": "3.3-dev" }, "thanks": { "name": "symfony/contracts", @@ -1084,7 +1091,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.1.1" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.2.1" }, "funding": [ { @@ -1100,20 +1107,20 @@ "type": "tidelift" } ], - "time": "2022-02-25T11:15:52+00:00" + "time": "2023-03-01T10:25:55+00:00" }, { "name": "symfony/options-resolver", - "version": "v6.1.0", + "version": "v6.2.7", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "a3016f5442e28386ded73c43a32a5b68586dd1c4" + "reference": "aa0e85b53bbb2b4951960efd61d295907eacd629" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/a3016f5442e28386ded73c43a32a5b68586dd1c4", - "reference": "a3016f5442e28386ded73c43a32a5b68586dd1c4", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/aa0e85b53bbb2b4951960efd61d295907eacd629", + "reference": "aa0e85b53bbb2b4951960efd61d295907eacd629", "shasum": "" }, "require": { @@ -1151,7 +1158,7 @@ "options" ], "support": { - "source": "https://github.com/symfony/options-resolver/tree/v6.1.0" + "source": "https://github.com/symfony/options-resolver/tree/v6.2.7" }, "funding": [ { @@ -1167,20 +1174,20 @@ "type": "tidelift" } ], - "time": "2022-02-25T11:15:52+00:00" + "time": "2023-02-14T08:44:56+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.26.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4" + "reference": "5bbc823adecdae860bb64756d639ecfec17b050a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4", - "reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/5bbc823adecdae860bb64756d639ecfec17b050a", + "reference": "5bbc823adecdae860bb64756d639ecfec17b050a", "shasum": "" }, "require": { @@ -1195,7 +1202,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -1233,7 +1240,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.26.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.27.0" }, "funding": [ { @@ -1249,20 +1256,20 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.26.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace" + "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/cfa0ae98841b9e461207c13ab093d76b0fa7bace", - "reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", + "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", "shasum": "" }, "require": { @@ -1271,7 +1278,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -1316,7 +1323,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.26.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.27.0" }, "funding": [ { @@ -1332,20 +1339,20 @@ "type": "tidelift" } ], - "time": "2022-05-10T07:21:04+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/serializer", - "version": "v6.1.5", + "version": "v6.2.7", "source": { "type": "git", "url": "https://github.com/symfony/serializer.git", - "reference": "0986800f0c394bd46443afbf0a05c4386ffa1cd6" + "reference": "df9599873fdc2540e6f4291f49be4fcc167e9cbf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/serializer/zipball/0986800f0c394bd46443afbf0a05c4386ffa1cd6", - "reference": "0986800f0c394bd46443afbf0a05c4386ffa1cd6", + "url": "https://api.github.com/repos/symfony/serializer/zipball/df9599873fdc2540e6f4291f49be4fcc167e9cbf", + "reference": "df9599873fdc2540e6f4291f49be4fcc167e9cbf", "shasum": "" }, "require": { @@ -1355,7 +1362,7 @@ "conflict": { "doctrine/annotations": "<1.12", "phpdocumentor/reflection-docblock": "<3.2.2", - "phpdocumentor/type-resolver": "<1.4.0", + "phpdocumentor/type-resolver": "<1.4.0|>=1.7.0", "symfony/dependency-injection": "<5.4", "symfony/property-access": "<5.4", "symfony/property-info": "<5.4", @@ -1363,7 +1370,7 @@ "symfony/yaml": "<5.4" }, "require-dev": { - "doctrine/annotations": "^1.12", + "doctrine/annotations": "^1.12|^2", "phpdocumentor/reflection-docblock": "^3.2|^4.0|^5.0", "symfony/cache": "^5.4|^6.0", "symfony/config": "^5.4|^6.0", @@ -1417,7 +1424,7 @@ "description": "Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/serializer/tree/v6.1.5" + "source": "https://github.com/symfony/serializer/tree/v6.2.7" }, "funding": [ { @@ -1433,20 +1440,20 @@ "type": "tidelift" } ], - "time": "2022-09-29T11:04:32+00:00" + "time": "2023-02-24T10:42:00+00:00" }, { "name": "symfony/yaml", - "version": "v6.1.4", + "version": "v6.2.7", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "86ee4d8fa594ed45e40d86eedfda1bcb66c8d919" + "reference": "e8e6a1d59e050525f27a1f530aa9703423cb7f57" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/86ee4d8fa594ed45e40d86eedfda1bcb66c8d919", - "reference": "86ee4d8fa594ed45e40d86eedfda1bcb66c8d919", + "url": "https://api.github.com/repos/symfony/yaml/zipball/e8e6a1d59e050525f27a1f530aa9703423cb7f57", + "reference": "e8e6a1d59e050525f27a1f530aa9703423cb7f57", "shasum": "" }, "require": { @@ -1491,7 +1498,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v6.1.4" + "source": "https://github.com/symfony/yaml/tree/v6.2.7" }, "funding": [ { @@ -1507,22 +1514,113 @@ "type": "tidelift" } ], - "time": "2022-08-02T16:17:38+00:00" + "time": "2023-02-16T09:57:23+00:00" } ], "packages-dev": [ + { + "name": "colinodell/json5", + "version": "v2.3.0", + "source": { + "type": "git", + "url": "https://github.com/colinodell/json5.git", + "reference": "15b063f8cb5e6deb15f0cd39123264ec0d19c710" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/colinodell/json5/zipball/15b063f8cb5e6deb15f0cd39123264ec0d19c710", + "reference": "15b063f8cb5e6deb15f0cd39123264ec0d19c710", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "php": "^7.1.3|^8.0" + }, + "conflict": { + "scrutinizer/ocular": "1.7.*" + }, + "require-dev": { + "mikehaertl/php-shellcommand": "^1.2.5", + "phpstan/phpstan": "^1.4", + "scrutinizer/ocular": "^1.6", + "squizlabs/php_codesniffer": "^2.3 || ^3.0", + "symfony/finder": "^4.4|^5.4|^6.0", + "symfony/phpunit-bridge": "^5.4|^6.0" + }, + "bin": [ + "bin/json5" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.0-dev" + } + }, + "autoload": { + "files": [ + "src/global.php" + ], + "psr-4": { + "ColinODell\\Json5\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Developer" + } + ], + "description": "UTF-8 compatible JSON5 parser for PHP", + "homepage": "https://github.com/colinodell/json5", + "keywords": [ + "JSON5", + "json", + "json5_decode", + "json_decode" + ], + "support": { + "issues": "https://github.com/colinodell/json5/issues", + "source": "https://github.com/colinodell/json5/tree/v2.3.0" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + }, + { + "url": "https://www.patreon.com/colinodell", + "type": "patreon" + } + ], + "time": "2022-12-27T16:44:40+00:00" + }, { "name": "composer/pcre", - "version": "3.0.0", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/composer/pcre.git", - "reference": "e300eb6c535192decd27a85bc72a9290f0d6b3bd" + "reference": "4bff79ddd77851fe3cdd11616ed3f92841ba5bd2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/e300eb6c535192decd27a85bc72a9290f0d6b3bd", - "reference": "e300eb6c535192decd27a85bc72a9290f0d6b3bd", + "url": "https://api.github.com/repos/composer/pcre/zipball/4bff79ddd77851fe3cdd11616ed3f92841ba5bd2", + "reference": "4bff79ddd77851fe3cdd11616ed3f92841ba5bd2", "shasum": "" }, "require": { @@ -1564,7 +1662,7 @@ ], "support": { "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/3.0.0" + "source": "https://github.com/composer/pcre/tree/3.1.0" }, "funding": [ { @@ -1580,7 +1678,7 @@ "type": "tidelift" } ], - "time": "2022-02-25T20:21:48+00:00" + "time": "2022-11-17T09:50:14+00:00" }, { "name": "composer/semver", @@ -1731,32 +1829,35 @@ }, { "name": "doctrine/annotations", - "version": "1.13.3", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/doctrine/annotations.git", - "reference": "648b0343343565c4a056bfc8392201385e8d89f0" + "reference": "e157ef3f3124bbf6fe7ce0ffd109e8a8ef284e7f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/648b0343343565c4a056bfc8392201385e8d89f0", - "reference": "648b0343343565c4a056bfc8392201385e8d89f0", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/e157ef3f3124bbf6fe7ce0ffd109e8a8ef284e7f", + "reference": "e157ef3f3124bbf6fe7ce0ffd109e8a8ef284e7f", "shasum": "" }, "require": { - "doctrine/lexer": "1.*", + "doctrine/lexer": "^2 || ^3", "ext-tokenizer": "*", - "php": "^7.1 || ^8.0", + "php": "^7.2 || ^8.0", "psr/cache": "^1 || ^2 || ^3" }, "require-dev": { - "doctrine/cache": "^1.11 || ^2.0", - "doctrine/coding-standard": "^6.0 || ^8.1", - "phpstan/phpstan": "^1.4.10 || ^1.8.0", - "phpunit/phpunit": "^7.5 || ^8.0 || ^9.1.5", - "symfony/cache": "^4.4 || ^5.2", + "doctrine/cache": "^2.0", + "doctrine/coding-standard": "^10", + "phpstan/phpstan": "^1.8.0", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "symfony/cache": "^5.4 || ^6", "vimeo/psalm": "^4.10" }, + "suggest": { + "php": "PHP 8.0 or higher comes with attributes, a native replacement for annotations" + }, "type": "library", "autoload": { "psr-4": { @@ -1798,29 +1899,29 @@ ], "support": { "issues": "https://github.com/doctrine/annotations/issues", - "source": "https://github.com/doctrine/annotations/tree/1.13.3" + "source": "https://github.com/doctrine/annotations/tree/2.0.1" }, - "time": "2022-07-02T10:48:51+00:00" + "time": "2023-02-02T22:02:53+00:00" }, { "name": "doctrine/inflector", - "version": "2.0.5", + "version": "2.0.6", "source": { "type": "git", "url": "https://github.com/doctrine/inflector.git", - "reference": "ade2b3bbfb776f27f0558e26eed43b5d9fe1b392" + "reference": "d9d313a36c872fd6ee06d9a6cbcf713eaa40f024" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/inflector/zipball/ade2b3bbfb776f27f0558e26eed43b5d9fe1b392", - "reference": "ade2b3bbfb776f27f0558e26eed43b5d9fe1b392", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/d9d313a36c872fd6ee06d9a6cbcf713eaa40f024", + "reference": "d9d313a36c872fd6ee06d9a6cbcf713eaa40f024", "shasum": "" }, "require": { "php": "^7.2 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^9", + "doctrine/coding-standard": "^10", "phpstan/phpstan": "^1.8", "phpstan/phpstan-phpunit": "^1.1", "phpstan/phpstan-strict-rules": "^1.3", @@ -1875,7 +1976,7 @@ ], "support": { "issues": "https://github.com/doctrine/inflector/issues", - "source": "https://github.com/doctrine/inflector/tree/2.0.5" + "source": "https://github.com/doctrine/inflector/tree/2.0.6" }, "funding": [ { @@ -1891,35 +1992,36 @@ "type": "tidelift" } ], - "time": "2022-09-07T09:01:28+00:00" + "time": "2022-10-20T09:10:12+00:00" }, { "name": "doctrine/lexer", - "version": "1.2.3", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/doctrine/lexer.git", - "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229" + "reference": "84a527db05647743d50373e0ec53a152f2cde568" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/lexer/zipball/c268e882d4dbdd85e36e4ad69e02dc284f89d229", - "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/84a527db05647743d50373e0ec53a152f2cde568", + "reference": "84a527db05647743d50373e0ec53a152f2cde568", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^8.1" }, "require-dev": { - "doctrine/coding-standard": "^9.0", - "phpstan/phpstan": "^1.3", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "vimeo/psalm": "^4.11" + "doctrine/coding-standard": "^10", + "phpstan/phpstan": "^1.9", + "phpunit/phpunit": "^9.5", + "psalm/plugin-phpunit": "^0.18.3", + "vimeo/psalm": "^5.0" }, "type": "library", "autoload": { "psr-4": { - "Doctrine\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer" + "Doctrine\\Common\\Lexer\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -1951,7 +2053,7 @@ ], "support": { "issues": "https://github.com/doctrine/lexer/issues", - "source": "https://github.com/doctrine/lexer/tree/1.2.3" + "source": "https://github.com/doctrine/lexer/tree/3.0.0" }, "funding": [ { @@ -1967,55 +2069,117 @@ "type": "tidelift" } ], - "time": "2022-02-28T11:07:21+00:00" + "time": "2022-12-15T16:57:16+00:00" + }, + { + "name": "fidry/cpu-core-counter", + "version": "0.4.1", + "source": { + "type": "git", + "url": "https://github.com/theofidry/cpu-core-counter.git", + "reference": "79261cc280aded96d098e1b0e0ba0c4881b432c2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/79261cc280aded96d098e1b0e0ba0c4881b432c2", + "reference": "79261cc280aded96d098e1b0e0ba0c4881b432c2", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "fidry/makefile": "^0.2.0", + "phpstan/extension-installer": "^1.2.0", + "phpstan/phpstan": "^1.9.2", + "phpstan/phpstan-deprecation-rules": "^1.0.0", + "phpstan/phpstan-phpunit": "^1.2.2", + "phpstan/phpstan-strict-rules": "^1.4.4", + "phpunit/phpunit": "^9.5.26 || ^8.5.31", + "theofidry/php-cs-fixer-config": "^1.0", + "webmozarts/strict-phpunit": "^7.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Fidry\\CpuCoreCounter\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Théo FIDRY", + "email": "theo.fidry@gmail.com" + } + ], + "description": "Tiny utility to get the number of CPU cores.", + "keywords": [ + "CPU", + "core" + ], + "support": { + "issues": "https://github.com/theofidry/cpu-core-counter/issues", + "source": "https://github.com/theofidry/cpu-core-counter/tree/0.4.1" + }, + "funding": [ + { + "url": "https://github.com/theofidry", + "type": "github" + } + ], + "time": "2022-12-16T22:01:02+00:00" }, { "name": "friendsofphp/php-cs-fixer", - "version": "v3.11.0", + "version": "v3.15.1", "source": { "type": "git", - "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", - "reference": "7dcdea3f2f5f473464e835be9be55283ff8cfdc3" + "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", + "reference": "d48755372a113bddb99f749e34805d83f3acfe04" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/7dcdea3f2f5f473464e835be9be55283ff8cfdc3", - "reference": "7dcdea3f2f5f473464e835be9be55283ff8cfdc3", + "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/d48755372a113bddb99f749e34805d83f3acfe04", + "reference": "d48755372a113bddb99f749e34805d83f3acfe04", "shasum": "" }, "require": { - "composer/semver": "^3.2", + "composer/semver": "^3.3", "composer/xdebug-handler": "^3.0.3", - "doctrine/annotations": "^1.13", + "doctrine/annotations": "^2", + "doctrine/lexer": "^2 || ^3", "ext-json": "*", "ext-tokenizer": "*", "php": "^7.4 || ^8.0", - "sebastian/diff": "^4.0", + "sebastian/diff": "^4.0 || ^5.0", "symfony/console": "^5.4 || ^6.0", "symfony/event-dispatcher": "^5.4 || ^6.0", "symfony/filesystem": "^5.4 || ^6.0", "symfony/finder": "^5.4 || ^6.0", "symfony/options-resolver": "^5.4 || ^6.0", - "symfony/polyfill-mbstring": "^1.23", - "symfony/polyfill-php80": "^1.25", - "symfony/polyfill-php81": "^1.25", + "symfony/polyfill-mbstring": "^1.27", + "symfony/polyfill-php80": "^1.27", + "symfony/polyfill-php81": "^1.27", "symfony/process": "^5.4 || ^6.0", "symfony/stopwatch": "^5.4 || ^6.0" }, "require-dev": { "justinrainbow/json-schema": "^5.2", - "keradus/cli-executor": "^1.5", - "mikey179/vfsstream": "^1.6.10", - "php-coveralls/php-coveralls": "^2.5.2", + "keradus/cli-executor": "^2.0", + "mikey179/vfsstream": "^1.6.11", + "php-coveralls/php-coveralls": "^2.5.3", "php-cs-fixer/accessible-object": "^1.1", "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2", "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1", - "phpspec/prophecy": "^1.15", + "phpspec/prophecy": "^1.16", "phpspec/prophecy-phpunit": "^2.0", "phpunit/phpunit": "^9.5", - "phpunitgoodpractices/polyfill": "^1.5", - "phpunitgoodpractices/traits": "^1.9.1", - "symfony/phpunit-bridge": "^6.0", + "phpunitgoodpractices/polyfill": "^1.6", + "phpunitgoodpractices/traits": "^1.9.2", + "symfony/phpunit-bridge": "^6.2.3", "symfony/yaml": "^5.4 || ^6.0" }, "suggest": { @@ -2046,9 +2210,15 @@ } ], "description": "A tool to automatically fix PHP code style", + "keywords": [ + "Static code analysis", + "fixer", + "standards", + "static analysis" + ], "support": { - "issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues", - "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.11.0" + "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", + "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.15.1" }, "funding": [ { @@ -2056,261 +2226,252 @@ "type": "github" } ], - "time": "2022-09-01T18:24:51+00:00" + "time": "2023-03-13T23:26:30+00:00" }, { - "name": "jane-php/json-schema", - "version": "v7.3.1", + "name": "infection/abstract-testframework-adapter", + "version": "0.5.0", "source": { "type": "git", - "url": "https://github.com/janephp/json-schema.git", - "reference": "25d4c2c4f62717cb3ec5d246864b4843648406d6" + "url": "https://github.com/infection/abstract-testframework-adapter.git", + "reference": "18925e20d15d1a5995bb85c9dc09e8751e1e069b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/janephp/json-schema/zipball/25d4c2c4f62717cb3ec5d246864b4843648406d6", - "reference": "25d4c2c4f62717cb3ec5d246864b4843648406d6", + "url": "https://api.github.com/repos/infection/abstract-testframework-adapter/zipball/18925e20d15d1a5995bb85c9dc09e8751e1e069b", + "reference": "18925e20d15d1a5995bb85c9dc09e8751e1e069b", "shasum": "" }, "require": { - "doctrine/inflector": "^1.4 || ^2.0", - "ext-json": "*", - "jane-php/json-schema-runtime": "^7.0", - "nikic/php-parser": "^4.0", - "php": "^7.2 || ^8.0", - "symfony/console": "^4.4 || ^5.0 || ^6.0", - "symfony/filesystem": "^4.4 || ^5.0 || ^6.0", - "symfony/options-resolver": "^4.4 || ^5.0 || ^6.0", - "symfony/serializer": "^4.4 || ^5.0 || ^6.0", - "symfony/validator": "^5.0 || ^6.0", - "symfony/var-dumper": "^4.4 || ^5.0 || ^6.0", - "symfony/yaml": "~4.4.9 || ^5.0 || ^6.0" - }, - "conflict": { - "nikic/php-parser": "<4.0.4", - "symfony/framework-bundle": "5.1.0" + "php": "^7.4 || ^8.0" }, "require-dev": { - "phpunit/phpunit": "^8.0", - "symfony/finder": "^4.4 || ^5.0 || ^6.0" - }, - "suggest": { - "friendsofphp/php-cs-fixer": "Allow to automatically fix cs on generated code for better visualisation" + "ergebnis/composer-normalize": "^2.8", + "friendsofphp/php-cs-fixer": "^2.17", + "phpunit/phpunit": "^9.5" }, - "bin": [ - "bin/jane" - ], "type": "library", - "extra": { - "branch-alias": { - "dev-next": "7-dev" - } - }, "autoload": { "psr-4": { - "Jane\\Component\\JsonSchema\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] + "Infection\\AbstractTestFramework\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Joel Wurtz", - "email": "jwurtz@jolicode.com" - }, - { - "name": "Baptiste Leduc", - "email": "baptiste.leduc@gmail.com" + "name": "Maks Rafalko", + "email": "maks.rafalko@gmail.com" } ], - "description": "Generate a serializable / deserializable object model given a json schema", + "description": "Abstract Test Framework Adapter for Infection", "support": { - "source": "https://github.com/janephp/json-schema/tree/v7.3.1" + "issues": "https://github.com/infection/abstract-testframework-adapter/issues", + "source": "https://github.com/infection/abstract-testframework-adapter/tree/0.5.0" }, - "time": "2022-08-22T10:52:58+00:00" + "funding": [ + { + "url": "https://github.com/infection", + "type": "github" + }, + { + "url": "https://opencollective.com/infection", + "type": "open_collective" + } + ], + "time": "2021-08-17T18:49:12+00:00" }, { - "name": "jane-php/open-api-3", - "version": "v7.3.1", + "name": "infection/extension-installer", + "version": "0.1.2", "source": { "type": "git", - "url": "https://github.com/janephp/open-api-3.git", - "reference": "536e0108c4e460848ff28679cc66eabd66cbf8ff" + "url": "https://github.com/infection/extension-installer.git", + "reference": "9b351d2910b9a23ab4815542e93d541e0ca0cdcf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/janephp/open-api-3/zipball/536e0108c4e460848ff28679cc66eabd66cbf8ff", - "reference": "536e0108c4e460848ff28679cc66eabd66cbf8ff", + "url": "https://api.github.com/repos/infection/extension-installer/zipball/9b351d2910b9a23ab4815542e93d541e0ca0cdcf", + "reference": "9b351d2910b9a23ab4815542e93d541e0ca0cdcf", "shasum": "" }, "require": { - "ext-json": "*", - "jane-php/json-schema": "^7.0", - "jane-php/open-api-common": "^7.0", - "nikic/php-parser": "^4.0", - "php": "^7.2 || ^8.0", - "symfony/serializer": "^4.4 || ^5.0 || ^6.0", - "symfony/yaml": "~4.4.9 || ^5.0 || ^6.0" - }, - "conflict": { - "nikic/php-parser": "<4.0.4", - "symfony/framework-bundle": "5.1.0" + "composer-plugin-api": "^1.1 || ^2.0" }, "require-dev": { - "kriswallsmith/buzz": "^1.1", - "nyholm/psr7": "^1.3", - "phpunit/phpunit": "^8.0", - "symfony/finder": "^4.4 || ^5.0 || ^6.0" - }, - "suggest": { - "friendsofphp/php-cs-fixer": "To have a nice formatting of the generated files" + "composer/composer": "^1.9 || ^2.0", + "friendsofphp/php-cs-fixer": "^2.18, <2.19", + "infection/infection": "^0.15.2", + "php-coveralls/php-coveralls": "^2.4", + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^0.12.10", + "phpstan/phpstan-phpunit": "^0.12.6", + "phpstan/phpstan-strict-rules": "^0.12.2", + "phpstan/phpstan-webmozart-assert": "^0.12.2", + "phpunit/phpunit": "^9.5", + "vimeo/psalm": "^4.8" }, - "type": "library", + "type": "composer-plugin", "extra": { - "branch-alias": { - "dev-next": "7-dev" - } + "class": "Infection\\ExtensionInstaller\\Plugin" }, "autoload": { "psr-4": { - "Jane\\Component\\OpenApi3\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] + "Infection\\ExtensionInstaller\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Joel Wurtz", - "email": "jwurtz@jolicode.com" - }, - { - "name": "Baptiste Leduc", - "email": "baptiste.leduc@gmail.com" + "name": "Maks Rafalko", + "email": "maks.rafalko@gmail.com" } ], - "description": "Generate a PHP Client API (PSR7/PSR18 compatible) given a OpenApi 3.x specification", - "keywords": [ - "jane", - "openapi", - "swagger" - ], + "description": "Infection Extension Installer", "support": { - "source": "https://github.com/janephp/open-api-3/tree/v7.3.1" + "issues": "https://github.com/infection/extension-installer/issues", + "source": "https://github.com/infection/extension-installer/tree/0.1.2" }, - "time": "2022-08-22T11:10:42+00:00" + "funding": [ + { + "url": "https://github.com/infection", + "type": "github" + }, + { + "url": "https://opencollective.com/infection", + "type": "open_collective" + } + ], + "time": "2021-10-20T22:08:34+00:00" }, { - "name": "jane-php/open-api-common", - "version": "v7.3.1", + "name": "infection/include-interceptor", + "version": "0.2.5", "source": { "type": "git", - "url": "https://github.com/janephp/open-api-common.git", - "reference": "d14eb632a64241eda73075badd2f9871e43c15cc" + "url": "https://github.com/infection/include-interceptor.git", + "reference": "0cc76d95a79d9832d74e74492b0a30139904bdf7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/janephp/open-api-common/zipball/d14eb632a64241eda73075badd2f9871e43c15cc", - "reference": "d14eb632a64241eda73075badd2f9871e43c15cc", + "url": "https://api.github.com/repos/infection/include-interceptor/zipball/0cc76d95a79d9832d74e74492b0a30139904bdf7", + "reference": "0cc76d95a79d9832d74e74492b0a30139904bdf7", "shasum": "" }, - "require": { - "ext-json": "*", - "jane-php/json-schema": "^7.0", - "jane-php/open-api-runtime": "^7.0", - "php": "^7.2 || ^8.0", - "symfony/console": "^4.4 || ^5.0 || ^6.0", - "symfony/filesystem": "^4.4 || ^5.0 || ^6.0", - "symfony/string": "^5.0 || ^6.0", - "symfony/var-dumper": "^4.4 || ^5.0 || ^6.0" - }, - "suggest": { - "jane-php/open-api-2": "Allow to generate OpenApi v2 clients", - "jane-php/open-api-3": "Allow to generate OpenApi v3 clients" + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.16", + "infection/infection": "^0.15.0", + "phan/phan": "^2.4 || ^3", + "php-coveralls/php-coveralls": "^2.2", + "phpstan/phpstan": "^0.12.8", + "phpunit/phpunit": "^8.5", + "vimeo/psalm": "^3.8" }, - "bin": [ - "bin/jane-openapi" - ], "type": "library", - "extra": { - "branch-alias": { - "dev-next": "7-dev" - } - }, "autoload": { "psr-4": { - "Jane\\Component\\OpenApiCommon\\": "" + "Infection\\StreamWrapper\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Joel Wurtz", - "email": "jwurtz@jolicode.com" - }, - { - "name": "Baptiste Leduc", - "email": "baptiste.leduc@gmail.com" + "name": "Maks Rafalko", + "email": "maks.rafalko@gmail.com" } ], - "description": "Utility for OpenApi 2/3 generators", - "keywords": [ - "jane", - "openapi", - "swagger", - "utility" - ], + "description": "Stream Wrapper: Include Interceptor. Allows to replace included (autoloaded) file with another one.", "support": { - "source": "https://github.com/janephp/open-api-common/tree/v7.3.1" + "issues": "https://github.com/infection/include-interceptor/issues", + "source": "https://github.com/infection/include-interceptor/tree/0.2.5" }, - "time": "2022-07-15T14:14:20+00:00" + "funding": [ + { + "url": "https://github.com/infection", + "type": "github" + }, + { + "url": "https://opencollective.com/infection", + "type": "open_collective" + } + ], + "time": "2021-08-09T10:03:57+00:00" }, { - "name": "nikic/php-parser", - "version": "v4.15.1", + "name": "infection/infection", + "version": "0.26.19", "source": { "type": "git", - "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "0ef6c55a3f47f89d7a374e6f835197a0b5fcf900" + "url": "https://github.com/infection/infection.git", + "reference": "bd7351c88f3a797ea8977e68fe6a3f4d4c5f457f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/0ef6c55a3f47f89d7a374e6f835197a0b5fcf900", - "reference": "0ef6c55a3f47f89d7a374e6f835197a0b5fcf900", + "url": "https://api.github.com/repos/infection/infection/zipball/bd7351c88f3a797ea8977e68fe6a3f4d4c5f457f", + "reference": "bd7351c88f3a797ea8977e68fe6a3f4d4c5f457f", "shasum": "" }, "require": { - "ext-tokenizer": "*", - "php": ">=7.0" + "colinodell/json5": "^2.2", + "composer-runtime-api": "^2.0", + "composer/xdebug-handler": "^2.0 || ^3.0", + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "fidry/cpu-core-counter": "^0.4.0", + "infection/abstract-testframework-adapter": "^0.5.0", + "infection/extension-installer": "^0.1.0", + "infection/include-interceptor": "^0.2.5", + "justinrainbow/json-schema": "^5.2.10", + "nikic/php-parser": "^4.15.1", + "ondram/ci-detector": "^4.1.0", + "php": "^8.0", + "sanmai/later": "^0.1.1", + "sanmai/pipeline": "^5.1 || ^6", + "sebastian/diff": "^3.0.2 || ^4.0 || ^5.0", + "symfony/console": "^5.4 || ^6.0", + "symfony/filesystem": "^5.4 || ^6.0", + "symfony/finder": "^5.4 || ^6.0", + "symfony/process": "^5.4 || ^6.0", + "thecodingmachine/safe": "^2.1.2", + "webmozart/assert": "^1.11" + }, + "conflict": { + "dg/bypass-finals": "<1.4.1", + "phpunit/php-code-coverage": ">9,<9.1.4 || >9.2.17,<9.2.21" }, "require-dev": { - "ircmaxell/php-yacc": "^0.0.7", - "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" + "brianium/paratest": "^6.3", + "ext-simplexml": "*", + "fidry/makefile": "^0.2.0", + "helmich/phpunit-json-assert": "^3.0", + "phpspec/prophecy-phpunit": "^2.0", + "phpstan/extension-installer": "^1.1.0", + "phpstan/phpstan": "^1.3.0", + "phpstan/phpstan-phpunit": "^1.0.0", + "phpstan/phpstan-strict-rules": "^1.1.0", + "phpstan/phpstan-webmozart-assert": "^1.0.2", + "phpunit/phpunit": "^9.5.5", + "symfony/phpunit-bridge": "^5.4 || ^6.0", + "symfony/yaml": "^5.4 || ^6.0", + "thecodingmachine/phpstan-safe-rule": "^1.2.0" }, "bin": [ - "bin/php-parse" + "bin/infection" ], "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.9-dev" - } - }, "autoload": { "psr-4": { - "PhpParser\\": "lib/PhpParser" + "Infection\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -2319,105 +2480,250 @@ ], "authors": [ { - "name": "Nikita Popov" + "name": "Maks Rafalko", + "email": "maks.rafalko@gmail.com", + "homepage": "https://twitter.com/maks_rafalko" + }, + { + "name": "Oleg Zhulnev", + "homepage": "https://github.com/sidz" + }, + { + "name": "Gert de Pagter", + "homepage": "https://github.com/BackEndTea" + }, + { + "name": "Théo FIDRY", + "email": "theo.fidry@gmail.com", + "homepage": "https://twitter.com/tfidry" + }, + { + "name": "Alexey Kopytko", + "email": "alexey@kopytko.com", + "homepage": "https://www.alexeykopytko.com" + }, + { + "name": "Andreas Möller", + "email": "am@localheinz.com", + "homepage": "https://localheinz.com" } ], - "description": "A PHP parser written in PHP", + "description": "Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.", "keywords": [ - "parser", - "php" + "coverage", + "mutant", + "mutation framework", + "mutation testing", + "testing", + "unit testing" ], "support": { - "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.1" + "issues": "https://github.com/infection/infection/issues", + "source": "https://github.com/infection/infection/tree/0.26.19" }, - "time": "2022-09-04T07:30:47+00:00" + "funding": [ + { + "url": "https://github.com/infection", + "type": "github" + }, + { + "url": "https://opencollective.com/infection", + "type": "open_collective" + } + ], + "time": "2023-02-05T21:47:26+00:00" }, { - "name": "phpstan/phpstan", - "version": "1.10.3", + "name": "jane-php/json-schema", + "version": "v7.4.2", "source": { "type": "git", - "url": "https://github.com/phpstan/phpstan.git", - "reference": "5419375b5891add97dc74be71e6c1c34baaddf64" + "url": "https://github.com/janephp/json-schema.git", + "reference": "cd9d21a98b278c76387bd1891f12f53aa2025ec6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/5419375b5891add97dc74be71e6c1c34baaddf64", - "reference": "5419375b5891add97dc74be71e6c1c34baaddf64", + "url": "https://api.github.com/repos/janephp/json-schema/zipball/cd9d21a98b278c76387bd1891f12f53aa2025ec6", + "reference": "cd9d21a98b278c76387bd1891f12f53aa2025ec6", "shasum": "" }, "require": { - "php": "^7.2|^8.0" + "doctrine/inflector": "^1.4 || ^2.0", + "ext-json": "*", + "jane-php/json-schema-runtime": "^7.0", + "nikic/php-parser": "^4.0", + "php": "^7.2 || ^8.0", + "symfony/console": "^4.4 || ^5.0 || ^6.0", + "symfony/filesystem": "^4.4 || ^5.0 || ^6.0", + "symfony/options-resolver": "^4.4 || ^5.0 || ^6.0", + "symfony/serializer": "^4.4 || ^5.0 || ^6.0", + "symfony/validator": "^5.1 || ^6.0", + "symfony/var-dumper": "^4.4 || ^5.0 || ^6.0", + "symfony/yaml": "~4.4.9 || ^5.0 || ^6.0" }, "conflict": { - "phpstan/phpstan-shim": "*" + "nikic/php-parser": "<4.0.4", + "symfony/framework-bundle": "5.1.0" + }, + "require-dev": { + "phpunit/phpunit": "^8.0", + "symfony/finder": "^4.4 || ^5.0 || ^6.0" + }, + "suggest": { + "friendsofphp/php-cs-fixer": "Allow to automatically fix cs on generated code for better visualisation" }, "bin": [ - "phpstan", - "phpstan.phar" + "bin/jane" ], "type": "library", + "extra": { + "branch-alias": { + "dev-next": "7-dev" + } + }, "autoload": { - "files": [ - "bootstrap.php" + "psr-4": { + "Jane\\Component\\JsonSchema\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "description": "PHPStan - PHP Static Analysis Tool", - "keywords": [ - "dev", - "static analysis" + "authors": [ + { + "name": "Joel Wurtz", + "email": "jwurtz@jolicode.com" + }, + { + "name": "Baptiste Leduc", + "email": "baptiste.leduc@gmail.com" + } ], + "description": "Generate a serializable / deserializable object model given a json schema", "support": { - "issues": "https://github.com/phpstan/phpstan/issues", - "source": "https://github.com/phpstan/phpstan/tree/1.10.3" + "source": "https://github.com/janephp/json-schema/tree/v7.4.2" }, - "funding": [ - { - "url": "https://github.com/ondrejmirtes", - "type": "github" + "time": "2023-03-09T16:50:42+00:00" + }, + { + "name": "jane-php/open-api-3", + "version": "v7.4.2", + "source": { + "type": "git", + "url": "https://github.com/janephp/open-api-3.git", + "reference": "032fc7b38af2d8d7a7dfff07304176e51f654aa6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/janephp/open-api-3/zipball/032fc7b38af2d8d7a7dfff07304176e51f654aa6", + "reference": "032fc7b38af2d8d7a7dfff07304176e51f654aa6", + "shasum": "" + }, + "require": { + "ext-json": "*", + "jane-php/json-schema": "^7.0", + "jane-php/open-api-common": "^7.0", + "nikic/php-parser": "^4.0", + "php": "^7.2 || ^8.0", + "symfony/serializer": "^4.4 || ^5.0 || ^6.0", + "symfony/yaml": "~4.4.9 || ^5.0 || ^6.0" + }, + "conflict": { + "nikic/php-parser": "<4.0.4", + "symfony/framework-bundle": "5.1.0" + }, + "require-dev": { + "kriswallsmith/buzz": "^1.1", + "nyholm/psr7": "^1.3", + "phpunit/phpunit": "^8.0", + "symfony/finder": "^4.4 || ^5.0 || ^6.0" + }, + "suggest": { + "friendsofphp/php-cs-fixer": "To have a nice formatting of the generated files" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-next": "7-dev" + } + }, + "autoload": { + "psr-4": { + "Jane\\Component\\OpenApi3\\": "" }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ { - "url": "https://github.com/phpstan", - "type": "github" + "name": "Joel Wurtz", + "email": "jwurtz@jolicode.com" }, { - "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan", - "type": "tidelift" + "name": "Baptiste Leduc", + "email": "baptiste.leduc@gmail.com" } ], - "time": "2023-02-25T14:47:13+00:00" + "description": "Generate a PHP Client API (PSR7/PSR18 compatible) given a OpenApi 3.x specification", + "keywords": [ + "jane", + "openapi", + "swagger" + ], + "support": { + "source": "https://github.com/janephp/open-api-3/tree/v7.4.2" + }, + "time": "2023-03-09T16:50:42+00:00" }, { - "name": "psr/cache", - "version": "3.0.0", + "name": "jane-php/open-api-common", + "version": "v7.4.2", "source": { "type": "git", - "url": "https://github.com/php-fig/cache.git", - "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf" + "url": "https://github.com/janephp/open-api-common.git", + "reference": "45774edbab5d63db778031e2556aad40722a03a5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", - "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", + "url": "https://api.github.com/repos/janephp/open-api-common/zipball/45774edbab5d63db778031e2556aad40722a03a5", + "reference": "45774edbab5d63db778031e2556aad40722a03a5", "shasum": "" }, "require": { - "php": ">=8.0.0" + "ext-json": "*", + "jane-php/json-schema": "^7.0", + "jane-php/open-api-runtime": "^7.0", + "php": "^7.2 || ^8.0", + "symfony/console": "^4.4 || ^5.0 || ^6.0", + "symfony/filesystem": "^4.4 || ^5.0 || ^6.0", + "symfony/string": "^5.0 || ^6.0", + "symfony/var-dumper": "^4.4 || ^5.0 || ^6.0" + }, + "suggest": { + "jane-php/open-api-2": "Allow to generate OpenApi v2 clients", + "jane-php/open-api-3": "Allow to generate OpenApi v3 clients" }, + "bin": [ + "bin/jane-openapi" + ], "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-next": "7-dev" } }, "autoload": { "psr-4": { - "Psr\\Cache\\": "src/" + "Jane\\Component\\OpenApiCommon\\": "" } }, "notification-url": "https://packagist.org/downloads/", @@ -2426,47 +2732,60 @@ ], "authors": [ { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" + "name": "Joel Wurtz", + "email": "jwurtz@jolicode.com" + }, + { + "name": "Baptiste Leduc", + "email": "baptiste.leduc@gmail.com" } ], - "description": "Common interface for caching libraries", + "description": "Utility for OpenApi 2/3 generators", "keywords": [ - "cache", - "psr", - "psr-6" + "jane", + "openapi", + "swagger", + "utility" ], "support": { - "source": "https://github.com/php-fig/cache/tree/3.0.0" + "source": "https://github.com/janephp/open-api-common/tree/v7.4.2" }, - "time": "2021-02-03T23:26:27+00:00" + "time": "2023-03-09T16:50:42+00:00" }, { - "name": "psr/container", - "version": "2.0.2", + "name": "justinrainbow/json-schema", + "version": "5.2.12", "source": { "type": "git", - "url": "https://github.com/php-fig/container.git", - "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" + "url": "https://github.com/justinrainbow/json-schema.git", + "reference": "ad87d5a5ca981228e0e205c2bc7dfb8e24559b60" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", - "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/ad87d5a5ca981228e0e205c2bc7dfb8e24559b60", + "reference": "ad87d5a5ca981228e0e205c2bc7dfb8e24559b60", "shasum": "" }, "require": { - "php": ">=7.4.0" + "php": ">=5.3.3" }, + "require-dev": { + "friendsofphp/php-cs-fixer": "~2.2.20||~2.15.1", + "json-schema/json-schema-test-suite": "1.2.0", + "phpunit/phpunit": "^4.8.35" + }, + "bin": [ + "bin/validate-json" + ], "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-master": "5.0.x-dev" } }, "autoload": { "psr-4": { - "Psr\\Container\\": "src/" + "JsonSchema\\": "src/JsonSchema/" } }, "notification-url": "https://packagist.org/downloads/", @@ -2475,205 +2794,2081 @@ ], "authors": [ { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" + "name": "Bruno Prieto Reis", + "email": "bruno.p.reis@gmail.com" + }, + { + "name": "Justin Rainbow", + "email": "justin.rainbow@gmail.com" + }, + { + "name": "Igor Wiedler", + "email": "igor@wiedler.ch" + }, + { + "name": "Robert Schönthal", + "email": "seroscho@googlemail.com" + } + ], + "description": "A library to validate a json schema.", + "homepage": "https://github.com/justinrainbow/json-schema", + "keywords": [ + "json", + "schema" + ], + "support": { + "issues": "https://github.com/justinrainbow/json-schema/issues", + "source": "https://github.com/justinrainbow/json-schema/tree/5.2.12" + }, + "time": "2022-04-13T08:02:27+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.11.1", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", + "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", + "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" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.11.1" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2023-03-08T13:26:56+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v4.15.4", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/6bb5176bc4af8bcb7d926f88718db9b96a2d4290", + "reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": ">=7.0" + }, + "require-dev": { + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" + }, + "bin": [ + "bin/php-parse" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.9-dev" + } + }, + "autoload": { + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], + "support": { + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.4" + }, + "time": "2023-03-05T19:49:14+00:00" + }, + { + "name": "ondram/ci-detector", + "version": "4.1.0", + "source": { + "type": "git", + "url": "https://github.com/OndraM/ci-detector.git", + "reference": "8a4b664e916df82ff26a44709942dfd593fa6f30" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/OndraM/ci-detector/zipball/8a4b664e916df82ff26a44709942dfd593fa6f30", + "reference": "8a4b664e916df82ff26a44709942dfd593fa6f30", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "ergebnis/composer-normalize": "^2.2", + "lmc/coding-standard": "^1.3 || ^2.1", + "php-parallel-lint/php-parallel-lint": "^1.2", + "phpstan/extension-installer": "^1.0.5", + "phpstan/phpstan": "^0.12.58", + "phpstan/phpstan-phpunit": "^0.12.16", + "phpunit/phpunit": "^7.1 || ^8.0 || ^9.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "OndraM\\CiDetector\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ondřej Machulda", + "email": "ondrej.machulda@gmail.com" + } + ], + "description": "Detect continuous integration environment and provide unified access to properties of current build", + "keywords": [ + "CircleCI", + "Codeship", + "Wercker", + "adapter", + "appveyor", + "aws", + "aws codebuild", + "azure", + "azure devops", + "azure pipelines", + "bamboo", + "bitbucket", + "buddy", + "ci-info", + "codebuild", + "continuous integration", + "continuousphp", + "devops", + "drone", + "github", + "gitlab", + "interface", + "jenkins", + "pipelines", + "sourcehut", + "teamcity", + "travis" + ], + "support": { + "issues": "https://github.com/OndraM/ci-detector/issues", + "source": "https://github.com/OndraM/ci-detector/tree/4.1.0" + }, + "time": "2021-04-14T09:16:52+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)", + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.3" + }, + "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" + }, + "type": "library", + "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": "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": "phpstan/phpstan", + "version": "1.10.7", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan.git", + "reference": "b10ceb526d9607903c5b2673f1fc8775dbe48975" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/b10ceb526d9607903c5b2673f1fc8775dbe48975", + "reference": "b10ceb526d9607903c5b2673f1fc8775dbe48975", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0" + }, + "conflict": { + "phpstan/phpstan-shim": "*" + }, + "bin": [ + "phpstan", + "phpstan.phar" + ], + "type": "library", + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPStan - PHP Static Analysis Tool", + "keywords": [ + "dev", + "static analysis" + ], + "support": { + "docs": "https://phpstan.org/user-guide/getting-started", + "forum": "https://github.com/phpstan/phpstan/discussions", + "issues": "https://github.com/phpstan/phpstan/issues", + "security": "https://github.com/phpstan/phpstan/security/policy", + "source": "https://github.com/phpstan/phpstan-src" + }, + "funding": [ + { + "url": "https://github.com/ondrejmirtes", + "type": "github" + }, + { + "url": "https://github.com/phpstan", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan", + "type": "tidelift" + } + ], + "time": "2023-03-16T15:24:20+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "10.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "20800e84296ea4732f9a125e08ce86b4004ae3e4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/20800e84296ea4732f9a125e08ce86b4004ae3e4", + "reference": "20800e84296ea4732f9a125e08ce86b4004ae3e4", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "nikic/php-parser": "^4.15", + "php": ">=8.1", + "phpunit/php-file-iterator": "^4.0", + "phpunit/php-text-template": "^3.0", + "sebastian/code-unit-reverse-lookup": "^3.0", + "sebastian/complexity": "^3.0", + "sebastian/environment": "^6.0", + "sebastian/lines-of-code": "^2.0", + "sebastian/version": "^4.0", + "theseer/tokenizer": "^1.2.0" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "suggest": { + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "10.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" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-03-06T13:00:19+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "4.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "fd9329ab3368f59fe1fe808a189c51086bd4b6bd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/fd9329ab3368f59fe1fe808a189c51086bd4b6bd", + "reference": "fd9329ab3368f59fe1fe808a189c51086bd4b6bd", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.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": "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/4.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-10T16:53:14+00:00" + }, + { + "name": "phpunit/php-invoker", + "version": "4.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", + "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^10.0" + }, + "suggest": { + "ext-pcntl": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.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": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "keywords": [ + "process" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/4.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:56:09+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "9f3d3709577a527025f55bcf0f7ab8052c8bb37d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/9f3d3709577a527025f55bcf0f7ab8052c8bb37d", + "reference": "9f3d3709577a527025f55bcf0f7ab8052c8bb37d", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.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": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/3.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:56:46+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "6.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/e2a2d67966e740530f4a3343fe2e030ffdc1161d", + "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.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": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/6.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:57:52+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "10.0.17", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "b75eddcabca052312ae38c8a2bc69ff1a7b89b77" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b75eddcabca052312ae38c8a2bc69ff1a7b89b77", + "reference": "b75eddcabca052312ae38c8a2bc69ff1a7b89b77", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.10.1", + "phar-io/manifest": "^2.0.3", + "phar-io/version": "^3.0.2", + "php": ">=8.1", + "phpunit/php-code-coverage": "^10.0", + "phpunit/php-file-iterator": "^4.0", + "phpunit/php-invoker": "^4.0", + "phpunit/php-text-template": "^3.0", + "phpunit/php-timer": "^6.0", + "sebastian/cli-parser": "^2.0", + "sebastian/code-unit": "^2.0", + "sebastian/comparator": "^5.0", + "sebastian/diff": "^5.0", + "sebastian/environment": "^6.0", + "sebastian/exporter": "^5.0", + "sebastian/global-state": "^6.0", + "sebastian/object-enumerator": "^5.0", + "sebastian/recursion-context": "^5.0", + "sebastian/type": "^4.0", + "sebastian/version": "^4.0" + }, + "suggest": { + "ext-soap": "To be able to generate mocks based on WSDL files" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "10.0-dev" + } + }, + "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], + "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" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.0.17" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsors.html", + "type": "custom" + }, + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" + } + ], + "time": "2023-03-20T14:42:33+00:00" + }, + { + "name": "psr/cache", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/cache.git", + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", + "shasum": "" + }, + "require": { + "php": ">=8.0.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": "https://www.php-fig.org/" + } + ], + "description": "Common interface for caching libraries", + "keywords": [ + "cache", + "psr", + "psr-6" + ], + "support": { + "source": "https://github.com/php-fig/cache/tree/3.0.0" + }, + "time": "2021-02-03T23:26:27+00:00" + }, + { + "name": "psr/container", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "shasum": "" + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "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" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/2.0.2" + }, + "time": "2021-11-05T16:47:00+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" + ], + "support": { + "issues": "https://github.com/php-fig/event-dispatcher/issues", + "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" + }, + "time": "2019-01-08T18:20:26+00:00" + }, + { + "name": "psr/log", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "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" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/3.0.0" + }, + "time": "2021-07-14T16:46:02+00:00" + }, + { + "name": "rector/rector", + "version": "0.15.21", + "source": { + "type": "git", + "url": "https://github.com/rectorphp/rector.git", + "reference": "1cee8cc5d6d836e1bf9a3006d7b062adde3a6022" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/1cee8cc5d6d836e1bf9a3006d7b062adde3a6022", + "reference": "1cee8cc5d6d836e1bf9a3006d7b062adde3a6022", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0", + "phpstan/phpstan": "^1.10.1" + }, + "conflict": { + "rector/rector-doctrine": "*", + "rector/rector-downgrade-php": "*", + "rector/rector-phpunit": "*", + "rector/rector-symfony": "*" + }, + "bin": [ + "bin/rector" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "0.15-dev" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Instant Upgrade and Automated Refactoring of any PHP code", + "keywords": [ + "automation", + "dev", + "migration", + "refactoring" + ], + "support": { + "issues": "https://github.com/rectorphp/rector/issues", + "source": "https://github.com/rectorphp/rector/tree/0.15.21" + }, + "funding": [ + { + "url": "https://github.com/tomasvotruba", + "type": "github" + } + ], + "time": "2023-03-06T11:44:29+00:00" + }, + { + "name": "sanmai/later", + "version": "0.1.2", + "source": { + "type": "git", + "url": "https://github.com/sanmai/later.git", + "reference": "9b659fecef2030193fd02402955bc39629d5606f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sanmai/later/zipball/9b659fecef2030193fd02402955bc39629d5606f", + "reference": "9b659fecef2030193fd02402955bc39629d5606f", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.13", + "infection/infection": ">=0.10.5", + "phan/phan": ">=2", + "php-coveralls/php-coveralls": "^2.0", + "phpstan/phpstan": ">=0.10", + "phpunit/phpunit": ">=7.4", + "vimeo/psalm": ">=2" + }, + "type": "library", + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Later\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Alexey Kopytko", + "email": "alexey@kopytko.com" + } + ], + "description": "Later: deferred wrapper object", + "support": { + "issues": "https://github.com/sanmai/later/issues", + "source": "https://github.com/sanmai/later/tree/0.1.2" + }, + "funding": [ + { + "url": "https://github.com/sanmai", + "type": "github" + } + ], + "time": "2021-01-02T10:26:44+00:00" + }, + { + "name": "sanmai/pipeline", + "version": "v6.3", + "source": { + "type": "git", + "url": "https://github.com/sanmai/pipeline.git", + "reference": "929b115ca58d62b6b2574702df1ebde4562c7c43" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sanmai/pipeline/zipball/929b115ca58d62b6b2574702df1ebde4562c7c43", + "reference": "929b115ca58d62b6b2574702df1ebde4562c7c43", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "ergebnis/composer-normalize": "^2.8", + "friendsofphp/php-cs-fixer": "^3", + "infection/infection": ">=0.10.5", + "league/pipeline": "^1.0 || ^0.3", + "phan/phan": ">=1.1", + "php-coveralls/php-coveralls": "^2.4.1", + "phpstan/phpstan": ">=0.10", + "phpunit/phpunit": "^7.4 || ^8.1 || ^9.4", + "vimeo/psalm": ">=2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "v6.x-dev" + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Pipeline\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Alexey Kopytko", + "email": "alexey@kopytko.com" + } + ], + "description": "General-purpose collections pipeline", + "support": { + "issues": "https://github.com/sanmai/pipeline/issues", + "source": "https://github.com/sanmai/pipeline/tree/v6.3" + }, + "funding": [ + { + "url": "https://github.com/sanmai", + "type": "github" + } + ], + "time": "2022-11-30T06:07:06+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "efdc130dbbbb8ef0b545a994fd811725c5282cae" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/efdc130dbbbb8ef0b545a994fd811725c5282cae", + "reference": "efdc130dbbbb8ef0b545a994fd811725c5282cae", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.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 for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/2.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:58:15+00:00" + }, + { + "name": "sebastian/code-unit", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit.git", + "reference": "a81fee9eef0b7a76af11d121767abc44c104e503" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/a81fee9eef0b7a76af11d121767abc44c104e503", + "reference": "a81fee9eef0b7a76af11d121767abc44c104e503", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.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": "Collection of value objects that represent the PHP code units", + "homepage": "https://github.com/sebastianbergmann/code-unit", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit/issues", + "source": "https://github.com/sebastianbergmann/code-unit/tree/2.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:58:43+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", + "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "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": "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/3.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:59:15+00:00" + }, + { + "name": "sebastian/comparator", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "72f01e6586e0caf6af81297897bd112eb7e9627c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/72f01e6586e0caf6af81297897bd112eb7e9627c", + "reference": "72f01e6586e0caf6af81297897bd112eb7e9627c", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-mbstring": "*", + "php": ">=8.1", + "sebastian/diff": "^5.0", + "sebastian/exporter": "^5.0" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.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" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "source": "https://github.com/sebastianbergmann/comparator/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:07:16+00:00" + }, + { + "name": "sebastian/complexity", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "e67d240970c9dc7ea7b2123a6d520e334dd61dc6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/e67d240970c9dc7ea7b2123a6d520e334dd61dc6", + "reference": "e67d240970c9dc7ea7b2123a6d520e334dd61dc6", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.10", + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.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 for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "source": "https://github.com/sebastianbergmann/complexity/tree/3.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:59:47+00:00" + }, + { + "name": "sebastian/diff", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "70dd1b20bc198da394ad542e988381b44e64e39f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/70dd1b20bc198da394ad542e988381b44e64e39f", + "reference": "70dd1b20bc198da394ad542e988381b44e64e39f", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0", + "symfony/process": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.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" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "source": "https://github.com/sebastianbergmann/diff/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:00:31+00:00" + }, + { + "name": "sebastian/environment", + "version": "6.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "b6f3694c6386c7959915a0037652e0c40f6f69cc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/b6f3694c6386c7959915a0037652e0c40f6f69cc", + "reference": "b6f3694c6386c7959915a0037652e0c40f6f69cc", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.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 functionality to handle HHVM/PHP environments", + "homepage": "https://github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "source": "https://github.com/sebastianbergmann/environment/tree/6.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:03:04+00:00" + }, + { + "name": "sebastian/exporter", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "f3ec4bf931c0b31e5b413f5b4fc970a7d03338c0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/f3ec4bf931c0b31e5b413f5b4fc970a7d03338c0", + "reference": "f3ec4bf931c0b31e5b413f5b4fc970a7d03338c0", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": ">=8.1", + "sebastian/recursion-context": "^5.0" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.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": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "https://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:06:49+00:00" + }, + { + "name": "sebastian/global-state", + "version": "6.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "aab257c712de87b90194febd52e4d184551c2d44" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/aab257c712de87b90194febd52e4d184551c2d44", + "reference": "aab257c712de87b90194febd52e4d184551c2d44", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "sebastian/object-reflector": "^3.0", + "sebastian/recursion-context": "^5.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.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" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "source": "https://github.com/sebastianbergmann/global-state/tree/6.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:07:38+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "17c4d940ecafb3d15d2cf916f4108f664e28b130" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/17c4d940ecafb3d15d2cf916f4108f664e28b130", + "reference": "17c4d940ecafb3d15d2cf916f4108f664e28b130", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.10", + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.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 for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/2.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:08:02+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/202d0e344a580d7f7d04b3fafce6933e59dae906", + "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "sebastian/object-reflector": "^3.0", + "sebastian/recursion-context": "^5.0" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" } ], - "description": "Common Container Interface (PHP FIG PSR-11)", - "homepage": "https://github.com/php-fig/container", - "keywords": [ - "PSR-11", - "container", - "container-interface", - "container-interop", - "psr" - ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", "support": { - "issues": "https://github.com/php-fig/container/issues", - "source": "https://github.com/php-fig/container/tree/2.0.2" + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/5.0.0" }, - "time": "2021-11-05T16:47:00+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:08:32+00:00" }, { - "name": "psr/event-dispatcher", - "version": "1.0.0", + "name": "sebastian/object-reflector", + "version": "3.0.0", "source": { "type": "git", - "url": "https://github.com/php-fig/event-dispatcher.git", - "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "24ed13d98130f0e7122df55d06c5c4942a577957" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", - "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/24ed13d98130f0e7122df55d06c5c4942a577957", + "reference": "24ed13d98130f0e7122df55d06c5c4942a577957", "shasum": "" }, "require": { - "php": ">=7.2.0" + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-main": "3.0-dev" } }, "autoload": { - "psr-4": { - "Psr\\EventDispatcher\\": "src/" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" } ], - "description": "Standard interfaces for event handling.", - "keywords": [ - "events", - "psr", - "psr-14" - ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", "support": { - "issues": "https://github.com/php-fig/event-dispatcher/issues", - "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/3.0.0" }, - "time": "2019-01-08T18:20:26+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:06:18+00:00" }, { - "name": "psr/log", - "version": "3.0.0", + "name": "sebastian/recursion-context", + "version": "5.0.0", "source": { "type": "git", - "url": "https://github.com/php-fig/log.git", - "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "05909fb5bc7df4c52992396d0116aed689f93712" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", - "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/05909fb5bc7df4c52992396d0116aed689f93712", + "reference": "05909fb5bc7df4c52992396d0116aed689f93712", "shasum": "" }, "require": { - "php": ">=8.0.0" + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.x-dev" + "dev-main": "5.0-dev" } }, "autoload": { - "psr-4": { - "Psr\\Log\\": "src" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" } ], - "description": "Common interface for logging libraries", - "homepage": "https://github.com/php-fig/log", - "keywords": [ - "log", - "psr", - "psr-3" - ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "https://github.com/sebastianbergmann/recursion-context", "support": { - "source": "https://github.com/php-fig/log/tree/3.0.0" + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/5.0.0" }, - "time": "2021-07-14T16:46:02+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:05:40+00:00" }, { - "name": "rector/rector", - "version": "0.15.19", + "name": "sebastian/type", + "version": "4.0.0", "source": { "type": "git", - "url": "https://github.com/rectorphp/rector.git", - "reference": "4b3a85382e890963a6d00e0ace8d09465f96e370" + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "462699a16464c3944eefc02ebdd77882bd3925bf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rectorphp/rector/zipball/4b3a85382e890963a6d00e0ace8d09465f96e370", - "reference": "4b3a85382e890963a6d00e0ace8d09465f96e370", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/462699a16464c3944eefc02ebdd77882bd3925bf", + "reference": "462699a16464c3944eefc02ebdd77882bd3925bf", "shasum": "" }, "require": { - "php": "^7.2|^8.0", - "phpstan/phpstan": "^1.10.1" + "php": ">=8.1" }, - "conflict": { - "rector/rector-doctrine": "*", - "rector/rector-downgrade-php": "*", - "rector/rector-phpunit": "*", - "rector/rector-symfony": "*" + "require-dev": { + "phpunit/phpunit": "^10.0" }, - "bin": [ - "bin/rector" - ], "type": "library", "extra": { "branch-alias": { - "dev-main": "0.15-dev" + "dev-main": "4.0-dev" } }, "autoload": { - "files": [ - "bootstrap.php" + "classmap": [ + "src/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], - "description": "Instant Upgrade and Automated Refactoring of any PHP code", + "authors": [ + { + "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/rectorphp/rector/issues", - "source": "https://github.com/rectorphp/rector/tree/0.15.19" + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/4.0.0" }, "funding": [ { - "url": "https://github.com/tomasvotruba", + "url": "https://github.com/sebastianbergmann", "type": "github" } ], - "time": "2023-02-28T10:47:53+00:00" + "time": "2023-02-03T07:10:45+00:00" }, { - "name": "sebastian/diff", - "version": "4.0.4", + "name": "sebastian/version", + "version": "4.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", - "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c51fa83a5d8f43f1402e3f32a005e6262244ef17", + "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17", "shasum": "" }, "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.3", - "symfony/process": "^4.2 || ^5" + "php": ">=8.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -2688,24 +4883,15 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Diff implementation", - "homepage": "https://github.com/sebastianbergmann/diff", - "keywords": [ - "diff", - "udiff", - "unidiff", - "unified diff" - ], + "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/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4" + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/4.0.1" }, "funding": [ { @@ -2713,20 +4899,20 @@ "type": "github" } ], - "time": "2020-10-26T13:10:38+00:00" + "time": "2023-02-07T11:34:05+00:00" }, { "name": "symfony/console", - "version": "v6.1.5", + "version": "v6.2.7", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "17524a64ebcfab68d237bbed247e9a9917747096" + "reference": "cbad09eb8925b6ad4fb721c7a179344dc4a19d45" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/17524a64ebcfab68d237bbed247e9a9917747096", - "reference": "17524a64ebcfab68d237bbed247e9a9917747096", + "url": "https://api.github.com/repos/symfony/console/zipball/cbad09eb8925b6ad4fb721c7a179344dc4a19d45", + "reference": "cbad09eb8925b6ad4fb721c7a179344dc4a19d45", "shasum": "" }, "require": { @@ -2793,7 +4979,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.1.5" + "source": "https://github.com/symfony/console/tree/v6.2.7" }, "funding": [ { @@ -2809,20 +4995,20 @@ "type": "tidelift" } ], - "time": "2022-09-03T14:24:42+00:00" + "time": "2023-02-25T17:00:03+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v6.1.0", + "version": "v6.2.7", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "a0449a7ad7daa0f7c0acd508259f80544ab5a347" + "reference": "404b307de426c1c488e5afad64403e5f145e82a5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/a0449a7ad7daa0f7c0acd508259f80544ab5a347", - "reference": "a0449a7ad7daa0f7c0acd508259f80544ab5a347", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/404b307de426c1c488e5afad64403e5f145e82a5", + "reference": "404b307de426c1c488e5afad64403e5f145e82a5", "shasum": "" }, "require": { @@ -2876,7 +5062,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v6.1.0" + "source": "https://github.com/symfony/event-dispatcher/tree/v6.2.7" }, "funding": [ { @@ -2892,20 +5078,20 @@ "type": "tidelift" } ], - "time": "2022-05-05T16:51:07+00:00" + "time": "2023-02-14T08:44:56+00:00" }, { "name": "symfony/event-dispatcher-contracts", - "version": "v3.1.1", + "version": "v3.2.1", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "02ff5eea2f453731cfbc6bc215e456b781480448" + "reference": "0ad3b6f1e4e2da5690fefe075cd53a238646d8dd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/02ff5eea2f453731cfbc6bc215e456b781480448", - "reference": "02ff5eea2f453731cfbc6bc215e456b781480448", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/0ad3b6f1e4e2da5690fefe075cd53a238646d8dd", + "reference": "0ad3b6f1e4e2da5690fefe075cd53a238646d8dd", "shasum": "" }, "require": { @@ -2918,7 +5104,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "3.1-dev" + "dev-main": "3.3-dev" }, "thanks": { "name": "symfony/contracts", @@ -2955,7 +5141,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.1.1" + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.2.1" }, "funding": [ { @@ -2971,20 +5157,20 @@ "type": "tidelift" } ], - "time": "2022-02-25T11:15:52+00:00" + "time": "2023-03-01T10:32:47+00:00" }, { "name": "symfony/filesystem", - "version": "v6.1.5", + "version": "v6.2.7", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "4d216a2beef096edf040a070117c39ca2abce307" + "reference": "82b6c62b959f642d000456f08c6d219d749215b3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/4d216a2beef096edf040a070117c39ca2abce307", - "reference": "4d216a2beef096edf040a070117c39ca2abce307", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/82b6c62b959f642d000456f08c6d219d749215b3", + "reference": "82b6c62b959f642d000456f08c6d219d749215b3", "shasum": "" }, "require": { @@ -3018,7 +5204,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v6.1.5" + "source": "https://github.com/symfony/filesystem/tree/v6.2.7" }, "funding": [ { @@ -3034,20 +5220,20 @@ "type": "tidelift" } ], - "time": "2022-09-21T20:29:40+00:00" + "time": "2023-02-14T08:44:56+00:00" }, { "name": "symfony/finder", - "version": "v6.1.3", + "version": "v6.2.7", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "39696bff2c2970b3779a5cac7bf9f0b88fc2b709" + "reference": "20808dc6631aecafbe67c186af5dcb370be3a0eb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/39696bff2c2970b3779a5cac7bf9f0b88fc2b709", - "reference": "39696bff2c2970b3779a5cac7bf9f0b88fc2b709", + "url": "https://api.github.com/repos/symfony/finder/zipball/20808dc6631aecafbe67c186af5dcb370be3a0eb", + "reference": "20808dc6631aecafbe67c186af5dcb370be3a0eb", "shasum": "" }, "require": { @@ -3082,7 +5268,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v6.1.3" + "source": "https://github.com/symfony/finder/tree/v6.2.7" }, "funding": [ { @@ -3098,20 +5284,20 @@ "type": "tidelift" } ], - "time": "2022-07-29T07:42:06+00:00" + "time": "2023-02-16T09:57:23+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.26.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "433d05519ce6990bf3530fba6957499d327395c2" + "reference": "511a08c03c1960e08a883f4cffcacd219b758354" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/433d05519ce6990bf3530fba6957499d327395c2", - "reference": "433d05519ce6990bf3530fba6957499d327395c2", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/511a08c03c1960e08a883f4cffcacd219b758354", + "reference": "511a08c03c1960e08a883f4cffcacd219b758354", "shasum": "" }, "require": { @@ -3123,7 +5309,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -3163,7 +5349,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.26.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.27.0" }, "funding": [ { @@ -3179,20 +5365,20 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.26.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "219aa369ceff116e673852dce47c3a41794c14bd" + "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/219aa369ceff116e673852dce47c3a41794c14bd", - "reference": "219aa369ceff116e673852dce47c3a41794c14bd", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/19bd1e4fcd5b91116f14d8533c57831ed00571b6", + "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6", "shasum": "" }, "require": { @@ -3204,7 +5390,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -3247,7 +5433,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.26.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.27.0" }, "funding": [ { @@ -3263,20 +5449,20 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.26.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e" + "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", - "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534", + "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534", "shasum": "" }, "require": { @@ -3291,7 +5477,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -3330,7 +5516,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.26.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.27.0" }, "funding": [ { @@ -3346,20 +5532,20 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/polyfill-php81", - "version": "v1.26.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php81.git", - "reference": "13f6d1271c663dc5ae9fb843a8f16521db7687a1" + "reference": "707403074c8ea6e2edaf8794b0157a0bfa52157a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/13f6d1271c663dc5ae9fb843a8f16521db7687a1", - "reference": "13f6d1271c663dc5ae9fb843a8f16521db7687a1", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/707403074c8ea6e2edaf8794b0157a0bfa52157a", + "reference": "707403074c8ea6e2edaf8794b0157a0bfa52157a", "shasum": "" }, "require": { @@ -3368,7 +5554,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -3409,7 +5595,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.26.0" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.27.0" }, "funding": [ { @@ -3425,20 +5611,20 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/process", - "version": "v6.1.3", + "version": "v6.2.7", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "a6506e99cfad7059b1ab5cab395854a0a0c21292" + "reference": "680e8a2ea6b3f87aecc07a6a65a203ae573d1902" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/a6506e99cfad7059b1ab5cab395854a0a0c21292", - "reference": "a6506e99cfad7059b1ab5cab395854a0a0c21292", + "url": "https://api.github.com/repos/symfony/process/zipball/680e8a2ea6b3f87aecc07a6a65a203ae573d1902", + "reference": "680e8a2ea6b3f87aecc07a6a65a203ae573d1902", "shasum": "" }, "require": { @@ -3470,7 +5656,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v6.1.3" + "source": "https://github.com/symfony/process/tree/v6.2.7" }, "funding": [ { @@ -3486,20 +5672,20 @@ "type": "tidelift" } ], - "time": "2022-06-27T17:24:16+00:00" + "time": "2023-02-24T10:42:00+00:00" }, { "name": "symfony/service-contracts", - "version": "v3.1.1", + "version": "v3.2.1", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "925e713fe8fcacf6bc05e936edd8dd5441a21239" + "reference": "a8c9cedf55f314f3a186041d19537303766df09a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/925e713fe8fcacf6bc05e936edd8dd5441a21239", - "reference": "925e713fe8fcacf6bc05e936edd8dd5441a21239", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/a8c9cedf55f314f3a186041d19537303766df09a", + "reference": "a8c9cedf55f314f3a186041d19537303766df09a", "shasum": "" }, "require": { @@ -3515,7 +5701,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "3.1-dev" + "dev-main": "3.3-dev" }, "thanks": { "name": "symfony/contracts", @@ -3555,7 +5741,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.1.1" + "source": "https://github.com/symfony/service-contracts/tree/v3.2.1" }, "funding": [ { @@ -3571,20 +5757,20 @@ "type": "tidelift" } ], - "time": "2022-05-30T19:18:58+00:00" + "time": "2023-03-01T10:32:47+00:00" }, { "name": "symfony/stopwatch", - "version": "v6.1.5", + "version": "v6.2.7", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "266636bb8f3fbdccc302491df7b3a1b9a8c238a7" + "reference": "f3adc98c1061875dd2edcd45e5b04e63d0e29f8f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/266636bb8f3fbdccc302491df7b3a1b9a8c238a7", - "reference": "266636bb8f3fbdccc302491df7b3a1b9a8c238a7", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/f3adc98c1061875dd2edcd45e5b04e63d0e29f8f", + "reference": "f3adc98c1061875dd2edcd45e5b04e63d0e29f8f", "shasum": "" }, "require": { @@ -3617,7 +5803,7 @@ "description": "Provides a way to profile code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/stopwatch/tree/v6.1.5" + "source": "https://github.com/symfony/stopwatch/tree/v6.2.7" }, "funding": [ { @@ -3633,20 +5819,20 @@ "type": "tidelift" } ], - "time": "2022-09-28T16:00:52+00:00" + "time": "2023-02-14T08:44:56+00:00" }, { "name": "symfony/string", - "version": "v6.1.5", + "version": "v6.2.7", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "17c08b068176996a1d7db8d00ffae3c248267016" + "reference": "67b8c1eec78296b85dc1c7d9743830160218993d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/17c08b068176996a1d7db8d00ffae3c248267016", - "reference": "17c08b068176996a1d7db8d00ffae3c248267016", + "url": "https://api.github.com/repos/symfony/string/zipball/67b8c1eec78296b85dc1c7d9743830160218993d", + "reference": "67b8c1eec78296b85dc1c7d9743830160218993d", "shasum": "" }, "require": { @@ -3662,6 +5848,7 @@ "require-dev": { "symfony/error-handler": "^5.4|^6.0", "symfony/http-client": "^5.4|^6.0", + "symfony/intl": "^6.2", "symfony/translation-contracts": "^2.0|^3.0", "symfony/var-exporter": "^5.4|^6.0" }, @@ -3702,7 +5889,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.1.5" + "source": "https://github.com/symfony/string/tree/v6.2.7" }, "funding": [ { @@ -3718,20 +5905,20 @@ "type": "tidelift" } ], - "time": "2022-09-02T08:05:20+00:00" + "time": "2023-02-24T10:42:00+00:00" }, { "name": "symfony/translation-contracts", - "version": "v3.1.1", + "version": "v3.2.1", "source": { "type": "git", "url": "https://github.com/symfony/translation-contracts.git", - "reference": "606be0f48e05116baef052f7f3abdb345c8e02cc" + "reference": "dfec258b9dd17a6b24420d464c43bffe347441c8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/606be0f48e05116baef052f7f3abdb345c8e02cc", - "reference": "606be0f48e05116baef052f7f3abdb345c8e02cc", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/dfec258b9dd17a6b24420d464c43bffe347441c8", + "reference": "dfec258b9dd17a6b24420d464c43bffe347441c8", "shasum": "" }, "require": { @@ -3743,7 +5930,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "3.1-dev" + "dev-main": "3.3-dev" }, "thanks": { "name": "symfony/contracts", @@ -3783,7 +5970,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/translation-contracts/tree/v3.1.1" + "source": "https://github.com/symfony/translation-contracts/tree/v3.2.1" }, "funding": [ { @@ -3799,20 +5986,20 @@ "type": "tidelift" } ], - "time": "2022-06-27T17:24:16+00:00" + "time": "2023-03-01T10:32:47+00:00" }, { "name": "symfony/validator", - "version": "v6.1.5", + "version": "v6.2.7", "source": { "type": "git", "url": "https://github.com/symfony/validator.git", - "reference": "7d7724f550e0f657a591831a7c31e25678ff8779" + "reference": "4b3bd0a9545bdf7ebc84f0a494c05219010bb403" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/validator/zipball/7d7724f550e0f657a591831a7c31e25678ff8779", - "reference": "7d7724f550e0f657a591831a7c31e25678ff8779", + "url": "https://api.github.com/repos/symfony/validator/zipball/4b3bd0a9545bdf7ebc84f0a494c05219010bb403", + "reference": "4b3bd0a9545bdf7ebc84f0a494c05219010bb403", "shasum": "" }, "require": { @@ -3835,8 +6022,8 @@ "symfony/yaml": "<5.4" }, "require-dev": { - "doctrine/annotations": "^1.13", - "egulias/email-validator": "^2.1.10|^3", + "doctrine/annotations": "^1.13|^2", + "egulias/email-validator": "^2.1.10|^3|^4", "symfony/cache": "^5.4|^6.0", "symfony/config": "^5.4|^6.0", "symfony/console": "^5.4|^6.0", @@ -3891,7 +6078,7 @@ "description": "Provides tools to validate values", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/validator/tree/v6.1.5" + "source": "https://github.com/symfony/validator/tree/v6.2.7" }, "funding": [ { @@ -3907,20 +6094,20 @@ "type": "tidelift" } ], - "time": "2022-09-17T07:55:45+00:00" + "time": "2023-02-24T10:42:00+00:00" }, { "name": "symfony/var-dumper", - "version": "v6.1.5", + "version": "v6.2.7", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "d0833493fb2413a86f522fb54a1896a7718e98ec" + "reference": "cf8d4ca1ddc1e3cc242375deb8fc23e54f5e2a1e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/d0833493fb2413a86f522fb54a1896a7718e98ec", - "reference": "d0833493fb2413a86f522fb54a1896a7718e98ec", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/cf8d4ca1ddc1e3cc242375deb8fc23e54f5e2a1e", + "reference": "cf8d4ca1ddc1e3cc242375deb8fc23e54f5e2a1e", "shasum": "" }, "require": { @@ -3979,7 +6166,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v6.1.5" + "source": "https://github.com/symfony/var-dumper/tree/v6.2.7" }, "funding": [ { @@ -3995,7 +6182,254 @@ "type": "tidelift" } ], - "time": "2022-09-08T09:34:40+00:00" + "time": "2023-02-24T10:42:00+00:00" + }, + { + "name": "thecodingmachine/safe", + "version": "v2.4.0", + "source": { + "type": "git", + "url": "https://github.com/thecodingmachine/safe.git", + "reference": "e788f3d09dcd36f806350aedb77eac348fafadd3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thecodingmachine/safe/zipball/e788f3d09dcd36f806350aedb77eac348fafadd3", + "reference": "e788f3d09dcd36f806350aedb77eac348fafadd3", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.5", + "phpunit/phpunit": "^9.5", + "squizlabs/php_codesniffer": "^3.2", + "thecodingmachine/phpstan-strict-rules": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.2.x-dev" + } + }, + "autoload": { + "files": [ + "deprecated/apc.php", + "deprecated/array.php", + "deprecated/datetime.php", + "deprecated/libevent.php", + "deprecated/misc.php", + "deprecated/password.php", + "deprecated/mssql.php", + "deprecated/stats.php", + "deprecated/strings.php", + "lib/special_cases.php", + "deprecated/mysqli.php", + "generated/apache.php", + "generated/apcu.php", + "generated/array.php", + "generated/bzip2.php", + "generated/calendar.php", + "generated/classobj.php", + "generated/com.php", + "generated/cubrid.php", + "generated/curl.php", + "generated/datetime.php", + "generated/dir.php", + "generated/eio.php", + "generated/errorfunc.php", + "generated/exec.php", + "generated/fileinfo.php", + "generated/filesystem.php", + "generated/filter.php", + "generated/fpm.php", + "generated/ftp.php", + "generated/funchand.php", + "generated/gettext.php", + "generated/gmp.php", + "generated/gnupg.php", + "generated/hash.php", + "generated/ibase.php", + "generated/ibmDb2.php", + "generated/iconv.php", + "generated/image.php", + "generated/imap.php", + "generated/info.php", + "generated/inotify.php", + "generated/json.php", + "generated/ldap.php", + "generated/libxml.php", + "generated/lzf.php", + "generated/mailparse.php", + "generated/mbstring.php", + "generated/misc.php", + "generated/mysql.php", + "generated/network.php", + "generated/oci8.php", + "generated/opcache.php", + "generated/openssl.php", + "generated/outcontrol.php", + "generated/pcntl.php", + "generated/pcre.php", + "generated/pgsql.php", + "generated/posix.php", + "generated/ps.php", + "generated/pspell.php", + "generated/readline.php", + "generated/rpminfo.php", + "generated/rrd.php", + "generated/sem.php", + "generated/session.php", + "generated/shmop.php", + "generated/sockets.php", + "generated/sodium.php", + "generated/solr.php", + "generated/spl.php", + "generated/sqlsrv.php", + "generated/ssdeep.php", + "generated/ssh2.php", + "generated/stream.php", + "generated/strings.php", + "generated/swoole.php", + "generated/uodbc.php", + "generated/uopz.php", + "generated/url.php", + "generated/var.php", + "generated/xdiff.php", + "generated/xml.php", + "generated/xmlrpc.php", + "generated/yaml.php", + "generated/yaz.php", + "generated/zip.php", + "generated/zlib.php" + ], + "classmap": [ + "lib/DateTime.php", + "lib/DateTimeImmutable.php", + "lib/Exceptions/", + "deprecated/Exceptions/", + "generated/Exceptions/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHP core functions that throw exceptions instead of returning FALSE on error", + "support": { + "issues": "https://github.com/thecodingmachine/safe/issues", + "source": "https://github.com/thecodingmachine/safe/tree/v2.4.0" + }, + "time": "2022-10-07T14:02:17+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/1.2.1" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2021-07-28T10:34:58+00:00" + }, + { + "name": "webmozart/assert", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/webmozarts/assert.git", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "php": "^7.2 || ^8.0" + }, + "conflict": { + "phpstan/phpstan": "<0.12.20", + "vimeo/psalm": "<4.6.1 || 4.6.2" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.13" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.10-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "support": { + "issues": "https://github.com/webmozarts/assert/issues", + "source": "https://github.com/webmozarts/assert/tree/1.11.0" + }, + "time": "2022-06-03T18:03:27+00:00" } ], "aliases": [], @@ -4004,7 +6438,7 @@ "prefer-stable": true, "prefer-lowest": false, "platform": { - "php": "^8.0" + "php": "^8.2" }, "platform-dev": [], "plugin-api-version": "2.3.0" diff --git a/infection.json.dist b/infection.json.dist new file mode 100644 index 00000000..ac3c0d43 --- /dev/null +++ b/infection.json.dist @@ -0,0 +1,23 @@ +{ + "$schema": "https://raw.githubusercontent.com/infection/infection/0.26.18/resources/schema.json", + "source": { + "directories": [ + "src" + ] + }, + "timeout": 10, + "logs": { + "text": "infection.log", + "summary": "summary.log", + "json": "infection-log.json", + "perMutator": "per-mutator.md", + "github": true, + }, + "phpUnit": { + "configDir": "." + }, + "mutators": { + "@default": true + }, + "testFramework":"phpunit", +} diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 00000000..eadaa790 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,32 @@ + + + + + tests/functional/ + + + + + src + + + + + + From 75a245f60507544f90e9ff49dc70969eba815970 Mon Sep 17 00:00:00 2001 From: sebprt Date: Wed, 5 Apr 2023 15:20:09 +0200 Subject: [PATCH 2/5] Removed phpunit and infection --- .github/workflows/infection.yaml | 34 - .github/workflows/phpunit.yaml | 30 - composer.json | 9 +- composer.lock | 3223 ++++-------------------------- 4 files changed, 412 insertions(+), 2884 deletions(-) delete mode 100644 .github/workflows/infection.yaml delete mode 100644 .github/workflows/phpunit.yaml diff --git a/.github/workflows/infection.yaml b/.github/workflows/infection.yaml deleted file mode 100644 index f972cb72..00000000 --- a/.github/workflows/infection.yaml +++ /dev/null @@ -1,34 +0,0 @@ -name: Infection -on: push -jobs: - infection: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: shivammathur/setup-php@v2 - with: - php-version: '8.2' - tools: composer:v2 - coverage: pcov - - uses: actions/cache@v3 - with: - path: '**/vendor' - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-composer- - - uses: php-actions/composer@v6 - with: - args: --prefer-dist --ignore-platform-reqs - php_version: '8.2' - - - name: Infection - run: | - wget -q https://github.com/infection/infection/releases/download/0.26.18/infection.phar - wget -q https://github.com/infection/infection/releases/download/0.26.18/infection.phar.asc - chmod +x infection.phar - ./infection.phar - - - name: Store infection log - uses: actions/upload-artifact@v3 - with: - path: infection.log diff --git a/.github/workflows/phpunit.yaml b/.github/workflows/phpunit.yaml deleted file mode 100644 index 8b8af0c7..00000000 --- a/.github/workflows/phpunit.yaml +++ /dev/null @@ -1,30 +0,0 @@ -name: PHPUnit -on: push -jobs: - phpunit: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: shivammathur/setup-php@v2 - with: - php-version: '8.2' - tools: composer:v2 - coverage: pcov - - uses: actions/cache@v3 - with: - path: '**/vendor' - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-composer- - - uses: php-actions/composer@v6 - with: - args: --prefer-dist - php_version: '8.2' - - - name: Run tests & generate Coverage - run: bin/phpunit functional --coverage-html var/coverage - - - name: Store coverage files - uses: actions/upload-artifact@v3 - with: - path: var/coverage diff --git a/composer.json b/composer.json index 8f9392f5..148a8ead 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "prefer-stable": true, "require": { "php": "^8.2", - "jane-php/open-api-runtime": "^7.2" + "jane-php/open-api-runtime": "^7.4" }, "autoload": { "psr-4": { @@ -25,10 +25,8 @@ } }, "require-dev": { - "jane-php/open-api-3": "^7.2", - "phpunit/phpunit": "^9.5 || ^10.0", + "jane-php/open-api-3": "^7.4", "phpstan/phpstan": "^1.10", - "infection/infection": "^0.26.18", "friendsofphp/php-cs-fixer": "^3.11", "rector/rector": "^0.15.19" }, @@ -41,8 +39,7 @@ }, "extra": { "branch-alias": { - "dev-main": "0.2.x-dev", - "dev-feature/qualityflow-improvments": "0.2.x-dev" + "dev-main": "0.2.x-dev" } } } diff --git a/composer.lock b/composer.lock index 7aebb788..cd6d9f20 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "5afea42da448f387052ba2417bf2977d", + "content-hash": "d3848436276cbdf73e45f4b92e95893d", "packages": [ { "name": "clue/stream-filter", @@ -74,7 +74,7 @@ }, { "name": "jane-php/json-schema-runtime", - "version": "v7.4.2", + "version": "v7.4.3", "source": { "type": "git", "url": "https://github.com/janephp/json-schema-runtime.git", @@ -130,13 +130,13 @@ ], "description": "Jane runtime Library", "support": { - "source": "https://github.com/janephp/json-schema-runtime/tree/v7.4.2" + "source": "https://github.com/janephp/json-schema-runtime/tree/v7.4.3" }, "time": "2023-01-24T07:25:29+00:00" }, { "name": "jane-php/open-api-runtime", - "version": "v7.4.2", + "version": "v7.4.3", "source": { "type": "git", "url": "https://github.com/janephp/open-api-runtime.git", @@ -193,7 +193,7 @@ ], "description": "Jane OpenAPI Runtime Library, dependencies and utility class for a library generated by jane/openapi", "support": { - "source": "https://github.com/janephp/open-api-runtime/tree/v7.4.2" + "source": "https://github.com/janephp/open-api-runtime/tree/v7.4.3" }, "time": "2021-12-16T13:26:58+00:00" }, @@ -445,16 +445,16 @@ }, { "name": "php-http/discovery", - "version": "1.15.2", + "version": "1.15.3", "source": { "type": "git", "url": "https://github.com/php-http/discovery.git", - "reference": "5cc428320191ac1d0b6520034c2dc0698628ced5" + "reference": "3ccd28dd9fb34b52db946abea1b538568e34eae8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-http/discovery/zipball/5cc428320191ac1d0b6520034c2dc0698628ced5", - "reference": "5cc428320191ac1d0b6520034c2dc0698628ced5", + "url": "https://api.github.com/repos/php-http/discovery/zipball/3ccd28dd9fb34b52db946abea1b538568e34eae8", + "reference": "3ccd28dd9fb34b52db946abea1b538568e34eae8", "shasum": "" }, "require": { @@ -513,9 +513,9 @@ ], "support": { "issues": "https://github.com/php-http/discovery/issues", - "source": "https://github.com/php-http/discovery/tree/1.15.2" + "source": "https://github.com/php-http/discovery/tree/1.15.3" }, - "time": "2023-02-11T08:28:41+00:00" + "time": "2023-03-31T14:40:37+00:00" }, { "name": "php-http/httplug", @@ -991,25 +991,25 @@ }, { "name": "psr/http-message", - "version": "1.0.1", + "version": "1.1", "source": { "type": "git", "url": "https://github.com/php-fig/http-message.git", - "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" + "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", - "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba", + "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba", "shasum": "" }, "require": { - "php": ">=5.3.0" + "php": "^7.2 || ^8.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.1.x-dev" } }, "autoload": { @@ -1038,9 +1038,9 @@ "response" ], "support": { - "source": "https://github.com/php-fig/http-message/tree/master" + "source": "https://github.com/php-fig/http-message/tree/1.1" }, - "time": "2016-08-06T14:39:51+00:00" + "time": "2023-04-04T09:50:52+00:00" }, { "name": "symfony/deprecation-contracts", @@ -1343,16 +1343,16 @@ }, { "name": "symfony/serializer", - "version": "v6.2.7", + "version": "v6.2.8", "source": { "type": "git", "url": "https://github.com/symfony/serializer.git", - "reference": "df9599873fdc2540e6f4291f49be4fcc167e9cbf" + "reference": "db9d36470bf0990990fda9320b8b001bb582f075" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/serializer/zipball/df9599873fdc2540e6f4291f49be4fcc167e9cbf", - "reference": "df9599873fdc2540e6f4291f49be4fcc167e9cbf", + "url": "https://api.github.com/repos/symfony/serializer/zipball/db9d36470bf0990990fda9320b8b001bb582f075", + "reference": "db9d36470bf0990990fda9320b8b001bb582f075", "shasum": "" }, "require": { @@ -1362,7 +1362,7 @@ "conflict": { "doctrine/annotations": "<1.12", "phpdocumentor/reflection-docblock": "<3.2.2", - "phpdocumentor/type-resolver": "<1.4.0|>=1.7.0", + "phpdocumentor/type-resolver": "<1.4.0", "symfony/dependency-injection": "<5.4", "symfony/property-access": "<5.4", "symfony/property-info": "<5.4", @@ -1424,7 +1424,7 @@ "description": "Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/serializer/tree/v6.2.7" + "source": "https://github.com/symfony/serializer/tree/v6.2.8" }, "funding": [ { @@ -1440,7 +1440,7 @@ "type": "tidelift" } ], - "time": "2023-02-24T10:42:00+00:00" + "time": "2023-03-31T09:14:44+00:00" }, { "name": "symfony/yaml", @@ -1518,97 +1518,6 @@ } ], "packages-dev": [ - { - "name": "colinodell/json5", - "version": "v2.3.0", - "source": { - "type": "git", - "url": "https://github.com/colinodell/json5.git", - "reference": "15b063f8cb5e6deb15f0cd39123264ec0d19c710" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/colinodell/json5/zipball/15b063f8cb5e6deb15f0cd39123264ec0d19c710", - "reference": "15b063f8cb5e6deb15f0cd39123264ec0d19c710", - "shasum": "" - }, - "require": { - "ext-json": "*", - "ext-mbstring": "*", - "php": "^7.1.3|^8.0" - }, - "conflict": { - "scrutinizer/ocular": "1.7.*" - }, - "require-dev": { - "mikehaertl/php-shellcommand": "^1.2.5", - "phpstan/phpstan": "^1.4", - "scrutinizer/ocular": "^1.6", - "squizlabs/php_codesniffer": "^2.3 || ^3.0", - "symfony/finder": "^4.4|^5.4|^6.0", - "symfony/phpunit-bridge": "^5.4|^6.0" - }, - "bin": [ - "bin/json5" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.0-dev" - } - }, - "autoload": { - "files": [ - "src/global.php" - ], - "psr-4": { - "ColinODell\\Json5\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Colin O'Dell", - "email": "colinodell@gmail.com", - "homepage": "https://www.colinodell.com", - "role": "Developer" - } - ], - "description": "UTF-8 compatible JSON5 parser for PHP", - "homepage": "https://github.com/colinodell/json5", - "keywords": [ - "JSON5", - "json", - "json5_decode", - "json_decode" - ], - "support": { - "issues": "https://github.com/colinodell/json5/issues", - "source": "https://github.com/colinodell/json5/tree/v2.3.0" - }, - "funding": [ - { - "url": "https://www.colinodell.com/sponsor", - "type": "custom" - }, - { - "url": "https://www.paypal.me/colinpodell/10.00", - "type": "custom" - }, - { - "url": "https://github.com/colinodell", - "type": "github" - }, - { - "url": "https://www.patreon.com/colinodell", - "type": "patreon" - } - ], - "time": "2022-12-27T16:44:40+00:00" - }, { "name": "composer/pcre", "version": "3.1.0", @@ -2071,79 +1980,18 @@ ], "time": "2022-12-15T16:57:16+00:00" }, - { - "name": "fidry/cpu-core-counter", - "version": "0.4.1", - "source": { - "type": "git", - "url": "https://github.com/theofidry/cpu-core-counter.git", - "reference": "79261cc280aded96d098e1b0e0ba0c4881b432c2" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/79261cc280aded96d098e1b0e0ba0c4881b432c2", - "reference": "79261cc280aded96d098e1b0e0ba0c4881b432c2", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "require-dev": { - "fidry/makefile": "^0.2.0", - "phpstan/extension-installer": "^1.2.0", - "phpstan/phpstan": "^1.9.2", - "phpstan/phpstan-deprecation-rules": "^1.0.0", - "phpstan/phpstan-phpunit": "^1.2.2", - "phpstan/phpstan-strict-rules": "^1.4.4", - "phpunit/phpunit": "^9.5.26 || ^8.5.31", - "theofidry/php-cs-fixer-config": "^1.0", - "webmozarts/strict-phpunit": "^7.5" - }, - "type": "library", - "autoload": { - "psr-4": { - "Fidry\\CpuCoreCounter\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Théo FIDRY", - "email": "theo.fidry@gmail.com" - } - ], - "description": "Tiny utility to get the number of CPU cores.", - "keywords": [ - "CPU", - "core" - ], - "support": { - "issues": "https://github.com/theofidry/cpu-core-counter/issues", - "source": "https://github.com/theofidry/cpu-core-counter/tree/0.4.1" - }, - "funding": [ - { - "url": "https://github.com/theofidry", - "type": "github" - } - ], - "time": "2022-12-16T22:01:02+00:00" - }, { "name": "friendsofphp/php-cs-fixer", - "version": "v3.15.1", + "version": "v3.16.0", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", - "reference": "d48755372a113bddb99f749e34805d83f3acfe04" + "reference": "d40f9436e1c448d309fa995ab9c14c5c7a96f2dc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/d48755372a113bddb99f749e34805d83f3acfe04", - "reference": "d48755372a113bddb99f749e34805d83f3acfe04", + "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/d40f9436e1c448d309fa995ab9c14c5c7a96f2dc", + "reference": "d40f9436e1c448d309fa995ab9c14c5c7a96f2dc", "shasum": "" }, "require": { @@ -2218,7 +2066,7 @@ ], "support": { "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", - "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.15.1" + "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.16.0" }, "funding": [ { @@ -2226,2104 +2074,262 @@ "type": "github" } ], - "time": "2023-03-13T23:26:30+00:00" + "time": "2023-04-02T19:30:06+00:00" }, { - "name": "infection/abstract-testframework-adapter", - "version": "0.5.0", + "name": "jane-php/json-schema", + "version": "v7.4.3", "source": { "type": "git", - "url": "https://github.com/infection/abstract-testframework-adapter.git", - "reference": "18925e20d15d1a5995bb85c9dc09e8751e1e069b" + "url": "https://github.com/janephp/json-schema.git", + "reference": "cd9d21a98b278c76387bd1891f12f53aa2025ec6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/infection/abstract-testframework-adapter/zipball/18925e20d15d1a5995bb85c9dc09e8751e1e069b", - "reference": "18925e20d15d1a5995bb85c9dc09e8751e1e069b", + "url": "https://api.github.com/repos/janephp/json-schema/zipball/cd9d21a98b278c76387bd1891f12f53aa2025ec6", + "reference": "cd9d21a98b278c76387bd1891f12f53aa2025ec6", "shasum": "" }, "require": { - "php": "^7.4 || ^8.0" + "doctrine/inflector": "^1.4 || ^2.0", + "ext-json": "*", + "jane-php/json-schema-runtime": "^7.0", + "nikic/php-parser": "^4.0", + "php": "^7.2 || ^8.0", + "symfony/console": "^4.4 || ^5.0 || ^6.0", + "symfony/filesystem": "^4.4 || ^5.0 || ^6.0", + "symfony/options-resolver": "^4.4 || ^5.0 || ^6.0", + "symfony/serializer": "^4.4 || ^5.0 || ^6.0", + "symfony/validator": "^5.1 || ^6.0", + "symfony/var-dumper": "^4.4 || ^5.0 || ^6.0", + "symfony/yaml": "~4.4.9 || ^5.0 || ^6.0" + }, + "conflict": { + "nikic/php-parser": "<4.0.4", + "symfony/framework-bundle": "5.1.0" }, "require-dev": { - "ergebnis/composer-normalize": "^2.8", - "friendsofphp/php-cs-fixer": "^2.17", - "phpunit/phpunit": "^9.5" + "phpunit/phpunit": "^8.0", + "symfony/finder": "^4.4 || ^5.0 || ^6.0" + }, + "suggest": { + "friendsofphp/php-cs-fixer": "Allow to automatically fix cs on generated code for better visualisation" }, + "bin": [ + "bin/jane" + ], "type": "library", + "extra": { + "branch-alias": { + "dev-next": "7-dev" + } + }, "autoload": { "psr-4": { - "Infection\\AbstractTestFramework\\": "src/" - } + "Jane\\Component\\JsonSchema\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "MIT" ], "authors": [ { - "name": "Maks Rafalko", - "email": "maks.rafalko@gmail.com" - } - ], - "description": "Abstract Test Framework Adapter for Infection", - "support": { - "issues": "https://github.com/infection/abstract-testframework-adapter/issues", - "source": "https://github.com/infection/abstract-testframework-adapter/tree/0.5.0" - }, - "funding": [ - { - "url": "https://github.com/infection", - "type": "github" + "name": "Joel Wurtz", + "email": "jwurtz@jolicode.com" }, { - "url": "https://opencollective.com/infection", - "type": "open_collective" + "name": "Baptiste Leduc", + "email": "baptiste.leduc@gmail.com" } ], - "time": "2021-08-17T18:49:12+00:00" + "description": "Generate a serializable / deserializable object model given a json schema", + "support": { + "source": "https://github.com/janephp/json-schema/tree/v7.4.3" + }, + "time": "2023-03-09T16:50:42+00:00" }, { - "name": "infection/extension-installer", - "version": "0.1.2", + "name": "jane-php/open-api-3", + "version": "v7.4.3", "source": { "type": "git", - "url": "https://github.com/infection/extension-installer.git", - "reference": "9b351d2910b9a23ab4815542e93d541e0ca0cdcf" + "url": "https://github.com/janephp/open-api-3.git", + "reference": "032fc7b38af2d8d7a7dfff07304176e51f654aa6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/infection/extension-installer/zipball/9b351d2910b9a23ab4815542e93d541e0ca0cdcf", - "reference": "9b351d2910b9a23ab4815542e93d541e0ca0cdcf", + "url": "https://api.github.com/repos/janephp/open-api-3/zipball/032fc7b38af2d8d7a7dfff07304176e51f654aa6", + "reference": "032fc7b38af2d8d7a7dfff07304176e51f654aa6", "shasum": "" }, "require": { - "composer-plugin-api": "^1.1 || ^2.0" + "ext-json": "*", + "jane-php/json-schema": "^7.0", + "jane-php/open-api-common": "^7.0", + "nikic/php-parser": "^4.0", + "php": "^7.2 || ^8.0", + "symfony/serializer": "^4.4 || ^5.0 || ^6.0", + "symfony/yaml": "~4.4.9 || ^5.0 || ^6.0" + }, + "conflict": { + "nikic/php-parser": "<4.0.4", + "symfony/framework-bundle": "5.1.0" }, "require-dev": { - "composer/composer": "^1.9 || ^2.0", - "friendsofphp/php-cs-fixer": "^2.18, <2.19", - "infection/infection": "^0.15.2", - "php-coveralls/php-coveralls": "^2.4", - "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^0.12.10", - "phpstan/phpstan-phpunit": "^0.12.6", - "phpstan/phpstan-strict-rules": "^0.12.2", - "phpstan/phpstan-webmozart-assert": "^0.12.2", - "phpunit/phpunit": "^9.5", - "vimeo/psalm": "^4.8" + "kriswallsmith/buzz": "^1.1", + "nyholm/psr7": "^1.3", + "phpunit/phpunit": "^8.0", + "symfony/finder": "^4.4 || ^5.0 || ^6.0" }, - "type": "composer-plugin", + "suggest": { + "friendsofphp/php-cs-fixer": "To have a nice formatting of the generated files" + }, + "type": "library", "extra": { - "class": "Infection\\ExtensionInstaller\\Plugin" + "branch-alias": { + "dev-next": "7-dev" + } }, "autoload": { "psr-4": { - "Infection\\ExtensionInstaller\\": "src/" - } + "Jane\\Component\\OpenApi3\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "MIT" ], "authors": [ { - "name": "Maks Rafalko", - "email": "maks.rafalko@gmail.com" - } - ], - "description": "Infection Extension Installer", - "support": { - "issues": "https://github.com/infection/extension-installer/issues", - "source": "https://github.com/infection/extension-installer/tree/0.1.2" - }, - "funding": [ - { - "url": "https://github.com/infection", - "type": "github" + "name": "Joel Wurtz", + "email": "jwurtz@jolicode.com" }, { - "url": "https://opencollective.com/infection", - "type": "open_collective" + "name": "Baptiste Leduc", + "email": "baptiste.leduc@gmail.com" } ], - "time": "2021-10-20T22:08:34+00:00" + "description": "Generate a PHP Client API (PSR7/PSR18 compatible) given a OpenApi 3.x specification", + "keywords": [ + "jane", + "openapi", + "swagger" + ], + "support": { + "source": "https://github.com/janephp/open-api-3/tree/v7.4.3" + }, + "time": "2023-03-09T16:50:42+00:00" }, { - "name": "infection/include-interceptor", - "version": "0.2.5", + "name": "jane-php/open-api-common", + "version": "v7.4.3", "source": { "type": "git", - "url": "https://github.com/infection/include-interceptor.git", - "reference": "0cc76d95a79d9832d74e74492b0a30139904bdf7" + "url": "https://github.com/janephp/open-api-common.git", + "reference": "45774edbab5d63db778031e2556aad40722a03a5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/infection/include-interceptor/zipball/0cc76d95a79d9832d74e74492b0a30139904bdf7", - "reference": "0cc76d95a79d9832d74e74492b0a30139904bdf7", + "url": "https://api.github.com/repos/janephp/open-api-common/zipball/45774edbab5d63db778031e2556aad40722a03a5", + "reference": "45774edbab5d63db778031e2556aad40722a03a5", "shasum": "" }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^2.16", - "infection/infection": "^0.15.0", - "phan/phan": "^2.4 || ^3", - "php-coveralls/php-coveralls": "^2.2", - "phpstan/phpstan": "^0.12.8", - "phpunit/phpunit": "^8.5", - "vimeo/psalm": "^3.8" + "require": { + "ext-json": "*", + "jane-php/json-schema": "^7.0", + "jane-php/open-api-runtime": "^7.0", + "php": "^7.2 || ^8.0", + "symfony/console": "^4.4 || ^5.0 || ^6.0", + "symfony/filesystem": "^4.4 || ^5.0 || ^6.0", + "symfony/string": "^5.0 || ^6.0", + "symfony/var-dumper": "^4.4 || ^5.0 || ^6.0" + }, + "suggest": { + "jane-php/open-api-2": "Allow to generate OpenApi v2 clients", + "jane-php/open-api-3": "Allow to generate OpenApi v3 clients" }, + "bin": [ + "bin/jane-openapi" + ], "type": "library", + "extra": { + "branch-alias": { + "dev-next": "7-dev" + } + }, "autoload": { "psr-4": { - "Infection\\StreamWrapper\\": "src/" + "Jane\\Component\\OpenApiCommon\\": "" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "MIT" ], "authors": [ { - "name": "Maks Rafalko", - "email": "maks.rafalko@gmail.com" - } - ], - "description": "Stream Wrapper: Include Interceptor. Allows to replace included (autoloaded) file with another one.", - "support": { - "issues": "https://github.com/infection/include-interceptor/issues", - "source": "https://github.com/infection/include-interceptor/tree/0.2.5" - }, - "funding": [ - { - "url": "https://github.com/infection", - "type": "github" + "name": "Joel Wurtz", + "email": "jwurtz@jolicode.com" }, { - "url": "https://opencollective.com/infection", - "type": "open_collective" + "name": "Baptiste Leduc", + "email": "baptiste.leduc@gmail.com" } ], - "time": "2021-08-09T10:03:57+00:00" - }, - { - "name": "infection/infection", - "version": "0.26.19", - "source": { - "type": "git", - "url": "https://github.com/infection/infection.git", - "reference": "bd7351c88f3a797ea8977e68fe6a3f4d4c5f457f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/infection/infection/zipball/bd7351c88f3a797ea8977e68fe6a3f4d4c5f457f", - "reference": "bd7351c88f3a797ea8977e68fe6a3f4d4c5f457f", - "shasum": "" - }, - "require": { - "colinodell/json5": "^2.2", - "composer-runtime-api": "^2.0", - "composer/xdebug-handler": "^2.0 || ^3.0", - "ext-dom": "*", - "ext-json": "*", - "ext-libxml": "*", - "ext-mbstring": "*", - "fidry/cpu-core-counter": "^0.4.0", - "infection/abstract-testframework-adapter": "^0.5.0", - "infection/extension-installer": "^0.1.0", - "infection/include-interceptor": "^0.2.5", - "justinrainbow/json-schema": "^5.2.10", - "nikic/php-parser": "^4.15.1", - "ondram/ci-detector": "^4.1.0", - "php": "^8.0", - "sanmai/later": "^0.1.1", - "sanmai/pipeline": "^5.1 || ^6", - "sebastian/diff": "^3.0.2 || ^4.0 || ^5.0", - "symfony/console": "^5.4 || ^6.0", - "symfony/filesystem": "^5.4 || ^6.0", - "symfony/finder": "^5.4 || ^6.0", - "symfony/process": "^5.4 || ^6.0", - "thecodingmachine/safe": "^2.1.2", - "webmozart/assert": "^1.11" - }, - "conflict": { - "dg/bypass-finals": "<1.4.1", - "phpunit/php-code-coverage": ">9,<9.1.4 || >9.2.17,<9.2.21" - }, - "require-dev": { - "brianium/paratest": "^6.3", - "ext-simplexml": "*", - "fidry/makefile": "^0.2.0", - "helmich/phpunit-json-assert": "^3.0", - "phpspec/prophecy-phpunit": "^2.0", - "phpstan/extension-installer": "^1.1.0", - "phpstan/phpstan": "^1.3.0", - "phpstan/phpstan-phpunit": "^1.0.0", - "phpstan/phpstan-strict-rules": "^1.1.0", - "phpstan/phpstan-webmozart-assert": "^1.0.2", - "phpunit/phpunit": "^9.5.5", - "symfony/phpunit-bridge": "^5.4 || ^6.0", - "symfony/yaml": "^5.4 || ^6.0", - "thecodingmachine/phpstan-safe-rule": "^1.2.0" - }, - "bin": [ - "bin/infection" - ], - "type": "library", - "autoload": { - "psr-4": { - "Infection\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Maks Rafalko", - "email": "maks.rafalko@gmail.com", - "homepage": "https://twitter.com/maks_rafalko" - }, - { - "name": "Oleg Zhulnev", - "homepage": "https://github.com/sidz" - }, - { - "name": "Gert de Pagter", - "homepage": "https://github.com/BackEndTea" - }, - { - "name": "Théo FIDRY", - "email": "theo.fidry@gmail.com", - "homepage": "https://twitter.com/tfidry" - }, - { - "name": "Alexey Kopytko", - "email": "alexey@kopytko.com", - "homepage": "https://www.alexeykopytko.com" - }, - { - "name": "Andreas Möller", - "email": "am@localheinz.com", - "homepage": "https://localheinz.com" - } - ], - "description": "Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.", - "keywords": [ - "coverage", - "mutant", - "mutation framework", - "mutation testing", - "testing", - "unit testing" - ], - "support": { - "issues": "https://github.com/infection/infection/issues", - "source": "https://github.com/infection/infection/tree/0.26.19" - }, - "funding": [ - { - "url": "https://github.com/infection", - "type": "github" - }, - { - "url": "https://opencollective.com/infection", - "type": "open_collective" - } - ], - "time": "2023-02-05T21:47:26+00:00" - }, - { - "name": "jane-php/json-schema", - "version": "v7.4.2", - "source": { - "type": "git", - "url": "https://github.com/janephp/json-schema.git", - "reference": "cd9d21a98b278c76387bd1891f12f53aa2025ec6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/janephp/json-schema/zipball/cd9d21a98b278c76387bd1891f12f53aa2025ec6", - "reference": "cd9d21a98b278c76387bd1891f12f53aa2025ec6", - "shasum": "" - }, - "require": { - "doctrine/inflector": "^1.4 || ^2.0", - "ext-json": "*", - "jane-php/json-schema-runtime": "^7.0", - "nikic/php-parser": "^4.0", - "php": "^7.2 || ^8.0", - "symfony/console": "^4.4 || ^5.0 || ^6.0", - "symfony/filesystem": "^4.4 || ^5.0 || ^6.0", - "symfony/options-resolver": "^4.4 || ^5.0 || ^6.0", - "symfony/serializer": "^4.4 || ^5.0 || ^6.0", - "symfony/validator": "^5.1 || ^6.0", - "symfony/var-dumper": "^4.4 || ^5.0 || ^6.0", - "symfony/yaml": "~4.4.9 || ^5.0 || ^6.0" - }, - "conflict": { - "nikic/php-parser": "<4.0.4", - "symfony/framework-bundle": "5.1.0" - }, - "require-dev": { - "phpunit/phpunit": "^8.0", - "symfony/finder": "^4.4 || ^5.0 || ^6.0" - }, - "suggest": { - "friendsofphp/php-cs-fixer": "Allow to automatically fix cs on generated code for better visualisation" - }, - "bin": [ - "bin/jane" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-next": "7-dev" - } - }, - "autoload": { - "psr-4": { - "Jane\\Component\\JsonSchema\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Joel Wurtz", - "email": "jwurtz@jolicode.com" - }, - { - "name": "Baptiste Leduc", - "email": "baptiste.leduc@gmail.com" - } - ], - "description": "Generate a serializable / deserializable object model given a json schema", - "support": { - "source": "https://github.com/janephp/json-schema/tree/v7.4.2" - }, - "time": "2023-03-09T16:50:42+00:00" - }, - { - "name": "jane-php/open-api-3", - "version": "v7.4.2", - "source": { - "type": "git", - "url": "https://github.com/janephp/open-api-3.git", - "reference": "032fc7b38af2d8d7a7dfff07304176e51f654aa6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/janephp/open-api-3/zipball/032fc7b38af2d8d7a7dfff07304176e51f654aa6", - "reference": "032fc7b38af2d8d7a7dfff07304176e51f654aa6", - "shasum": "" - }, - "require": { - "ext-json": "*", - "jane-php/json-schema": "^7.0", - "jane-php/open-api-common": "^7.0", - "nikic/php-parser": "^4.0", - "php": "^7.2 || ^8.0", - "symfony/serializer": "^4.4 || ^5.0 || ^6.0", - "symfony/yaml": "~4.4.9 || ^5.0 || ^6.0" - }, - "conflict": { - "nikic/php-parser": "<4.0.4", - "symfony/framework-bundle": "5.1.0" - }, - "require-dev": { - "kriswallsmith/buzz": "^1.1", - "nyholm/psr7": "^1.3", - "phpunit/phpunit": "^8.0", - "symfony/finder": "^4.4 || ^5.0 || ^6.0" - }, - "suggest": { - "friendsofphp/php-cs-fixer": "To have a nice formatting of the generated files" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-next": "7-dev" - } - }, - "autoload": { - "psr-4": { - "Jane\\Component\\OpenApi3\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Joel Wurtz", - "email": "jwurtz@jolicode.com" - }, - { - "name": "Baptiste Leduc", - "email": "baptiste.leduc@gmail.com" - } - ], - "description": "Generate a PHP Client API (PSR7/PSR18 compatible) given a OpenApi 3.x specification", - "keywords": [ - "jane", - "openapi", - "swagger" - ], - "support": { - "source": "https://github.com/janephp/open-api-3/tree/v7.4.2" - }, - "time": "2023-03-09T16:50:42+00:00" - }, - { - "name": "jane-php/open-api-common", - "version": "v7.4.2", - "source": { - "type": "git", - "url": "https://github.com/janephp/open-api-common.git", - "reference": "45774edbab5d63db778031e2556aad40722a03a5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/janephp/open-api-common/zipball/45774edbab5d63db778031e2556aad40722a03a5", - "reference": "45774edbab5d63db778031e2556aad40722a03a5", - "shasum": "" - }, - "require": { - "ext-json": "*", - "jane-php/json-schema": "^7.0", - "jane-php/open-api-runtime": "^7.0", - "php": "^7.2 || ^8.0", - "symfony/console": "^4.4 || ^5.0 || ^6.0", - "symfony/filesystem": "^4.4 || ^5.0 || ^6.0", - "symfony/string": "^5.0 || ^6.0", - "symfony/var-dumper": "^4.4 || ^5.0 || ^6.0" - }, - "suggest": { - "jane-php/open-api-2": "Allow to generate OpenApi v2 clients", - "jane-php/open-api-3": "Allow to generate OpenApi v3 clients" - }, - "bin": [ - "bin/jane-openapi" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-next": "7-dev" - } - }, - "autoload": { - "psr-4": { - "Jane\\Component\\OpenApiCommon\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Joel Wurtz", - "email": "jwurtz@jolicode.com" - }, - { - "name": "Baptiste Leduc", - "email": "baptiste.leduc@gmail.com" - } - ], - "description": "Utility for OpenApi 2/3 generators", + "description": "Utility for OpenApi 2/3 generators", "keywords": [ "jane", "openapi", "swagger", - "utility" - ], - "support": { - "source": "https://github.com/janephp/open-api-common/tree/v7.4.2" - }, - "time": "2023-03-09T16:50:42+00:00" - }, - { - "name": "justinrainbow/json-schema", - "version": "5.2.12", - "source": { - "type": "git", - "url": "https://github.com/justinrainbow/json-schema.git", - "reference": "ad87d5a5ca981228e0e205c2bc7dfb8e24559b60" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/ad87d5a5ca981228e0e205c2bc7dfb8e24559b60", - "reference": "ad87d5a5ca981228e0e205c2bc7dfb8e24559b60", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "friendsofphp/php-cs-fixer": "~2.2.20||~2.15.1", - "json-schema/json-schema-test-suite": "1.2.0", - "phpunit/phpunit": "^4.8.35" - }, - "bin": [ - "bin/validate-json" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "JsonSchema\\": "src/JsonSchema/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Bruno Prieto Reis", - "email": "bruno.p.reis@gmail.com" - }, - { - "name": "Justin Rainbow", - "email": "justin.rainbow@gmail.com" - }, - { - "name": "Igor Wiedler", - "email": "igor@wiedler.ch" - }, - { - "name": "Robert Schönthal", - "email": "seroscho@googlemail.com" - } - ], - "description": "A library to validate a json schema.", - "homepage": "https://github.com/justinrainbow/json-schema", - "keywords": [ - "json", - "schema" - ], - "support": { - "issues": "https://github.com/justinrainbow/json-schema/issues", - "source": "https://github.com/justinrainbow/json-schema/tree/5.2.12" - }, - "time": "2022-04-13T08:02:27+00:00" - }, - { - "name": "myclabs/deep-copy", - "version": "1.11.1", - "source": { - "type": "git", - "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", - "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", - "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" - ], - "support": { - "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.11.1" - }, - "funding": [ - { - "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", - "type": "tidelift" - } - ], - "time": "2023-03-08T13:26:56+00:00" - }, - { - "name": "nikic/php-parser", - "version": "v4.15.4", - "source": { - "type": "git", - "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/6bb5176bc4af8bcb7d926f88718db9b96a2d4290", - "reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "php": ">=7.0" - }, - "require-dev": { - "ircmaxell/php-yacc": "^0.0.7", - "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" - }, - "bin": [ - "bin/php-parse" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.9-dev" - } - }, - "autoload": { - "psr-4": { - "PhpParser\\": "lib/PhpParser" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Nikita Popov" - } - ], - "description": "A PHP parser written in PHP", - "keywords": [ - "parser", - "php" - ], - "support": { - "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.4" - }, - "time": "2023-03-05T19:49:14+00:00" - }, - { - "name": "ondram/ci-detector", - "version": "4.1.0", - "source": { - "type": "git", - "url": "https://github.com/OndraM/ci-detector.git", - "reference": "8a4b664e916df82ff26a44709942dfd593fa6f30" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/OndraM/ci-detector/zipball/8a4b664e916df82ff26a44709942dfd593fa6f30", - "reference": "8a4b664e916df82ff26a44709942dfd593fa6f30", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "require-dev": { - "ergebnis/composer-normalize": "^2.2", - "lmc/coding-standard": "^1.3 || ^2.1", - "php-parallel-lint/php-parallel-lint": "^1.2", - "phpstan/extension-installer": "^1.0.5", - "phpstan/phpstan": "^0.12.58", - "phpstan/phpstan-phpunit": "^0.12.16", - "phpunit/phpunit": "^7.1 || ^8.0 || ^9.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "OndraM\\CiDetector\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Ondřej Machulda", - "email": "ondrej.machulda@gmail.com" - } - ], - "description": "Detect continuous integration environment and provide unified access to properties of current build", - "keywords": [ - "CircleCI", - "Codeship", - "Wercker", - "adapter", - "appveyor", - "aws", - "aws codebuild", - "azure", - "azure devops", - "azure pipelines", - "bamboo", - "bitbucket", - "buddy", - "ci-info", - "codebuild", - "continuous integration", - "continuousphp", - "devops", - "drone", - "github", - "gitlab", - "interface", - "jenkins", - "pipelines", - "sourcehut", - "teamcity", - "travis" - ], - "support": { - "issues": "https://github.com/OndraM/ci-detector/issues", - "source": "https://github.com/OndraM/ci-detector/tree/4.1.0" - }, - "time": "2021-04-14T09:16:52+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)", - "support": { - "issues": "https://github.com/phar-io/manifest/issues", - "source": "https://github.com/phar-io/manifest/tree/2.0.3" - }, - "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" - }, - "type": "library", - "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": "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": "phpstan/phpstan", - "version": "1.10.7", - "source": { - "type": "git", - "url": "https://github.com/phpstan/phpstan.git", - "reference": "b10ceb526d9607903c5b2673f1fc8775dbe48975" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/b10ceb526d9607903c5b2673f1fc8775dbe48975", - "reference": "b10ceb526d9607903c5b2673f1fc8775dbe48975", - "shasum": "" - }, - "require": { - "php": "^7.2|^8.0" - }, - "conflict": { - "phpstan/phpstan-shim": "*" - }, - "bin": [ - "phpstan", - "phpstan.phar" - ], - "type": "library", - "autoload": { - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "PHPStan - PHP Static Analysis Tool", - "keywords": [ - "dev", - "static analysis" - ], - "support": { - "docs": "https://phpstan.org/user-guide/getting-started", - "forum": "https://github.com/phpstan/phpstan/discussions", - "issues": "https://github.com/phpstan/phpstan/issues", - "security": "https://github.com/phpstan/phpstan/security/policy", - "source": "https://github.com/phpstan/phpstan-src" - }, - "funding": [ - { - "url": "https://github.com/ondrejmirtes", - "type": "github" - }, - { - "url": "https://github.com/phpstan", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan", - "type": "tidelift" - } - ], - "time": "2023-03-16T15:24:20+00:00" - }, - { - "name": "phpunit/php-code-coverage", - "version": "10.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "20800e84296ea4732f9a125e08ce86b4004ae3e4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/20800e84296ea4732f9a125e08ce86b4004ae3e4", - "reference": "20800e84296ea4732f9a125e08ce86b4004ae3e4", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-libxml": "*", - "ext-xmlwriter": "*", - "nikic/php-parser": "^4.15", - "php": ">=8.1", - "phpunit/php-file-iterator": "^4.0", - "phpunit/php-text-template": "^3.0", - "sebastian/code-unit-reverse-lookup": "^3.0", - "sebastian/complexity": "^3.0", - "sebastian/environment": "^6.0", - "sebastian/lines-of-code": "^2.0", - "sebastian/version": "^4.0", - "theseer/tokenizer": "^1.2.0" - }, - "require-dev": { - "phpunit/phpunit": "^10.0" - }, - "suggest": { - "ext-pcov": "PHP extension that provides line coverage", - "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "10.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" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.0.2" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-03-06T13:00:19+00:00" - }, - { - "name": "phpunit/php-file-iterator", - "version": "4.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "fd9329ab3368f59fe1fe808a189c51086bd4b6bd" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/fd9329ab3368f59fe1fe808a189c51086bd4b6bd", - "reference": "fd9329ab3368f59fe1fe808a189c51086bd4b6bd", - "shasum": "" - }, - "require": { - "php": ">=8.1" - }, - "require-dev": { - "phpunit/phpunit": "^10.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "4.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": "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/4.0.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-02-10T16:53:14+00:00" - }, - { - "name": "phpunit/php-invoker", - "version": "4.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-invoker.git", - "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", - "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", - "shasum": "" - }, - "require": { - "php": ">=8.1" - }, - "require-dev": { - "ext-pcntl": "*", - "phpunit/phpunit": "^10.0" - }, - "suggest": { - "ext-pcntl": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "4.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": "Invoke callables with a timeout", - "homepage": "https://github.com/sebastianbergmann/php-invoker/", - "keywords": [ - "process" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-invoker/issues", - "source": "https://github.com/sebastianbergmann/php-invoker/tree/4.0.0" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-02-03T06:56:09+00:00" - }, - { - "name": "phpunit/php-text-template", - "version": "3.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "9f3d3709577a527025f55bcf0f7ab8052c8bb37d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/9f3d3709577a527025f55bcf0f7ab8052c8bb37d", - "reference": "9f3d3709577a527025f55bcf0f7ab8052c8bb37d", - "shasum": "" - }, - "require": { - "php": ">=8.1" - }, - "require-dev": { - "phpunit/phpunit": "^10.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.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": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", - "keywords": [ - "template" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-text-template/issues", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/3.0.0" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-02-03T06:56:46+00:00" - }, - { - "name": "phpunit/php-timer", - "version": "6.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/e2a2d67966e740530f4a3343fe2e030ffdc1161d", - "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d", - "shasum": "" - }, - "require": { - "php": ">=8.1" - }, - "require-dev": { - "phpunit/phpunit": "^10.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "6.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": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", - "keywords": [ - "timer" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-timer/issues", - "source": "https://github.com/sebastianbergmann/php-timer/tree/6.0.0" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-02-03T06:57:52+00:00" - }, - { - "name": "phpunit/phpunit", - "version": "10.0.17", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "b75eddcabca052312ae38c8a2bc69ff1a7b89b77" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b75eddcabca052312ae38c8a2bc69ff1a7b89b77", - "reference": "b75eddcabca052312ae38c8a2bc69ff1a7b89b77", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-json": "*", - "ext-libxml": "*", - "ext-mbstring": "*", - "ext-xml": "*", - "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.10.1", - "phar-io/manifest": "^2.0.3", - "phar-io/version": "^3.0.2", - "php": ">=8.1", - "phpunit/php-code-coverage": "^10.0", - "phpunit/php-file-iterator": "^4.0", - "phpunit/php-invoker": "^4.0", - "phpunit/php-text-template": "^3.0", - "phpunit/php-timer": "^6.0", - "sebastian/cli-parser": "^2.0", - "sebastian/code-unit": "^2.0", - "sebastian/comparator": "^5.0", - "sebastian/diff": "^5.0", - "sebastian/environment": "^6.0", - "sebastian/exporter": "^5.0", - "sebastian/global-state": "^6.0", - "sebastian/object-enumerator": "^5.0", - "sebastian/recursion-context": "^5.0", - "sebastian/type": "^4.0", - "sebastian/version": "^4.0" - }, - "suggest": { - "ext-soap": "To be able to generate mocks based on WSDL files" - }, - "bin": [ - "phpunit" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "10.0-dev" - } - }, - "autoload": { - "files": [ - "src/Framework/Assert/Functions.php" - ], - "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" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/10.0.17" - }, - "funding": [ - { - "url": "https://phpunit.de/sponsors.html", - "type": "custom" - }, - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", - "type": "tidelift" - } - ], - "time": "2023-03-20T14:42:33+00:00" - }, - { - "name": "psr/cache", - "version": "3.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/cache.git", - "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", - "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", - "shasum": "" - }, - "require": { - "php": ">=8.0.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": "https://www.php-fig.org/" - } - ], - "description": "Common interface for caching libraries", - "keywords": [ - "cache", - "psr", - "psr-6" - ], - "support": { - "source": "https://github.com/php-fig/cache/tree/3.0.0" - }, - "time": "2021-02-03T23:26:27+00:00" - }, - { - "name": "psr/container", - "version": "2.0.2", - "source": { - "type": "git", - "url": "https://github.com/php-fig/container.git", - "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", - "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", - "shasum": "" - }, - "require": { - "php": ">=7.4.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "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" - ], - "support": { - "issues": "https://github.com/php-fig/container/issues", - "source": "https://github.com/php-fig/container/tree/2.0.2" - }, - "time": "2021-11-05T16:47:00+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" - ], - "support": { - "issues": "https://github.com/php-fig/event-dispatcher/issues", - "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" - }, - "time": "2019-01-08T18:20:26+00:00" - }, - { - "name": "psr/log", - "version": "3.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/log.git", - "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", - "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", - "shasum": "" - }, - "require": { - "php": ">=8.0.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Log\\": "src" - } - }, - "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" - ], - "support": { - "source": "https://github.com/php-fig/log/tree/3.0.0" - }, - "time": "2021-07-14T16:46:02+00:00" - }, - { - "name": "rector/rector", - "version": "0.15.21", - "source": { - "type": "git", - "url": "https://github.com/rectorphp/rector.git", - "reference": "1cee8cc5d6d836e1bf9a3006d7b062adde3a6022" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/rectorphp/rector/zipball/1cee8cc5d6d836e1bf9a3006d7b062adde3a6022", - "reference": "1cee8cc5d6d836e1bf9a3006d7b062adde3a6022", - "shasum": "" - }, - "require": { - "php": "^7.2|^8.0", - "phpstan/phpstan": "^1.10.1" - }, - "conflict": { - "rector/rector-doctrine": "*", - "rector/rector-downgrade-php": "*", - "rector/rector-phpunit": "*", - "rector/rector-symfony": "*" - }, - "bin": [ - "bin/rector" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "0.15-dev" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Instant Upgrade and Automated Refactoring of any PHP code", - "keywords": [ - "automation", - "dev", - "migration", - "refactoring" - ], - "support": { - "issues": "https://github.com/rectorphp/rector/issues", - "source": "https://github.com/rectorphp/rector/tree/0.15.21" - }, - "funding": [ - { - "url": "https://github.com/tomasvotruba", - "type": "github" - } - ], - "time": "2023-03-06T11:44:29+00:00" - }, - { - "name": "sanmai/later", - "version": "0.1.2", - "source": { - "type": "git", - "url": "https://github.com/sanmai/later.git", - "reference": "9b659fecef2030193fd02402955bc39629d5606f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sanmai/later/zipball/9b659fecef2030193fd02402955bc39629d5606f", - "reference": "9b659fecef2030193fd02402955bc39629d5606f", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^2.13", - "infection/infection": ">=0.10.5", - "phan/phan": ">=2", - "php-coveralls/php-coveralls": "^2.0", - "phpstan/phpstan": ">=0.10", - "phpunit/phpunit": ">=7.4", - "vimeo/psalm": ">=2" - }, - "type": "library", - "autoload": { - "files": [ - "src/functions.php" - ], - "psr-4": { - "Later\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache-2.0" - ], - "authors": [ - { - "name": "Alexey Kopytko", - "email": "alexey@kopytko.com" - } - ], - "description": "Later: deferred wrapper object", - "support": { - "issues": "https://github.com/sanmai/later/issues", - "source": "https://github.com/sanmai/later/tree/0.1.2" - }, - "funding": [ - { - "url": "https://github.com/sanmai", - "type": "github" - } - ], - "time": "2021-01-02T10:26:44+00:00" - }, - { - "name": "sanmai/pipeline", - "version": "v6.3", - "source": { - "type": "git", - "url": "https://github.com/sanmai/pipeline.git", - "reference": "929b115ca58d62b6b2574702df1ebde4562c7c43" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sanmai/pipeline/zipball/929b115ca58d62b6b2574702df1ebde4562c7c43", - "reference": "929b115ca58d62b6b2574702df1ebde4562c7c43", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "require-dev": { - "ergebnis/composer-normalize": "^2.8", - "friendsofphp/php-cs-fixer": "^3", - "infection/infection": ">=0.10.5", - "league/pipeline": "^1.0 || ^0.3", - "phan/phan": ">=1.1", - "php-coveralls/php-coveralls": "^2.4.1", - "phpstan/phpstan": ">=0.10", - "phpunit/phpunit": "^7.4 || ^8.1 || ^9.4", - "vimeo/psalm": ">=2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "v6.x-dev" - } - }, - "autoload": { - "files": [ - "src/functions.php" - ], - "psr-4": { - "Pipeline\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache-2.0" - ], - "authors": [ - { - "name": "Alexey Kopytko", - "email": "alexey@kopytko.com" - } - ], - "description": "General-purpose collections pipeline", - "support": { - "issues": "https://github.com/sanmai/pipeline/issues", - "source": "https://github.com/sanmai/pipeline/tree/v6.3" - }, - "funding": [ - { - "url": "https://github.com/sanmai", - "type": "github" - } - ], - "time": "2022-11-30T06:07:06+00:00" - }, - { - "name": "sebastian/cli-parser", - "version": "2.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "efdc130dbbbb8ef0b545a994fd811725c5282cae" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/efdc130dbbbb8ef0b545a994fd811725c5282cae", - "reference": "efdc130dbbbb8ef0b545a994fd811725c5282cae", - "shasum": "" - }, - "require": { - "php": ">=8.1" - }, - "require-dev": { - "phpunit/phpunit": "^10.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "2.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 for parsing CLI options", - "homepage": "https://github.com/sebastianbergmann/cli-parser", - "support": { - "issues": "https://github.com/sebastianbergmann/cli-parser/issues", - "source": "https://github.com/sebastianbergmann/cli-parser/tree/2.0.0" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-02-03T06:58:15+00:00" - }, - { - "name": "sebastian/code-unit", - "version": "2.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit.git", - "reference": "a81fee9eef0b7a76af11d121767abc44c104e503" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/a81fee9eef0b7a76af11d121767abc44c104e503", - "reference": "a81fee9eef0b7a76af11d121767abc44c104e503", - "shasum": "" - }, - "require": { - "php": ">=8.1" - }, - "require-dev": { - "phpunit/phpunit": "^10.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "2.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": "Collection of value objects that represent the PHP code units", - "homepage": "https://github.com/sebastianbergmann/code-unit", - "support": { - "issues": "https://github.com/sebastianbergmann/code-unit/issues", - "source": "https://github.com/sebastianbergmann/code-unit/tree/2.0.0" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-02-03T06:58:43+00:00" - }, - { - "name": "sebastian/code-unit-reverse-lookup", - "version": "3.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", - "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", - "shasum": "" - }, - "require": { - "php": ">=8.1" - }, - "require-dev": { - "phpunit/phpunit": "^10.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "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": "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/3.0.0" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-02-03T06:59:15+00:00" - }, - { - "name": "sebastian/comparator", - "version": "5.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "72f01e6586e0caf6af81297897bd112eb7e9627c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/72f01e6586e0caf6af81297897bd112eb7e9627c", - "reference": "72f01e6586e0caf6af81297897bd112eb7e9627c", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-mbstring": "*", - "php": ">=8.1", - "sebastian/diff": "^5.0", - "sebastian/exporter": "^5.0" - }, - "require-dev": { - "phpunit/phpunit": "^10.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "5.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" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/5.0.0" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-02-03T07:07:16+00:00" - }, - { - "name": "sebastian/complexity", - "version": "3.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "e67d240970c9dc7ea7b2123a6d520e334dd61dc6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/e67d240970c9dc7ea7b2123a6d520e334dd61dc6", - "reference": "e67d240970c9dc7ea7b2123a6d520e334dd61dc6", - "shasum": "" - }, - "require": { - "nikic/php-parser": "^4.10", - "php": ">=8.1" - }, - "require-dev": { - "phpunit/phpunit": "^10.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.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 for calculating the complexity of PHP code units", - "homepage": "https://github.com/sebastianbergmann/complexity", - "support": { - "issues": "https://github.com/sebastianbergmann/complexity/issues", - "source": "https://github.com/sebastianbergmann/complexity/tree/3.0.0" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } + "utility" ], - "time": "2023-02-03T06:59:47+00:00" + "support": { + "source": "https://github.com/janephp/open-api-common/tree/v7.4.3" + }, + "time": "2023-03-09T16:50:42+00:00" }, { - "name": "sebastian/diff", - "version": "5.0.0", + "name": "nikic/php-parser", + "version": "v4.15.4", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "70dd1b20bc198da394ad542e988381b44e64e39f" + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/70dd1b20bc198da394ad542e988381b44e64e39f", - "reference": "70dd1b20bc198da394ad542e988381b44e64e39f", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/6bb5176bc4af8bcb7d926f88718db9b96a2d4290", + "reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290", "shasum": "" }, "require": { - "php": ">=8.1" + "ext-tokenizer": "*", + "php": ">=7.0" }, "require-dev": { - "phpunit/phpunit": "^10.0", - "symfony/process": "^4.2 || ^5" + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" }, + "bin": [ + "bin/php-parse" + ], "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-master": "4.9-dev" } }, "autoload": { - "classmap": [ - "src/" - ] + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -4331,544 +2337,370 @@ ], "authors": [ { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" + "name": "Nikita Popov" } ], - "description": "Diff implementation", - "homepage": "https://github.com/sebastianbergmann/diff", + "description": "A PHP parser written in PHP", "keywords": [ - "diff", - "udiff", - "unidiff", - "unified diff" + "parser", + "php" ], "support": { - "issues": "https://github.com/sebastianbergmann/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/5.0.0" + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.4" }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-02-03T07:00:31+00:00" + "time": "2023-03-05T19:49:14+00:00" }, { - "name": "sebastian/environment", - "version": "6.0.0", + "name": "phpstan/phpstan", + "version": "1.10.11", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "b6f3694c6386c7959915a0037652e0c40f6f69cc" + "url": "https://github.com/phpstan/phpstan.git", + "reference": "8aa62e6ea8b58ffb650e02940e55a788cbc3fe21" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/b6f3694c6386c7959915a0037652e0c40f6f69cc", - "reference": "b6f3694c6386c7959915a0037652e0c40f6f69cc", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/8aa62e6ea8b58ffb650e02940e55a788cbc3fe21", + "reference": "8aa62e6ea8b58ffb650e02940e55a788cbc3fe21", "shasum": "" }, "require": { - "php": ">=8.1" - }, - "require-dev": { - "phpunit/phpunit": "^10.0" + "php": "^7.2|^8.0" }, - "suggest": { - "ext-posix": "*" + "conflict": { + "phpstan/phpstan-shim": "*" }, + "bin": [ + "phpstan", + "phpstan.phar" + ], "type": "library", - "extra": { - "branch-alias": { - "dev-main": "6.0-dev" - } - }, "autoload": { - "classmap": [ - "src/" + "files": [ + "bootstrap.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } + "MIT" ], - "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "https://github.com/sebastianbergmann/environment", + "description": "PHPStan - PHP Static Analysis Tool", "keywords": [ - "Xdebug", - "environment", - "hhvm" + "dev", + "static analysis" ], "support": { - "issues": "https://github.com/sebastianbergmann/environment/issues", - "source": "https://github.com/sebastianbergmann/environment/tree/6.0.0" + "docs": "https://phpstan.org/user-guide/getting-started", + "forum": "https://github.com/phpstan/phpstan/discussions", + "issues": "https://github.com/phpstan/phpstan/issues", + "security": "https://github.com/phpstan/phpstan/security/policy", + "source": "https://github.com/phpstan/phpstan-src" }, "funding": [ { - "url": "https://github.com/sebastianbergmann", + "url": "https://github.com/ondrejmirtes", "type": "github" - } - ], - "time": "2023-02-03T07:03:04+00:00" - }, - { - "name": "sebastian/exporter", - "version": "5.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "f3ec4bf931c0b31e5b413f5b4fc970a7d03338c0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/f3ec4bf931c0b31e5b413f5b4fc970a7d03338c0", - "reference": "f3ec4bf931c0b31e5b413f5b4fc970a7d03338c0", - "shasum": "" - }, - "require": { - "ext-mbstring": "*", - "php": ">=8.1", - "sebastian/recursion-context": "^5.0" - }, - "require-dev": { - "phpunit/phpunit": "^10.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "5.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": "Adam Harvey", - "email": "aharvey@php.net" + "url": "https://github.com/phpstan", + "type": "github" }, { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - } - ], - "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "https://www.github.com/sebastianbergmann/exporter", - "keywords": [ - "export", - "exporter" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/5.0.0" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" + "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan", + "type": "tidelift" } ], - "time": "2023-02-03T07:06:49+00:00" + "time": "2023-04-04T19:17:42+00:00" }, { - "name": "sebastian/global-state", - "version": "6.0.0", + "name": "psr/cache", + "version": "3.0.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "aab257c712de87b90194febd52e4d184551c2d44" + "url": "https://github.com/php-fig/cache.git", + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/aab257c712de87b90194febd52e4d184551c2d44", - "reference": "aab257c712de87b90194febd52e4d184551c2d44", + "url": "https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", "shasum": "" }, "require": { - "php": ">=8.1", - "sebastian/object-reflector": "^3.0", - "sebastian/recursion-context": "^5.0" - }, - "require-dev": { - "ext-dom": "*", - "phpunit/phpunit": "^10.0" + "php": ">=8.0.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.0-dev" + "dev-master": "1.0.x-dev" } }, "autoload": { - "classmap": [ - "src/" - ] + "psr-4": { + "Psr\\Cache\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "MIT" ], "authors": [ { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" } ], - "description": "Snapshotting of global state", - "homepage": "http://www.github.com/sebastianbergmann/global-state", + "description": "Common interface for caching libraries", "keywords": [ - "global state" + "cache", + "psr", + "psr-6" ], "support": { - "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/6.0.0" + "source": "https://github.com/php-fig/cache/tree/3.0.0" }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-02-03T07:07:38+00:00" + "time": "2021-02-03T23:26:27+00:00" }, { - "name": "sebastian/lines-of-code", - "version": "2.0.0", + "name": "psr/container", + "version": "2.0.2", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "17c4d940ecafb3d15d2cf916f4108f664e28b130" + "url": "https://github.com/php-fig/container.git", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/17c4d940ecafb3d15d2cf916f4108f664e28b130", - "reference": "17c4d940ecafb3d15d2cf916f4108f664e28b130", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", "shasum": "" }, "require": { - "nikic/php-parser": "^4.10", - "php": ">=8.1" - }, - "require-dev": { - "phpunit/phpunit": "^10.0" + "php": ">=7.4.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "2.0-dev" + "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": "Library for counting the lines of code in PHP source code", - "homepage": "https://github.com/sebastianbergmann/lines-of-code", - "support": { - "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", - "source": "https://github.com/sebastianbergmann/lines-of-code/tree/2.0.0" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-02-03T07:08:02+00:00" - }, - { - "name": "sebastian/object-enumerator", - "version": "5.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/202d0e344a580d7f7d04b3fafce6933e59dae906", - "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906", - "shasum": "" - }, - "require": { - "php": ">=8.1", - "sebastian/object-reflector": "^3.0", - "sebastian/recursion-context": "^5.0" - }, - "require-dev": { - "phpunit/phpunit": "^10.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "5.0-dev" + "psr-4": { + "Psr\\Container\\": "src/" } }, - "autoload": { - "classmap": [ - "src/" - ] - }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "MIT" ], "authors": [ { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" } ], - "description": "Traverses array structures and object graphs to enumerate all referenced objects", - "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], "support": { - "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", - "source": "https://github.com/sebastianbergmann/object-enumerator/tree/5.0.0" + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/2.0.2" }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-02-03T07:08:32+00:00" + "time": "2021-11-05T16:47:00+00:00" }, { - "name": "sebastian/object-reflector", - "version": "3.0.0", + "name": "psr/event-dispatcher", + "version": "1.0.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "24ed13d98130f0e7122df55d06c5c4942a577957" + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/24ed13d98130f0e7122df55d06c5c4942a577957", - "reference": "24ed13d98130f0e7122df55d06c5c4942a577957", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", "shasum": "" }, "require": { - "php": ">=8.1" - }, - "require-dev": { - "phpunit/phpunit": "^10.0" + "php": ">=7.2.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-master": "1.0.x-dev" } }, "autoload": { - "classmap": [ - "src/" - ] + "psr-4": { + "Psr\\EventDispatcher\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "MIT" ], "authors": [ { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" } ], - "description": "Allows reflection of object attributes, including inherited and non-public ones", - "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "description": "Standard interfaces for event handling.", + "keywords": [ + "events", + "psr", + "psr-14" + ], "support": { - "issues": "https://github.com/sebastianbergmann/object-reflector/issues", - "source": "https://github.com/sebastianbergmann/object-reflector/tree/3.0.0" + "issues": "https://github.com/php-fig/event-dispatcher/issues", + "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-02-03T07:06:18+00:00" + "time": "2019-01-08T18:20:26+00:00" }, { - "name": "sebastian/recursion-context", - "version": "5.0.0", + "name": "psr/log", + "version": "3.0.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "05909fb5bc7df4c52992396d0116aed689f93712" + "url": "https://github.com/php-fig/log.git", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/05909fb5bc7df4c52992396d0116aed689f93712", - "reference": "05909fb5bc7df4c52992396d0116aed689f93712", + "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", "shasum": "" }, "require": { - "php": ">=8.1" - }, - "require-dev": { - "phpunit/phpunit": "^10.0" + "php": ">=8.0.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-master": "3.x-dev" } }, "autoload": { - "classmap": [ - "src/" - ] + "psr-4": { + "Psr\\Log\\": "src" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "MIT" ], "authors": [ { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" } ], - "description": "Provides functionality to recursively process PHP variables", - "homepage": "https://github.com/sebastianbergmann/recursion-context", + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], "support": { - "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/5.0.0" + "source": "https://github.com/php-fig/log/tree/3.0.0" }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-02-03T07:05:40+00:00" + "time": "2021-07-14T16:46:02+00:00" }, { - "name": "sebastian/type", - "version": "4.0.0", + "name": "rector/rector", + "version": "0.15.24", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/type.git", - "reference": "462699a16464c3944eefc02ebdd77882bd3925bf" + "url": "https://github.com/rectorphp/rector.git", + "reference": "716473919bcfdc27bdd2a32afb72adbf4c224e59" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/462699a16464c3944eefc02ebdd77882bd3925bf", - "reference": "462699a16464c3944eefc02ebdd77882bd3925bf", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/716473919bcfdc27bdd2a32afb72adbf4c224e59", + "reference": "716473919bcfdc27bdd2a32afb72adbf4c224e59", "shasum": "" }, "require": { - "php": ">=8.1" + "php": "^7.2|^8.0", + "phpstan/phpstan": "^1.10.1" }, - "require-dev": { - "phpunit/phpunit": "^10.0" + "conflict": { + "rector/rector-doctrine": "*", + "rector/rector-downgrade-php": "*", + "rector/rector-phpunit": "*", + "rector/rector-symfony": "*" }, + "bin": [ + "bin/rector" + ], "type": "library", "extra": { "branch-alias": { - "dev-main": "4.0-dev" + "dev-main": "0.15-dev" } }, "autoload": { - "classmap": [ - "src/" + "files": [ + "bootstrap.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "MIT" ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } + "description": "Instant Upgrade and Automated Refactoring of any PHP code", + "keywords": [ + "automation", + "dev", + "migration", + "refactoring" ], - "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/4.0.0" + "issues": "https://github.com/rectorphp/rector/issues", + "source": "https://github.com/rectorphp/rector/tree/0.15.24" }, "funding": [ { - "url": "https://github.com/sebastianbergmann", + "url": "https://github.com/tomasvotruba", "type": "github" } ], - "time": "2023-02-03T07:10:45+00:00" + "time": "2023-04-05T08:49:11+00:00" }, { - "name": "sebastian/version", - "version": "4.0.1", + "name": "sebastian/diff", + "version": "5.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/version.git", - "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17" + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "aae9a0a43bff37bd5d8d0311426c87bf36153f02" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c51fa83a5d8f43f1402e3f32a005e6262244ef17", - "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/aae9a0a43bff37bd5d8d0311426c87bf36153f02", + "reference": "aae9a0a43bff37bd5d8d0311426c87bf36153f02", "shasum": "" }, "require": { "php": ">=8.1" }, + "require-dev": { + "phpunit/phpunit": "^10.0", + "symfony/process": "^4.2 || ^5" + }, "type": "library", "extra": { "branch-alias": { - "dev-main": "4.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -4883,15 +2715,25 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" } ], - "description": "Library that helps with managing the version number of Git-hosted PHP projects", - "homepage": "https://github.com/sebastianbergmann/version", + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], "support": { - "issues": "https://github.com/sebastianbergmann/version/issues", - "source": "https://github.com/sebastianbergmann/version/tree/4.0.1" + "issues": "https://github.com/sebastianbergmann/diff/issues", + "security": "https://github.com/sebastianbergmann/diff/security/policy", + "source": "https://github.com/sebastianbergmann/diff/tree/5.0.1" }, "funding": [ { @@ -4899,20 +2741,20 @@ "type": "github" } ], - "time": "2023-02-07T11:34:05+00:00" + "time": "2023-03-23T05:12:41+00:00" }, { "name": "symfony/console", - "version": "v6.2.7", + "version": "v6.2.8", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "cbad09eb8925b6ad4fb721c7a179344dc4a19d45" + "reference": "3582d68a64a86ec25240aaa521ec8bc2342b369b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/cbad09eb8925b6ad4fb721c7a179344dc4a19d45", - "reference": "cbad09eb8925b6ad4fb721c7a179344dc4a19d45", + "url": "https://api.github.com/repos/symfony/console/zipball/3582d68a64a86ec25240aaa521ec8bc2342b369b", + "reference": "3582d68a64a86ec25240aaa521ec8bc2342b369b", "shasum": "" }, "require": { @@ -4974,12 +2816,12 @@ "homepage": "https://symfony.com", "keywords": [ "cli", - "command line", + "command-line", "console", "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.2.7" + "source": "https://github.com/symfony/console/tree/v6.2.8" }, "funding": [ { @@ -4995,20 +2837,20 @@ "type": "tidelift" } ], - "time": "2023-02-25T17:00:03+00:00" + "time": "2023-03-29T21:42:15+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v6.2.7", + "version": "v6.2.8", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "404b307de426c1c488e5afad64403e5f145e82a5" + "reference": "04046f35fd7d72f9646e721fc2ecb8f9c67d3339" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/404b307de426c1c488e5afad64403e5f145e82a5", - "reference": "404b307de426c1c488e5afad64403e5f145e82a5", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/04046f35fd7d72f9646e721fc2ecb8f9c67d3339", + "reference": "04046f35fd7d72f9646e721fc2ecb8f9c67d3339", "shasum": "" }, "require": { @@ -5062,7 +2904,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v6.2.7" + "source": "https://github.com/symfony/event-dispatcher/tree/v6.2.8" }, "funding": [ { @@ -5078,7 +2920,7 @@ "type": "tidelift" } ], - "time": "2023-02-14T08:44:56+00:00" + "time": "2023-03-20T16:06:02+00:00" }, { "name": "symfony/event-dispatcher-contracts", @@ -5615,16 +3457,16 @@ }, { "name": "symfony/process", - "version": "v6.2.7", + "version": "v6.2.8", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "680e8a2ea6b3f87aecc07a6a65a203ae573d1902" + "reference": "75ed64103df4f6615e15a7fe38b8111099f47416" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/680e8a2ea6b3f87aecc07a6a65a203ae573d1902", - "reference": "680e8a2ea6b3f87aecc07a6a65a203ae573d1902", + "url": "https://api.github.com/repos/symfony/process/zipball/75ed64103df4f6615e15a7fe38b8111099f47416", + "reference": "75ed64103df4f6615e15a7fe38b8111099f47416", "shasum": "" }, "require": { @@ -5656,7 +3498,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v6.2.7" + "source": "https://github.com/symfony/process/tree/v6.2.8" }, "funding": [ { @@ -5672,7 +3514,7 @@ "type": "tidelift" } ], - "time": "2023-02-24T10:42:00+00:00" + "time": "2023-03-09T16:20:02+00:00" }, { "name": "symfony/service-contracts", @@ -5823,16 +3665,16 @@ }, { "name": "symfony/string", - "version": "v6.2.7", + "version": "v6.2.8", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "67b8c1eec78296b85dc1c7d9743830160218993d" + "reference": "193e83bbd6617d6b2151c37fff10fa7168ebddef" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/67b8c1eec78296b85dc1c7d9743830160218993d", - "reference": "67b8c1eec78296b85dc1c7d9743830160218993d", + "url": "https://api.github.com/repos/symfony/string/zipball/193e83bbd6617d6b2151c37fff10fa7168ebddef", + "reference": "193e83bbd6617d6b2151c37fff10fa7168ebddef", "shasum": "" }, "require": { @@ -5889,7 +3731,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.2.7" + "source": "https://github.com/symfony/string/tree/v6.2.8" }, "funding": [ { @@ -5905,7 +3747,7 @@ "type": "tidelift" } ], - "time": "2023-02-24T10:42:00+00:00" + "time": "2023-03-20T16:06:02+00:00" }, { "name": "symfony/translation-contracts", @@ -5990,16 +3832,16 @@ }, { "name": "symfony/validator", - "version": "v6.2.7", + "version": "v6.2.8", "source": { "type": "git", "url": "https://github.com/symfony/validator.git", - "reference": "4b3bd0a9545bdf7ebc84f0a494c05219010bb403" + "reference": "c63584f84edbdba9d2519f888350dd90615abe35" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/validator/zipball/4b3bd0a9545bdf7ebc84f0a494c05219010bb403", - "reference": "4b3bd0a9545bdf7ebc84f0a494c05219010bb403", + "url": "https://api.github.com/repos/symfony/validator/zipball/c63584f84edbdba9d2519f888350dd90615abe35", + "reference": "c63584f84edbdba9d2519f888350dd90615abe35", "shasum": "" }, "require": { @@ -6078,7 +3920,7 @@ "description": "Provides tools to validate values", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/validator/tree/v6.2.7" + "source": "https://github.com/symfony/validator/tree/v6.2.8" }, "funding": [ { @@ -6094,20 +3936,20 @@ "type": "tidelift" } ], - "time": "2023-02-24T10:42:00+00:00" + "time": "2023-03-20T16:06:02+00:00" }, { "name": "symfony/var-dumper", - "version": "v6.2.7", + "version": "v6.2.8", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "cf8d4ca1ddc1e3cc242375deb8fc23e54f5e2a1e" + "reference": "d37ab6787be2db993747b6218fcc96e8e3bb4bd0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/cf8d4ca1ddc1e3cc242375deb8fc23e54f5e2a1e", - "reference": "cf8d4ca1ddc1e3cc242375deb8fc23e54f5e2a1e", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/d37ab6787be2db993747b6218fcc96e8e3bb4bd0", + "reference": "d37ab6787be2db993747b6218fcc96e8e3bb4bd0", "shasum": "" }, "require": { @@ -6166,7 +4008,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v6.2.7" + "source": "https://github.com/symfony/var-dumper/tree/v6.2.8" }, "funding": [ { @@ -6182,254 +4024,7 @@ "type": "tidelift" } ], - "time": "2023-02-24T10:42:00+00:00" - }, - { - "name": "thecodingmachine/safe", - "version": "v2.4.0", - "source": { - "type": "git", - "url": "https://github.com/thecodingmachine/safe.git", - "reference": "e788f3d09dcd36f806350aedb77eac348fafadd3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/thecodingmachine/safe/zipball/e788f3d09dcd36f806350aedb77eac348fafadd3", - "reference": "e788f3d09dcd36f806350aedb77eac348fafadd3", - "shasum": "" - }, - "require": { - "php": "^8.0" - }, - "require-dev": { - "phpstan/phpstan": "^1.5", - "phpunit/phpunit": "^9.5", - "squizlabs/php_codesniffer": "^3.2", - "thecodingmachine/phpstan-strict-rules": "^1.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.2.x-dev" - } - }, - "autoload": { - "files": [ - "deprecated/apc.php", - "deprecated/array.php", - "deprecated/datetime.php", - "deprecated/libevent.php", - "deprecated/misc.php", - "deprecated/password.php", - "deprecated/mssql.php", - "deprecated/stats.php", - "deprecated/strings.php", - "lib/special_cases.php", - "deprecated/mysqli.php", - "generated/apache.php", - "generated/apcu.php", - "generated/array.php", - "generated/bzip2.php", - "generated/calendar.php", - "generated/classobj.php", - "generated/com.php", - "generated/cubrid.php", - "generated/curl.php", - "generated/datetime.php", - "generated/dir.php", - "generated/eio.php", - "generated/errorfunc.php", - "generated/exec.php", - "generated/fileinfo.php", - "generated/filesystem.php", - "generated/filter.php", - "generated/fpm.php", - "generated/ftp.php", - "generated/funchand.php", - "generated/gettext.php", - "generated/gmp.php", - "generated/gnupg.php", - "generated/hash.php", - "generated/ibase.php", - "generated/ibmDb2.php", - "generated/iconv.php", - "generated/image.php", - "generated/imap.php", - "generated/info.php", - "generated/inotify.php", - "generated/json.php", - "generated/ldap.php", - "generated/libxml.php", - "generated/lzf.php", - "generated/mailparse.php", - "generated/mbstring.php", - "generated/misc.php", - "generated/mysql.php", - "generated/network.php", - "generated/oci8.php", - "generated/opcache.php", - "generated/openssl.php", - "generated/outcontrol.php", - "generated/pcntl.php", - "generated/pcre.php", - "generated/pgsql.php", - "generated/posix.php", - "generated/ps.php", - "generated/pspell.php", - "generated/readline.php", - "generated/rpminfo.php", - "generated/rrd.php", - "generated/sem.php", - "generated/session.php", - "generated/shmop.php", - "generated/sockets.php", - "generated/sodium.php", - "generated/solr.php", - "generated/spl.php", - "generated/sqlsrv.php", - "generated/ssdeep.php", - "generated/ssh2.php", - "generated/stream.php", - "generated/strings.php", - "generated/swoole.php", - "generated/uodbc.php", - "generated/uopz.php", - "generated/url.php", - "generated/var.php", - "generated/xdiff.php", - "generated/xml.php", - "generated/xmlrpc.php", - "generated/yaml.php", - "generated/yaz.php", - "generated/zip.php", - "generated/zlib.php" - ], - "classmap": [ - "lib/DateTime.php", - "lib/DateTimeImmutable.php", - "lib/Exceptions/", - "deprecated/Exceptions/", - "generated/Exceptions/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "PHP core functions that throw exceptions instead of returning FALSE on error", - "support": { - "issues": "https://github.com/thecodingmachine/safe/issues", - "source": "https://github.com/thecodingmachine/safe/tree/v2.4.0" - }, - "time": "2022-10-07T14:02:17+00:00" - }, - { - "name": "theseer/tokenizer", - "version": "1.2.1", - "source": { - "type": "git", - "url": "https://github.com/theseer/tokenizer.git", - "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", - "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-tokenizer": "*", - "ext-xmlwriter": "*", - "php": "^7.2 || ^8.0" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - } - ], - "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", - "support": { - "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/1.2.1" - }, - "funding": [ - { - "url": "https://github.com/theseer", - "type": "github" - } - ], - "time": "2021-07-28T10:34:58+00:00" - }, - { - "name": "webmozart/assert", - "version": "1.11.0", - "source": { - "type": "git", - "url": "https://github.com/webmozarts/assert.git", - "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991", - "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991", - "shasum": "" - }, - "require": { - "ext-ctype": "*", - "php": "^7.2 || ^8.0" - }, - "conflict": { - "phpstan/phpstan": "<0.12.20", - "vimeo/psalm": "<4.6.1 || 4.6.2" - }, - "require-dev": { - "phpunit/phpunit": "^8.5.13" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.10-dev" - } - }, - "autoload": { - "psr-4": { - "Webmozart\\Assert\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - } - ], - "description": "Assertions to validate method input/output with nice error messages.", - "keywords": [ - "assert", - "check", - "validate" - ], - "support": { - "issues": "https://github.com/webmozarts/assert/issues", - "source": "https://github.com/webmozarts/assert/tree/1.11.0" - }, - "time": "2022-06-03T18:03:27+00:00" + "time": "2023-03-29T21:42:15+00:00" } ], "aliases": [], From 4f51913f1b234aa687d832279bf95d44d9c0c3fd Mon Sep 17 00:00:00 2001 From: sebprt Date: Wed, 5 Apr 2023 16:29:31 +0200 Subject: [PATCH 3/5] Removed phpstan --- .github/workflows/phpstan-5.yaml | 23 ----------------------- .github/workflows/phpstan-6.yaml | 23 ----------------------- .github/workflows/phpstan-7.yaml | 23 ----------------------- .github/workflows/phpstan-8.yaml | 23 ----------------------- .github/workflows/quality.yaml | 21 --------------------- composer.json | 1 - composer.lock | 2 +- infection.json.dist | 23 ----------------------- phpunit.xml | 32 -------------------------------- 9 files changed, 1 insertion(+), 170 deletions(-) delete mode 100644 .github/workflows/phpstan-5.yaml delete mode 100644 .github/workflows/phpstan-6.yaml delete mode 100644 .github/workflows/phpstan-7.yaml delete mode 100644 .github/workflows/phpstan-8.yaml delete mode 100644 infection.json.dist delete mode 100644 phpunit.xml diff --git a/.github/workflows/phpstan-5.yaml b/.github/workflows/phpstan-5.yaml deleted file mode 100644 index 862625d3..00000000 --- a/.github/workflows/phpstan-5.yaml +++ /dev/null @@ -1,23 +0,0 @@ -name: PHPStan level 5 -on: push -jobs: - phpstan: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/cache@v3 - with: - path: '**/vendor' - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-composer- - - uses: php-actions/composer@v6 - with: - args: --prefer-dist - php_version: '8.2' - - - name: PHPStan - uses: php-actions/phpstan@v3 - with: - path: src/ - level: 5 diff --git a/.github/workflows/phpstan-6.yaml b/.github/workflows/phpstan-6.yaml deleted file mode 100644 index 8fe418d9..00000000 --- a/.github/workflows/phpstan-6.yaml +++ /dev/null @@ -1,23 +0,0 @@ -name: PHPStan level 6 -on: push -jobs: - phpstan: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/cache@v3 - with: - path: '**/vendor' - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-composer- - - uses: php-actions/composer@v6 - with: - args: --prefer-dist - php_version: '8.2' - - - name: PHPStan - uses: php-actions/phpstan@v3 - with: - path: src/ - level: 6 diff --git a/.github/workflows/phpstan-7.yaml b/.github/workflows/phpstan-7.yaml deleted file mode 100644 index e7d8d6e1..00000000 --- a/.github/workflows/phpstan-7.yaml +++ /dev/null @@ -1,23 +0,0 @@ -name: PHPStan level 7 -on: push -jobs: - phpstan: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/cache@v3 - with: - path: '**/vendor' - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-composer- - - uses: php-actions/composer@v6 - with: - args: --prefer-dist - php_version: '8.2' - - - name: PHPStan - uses: php-actions/phpstan@v3 - with: - path: src/ - level: 7 diff --git a/.github/workflows/phpstan-8.yaml b/.github/workflows/phpstan-8.yaml deleted file mode 100644 index 39cebe0f..00000000 --- a/.github/workflows/phpstan-8.yaml +++ /dev/null @@ -1,23 +0,0 @@ -name: PHPStan level 8 -on: push -jobs: - phpstan: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/cache@v3 - with: - path: '**/vendor' - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-composer- - - uses: php-actions/composer@v6 - with: - args: --prefer-dist - php_version: '8.2' - - - name: PHPStan - uses: php-actions/phpstan@v3 - with: - path: src/ - level: 8 diff --git a/.github/workflows/quality.yaml b/.github/workflows/quality.yaml index 8e70ec6d..77cdc836 100644 --- a/.github/workflows/quality.yaml +++ b/.github/workflows/quality.yaml @@ -13,24 +13,3 @@ jobs: wget -q https://cs.symfony.com/download/php-cs-fixer-v3.phar -O php-cs-fixer chmod a+x php-cs-fixer PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run - - phpstan: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/cache@v3 - with: - path: '**/vendor' - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-composer- - - uses: php-actions/composer@v6 - with: - args: --prefer-dist - php_version: '8.2' - - - name: PHPStan - uses: php-actions/phpstan@v3 - with: - path: src/ - level: 4 diff --git a/composer.json b/composer.json index 148a8ead..634a3e4f 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,6 @@ }, "require-dev": { "jane-php/open-api-3": "^7.4", - "phpstan/phpstan": "^1.10", "friendsofphp/php-cs-fixer": "^3.11", "rector/rector": "^0.15.19" }, diff --git a/composer.lock b/composer.lock index cd6d9f20..ce13e2bf 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "d3848436276cbdf73e45f4b92e95893d", + "content-hash": "9ef79031653abe88ee1313d9add0b47f", "packages": [ { "name": "clue/stream-filter", diff --git a/infection.json.dist b/infection.json.dist deleted file mode 100644 index ac3c0d43..00000000 --- a/infection.json.dist +++ /dev/null @@ -1,23 +0,0 @@ -{ - "$schema": "https://raw.githubusercontent.com/infection/infection/0.26.18/resources/schema.json", - "source": { - "directories": [ - "src" - ] - }, - "timeout": 10, - "logs": { - "text": "infection.log", - "summary": "summary.log", - "json": "infection-log.json", - "perMutator": "per-mutator.md", - "github": true, - }, - "phpUnit": { - "configDir": "." - }, - "mutators": { - "@default": true - }, - "testFramework":"phpunit", -} diff --git a/phpunit.xml b/phpunit.xml deleted file mode 100644 index eadaa790..00000000 --- a/phpunit.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - tests/functional/ - - - - - src - - - - - - From 0d2873a0e2453b2e9f7a55c9545442745d980213 Mon Sep 17 00:00:00 2001 From: sebprt Date: Wed, 5 Apr 2023 16:30:07 +0200 Subject: [PATCH 4/5] Removed phpstan --- .github/workflows/quality.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/quality.yaml b/.github/workflows/quality.yaml index 77cdc836..5cfdeff3 100644 --- a/.github/workflows/quality.yaml +++ b/.github/workflows/quality.yaml @@ -1,4 +1,4 @@ -name: Quality (PHPStan lvl 4) +name: Quality on: push jobs: cs-fixer: From 284825ee0c9ea3eb6a2341c3e8f8dca8fb79449d Mon Sep 17 00:00:00 2001 From: sebprt Date: Wed, 5 Apr 2023 16:32:02 +0200 Subject: [PATCH 5/5] Ran php-cs-fixer --- src/Authentication/ApiKeyAuthentication.php | 4 +- src/Client.php | 38 +++---- ...ceptReferralRequestReferralRequestItem.php | 2 +- .../AddAfterPipelineStepPipelineItem.php | 6 +- .../AddBeforePipelineStepPipelineItem.php | 6 +- .../AddComposerAuthPipelinePipelineItem.php | 6 +- ...ddComposerAutoloadPipelinePipelineItem.php | 6 +- ...AddComposerPackagePipelinePipelineItem.php | 6 +- ...ComposerRepositoryPipelinePipelineItem.php | 6 +- .../AddPipelineStepProbePipelineItem.php | 6 +- ...iablesFromConfigurationEnvironmentItem.php | 2 +- ...ddVariablesFromConstantEnvironmentItem.php | 2 +- .../AddVariablesFromSecretEnvironmentItem.php | 2 +- ...izationGetSubresourceActionSubresource.php | 2 +- ...nsOwnerGetSubresourceActionSubresource.php | 2 +- ...rkspaceGetSubresourceActionSubresource.php | 2 +- ...onGetSubresourceCompilationSubresource.php | 2 +- ...erGetSubresourceCompilationSubresource.php | 2 +- ...ceGetSubresourceCompilationSubresource.php | 2 +- ...esGetSubresourceEnvironmentSubresource.php | 2 +- ...esourceExecutionPipelineJobSubresource.php | 2 +- ...ubresourceExecutionPipelineSubresource.php | 2 +- ...esourceExecutionWorkflowJobSubresource.php | 2 +- ...esourceExecutionWorkflowJobSubresource.php | 2 +- ...esourceExecutionWorkflowJobSubresource.php | 2 +- ...ubresourceExecutionWorkflowSubresource.php | 2 +- ...ubresourceExecutionWorkflowSubresource.php | 2 +- ...ubresourceExecutionWorkflowSubresource.php | 2 +- ...tionGetSubresourceExecutionSubresource.php | 2 +- ...tionGetSubresourceExecutionSubresource.php | 2 +- ...wnerGetSubresourceExecutionSubresource.php | 2 +- ...lineGetSubresourceExecutionSubresource.php | 2 +- ...flowGetSubresourceExecutionSubresource.php | 2 +- ...JobsGetSubresourceExecutionSubresource.php | 2 +- ...paceGetSubresourceExecutionSubresource.php | 2 +- ...sOptionsGetSubresourceOfferSubresource.php | 2 +- ...sGetSubresourceOrganizationSubresource.php | 2 +- ...sGetSubresourceOrganizationSubresource.php | 2 +- ...sGetSubresourceOrganizationSubresource.php | 2 +- ...sGetSubresourceOrganizationSubresource.php | 2 +- ...sGetSubresourcePipelineStepSubresource.php | 2 +- ...tionsGetSubresourcePipelineSubresource.php | 2 +- ...ationGetSubresourcePipelineSubresource.php | 2 +- ...OwnerGetSubresourcePipelineSubresource.php | 2 +- ...StepsGetSubresourcePipelineSubresource.php | 2 +- ...spaceGetSubresourcePipelineSubresource.php | 2 +- ...tionsGetSubresourceScheduleSubresource.php | 2 +- ...ationGetSubresourceScheduleSubresource.php | 2 +- ...OwnerGetSubresourceScheduleSubresource.php | 2 +- ...elineGetSubresourceScheduleSubresource.php | 2 +- ...kflowGetSubresourceScheduleSubresource.php | 2 +- ...wJobsGetSubresourceScheduleSubresource.php | 2 +- ...ationGetSubresourceScheduleSubresource.php | 2 +- ...OwnerGetSubresourceScheduleSubresource.php | 2 +- ...spaceGetSubresourceScheduleSubresource.php | 2 +- ...spaceGetSubresourceScheduleSubresource.php | 2 +- ...rGetSubresourceSubscriptionSubresource.php | 2 +- ...sGetSubresourceSubscriptionSubresource.php | 2 +- ...nGetSubresourceSubscriptionSubresource.php | 2 +- ...rizationsGetSubresourceUserSubresource.php | 2 +- ...resourceWorkflowJobPipelineSubresource.php | 2 +- ...sJobsGetSubresourceWorkflowSubresource.php | 2 +- ...ationGetSubresourceWorkflowSubresource.php | 2 +- ...OwnerGetSubresourceWorkflowSubresource.php | 2 +- ...spaceGetSubresourceWorkflowSubresource.php | 2 +- ...ionsGetSubresourceWorkspaceSubresource.php | 2 +- ...sersGetSubresourceWorkspaceSubresource.php | 2 +- .../AppendPipelineStepPipelineItem.php | 6 +- src/Endpoint/ChangePasswordUserItem.php | 2 +- .../ChangeValuesConfigurationItem.php | 2 +- src/Endpoint/ChangeValuesSecretItem.php | 2 +- .../DeclareExecutionExecutionCollection.php | 6 +- .../DeclarePipelinePipelineCollection.php | 6 +- src/Endpoint/DeleteConfigurationItem.php | 2 - src/Endpoint/DeleteEnvironmentItem.php | 2 - src/Endpoint/DeleteOfferItem.php | 2 - src/Endpoint/DeleteOrganizationItem.php | 2 - src/Endpoint/DeletePipelinePipelineItem.php | 2 - .../DeletePipelineStepPipelineItem.php | 2 - src/Endpoint/DeleteReferralCodeItem.php | 2 - src/Endpoint/DeleteSecretItem.php | 2 - src/Endpoint/DeleteSubscriptionItem.php | 2 - src/Endpoint/DeleteUserAuthorizationItem.php | 2 - src/Endpoint/DeleteUserItem.php | 2 - .../DeleteVariableFromConfigurationItem.php | 2 - .../DeleteVariableFromConstantItem.php | 2 - src/Endpoint/DeleteVariableFromSecretItem.php | 2 - src/Endpoint/DeleteWorkspaceItem.php | 2 - src/Endpoint/EditConfigurationItem.php | 2 +- src/Endpoint/EditEnvironmentItem.php | 2 +- src/Endpoint/EditSecretItem.php | 2 +- .../EditVariableFromConfigurationItem.php | 4 +- src/Endpoint/EditVariableFromConstantItem.php | 4 +- src/Endpoint/EditVariableFromSecretItem.php | 4 +- src/Endpoint/FinishExecutionExecutionItem.php | 8 +- src/Endpoint/GetActionCollection.php | 2 +- src/Endpoint/GetActionItem.php | 2 +- ...stanceByPimUrlAkeneoInstanceCollection.php | 2 +- src/Endpoint/GetAkeneoInstanceCollection.php | 2 +- src/Endpoint/GetAkeneoInstanceItem.php | 2 +- ...oInstanceOauthAkeneoInstanceCollection.php | 2 +- ...edAccountAkeneoLinkedAccountCollection.php | 2 +- .../GetAkeneoLinkedAccountCollection.php | 2 +- src/Endpoint/GetAkeneoLinkedAccountItem.php | 2 +- .../GetAkeneoOauthTokenCollection.php | 2 +- src/Endpoint/GetAkeneoOauthTokenItem.php | 2 +- src/Endpoint/GetCompilationCollection.php | 2 +- src/Endpoint/GetCompilationItem.php | 2 +- src/Endpoint/GetConfigurationCollection.php | 2 +- src/Endpoint/GetConfigurationItem.php | 2 +- src/Endpoint/GetEnvironmentCollection.php | 2 +- src/Endpoint/GetEnvironmentItem.php | 2 +- src/Endpoint/GetExecutionActionItem.php | 2 +- src/Endpoint/GetExecutionCollection.php | 2 +- src/Endpoint/GetExecutionItem.php | 2 +- .../GetExecutionPipelineCollection.php | 2 +- src/Endpoint/GetExecutionPipelineItem.php | 2 +- .../GetExecutionPipelineJobCollection.php | 2 +- src/Endpoint/GetExecutionPipelineJobItem.php | 2 +- src/Endpoint/GetExecutionPipelineStepItem.php | 2 +- .../GetExecutionWorkflowCollection.php | 2 +- src/Endpoint/GetExecutionWorkflowItem.php | 2 +- .../GetExecutionWorkflowJobActionItem.php | 2 +- .../GetExecutionWorkflowJobCollection.php | 2 +- src/Endpoint/GetExecutionWorkflowJobItem.php | 2 +- src/Endpoint/GetForgotPassword.php | 6 +- src/Endpoint/GetOfferCollection.php | 2 +- src/Endpoint/GetOfferItem.php | 2 +- .../GetOnPremiseRequestCollection.php | 2 +- src/Endpoint/GetOnPremiseRequestItem.php | 2 +- src/Endpoint/GetOrganizationCollection.php | 2 +- src/Endpoint/GetOrganizationItem.php | 2 +- src/Endpoint/GetPipelineCollection.php | 2 +- src/Endpoint/GetPipelineItem.php | 2 +- src/Endpoint/GetPipelineStepCollection.php | 2 +- src/Endpoint/GetPipelineStepItem.php | 2 +- .../GetPipelineStepProbeCollection.php | 2 +- src/Endpoint/GetPipelineStepProbeItem.php | 2 +- src/Endpoint/GetReferralCodeCollection.php | 2 +- src/Endpoint/GetReferralCodeItem.php | 2 +- src/Endpoint/GetReferralRequestCollection.php | 2 +- src/Endpoint/GetReferralRequestItem.php | 2 +- src/Endpoint/GetScheduleCollection.php | 2 +- src/Endpoint/GetScheduleItem.php | 2 +- src/Endpoint/GetSecretCollection.php | 2 +- src/Endpoint/GetSecretItem.php | 2 +- src/Endpoint/GetSubscriptionCollection.php | 2 +- src/Endpoint/GetSubscriptionItem.php | 2 +- .../GetUserAuthorizationCollection.php | 2 +- src/Endpoint/GetUserAuthorizationItem.php | 2 +- src/Endpoint/GetUserCollection.php | 2 +- src/Endpoint/GetUserItem.php | 2 +- .../GetVariableFromConfigurationItem.php | 2 +- src/Endpoint/GetVariableFromConstantItem.php | 2 +- src/Endpoint/GetVariableFromSecretItem.php | 2 +- src/Endpoint/GetWorkflowCollection.php | 2 +- src/Endpoint/GetWorkflowItem.php | 2 +- src/Endpoint/GetWorkflowJobActionItem.php | 2 +- src/Endpoint/GetWorkflowJobItem.php | 2 +- .../GetWorkflowJobPipelineCollection.php | 2 +- src/Endpoint/GetWorkflowJobPipelineItem.php | 2 +- src/Endpoint/GetWorkspaceCollection.php | 2 +- src/Endpoint/GetWorkspaceItem.php | 2 +- .../InterruptExecutionExecutionItem.php | 8 +- src/Endpoint/MeUserCollection.php | 2 +- .../MoveAfterPipelineStepPipelineItem.php | 6 +- .../MoveBeforePipelineStepPipelineItem.php | 6 +- src/Endpoint/PatchOfferItem.php | 2 +- src/Endpoint/PatchOrganizationItem.php | 2 +- src/Endpoint/PatchSubscriptionItem.php | 2 +- src/Endpoint/PatchUserAuthorizationItem.php | 2 +- src/Endpoint/PatchUserItem.php | 2 +- src/Endpoint/PatchWorkspaceItem.php | 2 +- .../PipelineCompilationPipelineItem.php | 8 +- src/Endpoint/PostAkeneoInstanceCollection.php | 2 +- .../PostAkeneoLinkedAccountCollection.php | 2 +- .../PostAkeneoOauthTokenCollection.php | 6 +- src/Endpoint/PostCompilationCollection.php | 4 +- src/Endpoint/PostConfigurationCollection.php | 2 +- src/Endpoint/PostCredentialsItem.php | 2 +- src/Endpoint/PostEnvironmentCollection.php | 2 +- src/Endpoint/PostForgotPassword.php | 4 +- src/Endpoint/PostForgotPasswordToken.php | 4 +- .../PostOnPremiseRequestCollection.php | 2 +- src/Endpoint/PostOrganizationCollection.php | 2 +- src/Endpoint/PostReferralCodeCollection.php | 2 +- .../PostReferralRequestCollection.php | 2 +- src/Endpoint/PostScheduleCollection.php | 9 +- src/Endpoint/PostSecretCollection.php | 2 +- src/Endpoint/PostSubscriptionCollection.php | 2 +- .../PostUserAuthorizationCollection.php | 2 +- src/Endpoint/PostUserCollection.php | 2 +- src/Endpoint/PostWorkspaceCollection.php | 2 +- ...eoOauthTokenAkeneoOauthTokenCollection.php | 10 +- src/Endpoint/PutAuthenticationToken.php | 8 +- src/Endpoint/PutOfferItem.php | 2 +- src/Endpoint/PutOrganizationItem.php | 2 +- src/Endpoint/PutSubscriptionItem.php | 2 +- src/Endpoint/PutUserAuthorizationItem.php | 2 +- src/Endpoint/PutUserItem.php | 2 +- src/Endpoint/PutWorkspaceItem.php | 2 +- ...jectReferralRequestReferralRequestItem.php | 2 +- ...RemoveComposerAuthPipelinePipelineItem.php | 6 +- ...veComposerAutoloadPipelinePipelineItem.php | 6 +- ...oveComposerPackagePipelinePipelineItem.php | 6 +- ...ComposerRepositoryPipelinePipelineItem.php | 6 +- .../RemovePipelineStepProbePipelineItem.php | 2 - .../RemoveValuesConfigurationItem.php | 2 +- src/Endpoint/RemoveValuesSecretItem.php | 2 +- .../ReorderPipelineStepsPipelineItem.php | 6 +- .../ReplacePipelineStepPipelineItem.php | 6 +- src/Endpoint/ResumeExecutionExecutionItem.php | 8 +- src/Endpoint/StartExecutionExecutionItem.php | 8 +- .../TerminateExecutionExecutionItem.php | 6 +- .../UpdateExecutionStateExecutionItem.php | 6 +- .../AbstractPipelineJsonldNormalizer.php | 63 ++++++------ src/Normalizer/AbstractPipelineNormalizer.php | 51 +++++----- src/Normalizer/ActionJsonldReadNormalizer.php | 27 +++-- src/Normalizer/ActionReadNormalizer.php | 15 ++- ...mposerAuthCommandInputJsonldNormalizer.php | 31 +++--- ...lineComposerAuthCommandInputNormalizer.php | 19 ++-- ...RepositoryCommandInputJsonldNormalizer.php | 35 ++++--- ...mposerRepositoryCommandInputNormalizer.php | 23 +++-- ...nceAkeneoInstanceInputJsonldNormalizer.php | 35 ++++--- ...oInstanceAkeneoInstanceInputNormalizer.php | 23 +++-- .../AkeneoInstanceJsonldNormalizer.php | 51 +++++----- src/Normalizer/AkeneoInstanceNormalizer.php | 39 +++++--- ...neoLinkedAccountsInputJsonldNormalizer.php | 39 +++++--- ...untAkeneoLinkedAccountsInputNormalizer.php | 27 +++-- .../AkeneoLinkedAccountJsonldNormalizer.php | 47 +++++---- .../AkeneoLinkedAccountNormalizer.php | 35 ++++--- .../AkeneoOauthTokenJsonldReadNormalizer.php | 39 +++++--- ...thTokenOauthStateInputJsonldNormalizer.php | 31 +++--- ...neoOauthTokenOauthStateInputNormalizer.php | 19 ++-- ...enOauthStateOutputJsonldReadNormalizer.php | 27 ++--- ...thTokenOauthTokenInputJsonldNormalizer.php | 31 +++--- ...neoOauthTokenOauthTokenInputNormalizer.php | 23 +++-- ...enOauthTokenOutputJsonldReadNormalizer.php | 23 +++-- .../AkeneoOauthTokenReadNormalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...nMeGetResponse200HydraSearchNormalizer.php | 27 +++-- ...ionMeGetResponse200HydraViewNormalizer.php | 35 ++++--- ...thenticationMeGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...onsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...tionsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...OfferIdOptionsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...ersGetResponse200HydraSearchNormalizer.php | 27 +++-- ...ffersGetResponse200HydraViewNormalizer.php | 35 ++++--- ...ticationOffersGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...onsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...tionsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...AuthorizationsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...orsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...atorsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...lCollaboratorsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...ersGetResponse200HydraSearchNormalizer.php | 27 +++-- ...UsersGetResponse200HydraViewNormalizer.php | 35 ++++--- ...izationIdUsersGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...cesGetResponse200HydraSearchNormalizer.php | 27 +++-- ...pacesGetResponse200HydraViewNormalizer.php | 35 ++++--- ...onIdWorkspacesGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...onsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...tionsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...nOrganizationsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...onsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...tionsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...nSubscriptionsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...onsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...tionsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...tionsIdOptionsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...onsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...tionsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...AuthorizationsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...onsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...tionsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...AuthorizationsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...ersGetResponse200HydraSearchNormalizer.php | 27 +++-- ...UsersGetResponse200HydraViewNormalizer.php | 35 ++++--- ...nticationUsersGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...onsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...tionsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...AuthorizationsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...ersGetResponse200HydraSearchNormalizer.php | 27 +++-- ...UsersGetResponse200HydraViewNormalizer.php | 35 ++++--- ...rkspaceIdUsersGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...cesGetResponse200HydraSearchNormalizer.php | 27 +++-- ...pacesGetResponse200HydraViewNormalizer.php | 35 ++++--- ...tionWorkspacesGetResponse200Normalizer.php | 27 +++-- .../AutoloadInputJsonldNormalizer.php | 31 +++--- src/Normalizer/AutoloadInputNormalizer.php | 19 ++-- src/Normalizer/BigDecimalJsonldNormalizer.php | 67 +++++++------ src/Normalizer/BigDecimalNormalizer.php | 55 ++++++----- src/Normalizer/BigIntegerJsonldNormalizer.php | 67 +++++++------ src/Normalizer/BigIntegerNormalizer.php | 55 ++++++----- src/Normalizer/BigNumberJsonldNormalizer.php | 51 +++++----- src/Normalizer/BigNumberNormalizer.php | 39 ++++---- ...lePipelineCommandInputJsonldNormalizer.php | 27 ++--- ...CompilePipelineCommandJsonldNormalizer.php | 27 +++-- ...lationCompilePipelineCommandNormalizer.php | 15 ++- .../CompilationJsonldNormalizer.php | 47 +++++---- src/Normalizer/CompilationNormalizer.php | 35 ++++--- ...onfigurationValueInputJsonldNormalizer.php | 39 +++++--- ...hangeConfigurationValueInputNormalizer.php | 27 +++-- ...eateConfigurationInputJsonldNormalizer.php | 47 +++++---- ...tionCreateConfigurationInputNormalizer.php | 35 ++++--- .../ConfigurationEditNormalizer.php | 19 ++-- .../ConfigurationIdJsonldNormalizer.php | 27 ++--- .../ConfigurationJsonldEditNormalizer.php | 31 +++--- .../ConfigurationJsonldNormalizer.php | 55 ++++++----- .../ConfigurationJsonldReadNormalizer.php | 39 +++++--- src/Normalizer/ConfigurationNormalizer.php | 43 ++++---- .../ConfigurationReadNormalizer.php | 27 +++-- ...onfigurationValueInputJsonldNormalizer.php | 43 ++++---- ...emoveConfigurationValueInputNormalizer.php | 31 +++--- src/Normalizer/ContextJsonldNormalizer.php | 35 ++++--- src/Normalizer/ContextNormalizer.php | 23 +++-- .../CreateSecretInputJsonldNormalizer.php | 47 +++++---- .../CreateSecretInputNormalizer.php | 35 ++++--- src/Normalizer/CredentialsNormalizer.php | 27 +++-- src/Normalizer/CurrencyJsonldNormalizer.php | 39 +++++--- src/Normalizer/CurrencyNormalizer.php | 27 +++-- ...FromConfigurationInputJsonldNormalizer.php | 31 +++--- ...riableFromConfigurationInputNormalizer.php | 19 ++-- ...iableFromConstantInputJsonldNormalizer.php | 31 +++--- ...pleVariableFromConstantInputNormalizer.php | 19 ++-- ...ariableFromSecretInputJsonldNormalizer.php | 31 +++--- ...tipleVariableFromSecretInputNormalizer.php | 19 ++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...onsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...tionsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...ConfigurationsGetResponse200Normalizer.php | 27 +++-- ...CreateEnvironmentInputJsonldNormalizer.php | 39 +++++--- ...onmentCreateEnvironmentInputNormalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...ntsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...mentsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...ntEnvironmentsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...lesGetResponse200HydraSearchNormalizer.php | 27 +++-- ...ablesGetResponse200HydraViewNormalizer.php | 35 ++++--- ...ntsIdVariablesGetResponse200Normalizer.php | 27 +++-- .../EnvironmentJsonldReadNormalizer.php | 43 ++++---- .../EnvironmentJsonldWriteNormalizer.php | 31 +++--- src/Normalizer/EnvironmentReadNormalizer.php | 31 +++--- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...etsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...cretsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...ronmentSecretsGetResponse200Normalizer.php | 27 +++-- src/Normalizer/EnvironmentWriteNormalizer.php | 19 ++-- .../ExecutionActionJsonldNormalizer.php | 31 +++--- src/Normalizer/ExecutionActionNormalizer.php | 19 ++-- ...eExecutionCommandInputJsonldNormalizer.php | 31 +++--- ...ipelineExecutionCommandInputNormalizer.php | 19 ++-- ...neExecutionCommandJsonldReadNormalizer.php | 27 ++--- ...eExecutionCommandInputJsonldNormalizer.php | 27 ++--- ...neExecutionCommandJsonldReadNormalizer.php | 27 ++--- ...eExecutionCommandInputJsonldNormalizer.php | 27 ++--- ...neExecutionCommandJsonldReadNormalizer.php | 27 ++--- .../ExecutionJsonldReadNormalizer.php | 71 +++++++------ .../ExecutionPipelineJobJsonldNormalizer.php | 35 ++++--- .../ExecutionPipelineJobNormalizer.php | 23 +++-- .../ExecutionPipelineJsonldNormalizer.php | 35 ++++--- .../ExecutionPipelineNormalizer.php | 23 +++-- .../ExecutionPipelineStepJsonldNormalizer.php | 35 ++++--- .../ExecutionPipelineStepNormalizer.php | 23 +++-- src/Normalizer/ExecutionReadNormalizer.php | 59 ++++++----- ...eExecutionCommandInputJsonldNormalizer.php | 27 ++--- ...neExecutionCommandJsonldReadNormalizer.php | 27 ++--- ...eExecutionCommandInputJsonldNormalizer.php | 27 ++--- ...neExecutionCommandJsonldReadNormalizer.php | 27 ++--- ...eExecutionCommandInputJsonldNormalizer.php | 27 +++-- ...ipelineExecutionCommandInputNormalizer.php | 15 ++- ...neExecutionCommandJsonldReadNormalizer.php | 27 ++--- ...utionStateCommandInputJsonldNormalizer.php | 27 +++-- ...neExecutionStateCommandInputNormalizer.php | 15 ++- ...cutionStateCommandJsonldReadNormalizer.php | 27 ++--- ...utionWorkflowJobActionJsonldNormalizer.php | 31 +++--- .../ExecutionWorkflowJobActionNormalizer.php | 19 ++-- .../ExecutionWorkflowJobJsonldNormalizer.php | 39 +++++--- .../ExecutionWorkflowJobNormalizer.php | 27 +++-- .../ExecutionWorkflowJsonldNormalizer.php | 35 ++++--- .../ExecutionWorkflowNormalizer.php | 23 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...UrlGetResponse200HydraSearchNormalizer.php | 27 +++-- ...omUrlGetResponse200HydraViewNormalizer.php | 35 ++++--- ...nstanceFromUrlGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...ateGetResponse200HydraSearchNormalizer.php | 27 +++-- ...StateGetResponse200HydraViewNormalizer.php | 35 ++++--- ...anceOauthStateGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...cesGetResponse200HydraSearchNormalizer.php | 27 +++-- ...ancesGetResponse200HydraViewNormalizer.php | 35 ++++--- ...keneoInstancesGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...rIdGetResponse200HydraSearchNormalizer.php | 27 +++-- ...serIdGetResponse200HydraViewNormalizer.php | 35 ++++--- ...ntAkeneoUserIdGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...ntsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...ountsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...LinkedAccountsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...tesGetResponse200HydraSearchNormalizer.php | 27 +++-- ...tatesGetResponse200HydraViewNormalizer.php | 35 ++++--- ...neoOauthStatesGetResponse200Normalizer.php | 27 +++-- ...yHydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...OauthTokenPutBodyHydraSearchNormalizer.php | 27 +++-- ...eoOauthTokenPutBodyHydraViewNormalizer.php | 35 ++++--- ...tewayAkeneoOauthTokenPutBodyNormalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...kenPutResponse200HydraSearchNormalizer.php | 27 +++-- ...TokenPutResponse200HydraViewNormalizer.php | 35 ++++--- ...eneoOauthTokenPutResponse200Normalizer.php | 27 +++-- src/Normalizer/JaneObjectNormalizer.php | 13 ++- src/Normalizer/MoneyJsonldNormalizer.php | 71 +++++++------ src/Normalizer/MoneyNormalizer.php | 59 ++++++----- src/Normalizer/OfferJsonldNormalizer.php | 51 +++++----- src/Normalizer/OfferNormalizer.php | 39 +++++--- ...stJsonldOnPremiseRequestReadNormalizer.php | 47 +++++---- ...tJsonldOnPremiseRequestWriteNormalizer.php | 39 +++++--- ...eRequestOnPremiseRequestReadNormalizer.php | 35 ++++--- ...RequestOnPremiseRequestWriteNormalizer.php | 27 +++-- src/Normalizer/OptionJsonldNormalizer.php | 47 +++++---- src/Normalizer/OptionNormalizer.php | 39 +++++--- .../OrganizationIdJsonldNormalizer.php | 27 ++--- .../OrganizationJsonldNormalizer.php | 51 +++++----- src/Normalizer/OrganizationNormalizer.php | 39 +++++--- ...pelineStepCommandInputJsonldNormalizer.php | 39 +++++--- ...fterPipelineStepCommandInputNormalizer.php | 27 +++-- ...ipelineStepCommandJsonldReadNormalizer.php | 27 ++--- ...pelineStepCommandInputJsonldNormalizer.php | 39 +++++--- ...forePipelineStepCommandInputNormalizer.php | 27 +++-- ...ipelineStepCommandJsonldReadNormalizer.php | 27 ++--- ...mposerAuthCommandInputJsonldNormalizer.php | 31 +++--- ...lineComposerAuthCommandInputNormalizer.php | 19 ++-- ...omposerAuthCommandJsonldReadNormalizer.php | 27 ++--- ...R4AutoloadCommandInputJsonldNormalizer.php | 31 +++--- ...oserPSR4AutoloadCommandInputNormalizer.php | 19 ++-- ...SR4AutoloadCommandJsonldReadNormalizer.php | 27 ++--- ...serPackageCommandInputJsonldNormalizer.php | 31 +++--- ...eComposerPackageCommandInputNormalizer.php | 19 ++-- ...oserPackageCommandJsonldReadNormalizer.php | 27 ++--- ...RepositoryCommandInputJsonldNormalizer.php | 35 ++++--- ...mposerRepositoryCommandInputNormalizer.php | 23 +++-- ...rRepositoryCommandJsonldReadNormalizer.php | 27 ++--- ...neStepProbCommandInputJsonldNormalizer.php | 27 +++-- ...PipelineStepProbCommandInputNormalizer.php | 15 ++- ...neStepProbeCommandJsonldReadNormalizer.php | 27 ++--- ...pelineStepCommandInputJsonldNormalizer.php | 39 +++++--- ...pendPipelineStepCommandInputNormalizer.php | 27 +++-- ...ipelineStepCommandJsonldReadNormalizer.php | 27 ++--- ...lePipelineCommandInputJsonldNormalizer.php | 27 ++--- ...ilePipelineCommandJsonldReadNormalizer.php | 27 ++--- ...rePipelineCommandInputJsonldNormalizer.php | 51 +++++----- ...eDeclarePipelineCommandInputNormalizer.php | 39 +++++--- ...arePipelineCommandJsonldReadNormalizer.php | 27 ++--- src/Normalizer/PipelineIdJsonldNormalizer.php | 27 ++--- .../PipelineJsonldReadNormalizer.php | 71 +++++++------ ...pelineStepCommandInputJsonldNormalizer.php | 27 +++-- ...fterPipelineStepCommandInputNormalizer.php | 15 ++- ...ipelineStepCommandJsonldReadNormalizer.php | 27 ++--- ...pelineStepCommandInputJsonldNormalizer.php | 27 +++-- ...forePipelineStepCommandInputNormalizer.php | 15 ++- ...ipelineStepCommandJsonldReadNormalizer.php | 27 ++--- src/Normalizer/PipelineReadNormalizer.php | 59 ++++++----- ...mposerAuthCommandInputJsonldNormalizer.php | 27 +++-- ...lineComposerAuthCommandInputNormalizer.php | 15 ++- ...omposerAuthCommandJsonldReadNormalizer.php | 27 ++--- ...R4AutoloadCommandInputJsonldNormalizer.php | 27 +++-- ...oserPSR4AutoloadCommandInputNormalizer.php | 15 ++- ...SR4AutoloadCommandJsonldReadNormalizer.php | 27 ++--- ...serPackageCommandInputJsonldNormalizer.php | 27 +++-- ...eComposerPackageCommandInputNormalizer.php | 15 ++- ...oserPackageCommandJsonldReadNormalizer.php | 27 ++--- ...RepositoryCommandInputJsonldNormalizer.php | 27 +++-- ...mposerRepositoryCommandInputNormalizer.php | 15 ++- ...rRepositoryCommandJsonldReadNormalizer.php | 27 ++--- ...neStepProbeCommandJsonldReadNormalizer.php | 27 ++--- ...elineStepsCommandInputJsonldNormalizer.php | 27 +++-- ...derPipelineStepsCommandInputNormalizer.php | 15 ++- ...pelineStepsCommandJsonldReadNormalizer.php | 27 ++--- ...pelineStepCommandInputJsonldNormalizer.php | 39 +++++--- ...lacePipelineStepCommandInputNormalizer.php | 27 +++-- ...ipelineStepCommandJsonldReadNormalizer.php | 27 ++--- .../PipelineStepJsonldNormalizer.php | 51 +++++----- src/Normalizer/PipelineStepNormalizer.php | 39 +++++--- .../PipelineStepProbeJsonldNormalizer.php | 43 ++++---- .../PipelineStepProbeNormalizer.php | 31 +++--- src/Normalizer/PriceJsonldNormalizer.php | 27 +++-- src/Normalizer/PriceNormalizer.php | 15 ++- src/Normalizer/ProbeJsonldNormalizer.php | 31 +++--- src/Normalizer/ProbeNormalizer.php | 19 ++-- ...alCodeJsonldReferralCodeReadNormalizer.php | 39 +++++--- ...lCodeJsonldReferralCodeWriteNormalizer.php | 27 +++-- ...ReferralCodeReferralCodeReadNormalizer.php | 27 +++-- ...eferralCodeReferralCodeWriteNormalizer.php | 15 ++- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...desGetResponse200HydraSearchNormalizer.php | 27 +++-- ...CodesGetResponse200HydraViewNormalizer.php | 35 ++++--- .../ReferralCodesGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...stsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...uestsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...remiseRequestsGetResponse200Normalizer.php | 27 +++-- ...estJsonldReferralRequestReadNormalizer.php | 63 ++++++------ ...stReferralRequestInputJsonldNormalizer.php | 47 +++++---- ...lRequestReferralRequestInputNormalizer.php | 35 ++++--- ...alRequestReferralRequestReadNormalizer.php | 51 +++++----- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...stsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...uestsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...ferralRequestsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...onsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...tionsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...RuntimeActionsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...onsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...tionsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...meCompilationsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...epsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...StepsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...ipelineIdStepsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...nesGetResponse200HydraSearchNormalizer.php | 27 +++-- ...linesGetResponse200HydraViewNormalizer.php | 35 ++++--- ...utionPipelinesGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...obsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...dJobsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...WorkflowIdJobsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...owsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...flowsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...utionWorkflowsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...obsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...wJobsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...IdWorkflowJobsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...epsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...StepsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...lineJobIdStepsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...obsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...eJobsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...onPipelineJobsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...epsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...StepsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...dPipelineStepsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...obsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...wJobsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...onWorkflowJobsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...onsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...tionsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...timeExecutionsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...onsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...tionsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...IdCompilationsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...epsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...StepsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...ipelineIdStepsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...besGetResponse200HydraSearchNormalizer.php | 27 +++-- ...robesGetResponse200HydraViewNormalizer.php | 35 ++++--- ...neStepIdProbesGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...besGetResponse200HydraSearchNormalizer.php | 27 +++-- ...robesGetResponse200HydraViewNormalizer.php | 35 ++++--- ...lineStepProbesGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...epsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...StepsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...ePipelineStepsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...nesGetResponse200HydraSearchNormalizer.php | 27 +++-- ...linesGetResponse200HydraViewNormalizer.php | 35 ++++--- ...ntimePipelinesGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...onsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...tionsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...leIdExecutionsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...obsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...wJobsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...IdWorkflowJobsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...lesGetResponse200HydraSearchNormalizer.php | 27 +++-- ...dulesGetResponse200HydraViewNormalizer.php | 35 ++++--- ...ntimeSchedulesGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...obsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...dJobsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...WorkflowIdJobsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...nesGetResponse200HydraSearchNormalizer.php | 27 +++-- ...linesGetResponse200HydraViewNormalizer.php | 35 ++++--- ...kflowPipelinesGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...epsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...StepsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...pelinesIdStepsGetResponse200Normalizer.php | 27 +++-- ...0HydraSearchHydraMappingItemNormalizer.php | 27 +++-- ...owsGetResponse200HydraSearchNormalizer.php | 27 +++-- ...flowsGetResponse200HydraViewNormalizer.php | 35 ++++--- ...ntimeWorkflowsGetResponse200Normalizer.php | 27 +++-- ...neScheduleCommandInputJsonldNormalizer.php | 51 +++++----- ...PipelineScheduleCommandInputNormalizer.php | 39 +++++--- src/Normalizer/ScheduleJsonldNormalizer.php | 71 +++++++------ src/Normalizer/ScheduleNormalizer.php | 59 ++++++----- ...heduleCommandInterfaceJsonldNormalizer.php | 27 ++--- ...ChangeSecretValueInputJsonldNormalizer.php | 43 ++++---- ...SecretChangeSecretValueInputNormalizer.php | 31 +++--- ...ecretCreateSecretInputJsonldNormalizer.php | 47 +++++---- .../SecretCreateSecretInputNormalizer.php | 35 ++++--- src/Normalizer/SecretEditNormalizer.php | 19 ++-- src/Normalizer/SecretIdJsonldNormalizer.php | 27 ++--- src/Normalizer/SecretJsonldEditNormalizer.php | 31 +++--- src/Normalizer/SecretJsonldNormalizer.php | 55 ++++++----- src/Normalizer/SecretJsonldReadNormalizer.php | 43 ++++---- src/Normalizer/SecretNormalizer.php | 43 ++++---- src/Normalizer/SecretReadNormalizer.php | 31 +++--- ...RemoveSecretValueInputJsonldNormalizer.php | 43 ++++---- ...SecretRemoveSecretValueInputNormalizer.php | 31 +++--- src/Normalizer/StepInputJsonldNormalizer.php | 39 +++++--- src/Normalizer/StepInputNormalizer.php | 27 +++-- .../SubscriptionJsonldNormalizer.php | 47 +++++---- src/Normalizer/SubscriptionNormalizer.php | 35 ++++--- .../SubscriptionOptionJsonldNormalizer.php | 35 ++++--- .../SubscriptionOptionNormalizer.php | 27 +++-- src/Normalizer/TokenNormalizer.php | 19 ++-- .../TraversableJsonldNormalizer.php | 27 ++--- .../TraversableJsonldReadNormalizer.php | 27 ++--- src/Normalizer/UpdateListJsonldNormalizer.php | 27 +++-- src/Normalizer/UpdateListNormalizer.php | 15 ++- .../UserAuthorizationJsonldNormalizer.php | 47 +++++---- .../UserAuthorizationNormalizer.php | 35 ++++--- src/Normalizer/UserJsonldNormalizer.php | 99 ++++++++++--------- src/Normalizer/UserNormalizer.php | 87 ++++++++-------- .../UserUserChangePasswordInputNormalizer.php | 23 +++-- ...FromConfigurationInputJsonldNormalizer.php | 31 +++--- ...riableFromConfigurationInputNormalizer.php | 19 ++-- ...eFromConfigurationJsonldReadNormalizer.php | 39 +++++--- ...FromConfigurationJsonldWriteNormalizer.php | 27 ++--- ...ariableFromConfigurationReadNormalizer.php | 27 +++-- ...iableFromConstantInputJsonldNormalizer.php | 31 +++--- .../VariableFromConstantInputNormalizer.php | 19 ++-- ...riableFromConstantJsonldReadNormalizer.php | 35 ++++--- ...iableFromConstantJsonldWriteNormalizer.php | 27 ++--- .../VariableFromConstantReadNormalizer.php | 23 +++-- ...ariableFromSecretInputJsonldNormalizer.php | 31 +++--- .../VariableFromSecretInputNormalizer.php | 19 ++-- ...VariableFromSecretJsonldReadNormalizer.php | 39 +++++--- ...ariableFromSecretJsonldWriteNormalizer.php | 27 ++--- .../VariableFromSecretReadNormalizer.php | 27 +++-- .../VariableJsonldReadNormalizer.php | 27 +++-- src/Normalizer/VariableReadNormalizer.php | 19 ++-- .../WorkflowJobActionJsonldNormalizer.php | 31 +++--- .../WorkflowJobActionJsonldReadNormalizer.php | 27 +++-- .../WorkflowJobActionNormalizer.php | 19 ++-- .../WorkflowJobActionReadNormalizer.php | 15 ++- .../WorkflowJobJsonldReadNormalizer.php | 35 ++++--- .../WorkflowJobPipelineJsonldNormalizer.php | 67 +++++++------ ...orkflowJobPipelineJsonldReadNormalizer.php | 63 ++++++------ .../WorkflowJobPipelineNormalizer.php | 55 ++++++----- .../WorkflowJobPipelineReadNormalizer.php | 51 +++++----- src/Normalizer/WorkflowJobReadNormalizer.php | 23 +++-- .../WorkflowJsonldReadNormalizer.php | 39 +++++--- src/Normalizer/WorkflowReadNormalizer.php | 27 +++-- .../WorkspaceIdJsonldNormalizer.php | 27 ++--- src/Normalizer/WorkspaceJsonldNormalizer.php | 47 +++++---- src/Normalizer/WorkspaceNormalizer.php | 35 ++++--- src/Runtime/Client/BaseEndpoint.php | 6 +- src/Runtime/Client/Client.php | 8 +- src/Runtime/Client/Endpoint.php | 2 + src/Runtime/Normalizer/CheckArray.php | 2 +- 698 files changed, 9352 insertions(+), 6200 deletions(-) diff --git a/src/Authentication/ApiKeyAuthentication.php b/src/Authentication/ApiKeyAuthentication.php index fb29ca6b..4b87179e 100644 --- a/src/Authentication/ApiKeyAuthentication.php +++ b/src/Authentication/ApiKeyAuthentication.php @@ -21,9 +21,7 @@ public function __construct(string $apiKey) public function authentication(\Psr\Http\Message\RequestInterface $request): \Psr\Http\Message\RequestInterface { - $request = $request->withHeader('Authorization', $this->{'apiKey'}); - - return $request; + return $request->withHeader('Authorization', $this->{'apiKey'}); } public function getScope(): string diff --git a/src/Client.php b/src/Client.php index 10288b53..878ba43b 100644 --- a/src/Client.php +++ b/src/Client.php @@ -92,8 +92,8 @@ public function getOfferItem(string $id, string $fetch = self::FETCH_OBJECT) /** * Updates the Offer resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \Gyroscops\Api\Model\Offer|\Psr\Http\Message\ResponseInterface|null * @@ -192,8 +192,8 @@ public function getOrganizationItem(string $id, string $fetch = self::FETCH_OBJE /** * Updates the Organization resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null * @@ -362,8 +362,8 @@ public function getSubscriptionItem(string $id, string $fetch = self::FETCH_OBJE /** * Updates the Subscription resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \Gyroscops\Api\Model\Subscription|\Psr\Http\Message\ResponseInterface|null * @@ -472,7 +472,8 @@ public function apiSubscriptionsOrganizationGetSubresourceSubscriptionSubresourc } /** - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * * @return \Gyroscops\Api\Model\Token|\Psr\Http\Message\ResponseInterface|null */ public function postCredentialsItem(?Model\Credentials $requestBody = null, string $fetch = self::FETCH_OBJECT) @@ -523,8 +524,8 @@ public function getUserAuthorizationItem(string $id, string $fetch = self::FETCH /** * Updates the UserAuthorization resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \Gyroscops\Api\Model\UserAuthorization|\Psr\Http\Message\ResponseInterface|null * @@ -621,8 +622,8 @@ public function getUserItem(string $id, string $fetch = self::FETCH_OBJECT) /** * Updates the User resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null * @@ -674,8 +675,8 @@ public function apiUsersAuthorizationsGetSubresourceUserSubresource(string $id, /** * Updates the User resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null * @@ -754,8 +755,8 @@ public function getWorkspaceItem(string $id, string $fetch = self::FETCH_OBJECT) /** * Updates the Workspace resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \Gyroscops\Api\Model\Workspace|\Psr\Http\Message\ResponseInterface|null * @@ -2973,12 +2974,11 @@ public function getPipelineCollection(array $queryParameters = [], string $fetch } /** - In order to differentiate the different types of schedules, we have set up a field named "type" : + * In order to differentiate the different types of schedules, we have set up a field named "type" : * 1 => Immediate * 2 => Once * 3 => Times * 4 => Until. - * * @param \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInputJsonld|\Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) @@ -3439,7 +3439,7 @@ public static function create($httpClient = null, array $additionalPlugins = [], if (null === $httpClient) { $httpClient = \Http\Discovery\Psr18ClientDiscovery::find(); $plugins = []; - if (count($additionalPlugins) > 0) { + if (\count($additionalPlugins) > 0) { $plugins = array_merge($plugins, $additionalPlugins); } $httpClient = new \Http\Client\Common\PluginClient($httpClient, $plugins); @@ -3447,7 +3447,7 @@ public static function create($httpClient = null, array $additionalPlugins = [], $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); $streamFactory = \Http\Discovery\Psr17FactoryDiscovery::findStreamFactory(); $normalizers = [new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer(), new \Gyroscops\Api\Normalizer\JaneObjectNormalizer()]; - if (count($additionalNormalizers) > 0) { + if (\count($additionalNormalizers) > 0) { $normalizers = array_merge($normalizers, $additionalNormalizers); } $serializer = new \Symfony\Component\Serializer\Serializer($normalizers, [new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode(['json_decode_associative' => true]))]); diff --git a/src/Endpoint/AcceptReferralRequestReferralRequestItem.php b/src/Endpoint/AcceptReferralRequestReferralRequestItem.php index ec2bad03..209981ff 100644 --- a/src/Endpoint/AcceptReferralRequestReferralRequestItem.php +++ b/src/Endpoint/AcceptReferralRequestReferralRequestItem.php @@ -58,7 +58,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ReferralRequestReferralRequestRead::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/AddAfterPipelineStepPipelineItem.php b/src/Endpoint/AddAfterPipelineStepPipelineItem.php index 2075c0a7..040a4809 100644 --- a/src/Endpoint/AddAfterPipelineStepPipelineItem.php +++ b/src/Endpoint/AddAfterPipelineStepPipelineItem.php @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\AddAfterPipelineStepPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AddAfterPipelineStepPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddAfterPipelineStepPipelineItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\AddAfterPipelineStepPipelineItemBadRequestException(); diff --git a/src/Endpoint/AddBeforePipelineStepPipelineItem.php b/src/Endpoint/AddBeforePipelineStepPipelineItem.php index a0ee1cfa..fb3f7217 100644 --- a/src/Endpoint/AddBeforePipelineStepPipelineItem.php +++ b/src/Endpoint/AddBeforePipelineStepPipelineItem.php @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\AddBeforePipelineStepPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AddBeforePipelineStepPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddBeforePipelineStepPipelineItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\AddBeforePipelineStepPipelineItemBadRequestException(); diff --git a/src/Endpoint/AddComposerAuthPipelinePipelineItem.php b/src/Endpoint/AddComposerAuthPipelinePipelineItem.php index d847c1df..4c0d29e2 100644 --- a/src/Endpoint/AddComposerAuthPipelinePipelineItem.php +++ b/src/Endpoint/AddComposerAuthPipelinePipelineItem.php @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\AddComposerAuthPipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AddComposerAuthPipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddComposerAuthPipelinePipelineItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\AddComposerAuthPipelinePipelineItemBadRequestException(); diff --git a/src/Endpoint/AddComposerAutoloadPipelinePipelineItem.php b/src/Endpoint/AddComposerAutoloadPipelinePipelineItem.php index c0cc5cd1..5cbe90a7 100644 --- a/src/Endpoint/AddComposerAutoloadPipelinePipelineItem.php +++ b/src/Endpoint/AddComposerAutoloadPipelinePipelineItem.php @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\AddComposerAutoloadPipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AddComposerAutoloadPipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddComposerAutoloadPipelinePipelineItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\AddComposerAutoloadPipelinePipelineItemBadRequestException(); diff --git a/src/Endpoint/AddComposerPackagePipelinePipelineItem.php b/src/Endpoint/AddComposerPackagePipelinePipelineItem.php index ee1743ce..1038a788 100644 --- a/src/Endpoint/AddComposerPackagePipelinePipelineItem.php +++ b/src/Endpoint/AddComposerPackagePipelinePipelineItem.php @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\AddComposerPackagePipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AddComposerPackagePipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddComposerPackagePipelinePipelineItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\AddComposerPackagePipelinePipelineItemBadRequestException(); diff --git a/src/Endpoint/AddComposerRepositoryPipelinePipelineItem.php b/src/Endpoint/AddComposerRepositoryPipelinePipelineItem.php index e3f65374..1bcbe98d 100644 --- a/src/Endpoint/AddComposerRepositoryPipelinePipelineItem.php +++ b/src/Endpoint/AddComposerRepositoryPipelinePipelineItem.php @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\AddComposerRepositoryPipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AddComposerRepositoryPipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddComposerRepositoryPipelinePipelineItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\AddComposerRepositoryPipelinePipelineItemBadRequestException(); diff --git a/src/Endpoint/AddPipelineStepProbePipelineItem.php b/src/Endpoint/AddPipelineStepProbePipelineItem.php index 41fe2fe0..e5534bcd 100644 --- a/src/Endpoint/AddPipelineStepProbePipelineItem.php +++ b/src/Endpoint/AddPipelineStepProbePipelineItem.php @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\AddPipelineStepProbePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AddPipelineStepProbePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddPipelineStepProbePipelineItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\AddPipelineStepProbePipelineItemBadRequestException(); diff --git a/src/Endpoint/AddVariablesFromConfigurationEnvironmentItem.php b/src/Endpoint/AddVariablesFromConfigurationEnvironmentItem.php index 86874a2a..a3f223bd 100644 --- a/src/Endpoint/AddVariablesFromConfigurationEnvironmentItem.php +++ b/src/Endpoint/AddVariablesFromConfigurationEnvironmentItem.php @@ -71,7 +71,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\EnvironmentRead::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/AddVariablesFromConstantEnvironmentItem.php b/src/Endpoint/AddVariablesFromConstantEnvironmentItem.php index a69afc27..5b5e7424 100644 --- a/src/Endpoint/AddVariablesFromConstantEnvironmentItem.php +++ b/src/Endpoint/AddVariablesFromConstantEnvironmentItem.php @@ -68,7 +68,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\EnvironmentRead::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/AddVariablesFromSecretEnvironmentItem.php b/src/Endpoint/AddVariablesFromSecretEnvironmentItem.php index 1da9cbaa..8ffcb8a9 100644 --- a/src/Endpoint/AddVariablesFromSecretEnvironmentItem.php +++ b/src/Endpoint/AddVariablesFromSecretEnvironmentItem.php @@ -71,7 +71,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\EnvironmentRead::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/ApiActionsOrganizationGetSubresourceActionSubresource.php b/src/Endpoint/ApiActionsOrganizationGetSubresourceActionSubresource.php index 463f8ff3..76afd82c 100644 --- a/src/Endpoint/ApiActionsOrganizationGetSubresourceActionSubresource.php +++ b/src/Endpoint/ApiActionsOrganizationGetSubresourceActionSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); } } diff --git a/src/Endpoint/ApiActionsOwnerGetSubresourceActionSubresource.php b/src/Endpoint/ApiActionsOwnerGetSubresourceActionSubresource.php index eab55907..75d9340e 100644 --- a/src/Endpoint/ApiActionsOwnerGetSubresourceActionSubresource.php +++ b/src/Endpoint/ApiActionsOwnerGetSubresourceActionSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); } } diff --git a/src/Endpoint/ApiActionsWorkspaceGetSubresourceActionSubresource.php b/src/Endpoint/ApiActionsWorkspaceGetSubresourceActionSubresource.php index 910ad1a3..b349af45 100644 --- a/src/Endpoint/ApiActionsWorkspaceGetSubresourceActionSubresource.php +++ b/src/Endpoint/ApiActionsWorkspaceGetSubresourceActionSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); } } diff --git a/src/Endpoint/ApiCompilationsOrganizationGetSubresourceCompilationSubresource.php b/src/Endpoint/ApiCompilationsOrganizationGetSubresourceCompilationSubresource.php index fe3c09a3..5cede46c 100644 --- a/src/Endpoint/ApiCompilationsOrganizationGetSubresourceCompilationSubresource.php +++ b/src/Endpoint/ApiCompilationsOrganizationGetSubresourceCompilationSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); } } diff --git a/src/Endpoint/ApiCompilationsUserGetSubresourceCompilationSubresource.php b/src/Endpoint/ApiCompilationsUserGetSubresourceCompilationSubresource.php index 3efd9da3..967c5a64 100644 --- a/src/Endpoint/ApiCompilationsUserGetSubresourceCompilationSubresource.php +++ b/src/Endpoint/ApiCompilationsUserGetSubresourceCompilationSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); } } diff --git a/src/Endpoint/ApiCompilationsWorkspaceGetSubresourceCompilationSubresource.php b/src/Endpoint/ApiCompilationsWorkspaceGetSubresourceCompilationSubresource.php index cca339e0..34b17570 100644 --- a/src/Endpoint/ApiCompilationsWorkspaceGetSubresourceCompilationSubresource.php +++ b/src/Endpoint/ApiCompilationsWorkspaceGetSubresourceCompilationSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); } } diff --git a/src/Endpoint/ApiEnvironmentsVariablesGetSubresourceEnvironmentSubresource.php b/src/Endpoint/ApiEnvironmentsVariablesGetSubresourceEnvironmentSubresource.php index 366fb515..f528e546 100644 --- a/src/Endpoint/ApiEnvironmentsVariablesGetSubresourceEnvironmentSubresource.php +++ b/src/Endpoint/ApiEnvironmentsVariablesGetSubresourceEnvironmentSubresource.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\VariableRead[]', 'json'); } } diff --git a/src/Endpoint/ApiExecutionPipelineJobsStepsGetSubresourceExecutionPipelineJobSubresource.php b/src/Endpoint/ApiExecutionPipelineJobsStepsGetSubresourceExecutionPipelineJobSubresource.php index af941238..699727f4 100644 --- a/src/Endpoint/ApiExecutionPipelineJobsStepsGetSubresourceExecutionPipelineJobSubresource.php +++ b/src/Endpoint/ApiExecutionPipelineJobsStepsGetSubresourceExecutionPipelineJobSubresource.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineStep[]', 'json'); } } diff --git a/src/Endpoint/ApiExecutionPipelinesStepsGetSubresourceExecutionPipelineSubresource.php b/src/Endpoint/ApiExecutionPipelinesStepsGetSubresourceExecutionPipelineSubresource.php index 40e31477..f984fb78 100644 --- a/src/Endpoint/ApiExecutionPipelinesStepsGetSubresourceExecutionPipelineSubresource.php +++ b/src/Endpoint/ApiExecutionPipelinesStepsGetSubresourceExecutionPipelineSubresource.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineStep[]', 'json'); } } diff --git a/src/Endpoint/ApiExecutionWorkflowJobsActionGetSubresourceExecutionWorkflowJobSubresource.php b/src/Endpoint/ApiExecutionWorkflowJobsActionGetSubresourceExecutionWorkflowJobSubresource.php index 7e7b50e7..3d6e6c32 100644 --- a/src/Endpoint/ApiExecutionWorkflowJobsActionGetSubresourceExecutionWorkflowJobSubresource.php +++ b/src/Endpoint/ApiExecutionWorkflowJobsActionGetSubresourceExecutionWorkflowJobSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionWorkflowJobAction::class, 'json'); } } diff --git a/src/Endpoint/ApiExecutionWorkflowJobsPipelineGetSubresourceExecutionWorkflowJobSubresource.php b/src/Endpoint/ApiExecutionWorkflowJobsPipelineGetSubresourceExecutionWorkflowJobSubresource.php index dfcd6596..110f8ae7 100644 --- a/src/Endpoint/ApiExecutionWorkflowJobsPipelineGetSubresourceExecutionWorkflowJobSubresource.php +++ b/src/Endpoint/ApiExecutionWorkflowJobsPipelineGetSubresourceExecutionWorkflowJobSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionPipelineJob::class, 'json'); } } diff --git a/src/Endpoint/ApiExecutionWorkflowJobsPipelineStepsGetSubresourceExecutionWorkflowJobSubresource.php b/src/Endpoint/ApiExecutionWorkflowJobsPipelineStepsGetSubresourceExecutionWorkflowJobSubresource.php index d3129e47..71e84f9a 100644 --- a/src/Endpoint/ApiExecutionWorkflowJobsPipelineStepsGetSubresourceExecutionWorkflowJobSubresource.php +++ b/src/Endpoint/ApiExecutionWorkflowJobsPipelineStepsGetSubresourceExecutionWorkflowJobSubresource.php @@ -71,7 +71,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineStep[]', 'json'); } } diff --git a/src/Endpoint/ApiExecutionWorkflowsJobsActionGetSubresourceExecutionWorkflowSubresource.php b/src/Endpoint/ApiExecutionWorkflowsJobsActionGetSubresourceExecutionWorkflowSubresource.php index 74967c6d..830de47c 100644 --- a/src/Endpoint/ApiExecutionWorkflowsJobsActionGetSubresourceExecutionWorkflowSubresource.php +++ b/src/Endpoint/ApiExecutionWorkflowsJobsActionGetSubresourceExecutionWorkflowSubresource.php @@ -55,7 +55,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionWorkflowJobAction::class, 'json'); } } diff --git a/src/Endpoint/ApiExecutionWorkflowsJobsGetSubresourceExecutionWorkflowSubresource.php b/src/Endpoint/ApiExecutionWorkflowsJobsGetSubresourceExecutionWorkflowSubresource.php index f223e92f..76a6054c 100644 --- a/src/Endpoint/ApiExecutionWorkflowsJobsGetSubresourceExecutionWorkflowSubresource.php +++ b/src/Endpoint/ApiExecutionWorkflowsJobsGetSubresourceExecutionWorkflowSubresource.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJob[]', 'json'); } } diff --git a/src/Endpoint/ApiExecutionWorkflowsJobsPipelineGetSubresourceExecutionWorkflowSubresource.php b/src/Endpoint/ApiExecutionWorkflowsJobsPipelineGetSubresourceExecutionWorkflowSubresource.php index 2fde3b0e..6239650c 100644 --- a/src/Endpoint/ApiExecutionWorkflowsJobsPipelineGetSubresourceExecutionWorkflowSubresource.php +++ b/src/Endpoint/ApiExecutionWorkflowsJobsPipelineGetSubresourceExecutionWorkflowSubresource.php @@ -55,7 +55,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionPipelineJob::class, 'json'); } } diff --git a/src/Endpoint/ApiExecutionsActionGetSubresourceExecutionSubresource.php b/src/Endpoint/ApiExecutionsActionGetSubresourceExecutionSubresource.php index 14c14362..d1434cfb 100644 --- a/src/Endpoint/ApiExecutionsActionGetSubresourceExecutionSubresource.php +++ b/src/Endpoint/ApiExecutionsActionGetSubresourceExecutionSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionAction::class, 'json'); } } diff --git a/src/Endpoint/ApiExecutionsOrganizationGetSubresourceExecutionSubresource.php b/src/Endpoint/ApiExecutionsOrganizationGetSubresourceExecutionSubresource.php index 0a2f3864..32250dec 100644 --- a/src/Endpoint/ApiExecutionsOrganizationGetSubresourceExecutionSubresource.php +++ b/src/Endpoint/ApiExecutionsOrganizationGetSubresourceExecutionSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); } } diff --git a/src/Endpoint/ApiExecutionsOwnerGetSubresourceExecutionSubresource.php b/src/Endpoint/ApiExecutionsOwnerGetSubresourceExecutionSubresource.php index b0aff3f2..67a2b6e4 100644 --- a/src/Endpoint/ApiExecutionsOwnerGetSubresourceExecutionSubresource.php +++ b/src/Endpoint/ApiExecutionsOwnerGetSubresourceExecutionSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); } } diff --git a/src/Endpoint/ApiExecutionsPipelineGetSubresourceExecutionSubresource.php b/src/Endpoint/ApiExecutionsPipelineGetSubresourceExecutionSubresource.php index 447231e6..7fe79866 100644 --- a/src/Endpoint/ApiExecutionsPipelineGetSubresourceExecutionSubresource.php +++ b/src/Endpoint/ApiExecutionsPipelineGetSubresourceExecutionSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionPipeline::class, 'json'); } } diff --git a/src/Endpoint/ApiExecutionsWorkflowGetSubresourceExecutionSubresource.php b/src/Endpoint/ApiExecutionsWorkflowGetSubresourceExecutionSubresource.php index ca36ccfa..a05202c2 100644 --- a/src/Endpoint/ApiExecutionsWorkflowGetSubresourceExecutionSubresource.php +++ b/src/Endpoint/ApiExecutionsWorkflowGetSubresourceExecutionSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionWorkflow::class, 'json'); } } diff --git a/src/Endpoint/ApiExecutionsWorkflowJobsGetSubresourceExecutionSubresource.php b/src/Endpoint/ApiExecutionsWorkflowJobsGetSubresourceExecutionSubresource.php index 3d69fd52..7774ee48 100644 --- a/src/Endpoint/ApiExecutionsWorkflowJobsGetSubresourceExecutionSubresource.php +++ b/src/Endpoint/ApiExecutionsWorkflowJobsGetSubresourceExecutionSubresource.php @@ -71,7 +71,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJob[]', 'json'); } } diff --git a/src/Endpoint/ApiExecutionsWorkspaceGetSubresourceExecutionSubresource.php b/src/Endpoint/ApiExecutionsWorkspaceGetSubresourceExecutionSubresource.php index c25ec95d..ac19bd34 100644 --- a/src/Endpoint/ApiExecutionsWorkspaceGetSubresourceExecutionSubresource.php +++ b/src/Endpoint/ApiExecutionsWorkspaceGetSubresourceExecutionSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); } } diff --git a/src/Endpoint/ApiOffersOptionsGetSubresourceOfferSubresource.php b/src/Endpoint/ApiOffersOptionsGetSubresourceOfferSubresource.php index 180efb09..30293d0a 100644 --- a/src/Endpoint/ApiOffersOptionsGetSubresourceOfferSubresource.php +++ b/src/Endpoint/ApiOffersOptionsGetSubresourceOfferSubresource.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Option[]', 'json'); } } diff --git a/src/Endpoint/ApiOrganizationsAuthorizationsGetSubresourceOrganizationSubresource.php b/src/Endpoint/ApiOrganizationsAuthorizationsGetSubresourceOrganizationSubresource.php index a9955365..1a5e40f5 100644 --- a/src/Endpoint/ApiOrganizationsAuthorizationsGetSubresourceOrganizationSubresource.php +++ b/src/Endpoint/ApiOrganizationsAuthorizationsGetSubresourceOrganizationSubresource.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserAuthorization[]', 'json'); } } diff --git a/src/Endpoint/ApiOrganizationsExternalCollaboratorsGetSubresourceOrganizationSubresource.php b/src/Endpoint/ApiOrganizationsExternalCollaboratorsGetSubresourceOrganizationSubresource.php index 2b4c8fbf..e16d97ca 100644 --- a/src/Endpoint/ApiOrganizationsExternalCollaboratorsGetSubresourceOrganizationSubresource.php +++ b/src/Endpoint/ApiOrganizationsExternalCollaboratorsGetSubresourceOrganizationSubresource.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User[]', 'json'); } } diff --git a/src/Endpoint/ApiOrganizationsUsersGetSubresourceOrganizationSubresource.php b/src/Endpoint/ApiOrganizationsUsersGetSubresourceOrganizationSubresource.php index 64f56878..42a2aeeb 100644 --- a/src/Endpoint/ApiOrganizationsUsersGetSubresourceOrganizationSubresource.php +++ b/src/Endpoint/ApiOrganizationsUsersGetSubresourceOrganizationSubresource.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User[]', 'json'); } } diff --git a/src/Endpoint/ApiOrganizationsWorkspacesGetSubresourceOrganizationSubresource.php b/src/Endpoint/ApiOrganizationsWorkspacesGetSubresourceOrganizationSubresource.php index 1666f97c..97c4524e 100644 --- a/src/Endpoint/ApiOrganizationsWorkspacesGetSubresourceOrganizationSubresource.php +++ b/src/Endpoint/ApiOrganizationsWorkspacesGetSubresourceOrganizationSubresource.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Workspace[]', 'json'); } } diff --git a/src/Endpoint/ApiPipelineStepsProbesGetSubresourcePipelineStepSubresource.php b/src/Endpoint/ApiPipelineStepsProbesGetSubresourcePipelineStepSubresource.php index d5e133b1..1f18c62a 100644 --- a/src/Endpoint/ApiPipelineStepsProbesGetSubresourcePipelineStepSubresource.php +++ b/src/Endpoint/ApiPipelineStepsProbesGetSubresourcePipelineStepSubresource.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineStepProbe[]', 'json'); } } diff --git a/src/Endpoint/ApiPipelinesCompilationsGetSubresourcePipelineSubresource.php b/src/Endpoint/ApiPipelinesCompilationsGetSubresourcePipelineSubresource.php index f1c242de..cc215557 100644 --- a/src/Endpoint/ApiPipelinesCompilationsGetSubresourcePipelineSubresource.php +++ b/src/Endpoint/ApiPipelinesCompilationsGetSubresourcePipelineSubresource.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Compilation[]', 'json'); } } diff --git a/src/Endpoint/ApiPipelinesOrganizationGetSubresourcePipelineSubresource.php b/src/Endpoint/ApiPipelinesOrganizationGetSubresourcePipelineSubresource.php index a79631ef..3e29ff09 100644 --- a/src/Endpoint/ApiPipelinesOrganizationGetSubresourcePipelineSubresource.php +++ b/src/Endpoint/ApiPipelinesOrganizationGetSubresourcePipelineSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); } } diff --git a/src/Endpoint/ApiPipelinesOwnerGetSubresourcePipelineSubresource.php b/src/Endpoint/ApiPipelinesOwnerGetSubresourcePipelineSubresource.php index e82f511d..1f198b75 100644 --- a/src/Endpoint/ApiPipelinesOwnerGetSubresourcePipelineSubresource.php +++ b/src/Endpoint/ApiPipelinesOwnerGetSubresourcePipelineSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); } } diff --git a/src/Endpoint/ApiPipelinesStepsGetSubresourcePipelineSubresource.php b/src/Endpoint/ApiPipelinesStepsGetSubresourcePipelineSubresource.php index 623174b3..5241e9b9 100644 --- a/src/Endpoint/ApiPipelinesStepsGetSubresourcePipelineSubresource.php +++ b/src/Endpoint/ApiPipelinesStepsGetSubresourcePipelineSubresource.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineStep[]', 'json'); } } diff --git a/src/Endpoint/ApiPipelinesWorkspaceGetSubresourcePipelineSubresource.php b/src/Endpoint/ApiPipelinesWorkspaceGetSubresourcePipelineSubresource.php index 0e06ff4d..9b6e2a59 100644 --- a/src/Endpoint/ApiPipelinesWorkspaceGetSubresourcePipelineSubresource.php +++ b/src/Endpoint/ApiPipelinesWorkspaceGetSubresourcePipelineSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); } } diff --git a/src/Endpoint/ApiSchedulesExecutionsGetSubresourceScheduleSubresource.php b/src/Endpoint/ApiSchedulesExecutionsGetSubresourceScheduleSubresource.php index ffcd844f..adcb90dd 100644 --- a/src/Endpoint/ApiSchedulesExecutionsGetSubresourceScheduleSubresource.php +++ b/src/Endpoint/ApiSchedulesExecutionsGetSubresourceScheduleSubresource.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionRead[]', 'json'); } } diff --git a/src/Endpoint/ApiSchedulesOrganizationGetSubresourceScheduleSubresource.php b/src/Endpoint/ApiSchedulesOrganizationGetSubresourceScheduleSubresource.php index 2d9815e7..3d476909 100644 --- a/src/Endpoint/ApiSchedulesOrganizationGetSubresourceScheduleSubresource.php +++ b/src/Endpoint/ApiSchedulesOrganizationGetSubresourceScheduleSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); } } diff --git a/src/Endpoint/ApiSchedulesOwnerGetSubresourceScheduleSubresource.php b/src/Endpoint/ApiSchedulesOwnerGetSubresourceScheduleSubresource.php index 7c865c26..45de8f0c 100644 --- a/src/Endpoint/ApiSchedulesOwnerGetSubresourceScheduleSubresource.php +++ b/src/Endpoint/ApiSchedulesOwnerGetSubresourceScheduleSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); } } diff --git a/src/Endpoint/ApiSchedulesPipelineGetSubresourceScheduleSubresource.php b/src/Endpoint/ApiSchedulesPipelineGetSubresourceScheduleSubresource.php index 00d6aa59..da446b42 100644 --- a/src/Endpoint/ApiSchedulesPipelineGetSubresourceScheduleSubresource.php +++ b/src/Endpoint/ApiSchedulesPipelineGetSubresourceScheduleSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\PipelineRead::class, 'json'); } } diff --git a/src/Endpoint/ApiSchedulesWorkflowGetSubresourceScheduleSubresource.php b/src/Endpoint/ApiSchedulesWorkflowGetSubresourceScheduleSubresource.php index 1f9a63a2..90a39c06 100644 --- a/src/Endpoint/ApiSchedulesWorkflowGetSubresourceScheduleSubresource.php +++ b/src/Endpoint/ApiSchedulesWorkflowGetSubresourceScheduleSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\WorkflowRead::class, 'json'); } } diff --git a/src/Endpoint/ApiSchedulesWorkflowJobsGetSubresourceScheduleSubresource.php b/src/Endpoint/ApiSchedulesWorkflowJobsGetSubresourceScheduleSubresource.php index 11752048..ac1ebe54 100644 --- a/src/Endpoint/ApiSchedulesWorkflowJobsGetSubresourceScheduleSubresource.php +++ b/src/Endpoint/ApiSchedulesWorkflowJobsGetSubresourceScheduleSubresource.php @@ -71,7 +71,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowJobRead[]', 'json'); } } diff --git a/src/Endpoint/ApiSchedulesWorkflowOrganizationGetSubresourceScheduleSubresource.php b/src/Endpoint/ApiSchedulesWorkflowOrganizationGetSubresourceScheduleSubresource.php index a55711b8..a79c7643 100644 --- a/src/Endpoint/ApiSchedulesWorkflowOrganizationGetSubresourceScheduleSubresource.php +++ b/src/Endpoint/ApiSchedulesWorkflowOrganizationGetSubresourceScheduleSubresource.php @@ -55,7 +55,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); } } diff --git a/src/Endpoint/ApiSchedulesWorkflowOwnerGetSubresourceScheduleSubresource.php b/src/Endpoint/ApiSchedulesWorkflowOwnerGetSubresourceScheduleSubresource.php index d9f12e37..94c9a883 100644 --- a/src/Endpoint/ApiSchedulesWorkflowOwnerGetSubresourceScheduleSubresource.php +++ b/src/Endpoint/ApiSchedulesWorkflowOwnerGetSubresourceScheduleSubresource.php @@ -55,7 +55,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); } } diff --git a/src/Endpoint/ApiSchedulesWorkflowWorkspaceGetSubresourceScheduleSubresource.php b/src/Endpoint/ApiSchedulesWorkflowWorkspaceGetSubresourceScheduleSubresource.php index f6f25624..f7fdbd00 100644 --- a/src/Endpoint/ApiSchedulesWorkflowWorkspaceGetSubresourceScheduleSubresource.php +++ b/src/Endpoint/ApiSchedulesWorkflowWorkspaceGetSubresourceScheduleSubresource.php @@ -55,7 +55,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); } } diff --git a/src/Endpoint/ApiSchedulesWorkspaceGetSubresourceScheduleSubresource.php b/src/Endpoint/ApiSchedulesWorkspaceGetSubresourceScheduleSubresource.php index 40a806b2..bce82912 100644 --- a/src/Endpoint/ApiSchedulesWorkspaceGetSubresourceScheduleSubresource.php +++ b/src/Endpoint/ApiSchedulesWorkspaceGetSubresourceScheduleSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); } } diff --git a/src/Endpoint/ApiSubscriptionsOfferGetSubresourceSubscriptionSubresource.php b/src/Endpoint/ApiSubscriptionsOfferGetSubresourceSubscriptionSubresource.php index a66751f5..4cd0aa9c 100644 --- a/src/Endpoint/ApiSubscriptionsOfferGetSubresourceSubscriptionSubresource.php +++ b/src/Endpoint/ApiSubscriptionsOfferGetSubresourceSubscriptionSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Offer::class, 'json'); } } diff --git a/src/Endpoint/ApiSubscriptionsOptionsGetSubresourceSubscriptionSubresource.php b/src/Endpoint/ApiSubscriptionsOptionsGetSubresourceSubscriptionSubresource.php index 8dad3eb8..02198ba2 100644 --- a/src/Endpoint/ApiSubscriptionsOptionsGetSubresourceSubscriptionSubresource.php +++ b/src/Endpoint/ApiSubscriptionsOptionsGetSubresourceSubscriptionSubresource.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SubscriptionOption[]', 'json'); } } diff --git a/src/Endpoint/ApiSubscriptionsOrganizationGetSubresourceSubscriptionSubresource.php b/src/Endpoint/ApiSubscriptionsOrganizationGetSubresourceSubscriptionSubresource.php index ef7340a7..fb84585d 100644 --- a/src/Endpoint/ApiSubscriptionsOrganizationGetSubresourceSubscriptionSubresource.php +++ b/src/Endpoint/ApiSubscriptionsOrganizationGetSubresourceSubscriptionSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); } } diff --git a/src/Endpoint/ApiUsersAuthorizationsGetSubresourceUserSubresource.php b/src/Endpoint/ApiUsersAuthorizationsGetSubresourceUserSubresource.php index c5a299d0..9949a4d5 100644 --- a/src/Endpoint/ApiUsersAuthorizationsGetSubresourceUserSubresource.php +++ b/src/Endpoint/ApiUsersAuthorizationsGetSubresourceUserSubresource.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserAuthorization[]', 'json'); } } diff --git a/src/Endpoint/ApiWorkflowJobPipelinesStepsGetSubresourceWorkflowJobPipelineSubresource.php b/src/Endpoint/ApiWorkflowJobPipelinesStepsGetSubresourceWorkflowJobPipelineSubresource.php index 6182bcf0..96a11ed9 100644 --- a/src/Endpoint/ApiWorkflowJobPipelinesStepsGetSubresourceWorkflowJobPipelineSubresource.php +++ b/src/Endpoint/ApiWorkflowJobPipelinesStepsGetSubresourceWorkflowJobPipelineSubresource.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineStep[]', 'json'); } } diff --git a/src/Endpoint/ApiWorkflowsJobsGetSubresourceWorkflowSubresource.php b/src/Endpoint/ApiWorkflowsJobsGetSubresourceWorkflowSubresource.php index 114a00ee..5dfae6f4 100644 --- a/src/Endpoint/ApiWorkflowsJobsGetSubresourceWorkflowSubresource.php +++ b/src/Endpoint/ApiWorkflowsJobsGetSubresourceWorkflowSubresource.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowJobRead[]', 'json'); } } diff --git a/src/Endpoint/ApiWorkflowsOrganizationGetSubresourceWorkflowSubresource.php b/src/Endpoint/ApiWorkflowsOrganizationGetSubresourceWorkflowSubresource.php index f7d69c28..1e3ee1cd 100644 --- a/src/Endpoint/ApiWorkflowsOrganizationGetSubresourceWorkflowSubresource.php +++ b/src/Endpoint/ApiWorkflowsOrganizationGetSubresourceWorkflowSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); } } diff --git a/src/Endpoint/ApiWorkflowsOwnerGetSubresourceWorkflowSubresource.php b/src/Endpoint/ApiWorkflowsOwnerGetSubresourceWorkflowSubresource.php index a154c203..67a0c1c9 100644 --- a/src/Endpoint/ApiWorkflowsOwnerGetSubresourceWorkflowSubresource.php +++ b/src/Endpoint/ApiWorkflowsOwnerGetSubresourceWorkflowSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); } } diff --git a/src/Endpoint/ApiWorkflowsWorkspaceGetSubresourceWorkflowSubresource.php b/src/Endpoint/ApiWorkflowsWorkspaceGetSubresourceWorkflowSubresource.php index d1991919..55c1a9dd 100644 --- a/src/Endpoint/ApiWorkflowsWorkspaceGetSubresourceWorkflowSubresource.php +++ b/src/Endpoint/ApiWorkflowsWorkspaceGetSubresourceWorkflowSubresource.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); } } diff --git a/src/Endpoint/ApiWorkspacesAuthorizationsGetSubresourceWorkspaceSubresource.php b/src/Endpoint/ApiWorkspacesAuthorizationsGetSubresourceWorkspaceSubresource.php index 6e6a2169..05c1d0b3 100644 --- a/src/Endpoint/ApiWorkspacesAuthorizationsGetSubresourceWorkspaceSubresource.php +++ b/src/Endpoint/ApiWorkspacesAuthorizationsGetSubresourceWorkspaceSubresource.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserAuthorization[]', 'json'); } } diff --git a/src/Endpoint/ApiWorkspacesUsersGetSubresourceWorkspaceSubresource.php b/src/Endpoint/ApiWorkspacesUsersGetSubresourceWorkspaceSubresource.php index 5e449ceb..5a255a40 100644 --- a/src/Endpoint/ApiWorkspacesUsersGetSubresourceWorkspaceSubresource.php +++ b/src/Endpoint/ApiWorkspacesUsersGetSubresourceWorkspaceSubresource.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User[]', 'json'); } } diff --git a/src/Endpoint/AppendPipelineStepPipelineItem.php b/src/Endpoint/AppendPipelineStepPipelineItem.php index ada73a3e..d641c305 100644 --- a/src/Endpoint/AppendPipelineStepPipelineItem.php +++ b/src/Endpoint/AppendPipelineStepPipelineItem.php @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\AppendPipelineStepPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AppendPipelineStepPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AppendPipelineStepPipelineItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\AppendPipelineStepPipelineItemBadRequestException(); diff --git a/src/Endpoint/ChangePasswordUserItem.php b/src/Endpoint/ChangePasswordUserItem.php index 669e98e7..4c1c3817 100644 --- a/src/Endpoint/ChangePasswordUserItem.php +++ b/src/Endpoint/ChangePasswordUserItem.php @@ -61,7 +61,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/ChangeValuesConfigurationItem.php b/src/Endpoint/ChangeValuesConfigurationItem.php index 416c449b..4f25ec6f 100644 --- a/src/Endpoint/ChangeValuesConfigurationItem.php +++ b/src/Endpoint/ChangeValuesConfigurationItem.php @@ -68,7 +68,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Configuration::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/ChangeValuesSecretItem.php b/src/Endpoint/ChangeValuesSecretItem.php index 1a86d2a9..0b595517 100644 --- a/src/Endpoint/ChangeValuesSecretItem.php +++ b/src/Endpoint/ChangeValuesSecretItem.php @@ -68,7 +68,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Secret::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/DeclareExecutionExecutionCollection.php b/src/Endpoint/DeclareExecutionExecutionCollection.php index d4b129ec..6664dd03 100644 --- a/src/Endpoint/DeclareExecutionExecutionCollection.php +++ b/src/Endpoint/DeclareExecutionExecutionCollection.php @@ -57,15 +57,13 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\DeclareExecutionExecutionCollectionBadRequestException * @throws \Gyroscops\Api\Exception\DeclareExecutionExecutionCollectionUnprocessableEntityException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\DeclareExecutionExecutionCollectionBadRequestException(); diff --git a/src/Endpoint/DeclarePipelinePipelineCollection.php b/src/Endpoint/DeclarePipelinePipelineCollection.php index e12d40db..ee58bdbd 100644 --- a/src/Endpoint/DeclarePipelinePipelineCollection.php +++ b/src/Endpoint/DeclarePipelinePipelineCollection.php @@ -57,15 +57,13 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\DeclarePipelinePipelineCollectionBadRequestException * @throws \Gyroscops\Api\Exception\DeclarePipelinePipelineCollectionUnprocessableEntityException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\DeclarePipelinePipelineCollectionBadRequestException(); diff --git a/src/Endpoint/DeleteConfigurationItem.php b/src/Endpoint/DeleteConfigurationItem.php index 207fa213..62c7f44d 100644 --- a/src/Endpoint/DeleteConfigurationItem.php +++ b/src/Endpoint/DeleteConfigurationItem.php @@ -43,8 +43,6 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\DeleteConfigurationItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) diff --git a/src/Endpoint/DeleteEnvironmentItem.php b/src/Endpoint/DeleteEnvironmentItem.php index c6d509f9..ba5a9d64 100644 --- a/src/Endpoint/DeleteEnvironmentItem.php +++ b/src/Endpoint/DeleteEnvironmentItem.php @@ -43,8 +43,6 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\DeleteEnvironmentItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) diff --git a/src/Endpoint/DeleteOfferItem.php b/src/Endpoint/DeleteOfferItem.php index dba3d7b2..b775e290 100644 --- a/src/Endpoint/DeleteOfferItem.php +++ b/src/Endpoint/DeleteOfferItem.php @@ -43,8 +43,6 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\DeleteOfferItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) diff --git a/src/Endpoint/DeleteOrganizationItem.php b/src/Endpoint/DeleteOrganizationItem.php index a43509d0..454a17d2 100644 --- a/src/Endpoint/DeleteOrganizationItem.php +++ b/src/Endpoint/DeleteOrganizationItem.php @@ -43,8 +43,6 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\DeleteOrganizationItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) diff --git a/src/Endpoint/DeletePipelinePipelineItem.php b/src/Endpoint/DeletePipelinePipelineItem.php index 415df87f..a22847f5 100644 --- a/src/Endpoint/DeletePipelinePipelineItem.php +++ b/src/Endpoint/DeletePipelinePipelineItem.php @@ -43,8 +43,6 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\DeletePipelinePipelineItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) diff --git a/src/Endpoint/DeletePipelineStepPipelineItem.php b/src/Endpoint/DeletePipelineStepPipelineItem.php index dcc33a8e..34e649c6 100644 --- a/src/Endpoint/DeletePipelineStepPipelineItem.php +++ b/src/Endpoint/DeletePipelineStepPipelineItem.php @@ -46,8 +46,6 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\DeletePipelineStepPipelineItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) diff --git a/src/Endpoint/DeleteReferralCodeItem.php b/src/Endpoint/DeleteReferralCodeItem.php index cd4d9d69..644796ad 100644 --- a/src/Endpoint/DeleteReferralCodeItem.php +++ b/src/Endpoint/DeleteReferralCodeItem.php @@ -43,8 +43,6 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\DeleteReferralCodeItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) diff --git a/src/Endpoint/DeleteSecretItem.php b/src/Endpoint/DeleteSecretItem.php index 840780e0..2e3a1488 100644 --- a/src/Endpoint/DeleteSecretItem.php +++ b/src/Endpoint/DeleteSecretItem.php @@ -43,8 +43,6 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\DeleteSecretItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) diff --git a/src/Endpoint/DeleteSubscriptionItem.php b/src/Endpoint/DeleteSubscriptionItem.php index 1fe51cc6..b5d1a59c 100644 --- a/src/Endpoint/DeleteSubscriptionItem.php +++ b/src/Endpoint/DeleteSubscriptionItem.php @@ -43,8 +43,6 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\DeleteSubscriptionItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) diff --git a/src/Endpoint/DeleteUserAuthorizationItem.php b/src/Endpoint/DeleteUserAuthorizationItem.php index 087db084..e67994e4 100644 --- a/src/Endpoint/DeleteUserAuthorizationItem.php +++ b/src/Endpoint/DeleteUserAuthorizationItem.php @@ -43,8 +43,6 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\DeleteUserAuthorizationItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) diff --git a/src/Endpoint/DeleteUserItem.php b/src/Endpoint/DeleteUserItem.php index f0d08ec7..41bdaa48 100644 --- a/src/Endpoint/DeleteUserItem.php +++ b/src/Endpoint/DeleteUserItem.php @@ -43,8 +43,6 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\DeleteUserItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) diff --git a/src/Endpoint/DeleteVariableFromConfigurationItem.php b/src/Endpoint/DeleteVariableFromConfigurationItem.php index 48b448fd..509b14bc 100644 --- a/src/Endpoint/DeleteVariableFromConfigurationItem.php +++ b/src/Endpoint/DeleteVariableFromConfigurationItem.php @@ -43,8 +43,6 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\DeleteVariableFromConfigurationItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) diff --git a/src/Endpoint/DeleteVariableFromConstantItem.php b/src/Endpoint/DeleteVariableFromConstantItem.php index 73cc6ee6..646a70fa 100644 --- a/src/Endpoint/DeleteVariableFromConstantItem.php +++ b/src/Endpoint/DeleteVariableFromConstantItem.php @@ -43,8 +43,6 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\DeleteVariableFromConstantItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) diff --git a/src/Endpoint/DeleteVariableFromSecretItem.php b/src/Endpoint/DeleteVariableFromSecretItem.php index efdc013f..d879a765 100644 --- a/src/Endpoint/DeleteVariableFromSecretItem.php +++ b/src/Endpoint/DeleteVariableFromSecretItem.php @@ -43,8 +43,6 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\DeleteVariableFromSecretItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) diff --git a/src/Endpoint/DeleteWorkspaceItem.php b/src/Endpoint/DeleteWorkspaceItem.php index 8f835258..f2c3a76f 100644 --- a/src/Endpoint/DeleteWorkspaceItem.php +++ b/src/Endpoint/DeleteWorkspaceItem.php @@ -43,8 +43,6 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\DeleteWorkspaceItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) diff --git a/src/Endpoint/EditConfigurationItem.php b/src/Endpoint/EditConfigurationItem.php index 4a704f6b..32a2fb3f 100644 --- a/src/Endpoint/EditConfigurationItem.php +++ b/src/Endpoint/EditConfigurationItem.php @@ -68,7 +68,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Configuration::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/EditEnvironmentItem.php b/src/Endpoint/EditEnvironmentItem.php index 962f48f5..c1ff3f0c 100644 --- a/src/Endpoint/EditEnvironmentItem.php +++ b/src/Endpoint/EditEnvironmentItem.php @@ -68,7 +68,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\EnvironmentRead::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/EditSecretItem.php b/src/Endpoint/EditSecretItem.php index 2969c634..7bdd42df 100644 --- a/src/Endpoint/EditSecretItem.php +++ b/src/Endpoint/EditSecretItem.php @@ -68,7 +68,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Secret::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/EditVariableFromConfigurationItem.php b/src/Endpoint/EditVariableFromConfigurationItem.php index dea2c446..6e03c55f 100644 --- a/src/Endpoint/EditVariableFromConfigurationItem.php +++ b/src/Endpoint/EditVariableFromConfigurationItem.php @@ -43,7 +43,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria return [['Content-Type' => ['application/ld+json']], $this->body]; } if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, JSON_THROW_ON_ERROR)]; + return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; } if ($this->body instanceof \stdClass) { return [['Content-Type' => ['text/html']], $this->body]; @@ -68,7 +68,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\VariableFromConfigurationRead::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/EditVariableFromConstantItem.php b/src/Endpoint/EditVariableFromConstantItem.php index 07b6f9f9..5373dd53 100644 --- a/src/Endpoint/EditVariableFromConstantItem.php +++ b/src/Endpoint/EditVariableFromConstantItem.php @@ -43,7 +43,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria return [['Content-Type' => ['application/ld+json']], $this->body]; } if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, JSON_THROW_ON_ERROR)]; + return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; } if ($this->body instanceof \stdClass) { return [['Content-Type' => ['text/html']], $this->body]; @@ -68,7 +68,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\VariableFromConstantRead::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/EditVariableFromSecretItem.php b/src/Endpoint/EditVariableFromSecretItem.php index 7bb97536..9e17c49c 100644 --- a/src/Endpoint/EditVariableFromSecretItem.php +++ b/src/Endpoint/EditVariableFromSecretItem.php @@ -43,7 +43,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria return [['Content-Type' => ['application/ld+json']], $this->body]; } if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, JSON_THROW_ON_ERROR)]; + return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; } if ($this->body instanceof \stdClass) { return [['Content-Type' => ['text/html']], $this->body]; @@ -68,7 +68,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\VariableFromSecretRead::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/FinishExecutionExecutionItem.php b/src/Endpoint/FinishExecutionExecutionItem.php index 267fa8fe..84293484 100644 --- a/src/Endpoint/FinishExecutionExecutionItem.php +++ b/src/Endpoint/FinishExecutionExecutionItem.php @@ -43,7 +43,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria return [['Content-Type' => ['application/ld+json']], $this->body]; } if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, JSON_THROW_ON_ERROR)]; + return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; } if ($this->body instanceof \stdClass) { return [['Content-Type' => ['text/html']], $this->body]; @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\FinishExecutionExecutionItemBadRequestException * @throws \Gyroscops\Api\Exception\FinishExecutionExecutionItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\FinishExecutionExecutionItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\FinishExecutionExecutionItemBadRequestException(); diff --git a/src/Endpoint/GetActionCollection.php b/src/Endpoint/GetActionCollection.php index 5c13e71b..d1150f21 100644 --- a/src/Endpoint/GetActionCollection.php +++ b/src/Endpoint/GetActionCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ActionRead[]', 'json'); } } diff --git a/src/Endpoint/GetActionItem.php b/src/Endpoint/GetActionItem.php index 54fd402a..9d688eb8 100644 --- a/src/Endpoint/GetActionItem.php +++ b/src/Endpoint/GetActionItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ActionRead::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetAkeneoInstanceByPimUrlAkeneoInstanceCollection.php b/src/Endpoint/GetAkeneoInstanceByPimUrlAkeneoInstanceCollection.php index c9c103dd..c33e43d4 100644 --- a/src/Endpoint/GetAkeneoInstanceByPimUrlAkeneoInstanceCollection.php +++ b/src/Endpoint/GetAkeneoInstanceByPimUrlAkeneoInstanceCollection.php @@ -67,7 +67,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoInstance[]', 'json'); } } diff --git a/src/Endpoint/GetAkeneoInstanceCollection.php b/src/Endpoint/GetAkeneoInstanceCollection.php index 56a01cdb..c0fa6395 100644 --- a/src/Endpoint/GetAkeneoInstanceCollection.php +++ b/src/Endpoint/GetAkeneoInstanceCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoInstance[]', 'json'); } } diff --git a/src/Endpoint/GetAkeneoInstanceItem.php b/src/Endpoint/GetAkeneoInstanceItem.php index 80069a9d..5b1d3fb1 100644 --- a/src/Endpoint/GetAkeneoInstanceItem.php +++ b/src/Endpoint/GetAkeneoInstanceItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\AkeneoInstance::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetAkeneoInstanceOauthAkeneoInstanceCollection.php b/src/Endpoint/GetAkeneoInstanceOauthAkeneoInstanceCollection.php index 6278e231..abc9b6b7 100644 --- a/src/Endpoint/GetAkeneoInstanceOauthAkeneoInstanceCollection.php +++ b/src/Endpoint/GetAkeneoInstanceOauthAkeneoInstanceCollection.php @@ -67,7 +67,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoInstance[]', 'json'); } } diff --git a/src/Endpoint/GetAkeneoLinkedAccountAkeneoLinkedAccountCollection.php b/src/Endpoint/GetAkeneoLinkedAccountAkeneoLinkedAccountCollection.php index b25fd246..0096620b 100644 --- a/src/Endpoint/GetAkeneoLinkedAccountAkeneoLinkedAccountCollection.php +++ b/src/Endpoint/GetAkeneoLinkedAccountAkeneoLinkedAccountCollection.php @@ -67,7 +67,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoLinkedAccount[]', 'json'); } } diff --git a/src/Endpoint/GetAkeneoLinkedAccountCollection.php b/src/Endpoint/GetAkeneoLinkedAccountCollection.php index 45175c3c..3c7fe751 100644 --- a/src/Endpoint/GetAkeneoLinkedAccountCollection.php +++ b/src/Endpoint/GetAkeneoLinkedAccountCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoLinkedAccount[]', 'json'); } } diff --git a/src/Endpoint/GetAkeneoLinkedAccountItem.php b/src/Endpoint/GetAkeneoLinkedAccountItem.php index 175592da..7461db5a 100644 --- a/src/Endpoint/GetAkeneoLinkedAccountItem.php +++ b/src/Endpoint/GetAkeneoLinkedAccountItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\AkeneoLinkedAccount::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetAkeneoOauthTokenCollection.php b/src/Endpoint/GetAkeneoOauthTokenCollection.php index 6cd8f09a..1f292efe 100644 --- a/src/Endpoint/GetAkeneoOauthTokenCollection.php +++ b/src/Endpoint/GetAkeneoOauthTokenCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoOauthTokenRead[]', 'json'); } } diff --git a/src/Endpoint/GetAkeneoOauthTokenItem.php b/src/Endpoint/GetAkeneoOauthTokenItem.php index db5199e9..0f391914 100644 --- a/src/Endpoint/GetAkeneoOauthTokenItem.php +++ b/src/Endpoint/GetAkeneoOauthTokenItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\AkeneoOauthTokenRead::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetCompilationCollection.php b/src/Endpoint/GetCompilationCollection.php index e6538d8b..7dbb4f67 100644 --- a/src/Endpoint/GetCompilationCollection.php +++ b/src/Endpoint/GetCompilationCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Compilation[]', 'json'); } } diff --git a/src/Endpoint/GetCompilationItem.php b/src/Endpoint/GetCompilationItem.php index 72c097b8..5322be30 100644 --- a/src/Endpoint/GetCompilationItem.php +++ b/src/Endpoint/GetCompilationItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Compilation::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetConfigurationCollection.php b/src/Endpoint/GetConfigurationCollection.php index 772084aa..b88fef77 100644 --- a/src/Endpoint/GetConfigurationCollection.php +++ b/src/Endpoint/GetConfigurationCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Configuration[]', 'json'); } } diff --git a/src/Endpoint/GetConfigurationItem.php b/src/Endpoint/GetConfigurationItem.php index 3ec2e314..bbeeacea 100644 --- a/src/Endpoint/GetConfigurationItem.php +++ b/src/Endpoint/GetConfigurationItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Configuration::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetEnvironmentCollection.php b/src/Endpoint/GetEnvironmentCollection.php index ae9a60a7..fbf66d15 100644 --- a/src/Endpoint/GetEnvironmentCollection.php +++ b/src/Endpoint/GetEnvironmentCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\EnvironmentRead[]', 'json'); } } diff --git a/src/Endpoint/GetEnvironmentItem.php b/src/Endpoint/GetEnvironmentItem.php index 8fd84c79..131b7ae9 100644 --- a/src/Endpoint/GetEnvironmentItem.php +++ b/src/Endpoint/GetEnvironmentItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\EnvironmentRead::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetExecutionActionItem.php b/src/Endpoint/GetExecutionActionItem.php index ff3cfa7a..90174355 100644 --- a/src/Endpoint/GetExecutionActionItem.php +++ b/src/Endpoint/GetExecutionActionItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionAction::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetExecutionCollection.php b/src/Endpoint/GetExecutionCollection.php index 9b7dd7a7..be5d50a6 100644 --- a/src/Endpoint/GetExecutionCollection.php +++ b/src/Endpoint/GetExecutionCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionRead[]', 'json'); } } diff --git a/src/Endpoint/GetExecutionItem.php b/src/Endpoint/GetExecutionItem.php index ffb5c67a..822e0e0c 100644 --- a/src/Endpoint/GetExecutionItem.php +++ b/src/Endpoint/GetExecutionItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionRead::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetExecutionPipelineCollection.php b/src/Endpoint/GetExecutionPipelineCollection.php index e6027ff0..914fda3a 100644 --- a/src/Endpoint/GetExecutionPipelineCollection.php +++ b/src/Endpoint/GetExecutionPipelineCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipeline[]', 'json'); } } diff --git a/src/Endpoint/GetExecutionPipelineItem.php b/src/Endpoint/GetExecutionPipelineItem.php index 478d2302..31ca6e2d 100644 --- a/src/Endpoint/GetExecutionPipelineItem.php +++ b/src/Endpoint/GetExecutionPipelineItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionPipeline::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetExecutionPipelineJobCollection.php b/src/Endpoint/GetExecutionPipelineJobCollection.php index 725ad147..7c9087c3 100644 --- a/src/Endpoint/GetExecutionPipelineJobCollection.php +++ b/src/Endpoint/GetExecutionPipelineJobCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineJob[]', 'json'); } } diff --git a/src/Endpoint/GetExecutionPipelineJobItem.php b/src/Endpoint/GetExecutionPipelineJobItem.php index 9a29ff7e..2816f2c5 100644 --- a/src/Endpoint/GetExecutionPipelineJobItem.php +++ b/src/Endpoint/GetExecutionPipelineJobItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionPipelineJob::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetExecutionPipelineStepItem.php b/src/Endpoint/GetExecutionPipelineStepItem.php index a47cb2c6..4c81c8be 100644 --- a/src/Endpoint/GetExecutionPipelineStepItem.php +++ b/src/Endpoint/GetExecutionPipelineStepItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionPipelineStep::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetExecutionWorkflowCollection.php b/src/Endpoint/GetExecutionWorkflowCollection.php index 6b4fa334..4c1173ba 100644 --- a/src/Endpoint/GetExecutionWorkflowCollection.php +++ b/src/Endpoint/GetExecutionWorkflowCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflow[]', 'json'); } } diff --git a/src/Endpoint/GetExecutionWorkflowItem.php b/src/Endpoint/GetExecutionWorkflowItem.php index 76146e27..fa916826 100644 --- a/src/Endpoint/GetExecutionWorkflowItem.php +++ b/src/Endpoint/GetExecutionWorkflowItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionWorkflow::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetExecutionWorkflowJobActionItem.php b/src/Endpoint/GetExecutionWorkflowJobActionItem.php index e68efc75..617cd812 100644 --- a/src/Endpoint/GetExecutionWorkflowJobActionItem.php +++ b/src/Endpoint/GetExecutionWorkflowJobActionItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionWorkflowJobAction::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetExecutionWorkflowJobCollection.php b/src/Endpoint/GetExecutionWorkflowJobCollection.php index ca1f4d2d..62b8b567 100644 --- a/src/Endpoint/GetExecutionWorkflowJobCollection.php +++ b/src/Endpoint/GetExecutionWorkflowJobCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJob[]', 'json'); } } diff --git a/src/Endpoint/GetExecutionWorkflowJobItem.php b/src/Endpoint/GetExecutionWorkflowJobItem.php index 373c1792..26359f5f 100644 --- a/src/Endpoint/GetExecutionWorkflowJobItem.php +++ b/src/Endpoint/GetExecutionWorkflowJobItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionWorkflowJob::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetForgotPassword.php b/src/Endpoint/GetForgotPassword.php index 53189864..78b11c76 100644 --- a/src/Endpoint/GetForgotPassword.php +++ b/src/Endpoint/GetForgotPassword.php @@ -43,14 +43,12 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\GetForgotPasswordNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (404 === $status) { throw new \Gyroscops\Api\Exception\GetForgotPasswordNotFoundException(); diff --git a/src/Endpoint/GetOfferCollection.php b/src/Endpoint/GetOfferCollection.php index fb8d7500..08e4a643 100644 --- a/src/Endpoint/GetOfferCollection.php +++ b/src/Endpoint/GetOfferCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Offer[]', 'json'); } } diff --git a/src/Endpoint/GetOfferItem.php b/src/Endpoint/GetOfferItem.php index c8ae8b94..1613f4e0 100644 --- a/src/Endpoint/GetOfferItem.php +++ b/src/Endpoint/GetOfferItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Offer::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetOnPremiseRequestCollection.php b/src/Endpoint/GetOnPremiseRequestCollection.php index 0c3f3fec..f6c4e021 100644 --- a/src/Endpoint/GetOnPremiseRequestCollection.php +++ b/src/Endpoint/GetOnPremiseRequestCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\OnPremiseRequestOnPremiseRequestRead[]', 'json'); } } diff --git a/src/Endpoint/GetOnPremiseRequestItem.php b/src/Endpoint/GetOnPremiseRequestItem.php index bfc8603e..ce98b09b 100644 --- a/src/Endpoint/GetOnPremiseRequestItem.php +++ b/src/Endpoint/GetOnPremiseRequestItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetOrganizationCollection.php b/src/Endpoint/GetOrganizationCollection.php index ea2b45fc..e88b4358 100644 --- a/src/Endpoint/GetOrganizationCollection.php +++ b/src/Endpoint/GetOrganizationCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Organization[]', 'json'); } } diff --git a/src/Endpoint/GetOrganizationItem.php b/src/Endpoint/GetOrganizationItem.php index f49ff63b..9f41288d 100644 --- a/src/Endpoint/GetOrganizationItem.php +++ b/src/Endpoint/GetOrganizationItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetPipelineCollection.php b/src/Endpoint/GetPipelineCollection.php index 64528663..20eef930 100644 --- a/src/Endpoint/GetPipelineCollection.php +++ b/src/Endpoint/GetPipelineCollection.php @@ -69,7 +69,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineRead[]', 'json'); } } diff --git a/src/Endpoint/GetPipelineItem.php b/src/Endpoint/GetPipelineItem.php index c82915f6..c7c0ff77 100644 --- a/src/Endpoint/GetPipelineItem.php +++ b/src/Endpoint/GetPipelineItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\PipelineRead::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetPipelineStepCollection.php b/src/Endpoint/GetPipelineStepCollection.php index 75d19c47..30d9cbac 100644 --- a/src/Endpoint/GetPipelineStepCollection.php +++ b/src/Endpoint/GetPipelineStepCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineStep[]', 'json'); } } diff --git a/src/Endpoint/GetPipelineStepItem.php b/src/Endpoint/GetPipelineStepItem.php index 553f5f68..51ebc09f 100644 --- a/src/Endpoint/GetPipelineStepItem.php +++ b/src/Endpoint/GetPipelineStepItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\PipelineStep::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetPipelineStepProbeCollection.php b/src/Endpoint/GetPipelineStepProbeCollection.php index c8ba063d..8713844d 100644 --- a/src/Endpoint/GetPipelineStepProbeCollection.php +++ b/src/Endpoint/GetPipelineStepProbeCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineStepProbe[]', 'json'); } } diff --git a/src/Endpoint/GetPipelineStepProbeItem.php b/src/Endpoint/GetPipelineStepProbeItem.php index f36d7334..0bc65b48 100644 --- a/src/Endpoint/GetPipelineStepProbeItem.php +++ b/src/Endpoint/GetPipelineStepProbeItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\PipelineStepProbe::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetReferralCodeCollection.php b/src/Endpoint/GetReferralCodeCollection.php index 87f53c7f..dbbfbd99 100644 --- a/src/Endpoint/GetReferralCodeCollection.php +++ b/src/Endpoint/GetReferralCodeCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralCodeReferralCodeRead[]', 'json'); } } diff --git a/src/Endpoint/GetReferralCodeItem.php b/src/Endpoint/GetReferralCodeItem.php index 38cfe816..27386b66 100644 --- a/src/Endpoint/GetReferralCodeItem.php +++ b/src/Endpoint/GetReferralCodeItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ReferralCodeReferralCodeRead::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetReferralRequestCollection.php b/src/Endpoint/GetReferralRequestCollection.php index 5fbc056c..a4da9938 100644 --- a/src/Endpoint/GetReferralRequestCollection.php +++ b/src/Endpoint/GetReferralRequestCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralRequestReferralRequestRead[]', 'json'); } } diff --git a/src/Endpoint/GetReferralRequestItem.php b/src/Endpoint/GetReferralRequestItem.php index 9ea8ad3f..996b4c2f 100644 --- a/src/Endpoint/GetReferralRequestItem.php +++ b/src/Endpoint/GetReferralRequestItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ReferralRequestReferralRequestRead::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetScheduleCollection.php b/src/Endpoint/GetScheduleCollection.php index 2a24cb73..9e0bb0c3 100644 --- a/src/Endpoint/GetScheduleCollection.php +++ b/src/Endpoint/GetScheduleCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Schedule[]', 'json'); } } diff --git a/src/Endpoint/GetScheduleItem.php b/src/Endpoint/GetScheduleItem.php index db86ae8c..6c5cf6ee 100644 --- a/src/Endpoint/GetScheduleItem.php +++ b/src/Endpoint/GetScheduleItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Schedule::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetSecretCollection.php b/src/Endpoint/GetSecretCollection.php index 880e3ddc..7961157f 100644 --- a/src/Endpoint/GetSecretCollection.php +++ b/src/Endpoint/GetSecretCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Secret[]', 'json'); } } diff --git a/src/Endpoint/GetSecretItem.php b/src/Endpoint/GetSecretItem.php index d1a6222b..8654c5f4 100644 --- a/src/Endpoint/GetSecretItem.php +++ b/src/Endpoint/GetSecretItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Secret::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetSubscriptionCollection.php b/src/Endpoint/GetSubscriptionCollection.php index bb3ac9e0..145d684b 100644 --- a/src/Endpoint/GetSubscriptionCollection.php +++ b/src/Endpoint/GetSubscriptionCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Subscription[]', 'json'); } } diff --git a/src/Endpoint/GetSubscriptionItem.php b/src/Endpoint/GetSubscriptionItem.php index 85f92c5d..b6149252 100644 --- a/src/Endpoint/GetSubscriptionItem.php +++ b/src/Endpoint/GetSubscriptionItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Subscription::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetUserAuthorizationCollection.php b/src/Endpoint/GetUserAuthorizationCollection.php index 135c2c70..a0dcbd15 100644 --- a/src/Endpoint/GetUserAuthorizationCollection.php +++ b/src/Endpoint/GetUserAuthorizationCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserAuthorization[]', 'json'); } } diff --git a/src/Endpoint/GetUserAuthorizationItem.php b/src/Endpoint/GetUserAuthorizationItem.php index 0f22bc0d..30c7382e 100644 --- a/src/Endpoint/GetUserAuthorizationItem.php +++ b/src/Endpoint/GetUserAuthorizationItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\UserAuthorization::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetUserCollection.php b/src/Endpoint/GetUserCollection.php index c350dc82..d99d578c 100644 --- a/src/Endpoint/GetUserCollection.php +++ b/src/Endpoint/GetUserCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User[]', 'json'); } } diff --git a/src/Endpoint/GetUserItem.php b/src/Endpoint/GetUserItem.php index ee172f6e..ba55a208 100644 --- a/src/Endpoint/GetUserItem.php +++ b/src/Endpoint/GetUserItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetVariableFromConfigurationItem.php b/src/Endpoint/GetVariableFromConfigurationItem.php index c6127a30..8697131b 100644 --- a/src/Endpoint/GetVariableFromConfigurationItem.php +++ b/src/Endpoint/GetVariableFromConfigurationItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\VariableFromConfigurationRead::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetVariableFromConstantItem.php b/src/Endpoint/GetVariableFromConstantItem.php index 6cc7621e..695060c2 100644 --- a/src/Endpoint/GetVariableFromConstantItem.php +++ b/src/Endpoint/GetVariableFromConstantItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\VariableFromConstantRead::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetVariableFromSecretItem.php b/src/Endpoint/GetVariableFromSecretItem.php index 6f1581af..7054e9db 100644 --- a/src/Endpoint/GetVariableFromSecretItem.php +++ b/src/Endpoint/GetVariableFromSecretItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\VariableFromSecretRead::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetWorkflowCollection.php b/src/Endpoint/GetWorkflowCollection.php index 2879f41f..66e87e4b 100644 --- a/src/Endpoint/GetWorkflowCollection.php +++ b/src/Endpoint/GetWorkflowCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowRead[]', 'json'); } } diff --git a/src/Endpoint/GetWorkflowItem.php b/src/Endpoint/GetWorkflowItem.php index 6b694001..7829620b 100644 --- a/src/Endpoint/GetWorkflowItem.php +++ b/src/Endpoint/GetWorkflowItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\WorkflowRead::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetWorkflowJobActionItem.php b/src/Endpoint/GetWorkflowJobActionItem.php index 3541c56b..c42f0548 100644 --- a/src/Endpoint/GetWorkflowJobActionItem.php +++ b/src/Endpoint/GetWorkflowJobActionItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\WorkflowJobAction::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetWorkflowJobItem.php b/src/Endpoint/GetWorkflowJobItem.php index 88de0734..381cd51e 100644 --- a/src/Endpoint/GetWorkflowJobItem.php +++ b/src/Endpoint/GetWorkflowJobItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\WorkflowJobRead::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetWorkflowJobPipelineCollection.php b/src/Endpoint/GetWorkflowJobPipelineCollection.php index 67375132..d73c6bb1 100644 --- a/src/Endpoint/GetWorkflowJobPipelineCollection.php +++ b/src/Endpoint/GetWorkflowJobPipelineCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowJobPipeline[]', 'json'); } } diff --git a/src/Endpoint/GetWorkflowJobPipelineItem.php b/src/Endpoint/GetWorkflowJobPipelineItem.php index 6c2a0a57..ca2ad4d7 100644 --- a/src/Endpoint/GetWorkflowJobPipelineItem.php +++ b/src/Endpoint/GetWorkflowJobPipelineItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\WorkflowJobPipeline::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/GetWorkspaceCollection.php b/src/Endpoint/GetWorkspaceCollection.php index adcb2376..0ec4c826 100644 --- a/src/Endpoint/GetWorkspaceCollection.php +++ b/src/Endpoint/GetWorkspaceCollection.php @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Workspace[]', 'json'); } } diff --git a/src/Endpoint/GetWorkspaceItem.php b/src/Endpoint/GetWorkspaceItem.php index cbabc91c..61c21f00 100644 --- a/src/Endpoint/GetWorkspaceItem.php +++ b/src/Endpoint/GetWorkspaceItem.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); } if (404 === $status) { diff --git a/src/Endpoint/InterruptExecutionExecutionItem.php b/src/Endpoint/InterruptExecutionExecutionItem.php index b1e59bb6..dd247135 100644 --- a/src/Endpoint/InterruptExecutionExecutionItem.php +++ b/src/Endpoint/InterruptExecutionExecutionItem.php @@ -43,7 +43,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria return [['Content-Type' => ['application/ld+json']], $this->body]; } if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, JSON_THROW_ON_ERROR)]; + return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; } if ($this->body instanceof \stdClass) { return [['Content-Type' => ['text/html']], $this->body]; @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\InterruptExecutionExecutionItemBadRequestException * @throws \Gyroscops\Api\Exception\InterruptExecutionExecutionItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\InterruptExecutionExecutionItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\InterruptExecutionExecutionItemBadRequestException(); diff --git a/src/Endpoint/MeUserCollection.php b/src/Endpoint/MeUserCollection.php index f9a360ca..6ee05699 100644 --- a/src/Endpoint/MeUserCollection.php +++ b/src/Endpoint/MeUserCollection.php @@ -41,7 +41,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User[]', 'json'); } } diff --git a/src/Endpoint/MoveAfterPipelineStepPipelineItem.php b/src/Endpoint/MoveAfterPipelineStepPipelineItem.php index d93cd435..385fc72f 100644 --- a/src/Endpoint/MoveAfterPipelineStepPipelineItem.php +++ b/src/Endpoint/MoveAfterPipelineStepPipelineItem.php @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\MoveAfterPipelineStepPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\MoveAfterPipelineStepPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\MoveAfterPipelineStepPipelineItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\MoveAfterPipelineStepPipelineItemBadRequestException(); diff --git a/src/Endpoint/MoveBeforePipelineStepPipelineItem.php b/src/Endpoint/MoveBeforePipelineStepPipelineItem.php index 38e6ca1d..55ea1a7c 100644 --- a/src/Endpoint/MoveBeforePipelineStepPipelineItem.php +++ b/src/Endpoint/MoveBeforePipelineStepPipelineItem.php @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\MoveBeforePipelineStepPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\MoveBeforePipelineStepPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\MoveBeforePipelineStepPipelineItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\MoveBeforePipelineStepPipelineItemBadRequestException(); diff --git a/src/Endpoint/PatchOfferItem.php b/src/Endpoint/PatchOfferItem.php index 731e9e2d..572ad768 100644 --- a/src/Endpoint/PatchOfferItem.php +++ b/src/Endpoint/PatchOfferItem.php @@ -61,7 +61,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Offer::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PatchOrganizationItem.php b/src/Endpoint/PatchOrganizationItem.php index 772822ca..eb9064fb 100644 --- a/src/Endpoint/PatchOrganizationItem.php +++ b/src/Endpoint/PatchOrganizationItem.php @@ -61,7 +61,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PatchSubscriptionItem.php b/src/Endpoint/PatchSubscriptionItem.php index aef22c81..47fe96ba 100644 --- a/src/Endpoint/PatchSubscriptionItem.php +++ b/src/Endpoint/PatchSubscriptionItem.php @@ -61,7 +61,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Subscription::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PatchUserAuthorizationItem.php b/src/Endpoint/PatchUserAuthorizationItem.php index bac35d29..ea1a4c30 100644 --- a/src/Endpoint/PatchUserAuthorizationItem.php +++ b/src/Endpoint/PatchUserAuthorizationItem.php @@ -61,7 +61,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\UserAuthorization::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PatchUserItem.php b/src/Endpoint/PatchUserItem.php index e9fb476c..eb9814b5 100644 --- a/src/Endpoint/PatchUserItem.php +++ b/src/Endpoint/PatchUserItem.php @@ -61,7 +61,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PatchWorkspaceItem.php b/src/Endpoint/PatchWorkspaceItem.php index 7afda32a..c30f3965 100644 --- a/src/Endpoint/PatchWorkspaceItem.php +++ b/src/Endpoint/PatchWorkspaceItem.php @@ -61,7 +61,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PipelineCompilationPipelineItem.php b/src/Endpoint/PipelineCompilationPipelineItem.php index 54e1bf80..40e58106 100644 --- a/src/Endpoint/PipelineCompilationPipelineItem.php +++ b/src/Endpoint/PipelineCompilationPipelineItem.php @@ -43,7 +43,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria return [['Content-Type' => ['application/ld+json']], $this->body]; } if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, JSON_THROW_ON_ERROR)]; + return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; } if ($this->body instanceof \stdClass) { return [['Content-Type' => ['text/html']], $this->body]; @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\PipelineCompilationPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\PipelineCompilationPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PipelineCompilationPipelineItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\PipelineCompilationPipelineItemBadRequestException(); diff --git a/src/Endpoint/PostAkeneoInstanceCollection.php b/src/Endpoint/PostAkeneoInstanceCollection.php index ad481cba..cab0cb1b 100644 --- a/src/Endpoint/PostAkeneoInstanceCollection.php +++ b/src/Endpoint/PostAkeneoInstanceCollection.php @@ -64,7 +64,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\AkeneoInstance::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PostAkeneoLinkedAccountCollection.php b/src/Endpoint/PostAkeneoLinkedAccountCollection.php index 445bd785..acd2a889 100644 --- a/src/Endpoint/PostAkeneoLinkedAccountCollection.php +++ b/src/Endpoint/PostAkeneoLinkedAccountCollection.php @@ -64,7 +64,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\AkeneoLinkedAccount::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PostAkeneoOauthTokenCollection.php b/src/Endpoint/PostAkeneoOauthTokenCollection.php index b2a7c694..1535953f 100644 --- a/src/Endpoint/PostAkeneoOauthTokenCollection.php +++ b/src/Endpoint/PostAkeneoOauthTokenCollection.php @@ -57,15 +57,13 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\PostAkeneoOauthTokenCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostAkeneoOauthTokenCollectionUnprocessableEntityException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\PostAkeneoOauthTokenCollectionBadRequestException(); diff --git a/src/Endpoint/PostCompilationCollection.php b/src/Endpoint/PostCompilationCollection.php index c7ee9ac3..3a0d5e4d 100644 --- a/src/Endpoint/PostCompilationCollection.php +++ b/src/Endpoint/PostCompilationCollection.php @@ -40,7 +40,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria return [['Content-Type' => ['application/ld+json']], $this->body]; } if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, JSON_THROW_ON_ERROR)]; + return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; } if ($this->body instanceof \stdClass) { return [['Content-Type' => ['text/html']], $this->body]; @@ -64,7 +64,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\CompilationCompilePipelineCommand::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PostConfigurationCollection.php b/src/Endpoint/PostConfigurationCollection.php index e6325e9f..57ceb3d0 100644 --- a/src/Endpoint/PostConfigurationCollection.php +++ b/src/Endpoint/PostConfigurationCollection.php @@ -64,7 +64,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Configuration::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PostCredentialsItem.php b/src/Endpoint/PostCredentialsItem.php index ddf0cc42..4aec8352 100644 --- a/src/Endpoint/PostCredentialsItem.php +++ b/src/Endpoint/PostCredentialsItem.php @@ -50,7 +50,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Token::class, 'json'); } } diff --git a/src/Endpoint/PostEnvironmentCollection.php b/src/Endpoint/PostEnvironmentCollection.php index 37e10722..cc18a825 100644 --- a/src/Endpoint/PostEnvironmentCollection.php +++ b/src/Endpoint/PostEnvironmentCollection.php @@ -64,7 +64,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\EnvironmentRead::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PostForgotPassword.php b/src/Endpoint/PostForgotPassword.php index cab0466e..8a6d845b 100644 --- a/src/Endpoint/PostForgotPassword.php +++ b/src/Endpoint/PostForgotPassword.php @@ -32,7 +32,7 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, JSON_THROW_ON_ERROR)]; + return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; } return [[], null]; @@ -41,8 +41,6 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\PostForgotPasswordBadRequestException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) diff --git a/src/Endpoint/PostForgotPasswordToken.php b/src/Endpoint/PostForgotPasswordToken.php index 41cc279d..c01320ba 100644 --- a/src/Endpoint/PostForgotPasswordToken.php +++ b/src/Endpoint/PostForgotPasswordToken.php @@ -34,7 +34,7 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, JSON_THROW_ON_ERROR)]; + return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; } return [[], null]; @@ -43,8 +43,6 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\PostForgotPasswordTokenBadRequestException * @throws \Gyroscops\Api\Exception\PostForgotPasswordTokenNotFoundException */ diff --git a/src/Endpoint/PostOnPremiseRequestCollection.php b/src/Endpoint/PostOnPremiseRequestCollection.php index 7ad9ba32..45fb1d12 100644 --- a/src/Endpoint/PostOnPremiseRequestCollection.php +++ b/src/Endpoint/PostOnPremiseRequestCollection.php @@ -64,7 +64,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PostOrganizationCollection.php b/src/Endpoint/PostOrganizationCollection.php index 102e9937..f4fe5f1a 100644 --- a/src/Endpoint/PostOrganizationCollection.php +++ b/src/Endpoint/PostOrganizationCollection.php @@ -64,7 +64,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PostReferralCodeCollection.php b/src/Endpoint/PostReferralCodeCollection.php index e3d8c894..7ad1b22b 100644 --- a/src/Endpoint/PostReferralCodeCollection.php +++ b/src/Endpoint/PostReferralCodeCollection.php @@ -64,7 +64,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ReferralCodeReferralCodeRead::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PostReferralRequestCollection.php b/src/Endpoint/PostReferralRequestCollection.php index b5b7421f..80202c47 100644 --- a/src/Endpoint/PostReferralRequestCollection.php +++ b/src/Endpoint/PostReferralRequestCollection.php @@ -64,7 +64,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ReferralRequestReferralRequestRead::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PostScheduleCollection.php b/src/Endpoint/PostScheduleCollection.php index 7aa8b16f..22ac5ef7 100644 --- a/src/Endpoint/PostScheduleCollection.php +++ b/src/Endpoint/PostScheduleCollection.php @@ -15,12 +15,11 @@ class PostScheduleCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint use \Gyroscops\Api\Runtime\Client\EndpointTrait; /** - In order to differentiate the different types of schedules, we have set up a field named "type" : + * In order to differentiate the different types of schedules, we have set up a field named "type" : * 1 => Immediate * 2 => Once * 3 => Times * 4 => Until. - * * @param \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInputJsonld|\Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInput|null $requestBody */ @@ -62,15 +61,13 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\PostScheduleCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostScheduleCollectionUnprocessableEntityException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\PostScheduleCollectionBadRequestException(); diff --git a/src/Endpoint/PostSecretCollection.php b/src/Endpoint/PostSecretCollection.php index 48eacfc1..df14d1b1 100644 --- a/src/Endpoint/PostSecretCollection.php +++ b/src/Endpoint/PostSecretCollection.php @@ -64,7 +64,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Secret::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PostSubscriptionCollection.php b/src/Endpoint/PostSubscriptionCollection.php index 0e539db9..0bb3a395 100644 --- a/src/Endpoint/PostSubscriptionCollection.php +++ b/src/Endpoint/PostSubscriptionCollection.php @@ -64,7 +64,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Subscription::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PostUserAuthorizationCollection.php b/src/Endpoint/PostUserAuthorizationCollection.php index 305eea32..28d2adc5 100644 --- a/src/Endpoint/PostUserAuthorizationCollection.php +++ b/src/Endpoint/PostUserAuthorizationCollection.php @@ -64,7 +64,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\UserAuthorization::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PostUserCollection.php b/src/Endpoint/PostUserCollection.php index fc2e424f..fda8353c 100644 --- a/src/Endpoint/PostUserCollection.php +++ b/src/Endpoint/PostUserCollection.php @@ -64,7 +64,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PostWorkspaceCollection.php b/src/Endpoint/PostWorkspaceCollection.php index 7735d5de..71d6333e 100644 --- a/src/Endpoint/PostWorkspaceCollection.php +++ b/src/Endpoint/PostWorkspaceCollection.php @@ -64,7 +64,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PutAkeneoOauthTokenAkeneoOauthTokenCollection.php b/src/Endpoint/PutAkeneoOauthTokenAkeneoOauthTokenCollection.php index 7f9e0855..e5718cb9 100644 --- a/src/Endpoint/PutAkeneoOauthTokenAkeneoOauthTokenCollection.php +++ b/src/Endpoint/PutAkeneoOauthTokenAkeneoOauthTokenCollection.php @@ -39,10 +39,10 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria if ($this->body instanceof \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBody) { return [['Content-Type' => ['application/ld+json']], $this->body]; } - if (is_array($this->body) and isset($this->body[0]) and $this->body[0] instanceof \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInput) { + if (\is_array($this->body) && isset($this->body[0]) && $this->body[0] instanceof \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - if (is_array($this->body) and isset($this->body[0]) and $this->body[0] instanceof \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInput) { + if (\is_array($this->body) && isset($this->body[0]) && $this->body[0] instanceof \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInput) { return [['Content-Type' => ['text/html']], $this->body]; } @@ -57,15 +57,13 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\PutAkeneoOauthTokenAkeneoOauthTokenCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PutAkeneoOauthTokenAkeneoOauthTokenCollectionUnprocessableEntityException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\PutAkeneoOauthTokenAkeneoOauthTokenCollectionBadRequestException(); diff --git a/src/Endpoint/PutAuthenticationToken.php b/src/Endpoint/PutAuthenticationToken.php index 32728ee3..9c1a8591 100644 --- a/src/Endpoint/PutAuthenticationToken.php +++ b/src/Endpoint/PutAuthenticationToken.php @@ -32,7 +32,7 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, JSON_THROW_ON_ERROR)]; + return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; } return [[], null]; @@ -45,13 +45,11 @@ public function getExtraHeaders(): array /** * {@inheritdoc} - * - * @return null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } } diff --git a/src/Endpoint/PutOfferItem.php b/src/Endpoint/PutOfferItem.php index 6aca58b4..b2e5fb91 100644 --- a/src/Endpoint/PutOfferItem.php +++ b/src/Endpoint/PutOfferItem.php @@ -68,7 +68,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Offer::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PutOrganizationItem.php b/src/Endpoint/PutOrganizationItem.php index baa05ba8..c87ef507 100644 --- a/src/Endpoint/PutOrganizationItem.php +++ b/src/Endpoint/PutOrganizationItem.php @@ -68,7 +68,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PutSubscriptionItem.php b/src/Endpoint/PutSubscriptionItem.php index 2b6812dd..3ebcbc15 100644 --- a/src/Endpoint/PutSubscriptionItem.php +++ b/src/Endpoint/PutSubscriptionItem.php @@ -68,7 +68,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Subscription::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PutUserAuthorizationItem.php b/src/Endpoint/PutUserAuthorizationItem.php index 837300d8..53970c30 100644 --- a/src/Endpoint/PutUserAuthorizationItem.php +++ b/src/Endpoint/PutUserAuthorizationItem.php @@ -68,7 +68,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\UserAuthorization::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PutUserItem.php b/src/Endpoint/PutUserItem.php index 0483926c..3a5ffa72 100644 --- a/src/Endpoint/PutUserItem.php +++ b/src/Endpoint/PutUserItem.php @@ -68,7 +68,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/PutWorkspaceItem.php b/src/Endpoint/PutWorkspaceItem.php index e0bd8897..0125a108 100644 --- a/src/Endpoint/PutWorkspaceItem.php +++ b/src/Endpoint/PutWorkspaceItem.php @@ -68,7 +68,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/RejectReferralRequestReferralRequestItem.php b/src/Endpoint/RejectReferralRequestReferralRequestItem.php index 10b6c733..ef88c99b 100644 --- a/src/Endpoint/RejectReferralRequestReferralRequestItem.php +++ b/src/Endpoint/RejectReferralRequestReferralRequestItem.php @@ -58,7 +58,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\ReferralRequestReferralRequestRead::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/RemoveComposerAuthPipelinePipelineItem.php b/src/Endpoint/RemoveComposerAuthPipelinePipelineItem.php index 96fbeb8c..319b43bc 100644 --- a/src/Endpoint/RemoveComposerAuthPipelinePipelineItem.php +++ b/src/Endpoint/RemoveComposerAuthPipelinePipelineItem.php @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\RemoveComposerAuthPipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\RemoveComposerAuthPipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\RemoveComposerAuthPipelinePipelineItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\RemoveComposerAuthPipelinePipelineItemBadRequestException(); diff --git a/src/Endpoint/RemoveComposerAutoloadPipelinePipelineItem.php b/src/Endpoint/RemoveComposerAutoloadPipelinePipelineItem.php index 625ef0cc..ec7e05f8 100644 --- a/src/Endpoint/RemoveComposerAutoloadPipelinePipelineItem.php +++ b/src/Endpoint/RemoveComposerAutoloadPipelinePipelineItem.php @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\RemoveComposerAutoloadPipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\RemoveComposerAutoloadPipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\RemoveComposerAutoloadPipelinePipelineItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\RemoveComposerAutoloadPipelinePipelineItemBadRequestException(); diff --git a/src/Endpoint/RemoveComposerPackagePipelinePipelineItem.php b/src/Endpoint/RemoveComposerPackagePipelinePipelineItem.php index 4657d284..d61e1a03 100644 --- a/src/Endpoint/RemoveComposerPackagePipelinePipelineItem.php +++ b/src/Endpoint/RemoveComposerPackagePipelinePipelineItem.php @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\RemoveComposerPackagePipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\RemoveComposerPackagePipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\RemoveComposerPackagePipelinePipelineItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\RemoveComposerPackagePipelinePipelineItemBadRequestException(); diff --git a/src/Endpoint/RemoveComposerRepositoryPipelinePipelineItem.php b/src/Endpoint/RemoveComposerRepositoryPipelinePipelineItem.php index b04a5313..01f3a9c9 100644 --- a/src/Endpoint/RemoveComposerRepositoryPipelinePipelineItem.php +++ b/src/Endpoint/RemoveComposerRepositoryPipelinePipelineItem.php @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\RemoveComposerRepositoryPipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\RemoveComposerRepositoryPipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\RemoveComposerRepositoryPipelinePipelineItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\RemoveComposerRepositoryPipelinePipelineItemBadRequestException(); diff --git a/src/Endpoint/RemovePipelineStepProbePipelineItem.php b/src/Endpoint/RemovePipelineStepProbePipelineItem.php index eee8334e..d84eb3c2 100644 --- a/src/Endpoint/RemovePipelineStepProbePipelineItem.php +++ b/src/Endpoint/RemovePipelineStepProbePipelineItem.php @@ -49,8 +49,6 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\RemovePipelineStepProbePipelineItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) diff --git a/src/Endpoint/RemoveValuesConfigurationItem.php b/src/Endpoint/RemoveValuesConfigurationItem.php index 214d02c4..aab9834b 100644 --- a/src/Endpoint/RemoveValuesConfigurationItem.php +++ b/src/Endpoint/RemoveValuesConfigurationItem.php @@ -68,7 +68,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Configuration::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/RemoveValuesSecretItem.php b/src/Endpoint/RemoveValuesSecretItem.php index 3b9fcbec..f8b228f7 100644 --- a/src/Endpoint/RemoveValuesSecretItem.php +++ b/src/Endpoint/RemoveValuesSecretItem.php @@ -68,7 +68,7 @@ public function getExtraHeaders(): array */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { return $serializer->deserialize($body, \Gyroscops\Api\Model\Secret::class, 'json'); } if (400 === $status) { diff --git a/src/Endpoint/ReorderPipelineStepsPipelineItem.php b/src/Endpoint/ReorderPipelineStepsPipelineItem.php index 12bff1f2..59dc3af5 100644 --- a/src/Endpoint/ReorderPipelineStepsPipelineItem.php +++ b/src/Endpoint/ReorderPipelineStepsPipelineItem.php @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\ReorderPipelineStepsPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\ReorderPipelineStepsPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\ReorderPipelineStepsPipelineItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\ReorderPipelineStepsPipelineItemBadRequestException(); diff --git a/src/Endpoint/ReplacePipelineStepPipelineItem.php b/src/Endpoint/ReplacePipelineStepPipelineItem.php index aa817799..91eb8b9c 100644 --- a/src/Endpoint/ReplacePipelineStepPipelineItem.php +++ b/src/Endpoint/ReplacePipelineStepPipelineItem.php @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\ReplacePipelineStepPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\ReplacePipelineStepPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\ReplacePipelineStepPipelineItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\ReplacePipelineStepPipelineItemBadRequestException(); diff --git a/src/Endpoint/ResumeExecutionExecutionItem.php b/src/Endpoint/ResumeExecutionExecutionItem.php index 68452838..eb90f19b 100644 --- a/src/Endpoint/ResumeExecutionExecutionItem.php +++ b/src/Endpoint/ResumeExecutionExecutionItem.php @@ -43,7 +43,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria return [['Content-Type' => ['application/ld+json']], $this->body]; } if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, JSON_THROW_ON_ERROR)]; + return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; } if ($this->body instanceof \stdClass) { return [['Content-Type' => ['text/html']], $this->body]; @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\ResumeExecutionExecutionItemBadRequestException * @throws \Gyroscops\Api\Exception\ResumeExecutionExecutionItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\ResumeExecutionExecutionItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\ResumeExecutionExecutionItemBadRequestException(); diff --git a/src/Endpoint/StartExecutionExecutionItem.php b/src/Endpoint/StartExecutionExecutionItem.php index cddc3201..0b30915b 100644 --- a/src/Endpoint/StartExecutionExecutionItem.php +++ b/src/Endpoint/StartExecutionExecutionItem.php @@ -43,7 +43,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria return [['Content-Type' => ['application/ld+json']], $this->body]; } if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, JSON_THROW_ON_ERROR)]; + return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; } if ($this->body instanceof \stdClass) { return [['Content-Type' => ['text/html']], $this->body]; @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\StartExecutionExecutionItemBadRequestException * @throws \Gyroscops\Api\Exception\StartExecutionExecutionItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\StartExecutionExecutionItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\StartExecutionExecutionItemBadRequestException(); diff --git a/src/Endpoint/TerminateExecutionExecutionItem.php b/src/Endpoint/TerminateExecutionExecutionItem.php index 7e563c96..17e54cba 100644 --- a/src/Endpoint/TerminateExecutionExecutionItem.php +++ b/src/Endpoint/TerminateExecutionExecutionItem.php @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\TerminateExecutionExecutionItemBadRequestException * @throws \Gyroscops\Api\Exception\TerminateExecutionExecutionItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\TerminateExecutionExecutionItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\TerminateExecutionExecutionItemBadRequestException(); diff --git a/src/Endpoint/UpdateExecutionStateExecutionItem.php b/src/Endpoint/UpdateExecutionStateExecutionItem.php index 1a9e5ea5..e5aff3cb 100644 --- a/src/Endpoint/UpdateExecutionStateExecutionItem.php +++ b/src/Endpoint/UpdateExecutionStateExecutionItem.php @@ -60,16 +60,14 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * - * @return null - * * @throws \Gyroscops\Api\Exception\UpdateExecutionStateExecutionItemBadRequestException * @throws \Gyroscops\Api\Exception\UpdateExecutionStateExecutionItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\UpdateExecutionStateExecutionItemNotFoundException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return json_decode($body, null, 512, JSON_THROW_ON_ERROR); + if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { + return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); } if (400 === $status) { throw new \Gyroscops\Api\Exception\UpdateExecutionStateExecutionItemBadRequestException(); diff --git a/src/Normalizer/AbstractPipelineJsonldNormalizer.php b/src/Normalizer/AbstractPipelineJsonldNormalizer.php index 1a0fe8a6..12d6e8cd 100644 --- a/src/Normalizer/AbstractPipelineJsonldNormalizer.php +++ b/src/Normalizer/AbstractPipelineJsonldNormalizer.php @@ -27,15 +27,19 @@ class AbstractPipelineJsonldNormalizer implements DenormalizerInterface, Normali public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AbstractPipelineJsonld::class; + return \Gyroscops\Api\Model\AbstractPipelineJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AbstractPipelineJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\AbstractPipelineJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,93 +54,93 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('runtimeType', $data) && $data['runtimeType'] !== null) { + if (\array_key_exists('runtimeType', $data) && null !== $data['runtimeType']) { $object->setRuntimeType($data['runtimeType']); - } elseif (\array_key_exists('runtimeType', $data) && $data['runtimeType'] === null) { + } elseif (\array_key_exists('runtimeType', $data) && null === $data['runtimeType']) { $object->setRuntimeType(null); } - if (\array_key_exists('runtime', $data) && $data['runtime'] !== null) { + if (\array_key_exists('runtime', $data) && null !== $data['runtime']) { $values = []; foreach ($data['runtime'] as $value) { $values[] = $value; } $object->setRuntime($values); - } elseif (\array_key_exists('runtime', $data) && $data['runtime'] === null) { + } elseif (\array_key_exists('runtime', $data) && null === $data['runtime']) { $object->setRuntime(null); } - if (\array_key_exists('autoload', $data) && $data['autoload'] !== null) { + if (\array_key_exists('autoload', $data) && null !== $data['autoload']) { $values_1 = []; foreach ($data['autoload'] as $value_1) { $values_1[] = $value_1; } $object->setAutoload($values_1); - } elseif (\array_key_exists('autoload', $data) && $data['autoload'] === null) { + } elseif (\array_key_exists('autoload', $data) && null === $data['autoload']) { $object->setAutoload(null); } - if (\array_key_exists('packages', $data) && $data['packages'] !== null) { + if (\array_key_exists('packages', $data) && null !== $data['packages']) { $values_2 = []; foreach ($data['packages'] as $value_2) { $values_2[] = $value_2; } $object->setPackages($values_2); - } elseif (\array_key_exists('packages', $data) && $data['packages'] === null) { + } elseif (\array_key_exists('packages', $data) && null === $data['packages']) { $object->setPackages(null); } - if (\array_key_exists('repositories', $data) && $data['repositories'] !== null) { + if (\array_key_exists('repositories', $data) && null !== $data['repositories']) { $values_3 = []; foreach ($data['repositories'] as $value_3) { $values_3[] = $value_3; } $object->setRepositories($values_3); - } elseif (\array_key_exists('repositories', $data) && $data['repositories'] === null) { + } elseif (\array_key_exists('repositories', $data) && null === $data['repositories']) { $object->setRepositories(null); } - if (\array_key_exists('auths', $data) && $data['auths'] !== null) { + if (\array_key_exists('auths', $data) && null !== $data['auths']) { $values_4 = []; foreach ($data['auths'] as $value_4) { $values_4[] = $value_4; } $object->setAuths($values_4); - } elseif (\array_key_exists('auths', $data) && $data['auths'] === null) { + } elseif (\array_key_exists('auths', $data) && null === $data['auths']) { $object->setAuths(null); } - if (\array_key_exists('steps', $data) && $data['steps'] !== null) { + if (\array_key_exists('steps', $data) && null !== $data['steps']) { $values_5 = []; foreach ($data['steps'] as $value_5) { $values_5[] = $value_5; } $object->setSteps($values_5); - } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { $object->setSteps(null); } @@ -144,6 +148,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AbstractPipelineNormalizer.php b/src/Normalizer/AbstractPipelineNormalizer.php index a9202c54..32c2a36d 100644 --- a/src/Normalizer/AbstractPipelineNormalizer.php +++ b/src/Normalizer/AbstractPipelineNormalizer.php @@ -27,15 +27,19 @@ class AbstractPipelineNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AbstractPipeline::class; + return \Gyroscops\Api\Model\AbstractPipeline::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AbstractPipeline::class; + return \is_object($data) && \Gyroscops\Api\Model\AbstractPipeline::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,78 +54,78 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('runtimeType', $data) && $data['runtimeType'] !== null) { + if (\array_key_exists('runtimeType', $data) && null !== $data['runtimeType']) { $object->setRuntimeType($data['runtimeType']); - } elseif (\array_key_exists('runtimeType', $data) && $data['runtimeType'] === null) { + } elseif (\array_key_exists('runtimeType', $data) && null === $data['runtimeType']) { $object->setRuntimeType(null); } - if (\array_key_exists('runtime', $data) && $data['runtime'] !== null) { + if (\array_key_exists('runtime', $data) && null !== $data['runtime']) { $values = []; foreach ($data['runtime'] as $value) { $values[] = $value; } $object->setRuntime($values); - } elseif (\array_key_exists('runtime', $data) && $data['runtime'] === null) { + } elseif (\array_key_exists('runtime', $data) && null === $data['runtime']) { $object->setRuntime(null); } - if (\array_key_exists('autoload', $data) && $data['autoload'] !== null) { + if (\array_key_exists('autoload', $data) && null !== $data['autoload']) { $values_1 = []; foreach ($data['autoload'] as $value_1) { $values_1[] = $value_1; } $object->setAutoload($values_1); - } elseif (\array_key_exists('autoload', $data) && $data['autoload'] === null) { + } elseif (\array_key_exists('autoload', $data) && null === $data['autoload']) { $object->setAutoload(null); } - if (\array_key_exists('packages', $data) && $data['packages'] !== null) { + if (\array_key_exists('packages', $data) && null !== $data['packages']) { $values_2 = []; foreach ($data['packages'] as $value_2) { $values_2[] = $value_2; } $object->setPackages($values_2); - } elseif (\array_key_exists('packages', $data) && $data['packages'] === null) { + } elseif (\array_key_exists('packages', $data) && null === $data['packages']) { $object->setPackages(null); } - if (\array_key_exists('repositories', $data) && $data['repositories'] !== null) { + if (\array_key_exists('repositories', $data) && null !== $data['repositories']) { $values_3 = []; foreach ($data['repositories'] as $value_3) { $values_3[] = $value_3; } $object->setRepositories($values_3); - } elseif (\array_key_exists('repositories', $data) && $data['repositories'] === null) { + } elseif (\array_key_exists('repositories', $data) && null === $data['repositories']) { $object->setRepositories(null); } - if (\array_key_exists('auths', $data) && $data['auths'] !== null) { + if (\array_key_exists('auths', $data) && null !== $data['auths']) { $values_4 = []; foreach ($data['auths'] as $value_4) { $values_4[] = $value_4; } $object->setAuths($values_4); - } elseif (\array_key_exists('auths', $data) && $data['auths'] === null) { + } elseif (\array_key_exists('auths', $data) && null === $data['auths']) { $object->setAuths(null); } - if (\array_key_exists('steps', $data) && $data['steps'] !== null) { + if (\array_key_exists('steps', $data) && null !== $data['steps']) { $values_5 = []; foreach ($data['steps'] as $value_5) { $values_5[] = $value_5; } $object->setSteps($values_5); - } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { $object->setSteps(null); } @@ -129,6 +133,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ActionJsonldReadNormalizer.php b/src/Normalizer/ActionJsonldReadNormalizer.php index b91cde00..190e2299 100644 --- a/src/Normalizer/ActionJsonldReadNormalizer.php +++ b/src/Normalizer/ActionJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class ActionJsonldReadNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ActionJsonldRead::class; + return \Gyroscops\Api\Model\ActionJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ActionJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\ActionJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ActionReadNormalizer.php b/src/Normalizer/ActionReadNormalizer.php index 67809504..38ae3b08 100644 --- a/src/Normalizer/ActionReadNormalizer.php +++ b/src/Normalizer/ActionReadNormalizer.php @@ -27,15 +27,19 @@ class ActionReadNormalizer implements DenormalizerInterface, NormalizerInterface public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ActionRead::class; + return \Gyroscops\Api\Model\ActionRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ActionRead::class; + return \is_object($data) && \Gyroscops\Api\Model\ActionRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,9 +54,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } @@ -60,6 +64,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AddPipelineComposerAuthCommandInputJsonldNormalizer.php b/src/Normalizer/AddPipelineComposerAuthCommandInputJsonldNormalizer.php index 681a5edf..a17e8170 100644 --- a/src/Normalizer/AddPipelineComposerAuthCommandInputJsonldNormalizer.php +++ b/src/Normalizer/AddPipelineComposerAuthCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class AddPipelineComposerAuthCommandInputJsonldNormalizer implements Denormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AddPipelineComposerAuthCommandInputJsonld::class; + return \Gyroscops\Api\Model\AddPipelineComposerAuthCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AddPipelineComposerAuthCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\AddPipelineComposerAuthCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,29 +54,29 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('url', $data) && $data['url'] !== null) { + if (\array_key_exists('url', $data) && null !== $data['url']) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + } elseif (\array_key_exists('url', $data) && null === $data['url']) { $object->setUrl(null); } - if (\array_key_exists('token', $data) && $data['token'] !== null) { + if (\array_key_exists('token', $data) && null !== $data['token']) { $object->setToken($data['token']); - } elseif (\array_key_exists('token', $data) && $data['token'] === null) { + } elseif (\array_key_exists('token', $data) && null === $data['token']) { $object->setToken(null); } @@ -80,6 +84,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AddPipelineComposerAuthCommandInputNormalizer.php b/src/Normalizer/AddPipelineComposerAuthCommandInputNormalizer.php index 687aae54..ae5c3540 100644 --- a/src/Normalizer/AddPipelineComposerAuthCommandInputNormalizer.php +++ b/src/Normalizer/AddPipelineComposerAuthCommandInputNormalizer.php @@ -27,15 +27,19 @@ class AddPipelineComposerAuthCommandInputNormalizer implements DenormalizerInter public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AddPipelineComposerAuthCommandInput::class; + return \Gyroscops\Api\Model\AddPipelineComposerAuthCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AddPipelineComposerAuthCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\AddPipelineComposerAuthCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,14 +54,14 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('url', $data) && $data['url'] !== null) { + if (\array_key_exists('url', $data) && null !== $data['url']) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + } elseif (\array_key_exists('url', $data) && null === $data['url']) { $object->setUrl(null); } - if (\array_key_exists('token', $data) && $data['token'] !== null) { + if (\array_key_exists('token', $data) && null !== $data['token']) { $object->setToken($data['token']); - } elseif (\array_key_exists('token', $data) && $data['token'] === null) { + } elseif (\array_key_exists('token', $data) && null === $data['token']) { $object->setToken(null); } @@ -65,6 +69,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AddPipelineComposerRepositoryCommandInputJsonldNormalizer.php b/src/Normalizer/AddPipelineComposerRepositoryCommandInputJsonldNormalizer.php index 59416492..d7691b5b 100644 --- a/src/Normalizer/AddPipelineComposerRepositoryCommandInputJsonldNormalizer.php +++ b/src/Normalizer/AddPipelineComposerRepositoryCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class AddPipelineComposerRepositoryCommandInputJsonldNormalizer implements Denor public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AddPipelineComposerRepositoryCommandInputJsonld::class; + return \Gyroscops\Api\Model\AddPipelineComposerRepositoryCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AddPipelineComposerRepositoryCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\AddPipelineComposerRepositoryCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('type', $data) && $data['type'] !== null) { + if (\array_key_exists('type', $data) && null !== $data['type']) { $object->setType2($data['type']); - } elseif (\array_key_exists('type', $data) && $data['type'] === null) { + } elseif (\array_key_exists('type', $data) && null === $data['type']) { $object->setType2(null); } - if (\array_key_exists('url', $data) && $data['url'] !== null) { + if (\array_key_exists('url', $data) && null !== $data['url']) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + } elseif (\array_key_exists('url', $data) && null === $data['url']) { $object->setUrl(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AddPipelineComposerRepositoryCommandInputNormalizer.php b/src/Normalizer/AddPipelineComposerRepositoryCommandInputNormalizer.php index 2a2c0c43..470ad98c 100644 --- a/src/Normalizer/AddPipelineComposerRepositoryCommandInputNormalizer.php +++ b/src/Normalizer/AddPipelineComposerRepositoryCommandInputNormalizer.php @@ -27,15 +27,19 @@ class AddPipelineComposerRepositoryCommandInputNormalizer implements Denormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AddPipelineComposerRepositoryCommandInput::class; + return \Gyroscops\Api\Model\AddPipelineComposerRepositoryCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AddPipelineComposerRepositoryCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\AddPipelineComposerRepositoryCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('type', $data) && $data['type'] !== null) { + if (\array_key_exists('type', $data) && null !== $data['type']) { $object->setType($data['type']); - } elseif (\array_key_exists('type', $data) && $data['type'] === null) { + } elseif (\array_key_exists('type', $data) && null === $data['type']) { $object->setType(null); } - if (\array_key_exists('url', $data) && $data['url'] !== null) { + if (\array_key_exists('url', $data) && null !== $data['url']) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + } elseif (\array_key_exists('url', $data) && null === $data['url']) { $object->setUrl(null); } @@ -70,6 +74,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AkeneoInstanceAkeneoInstanceInputJsonldNormalizer.php b/src/Normalizer/AkeneoInstanceAkeneoInstanceInputJsonldNormalizer.php index ae662603..bb16ca99 100644 --- a/src/Normalizer/AkeneoInstanceAkeneoInstanceInputJsonldNormalizer.php +++ b/src/Normalizer/AkeneoInstanceAkeneoInstanceInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class AkeneoInstanceAkeneoInstanceInputJsonldNormalizer implements DenormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInputJsonld::class; + return \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('pimUrl', $data) && $data['pimUrl'] !== null) { + if (\array_key_exists('pimUrl', $data) && null !== $data['pimUrl']) { $object->setPimUrl($data['pimUrl']); - } elseif (\array_key_exists('pimUrl', $data) && $data['pimUrl'] === null) { + } elseif (\array_key_exists('pimUrl', $data) && null === $data['pimUrl']) { $object->setPimUrl(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('secret', $data) && $data['secret'] !== null) { + if (\array_key_exists('secret', $data) && null !== $data['secret']) { $object->setSecret($this->denormalizer->denormalize($data['secret'], \Gyroscops\Api\Model\CreateSecretInputJsonld::class, 'json', $context)); - } elseif (\array_key_exists('secret', $data) && $data['secret'] === null) { + } elseif (\array_key_exists('secret', $data) && null === $data['secret']) { $object->setSecret(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AkeneoInstanceAkeneoInstanceInputNormalizer.php b/src/Normalizer/AkeneoInstanceAkeneoInstanceInputNormalizer.php index fecfa650..e2a121c9 100644 --- a/src/Normalizer/AkeneoInstanceAkeneoInstanceInputNormalizer.php +++ b/src/Normalizer/AkeneoInstanceAkeneoInstanceInputNormalizer.php @@ -27,15 +27,19 @@ class AkeneoInstanceAkeneoInstanceInputNormalizer implements DenormalizerInterfa public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInput::class; + return \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInput::class; + return \is_object($data) && \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('pimUrl', $data) && $data['pimUrl'] !== null) { + if (\array_key_exists('pimUrl', $data) && null !== $data['pimUrl']) { $object->setPimUrl($data['pimUrl']); - } elseif (\array_key_exists('pimUrl', $data) && $data['pimUrl'] === null) { + } elseif (\array_key_exists('pimUrl', $data) && null === $data['pimUrl']) { $object->setPimUrl(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('secret', $data) && $data['secret'] !== null) { + if (\array_key_exists('secret', $data) && null !== $data['secret']) { $object->setSecret($this->denormalizer->denormalize($data['secret'], \Gyroscops\Api\Model\CreateSecretInput::class, 'json', $context)); - } elseif (\array_key_exists('secret', $data) && $data['secret'] === null) { + } elseif (\array_key_exists('secret', $data) && null === $data['secret']) { $object->setSecret(null); } @@ -70,6 +74,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AkeneoInstanceJsonldNormalizer.php b/src/Normalizer/AkeneoInstanceJsonldNormalizer.php index b0990946..b1fa637b 100644 --- a/src/Normalizer/AkeneoInstanceJsonldNormalizer.php +++ b/src/Normalizer/AkeneoInstanceJsonldNormalizer.php @@ -27,15 +27,19 @@ class AkeneoInstanceJsonldNormalizer implements DenormalizerInterface, Normalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AkeneoInstanceJsonld::class; + return \Gyroscops\Api\Model\AkeneoInstanceJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AkeneoInstanceJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\AkeneoInstanceJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,62 +54,62 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('url', $data) && $data['url'] !== null) { + if (\array_key_exists('url', $data) && null !== $data['url']) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + } elseif (\array_key_exists('url', $data) && null === $data['url']) { $object->setUrl(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('secret', $data) && $data['secret'] !== null) { + if (\array_key_exists('secret', $data) && null !== $data['secret']) { $object->setSecret($data['secret']); - } elseif (\array_key_exists('secret', $data) && $data['secret'] === null) { + } elseif (\array_key_exists('secret', $data) && null === $data['secret']) { $object->setSecret(null); } - if (\array_key_exists('linkedAccounts', $data) && $data['linkedAccounts'] !== null) { + if (\array_key_exists('linkedAccounts', $data) && null !== $data['linkedAccounts']) { $values = []; foreach ($data['linkedAccounts'] as $value) { $values[] = $value; } $object->setLinkedAccounts($values); - } elseif (\array_key_exists('linkedAccounts', $data) && $data['linkedAccounts'] === null) { + } elseif (\array_key_exists('linkedAccounts', $data) && null === $data['linkedAccounts']) { $object->setLinkedAccounts(null); } - if (\array_key_exists('oauthTokens', $data) && $data['oauthTokens'] !== null) { + if (\array_key_exists('oauthTokens', $data) && null !== $data['oauthTokens']) { $values_1 = []; foreach ($data['oauthTokens'] as $value_1) { $values_1[] = $value_1; } $object->setOauthTokens($values_1); - } elseif (\array_key_exists('oauthTokens', $data) && $data['oauthTokens'] === null) { + } elseif (\array_key_exists('oauthTokens', $data) && null === $data['oauthTokens']) { $object->setOauthTokens(null); } @@ -113,6 +117,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AkeneoInstanceNormalizer.php b/src/Normalizer/AkeneoInstanceNormalizer.php index b87a8be8..7f30d51f 100644 --- a/src/Normalizer/AkeneoInstanceNormalizer.php +++ b/src/Normalizer/AkeneoInstanceNormalizer.php @@ -27,15 +27,19 @@ class AkeneoInstanceNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AkeneoInstance::class; + return \Gyroscops\Api\Model\AkeneoInstance::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AkeneoInstance::class; + return \is_object($data) && \Gyroscops\Api\Model\AkeneoInstance::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,47 +54,47 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('url', $data) && $data['url'] !== null) { + if (\array_key_exists('url', $data) && null !== $data['url']) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + } elseif (\array_key_exists('url', $data) && null === $data['url']) { $object->setUrl(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('secret', $data) && $data['secret'] !== null) { + if (\array_key_exists('secret', $data) && null !== $data['secret']) { $object->setSecret($data['secret']); - } elseif (\array_key_exists('secret', $data) && $data['secret'] === null) { + } elseif (\array_key_exists('secret', $data) && null === $data['secret']) { $object->setSecret(null); } - if (\array_key_exists('linkedAccounts', $data) && $data['linkedAccounts'] !== null) { + if (\array_key_exists('linkedAccounts', $data) && null !== $data['linkedAccounts']) { $values = []; foreach ($data['linkedAccounts'] as $value) { $values[] = $value; } $object->setLinkedAccounts($values); - } elseif (\array_key_exists('linkedAccounts', $data) && $data['linkedAccounts'] === null) { + } elseif (\array_key_exists('linkedAccounts', $data) && null === $data['linkedAccounts']) { $object->setLinkedAccounts(null); } - if (\array_key_exists('oauthTokens', $data) && $data['oauthTokens'] !== null) { + if (\array_key_exists('oauthTokens', $data) && null !== $data['oauthTokens']) { $values_1 = []; foreach ($data['oauthTokens'] as $value_1) { $values_1[] = $value_1; } $object->setOauthTokens($values_1); - } elseif (\array_key_exists('oauthTokens', $data) && $data['oauthTokens'] === null) { + } elseif (\array_key_exists('oauthTokens', $data) && null === $data['oauthTokens']) { $object->setOauthTokens(null); } @@ -98,6 +102,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonldNormalizer.php b/src/Normalizer/AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonldNormalizer.php index 440e962f..f5501695 100644 --- a/src/Normalizer/AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonldNormalizer.php +++ b/src/Normalizer/AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonldNormalizer implements De public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld::class; + return \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,39 +54,39 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('akeneoInstance', $data) && $data['akeneoInstance'] !== null) { + if (\array_key_exists('akeneoInstance', $data) && null !== $data['akeneoInstance']) { $object->setAkeneoInstance($data['akeneoInstance']); - } elseif (\array_key_exists('akeneoInstance', $data) && $data['akeneoInstance'] === null) { + } elseif (\array_key_exists('akeneoInstance', $data) && null === $data['akeneoInstance']) { $object->setAkeneoInstance(null); } - if (\array_key_exists('tokenId', $data) && $data['tokenId'] !== null) { + if (\array_key_exists('tokenId', $data) && null !== $data['tokenId']) { $object->setTokenId($data['tokenId']); - } elseif (\array_key_exists('tokenId', $data) && $data['tokenId'] === null) { + } elseif (\array_key_exists('tokenId', $data) && null === $data['tokenId']) { $object->setTokenId(null); } - if (\array_key_exists('akeneoUserId', $data) && $data['akeneoUserId'] !== null) { + if (\array_key_exists('akeneoUserId', $data) && null !== $data['akeneoUserId']) { $object->setAkeneoUserId($data['akeneoUserId']); - } elseif (\array_key_exists('akeneoUserId', $data) && $data['akeneoUserId'] === null) { + } elseif (\array_key_exists('akeneoUserId', $data) && null === $data['akeneoUserId']) { $object->setAkeneoUserId(null); } - if (\array_key_exists('token', $data) && $data['token'] !== null) { + if (\array_key_exists('token', $data) && null !== $data['token']) { $object->setToken($data['token']); - } elseif (\array_key_exists('token', $data) && $data['token'] === null) { + } elseif (\array_key_exists('token', $data) && null === $data['token']) { $object->setToken(null); } @@ -90,6 +94,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AkeneoLinkedAccountAkeneoLinkedAccountsInputNormalizer.php b/src/Normalizer/AkeneoLinkedAccountAkeneoLinkedAccountsInputNormalizer.php index e63800ea..f73322e6 100644 --- a/src/Normalizer/AkeneoLinkedAccountAkeneoLinkedAccountsInputNormalizer.php +++ b/src/Normalizer/AkeneoLinkedAccountAkeneoLinkedAccountsInputNormalizer.php @@ -27,15 +27,19 @@ class AkeneoLinkedAccountAkeneoLinkedAccountsInputNormalizer implements Denormal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInput::class; + return \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInput::class; + return \is_object($data) && \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('akeneoInstance', $data) && $data['akeneoInstance'] !== null) { + if (\array_key_exists('akeneoInstance', $data) && null !== $data['akeneoInstance']) { $object->setAkeneoInstance($data['akeneoInstance']); - } elseif (\array_key_exists('akeneoInstance', $data) && $data['akeneoInstance'] === null) { + } elseif (\array_key_exists('akeneoInstance', $data) && null === $data['akeneoInstance']) { $object->setAkeneoInstance(null); } - if (\array_key_exists('tokenId', $data) && $data['tokenId'] !== null) { + if (\array_key_exists('tokenId', $data) && null !== $data['tokenId']) { $object->setTokenId($data['tokenId']); - } elseif (\array_key_exists('tokenId', $data) && $data['tokenId'] === null) { + } elseif (\array_key_exists('tokenId', $data) && null === $data['tokenId']) { $object->setTokenId(null); } - if (\array_key_exists('akeneoUserId', $data) && $data['akeneoUserId'] !== null) { + if (\array_key_exists('akeneoUserId', $data) && null !== $data['akeneoUserId']) { $object->setAkeneoUserId($data['akeneoUserId']); - } elseif (\array_key_exists('akeneoUserId', $data) && $data['akeneoUserId'] === null) { + } elseif (\array_key_exists('akeneoUserId', $data) && null === $data['akeneoUserId']) { $object->setAkeneoUserId(null); } - if (\array_key_exists('token', $data) && $data['token'] !== null) { + if (\array_key_exists('token', $data) && null !== $data['token']) { $object->setToken($data['token']); - } elseif (\array_key_exists('token', $data) && $data['token'] === null) { + } elseif (\array_key_exists('token', $data) && null === $data['token']) { $object->setToken(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AkeneoLinkedAccountJsonldNormalizer.php b/src/Normalizer/AkeneoLinkedAccountJsonldNormalizer.php index c1fccedc..ca0ee9a9 100644 --- a/src/Normalizer/AkeneoLinkedAccountJsonldNormalizer.php +++ b/src/Normalizer/AkeneoLinkedAccountJsonldNormalizer.php @@ -27,15 +27,19 @@ class AkeneoLinkedAccountJsonldNormalizer implements DenormalizerInterface, Norm public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AkeneoLinkedAccountJsonld::class; + return \Gyroscops\Api\Model\AkeneoLinkedAccountJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AkeneoLinkedAccountJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\AkeneoLinkedAccountJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,49 +54,49 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('user', $data) && $data['user'] !== null) { + if (\array_key_exists('user', $data) && null !== $data['user']) { $object->setUser($data['user']); - } elseif (\array_key_exists('user', $data) && $data['user'] === null) { + } elseif (\array_key_exists('user', $data) && null === $data['user']) { $object->setUser(null); } - if (\array_key_exists('tokenId', $data) && $data['tokenId'] !== null) { + if (\array_key_exists('tokenId', $data) && null !== $data['tokenId']) { $object->setTokenId($data['tokenId']); - } elseif (\array_key_exists('tokenId', $data) && $data['tokenId'] === null) { + } elseif (\array_key_exists('tokenId', $data) && null === $data['tokenId']) { $object->setTokenId(null); } - if (\array_key_exists('akeneoUserId', $data) && $data['akeneoUserId'] !== null) { + if (\array_key_exists('akeneoUserId', $data) && null !== $data['akeneoUserId']) { $object->setAkeneoUserId($data['akeneoUserId']); - } elseif (\array_key_exists('akeneoUserId', $data) && $data['akeneoUserId'] === null) { + } elseif (\array_key_exists('akeneoUserId', $data) && null === $data['akeneoUserId']) { $object->setAkeneoUserId(null); } - if (\array_key_exists('token', $data) && $data['token'] !== null) { + if (\array_key_exists('token', $data) && null !== $data['token']) { $object->setToken($data['token']); - } elseif (\array_key_exists('token', $data) && $data['token'] === null) { + } elseif (\array_key_exists('token', $data) && null === $data['token']) { $object->setToken(null); } - if (\array_key_exists('akeneoInstance', $data) && $data['akeneoInstance'] !== null) { + if (\array_key_exists('akeneoInstance', $data) && null !== $data['akeneoInstance']) { $object->setAkeneoInstance($data['akeneoInstance']); - } elseif (\array_key_exists('akeneoInstance', $data) && $data['akeneoInstance'] === null) { + } elseif (\array_key_exists('akeneoInstance', $data) && null === $data['akeneoInstance']) { $object->setAkeneoInstance(null); } @@ -100,6 +104,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AkeneoLinkedAccountNormalizer.php b/src/Normalizer/AkeneoLinkedAccountNormalizer.php index eccd4ad2..21dca646 100644 --- a/src/Normalizer/AkeneoLinkedAccountNormalizer.php +++ b/src/Normalizer/AkeneoLinkedAccountNormalizer.php @@ -27,15 +27,19 @@ class AkeneoLinkedAccountNormalizer implements DenormalizerInterface, Normalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AkeneoLinkedAccount::class; + return \Gyroscops\Api\Model\AkeneoLinkedAccount::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AkeneoLinkedAccount::class; + return \is_object($data) && \Gyroscops\Api\Model\AkeneoLinkedAccount::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('user', $data) && $data['user'] !== null) { + if (\array_key_exists('user', $data) && null !== $data['user']) { $object->setUser($data['user']); - } elseif (\array_key_exists('user', $data) && $data['user'] === null) { + } elseif (\array_key_exists('user', $data) && null === $data['user']) { $object->setUser(null); } - if (\array_key_exists('tokenId', $data) && $data['tokenId'] !== null) { + if (\array_key_exists('tokenId', $data) && null !== $data['tokenId']) { $object->setTokenId($data['tokenId']); - } elseif (\array_key_exists('tokenId', $data) && $data['tokenId'] === null) { + } elseif (\array_key_exists('tokenId', $data) && null === $data['tokenId']) { $object->setTokenId(null); } - if (\array_key_exists('akeneoUserId', $data) && $data['akeneoUserId'] !== null) { + if (\array_key_exists('akeneoUserId', $data) && null !== $data['akeneoUserId']) { $object->setAkeneoUserId($data['akeneoUserId']); - } elseif (\array_key_exists('akeneoUserId', $data) && $data['akeneoUserId'] === null) { + } elseif (\array_key_exists('akeneoUserId', $data) && null === $data['akeneoUserId']) { $object->setAkeneoUserId(null); } - if (\array_key_exists('token', $data) && $data['token'] !== null) { + if (\array_key_exists('token', $data) && null !== $data['token']) { $object->setToken($data['token']); - } elseif (\array_key_exists('token', $data) && $data['token'] === null) { + } elseif (\array_key_exists('token', $data) && null === $data['token']) { $object->setToken(null); } - if (\array_key_exists('akeneoInstance', $data) && $data['akeneoInstance'] !== null) { + if (\array_key_exists('akeneoInstance', $data) && null !== $data['akeneoInstance']) { $object->setAkeneoInstance($data['akeneoInstance']); - } elseif (\array_key_exists('akeneoInstance', $data) && $data['akeneoInstance'] === null) { + } elseif (\array_key_exists('akeneoInstance', $data) && null === $data['akeneoInstance']) { $object->setAkeneoInstance(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AkeneoOauthTokenJsonldReadNormalizer.php b/src/Normalizer/AkeneoOauthTokenJsonldReadNormalizer.php index b57e959b..0a633511 100644 --- a/src/Normalizer/AkeneoOauthTokenJsonldReadNormalizer.php +++ b/src/Normalizer/AkeneoOauthTokenJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class AkeneoOauthTokenJsonldReadNormalizer implements DenormalizerInterface, Nor public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AkeneoOauthTokenJsonldRead::class; + return \Gyroscops\Api\Model\AkeneoOauthTokenJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AkeneoOauthTokenJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\AkeneoOauthTokenJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,43 +54,43 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('url', $data) && $data['url'] !== null) { + if (\array_key_exists('url', $data) && null !== $data['url']) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + } elseif (\array_key_exists('url', $data) && null === $data['url']) { $object->setUrl(null); } - if (\array_key_exists('scopes', $data) && $data['scopes'] !== null) { + if (\array_key_exists('scopes', $data) && null !== $data['scopes']) { $values = []; foreach ($data['scopes'] as $value) { $values[] = $value; } $object->setScopes($values); - } elseif (\array_key_exists('scopes', $data) && $data['scopes'] === null) { + } elseif (\array_key_exists('scopes', $data) && null === $data['scopes']) { $object->setScopes(null); } - if (\array_key_exists('responseType', $data) && $data['responseType'] !== null) { + if (\array_key_exists('responseType', $data) && null !== $data['responseType']) { $object->setResponseType($data['responseType']); - } elseif (\array_key_exists('responseType', $data) && $data['responseType'] === null) { + } elseif (\array_key_exists('responseType', $data) && null === $data['responseType']) { $object->setResponseType(null); } @@ -94,6 +98,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AkeneoOauthTokenOauthStateInputJsonldNormalizer.php b/src/Normalizer/AkeneoOauthTokenOauthStateInputJsonldNormalizer.php index 71c0b5fc..1afba6b3 100644 --- a/src/Normalizer/AkeneoOauthTokenOauthStateInputJsonldNormalizer.php +++ b/src/Normalizer/AkeneoOauthTokenOauthStateInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class AkeneoOauthTokenOauthStateInputJsonldNormalizer implements DenormalizerInt public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInputJsonld::class; + return \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,33 +54,33 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('url', $data) && $data['url'] !== null) { + if (\array_key_exists('url', $data) && null !== $data['url']) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + } elseif (\array_key_exists('url', $data) && null === $data['url']) { $object->setUrl(null); } - if (\array_key_exists('scope', $data) && $data['scope'] !== null) { + if (\array_key_exists('scope', $data) && null !== $data['scope']) { $values = []; foreach ($data['scope'] as $value) { $values[] = $value; } $object->setScope($values); - } elseif (\array_key_exists('scope', $data) && $data['scope'] === null) { + } elseif (\array_key_exists('scope', $data) && null === $data['scope']) { $object->setScope(null); } @@ -84,6 +88,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AkeneoOauthTokenOauthStateInputNormalizer.php b/src/Normalizer/AkeneoOauthTokenOauthStateInputNormalizer.php index 266c9aa6..d19cf684 100644 --- a/src/Normalizer/AkeneoOauthTokenOauthStateInputNormalizer.php +++ b/src/Normalizer/AkeneoOauthTokenOauthStateInputNormalizer.php @@ -27,15 +27,19 @@ class AkeneoOauthTokenOauthStateInputNormalizer implements DenormalizerInterface public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInput::class; + return \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInput::class; + return \is_object($data) && \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,18 +54,18 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('url', $data) && $data['url'] !== null) { + if (\array_key_exists('url', $data) && null !== $data['url']) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + } elseif (\array_key_exists('url', $data) && null === $data['url']) { $object->setUrl(null); } - if (\array_key_exists('scope', $data) && $data['scope'] !== null) { + if (\array_key_exists('scope', $data) && null !== $data['scope']) { $values = []; foreach ($data['scope'] as $value) { $values[] = $value; } $object->setScope($values); - } elseif (\array_key_exists('scope', $data) && $data['scope'] === null) { + } elseif (\array_key_exists('scope', $data) && null === $data['scope']) { $object->setScope(null); } @@ -69,6 +73,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AkeneoOauthTokenOauthStateOutputJsonldReadNormalizer.php b/src/Normalizer/AkeneoOauthTokenOauthStateOutputJsonldReadNormalizer.php index 5aa07ec4..bf824967 100644 --- a/src/Normalizer/AkeneoOauthTokenOauthStateOutputJsonldReadNormalizer.php +++ b/src/Normalizer/AkeneoOauthTokenOauthStateOutputJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class AkeneoOauthTokenOauthStateOutputJsonldReadNormalizer implements Denormaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateOutputJsonldRead::class; + return \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateOutputJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateOutputJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateOutputJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/AkeneoOauthTokenOauthTokenInputJsonldNormalizer.php b/src/Normalizer/AkeneoOauthTokenOauthTokenInputJsonldNormalizer.php index 1b74b765..7e760d1c 100644 --- a/src/Normalizer/AkeneoOauthTokenOauthTokenInputJsonldNormalizer.php +++ b/src/Normalizer/AkeneoOauthTokenOauthTokenInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class AkeneoOauthTokenOauthTokenInputJsonldNormalizer implements DenormalizerInt public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInputJsonld::class; + return \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,29 +54,29 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('url', $data) && $data['url'] !== null) { + if (\array_key_exists('url', $data) && null !== $data['url']) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + } elseif (\array_key_exists('url', $data) && null === $data['url']) { $object->setUrl(null); } - if (\array_key_exists('state', $data) && $data['state'] !== null) { + if (\array_key_exists('state', $data) && null !== $data['state']) { $object->setState($data['state']); - } elseif (\array_key_exists('state', $data) && $data['state'] === null) { + } elseif (\array_key_exists('state', $data) && null === $data['state']) { $object->setState(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } @@ -80,6 +84,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AkeneoOauthTokenOauthTokenInputNormalizer.php b/src/Normalizer/AkeneoOauthTokenOauthTokenInputNormalizer.php index 9c5be026..e52b2187 100644 --- a/src/Normalizer/AkeneoOauthTokenOauthTokenInputNormalizer.php +++ b/src/Normalizer/AkeneoOauthTokenOauthTokenInputNormalizer.php @@ -27,15 +27,19 @@ class AkeneoOauthTokenOauthTokenInputNormalizer implements DenormalizerInterface public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInput::class; + return \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInput::class; + return \is_object($data) && \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('url', $data) && $data['url'] !== null) { + if (\array_key_exists('url', $data) && null !== $data['url']) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + } elseif (\array_key_exists('url', $data) && null === $data['url']) { $object->setUrl(null); } - if (\array_key_exists('state', $data) && $data['state'] !== null) { + if (\array_key_exists('state', $data) && null !== $data['state']) { $object->setState($data['state']); - } elseif (\array_key_exists('state', $data) && $data['state'] === null) { + } elseif (\array_key_exists('state', $data) && null === $data['state']) { $object->setState(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } @@ -70,6 +74,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AkeneoOauthTokenOauthTokenOutputJsonldReadNormalizer.php b/src/Normalizer/AkeneoOauthTokenOauthTokenOutputJsonldReadNormalizer.php index 1a2cc16f..153286a3 100644 --- a/src/Normalizer/AkeneoOauthTokenOauthTokenOutputJsonldReadNormalizer.php +++ b/src/Normalizer/AkeneoOauthTokenOauthTokenOutputJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class AkeneoOauthTokenOauthTokenOutputJsonldReadNormalizer implements Denormaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenOutputJsonldRead::class; + return \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenOutputJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenOutputJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenOutputJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,14 +54,14 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -65,12 +69,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/AkeneoOauthTokenReadNormalizer.php b/src/Normalizer/AkeneoOauthTokenReadNormalizer.php index 3cb44a0f..0654fdc2 100644 --- a/src/Normalizer/AkeneoOauthTokenReadNormalizer.php +++ b/src/Normalizer/AkeneoOauthTokenReadNormalizer.php @@ -27,15 +27,19 @@ class AkeneoOauthTokenReadNormalizer implements DenormalizerInterface, Normalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AkeneoOauthTokenRead::class; + return \Gyroscops\Api\Model\AkeneoOauthTokenRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AkeneoOauthTokenRead::class; + return \is_object($data) && \Gyroscops\Api\Model\AkeneoOauthTokenRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('url', $data) && $data['url'] !== null) { + if (\array_key_exists('url', $data) && null !== $data['url']) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + } elseif (\array_key_exists('url', $data) && null === $data['url']) { $object->setUrl(null); } - if (\array_key_exists('scopes', $data) && $data['scopes'] !== null) { + if (\array_key_exists('scopes', $data) && null !== $data['scopes']) { $values = []; foreach ($data['scopes'] as $value) { $values[] = $value; } $object->setScopes($values); - } elseif (\array_key_exists('scopes', $data) && $data['scopes'] === null) { + } elseif (\array_key_exists('scopes', $data) && null === $data['scopes']) { $object->setScopes(null); } - if (\array_key_exists('responseType', $data) && $data['responseType'] !== null) { + if (\array_key_exists('responseType', $data) && null !== $data['responseType']) { $object->setResponseType($data['responseType']); - } elseif (\array_key_exists('responseType', $data) && $data['responseType'] === null) { + } elseif (\array_key_exists('responseType', $data) && null === $data['responseType']) { $object->setResponseType(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationMeGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationMeGetResponse200HydraSearchHydraMappingItemNormalizer.php index f1bfe69f..26ce7e24 100644 --- a/src/Normalizer/AuthenticationMeGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/AuthenticationMeGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationMeGetResponse200HydraSearchHydraMappingItemNormalizer implem public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationMeGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationMeGetResponse200HydraSearchNormalizer.php index 66cc51ee..32accf8f 100644 --- a/src/Normalizer/AuthenticationMeGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/AuthenticationMeGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationMeGetResponse200HydraSearchNormalizer implements Denormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationMeGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationMeGetResponse200HydraViewNormalizer.php index dccba4dc..f83033f3 100644 --- a/src/Normalizer/AuthenticationMeGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/AuthenticationMeGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationMeGetResponse200HydraViewNormalizer implements DenormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraView::class; + return \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationMeGetResponse200Normalizer.php b/src/Normalizer/AuthenticationMeGetResponse200Normalizer.php index 10216544..e5075774 100644 --- a/src/Normalizer/AuthenticationMeGetResponse200Normalizer.php +++ b/src/Normalizer/AuthenticationMeGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class AuthenticationMeGetResponse200Normalizer implements DenormalizerInterface, public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationMeGetResponse200::class; + return \Gyroscops\Api\Model\AuthenticationMeGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationMeGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationMeGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\UserJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 484b3876..2f67d34b 100644 --- a/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItemNorma public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraSearchNormalizer.php index 3a534cbb..f267e9b4 100644 --- a/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOfferIdOptionsGetResponse200HydraSearchNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraViewNormalizer.php index 74855e08..c25a0fbe 100644 --- a/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOfferIdOptionsGetResponse200HydraViewNormalizer implements D public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200Normalizer.php b/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200Normalizer.php index 60a6b700..77491bdf 100644 --- a/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200Normalizer.php +++ b/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class AuthenticationOfferIdOptionsGetResponse200Normalizer implements Denormaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200::class; + return \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\OptionJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOffersGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationOffersGetResponse200HydraSearchHydraMappingItemNormalizer.php index 55bf6445..a7a5394f 100644 --- a/src/Normalizer/AuthenticationOffersGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/AuthenticationOffersGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOffersGetResponse200HydraSearchHydraMappingItemNormalizer im public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOffersGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationOffersGetResponse200HydraSearchNormalizer.php index 3e923882..c9f5840a 100644 --- a/src/Normalizer/AuthenticationOffersGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/AuthenticationOffersGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOffersGetResponse200HydraSearchNormalizer implements Denorma public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOffersGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationOffersGetResponse200HydraViewNormalizer.php index ec97bc6e..c124737b 100644 --- a/src/Normalizer/AuthenticationOffersGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/AuthenticationOffersGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOffersGetResponse200HydraViewNormalizer implements Denormali public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraView::class; + return \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOffersGetResponse200Normalizer.php b/src/Normalizer/AuthenticationOffersGetResponse200Normalizer.php index a03cad85..7b09bc5f 100644 --- a/src/Normalizer/AuthenticationOffersGetResponse200Normalizer.php +++ b/src/Normalizer/AuthenticationOffersGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class AuthenticationOffersGetResponse200Normalizer implements DenormalizerInterf public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOffersGetResponse200::class; + return \Gyroscops\Api\Model\AuthenticationOffersGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOffersGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOffersGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\OfferJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php index b673bfb9..7476a83c 100644 --- a/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMa public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchNormalizer.php index 9fa60efe..3f825beb 100644 --- a/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchNormali public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraViewNormalizer.php index 80217c90..5e6b0531 100644 --- a/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOrganizationIdAuthorizationsGetResponse200HydraViewNormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200Normalizer.php b/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200Normalizer.php index 8d2e437d..e0df3115 100644 --- a/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200Normalizer.php +++ b/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class AuthenticationOrganizationIdAuthorizationsGetResponse200Normalizer impleme public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200::class; + return \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\UserAuthorizationJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItemNormalizer.php index c19e73e0..0183a0a0 100644 --- a/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearch public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchNormalizer.php index 9d28c912..b9af3dd9 100644 --- a/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearch public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraViewNormalizer.php index 3438ee5e..7d9819c3 100644 --- a/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraViewNo public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200Normalizer.php b/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200Normalizer.php index 0f8ab5bb..1643c76c 100644 --- a/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200Normalizer.php +++ b/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class AuthenticationOrganizationIdExternalCollaboratorsGetResponse200Normalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200::class; + return \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\UserJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php index 7e3900f1..2396e378 100644 --- a/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItem public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraSearchNormalizer.php index b706def0..849cafa5 100644 --- a/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOrganizationIdUsersGetResponse200HydraSearchNormalizer imple public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraViewNormalizer.php index 71a0b431..22d769e0 100644 --- a/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOrganizationIdUsersGetResponse200HydraViewNormalizer impleme public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraView::class; + return \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200Normalizer.php b/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200Normalizer.php index a447d922..3eb7ad92 100644 --- a/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200Normalizer.php +++ b/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class AuthenticationOrganizationIdUsersGetResponse200Normalizer implements Denor public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200::class; + return \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\UserJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItemNormalizer.php index 95023f3d..622f8490 100644 --- a/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappin public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchNormalizer.php index 4ffa6829..9ee45a16 100644 --- a/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchNormalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraViewNormalizer.php index e9ef511a..5bd0c866 100644 --- a/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOrganizationIdWorkspacesGetResponse200HydraViewNormalizer im public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraView::class; + return \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200Normalizer.php b/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200Normalizer.php index 6e82d378..2c1a592d 100644 --- a/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200Normalizer.php +++ b/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class AuthenticationOrganizationIdWorkspacesGetResponse200Normalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200::class; + return \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\WorkspaceJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 00b3b167..1cd11382 100644 --- a/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItemNormal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraSearchNormalizer.php index 9c87252a..6c94f493 100644 --- a/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOrganizationsGetResponse200HydraSearchNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraViewNormalizer.php index 590e9caa..747c5bd8 100644 --- a/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationOrganizationsGetResponse200HydraViewNormalizer implements De public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationOrganizationsGetResponse200Normalizer.php b/src/Normalizer/AuthenticationOrganizationsGetResponse200Normalizer.php index 97cafff6..20f675ed 100644 --- a/src/Normalizer/AuthenticationOrganizationsGetResponse200Normalizer.php +++ b/src/Normalizer/AuthenticationOrganizationsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class AuthenticationOrganizationsGetResponse200Normalizer implements Denormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200::class; + return \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\OrganizationJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 710d57b1..150bcbd9 100644 --- a/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItemNormal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraSearchNormalizer.php index 47db0949..46fe77fa 100644 --- a/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationSubscriptionsGetResponse200HydraSearchNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraViewNormalizer.php index 48979c8f..63464feb 100644 --- a/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationSubscriptionsGetResponse200HydraViewNormalizer implements De public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationSubscriptionsGetResponse200Normalizer.php b/src/Normalizer/AuthenticationSubscriptionsGetResponse200Normalizer.php index df7de836..a7780f1f 100644 --- a/src/Normalizer/AuthenticationSubscriptionsGetResponse200Normalizer.php +++ b/src/Normalizer/AuthenticationSubscriptionsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class AuthenticationSubscriptionsGetResponse200Normalizer implements Denormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200::class; + return \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\SubscriptionJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 7f7fb44a..245df932 100644 --- a/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchNormalizer.php index 074907d3..6813cd8d 100644 --- a/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchNormalizer im public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraViewNormalizer.php index 2b5deeb6..0ae61a0f 100644 --- a/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationSubscriptionsIdOptionsGetResponse200HydraViewNormalizer impl public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200Normalizer.php b/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200Normalizer.php index 483a0c87..cea5500f 100644 --- a/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200Normalizer.php +++ b/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class AuthenticationSubscriptionsIdOptionsGetResponse200Normalizer implements De public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200::class; + return \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\SubscriptionOptionJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php index a66400c4..c3b5d052 100644 --- a/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItemN public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraSearchNormalizer.php index 22e005c3..d1093982 100644 --- a/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationUserAuthorizationsGetResponse200HydraSearchNormalizer implem public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraViewNormalizer.php index a1c4d1d0..df7c9c48 100644 --- a/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationUserAuthorizationsGetResponse200HydraViewNormalizer implemen public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200Normalizer.php b/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200Normalizer.php index 400d3b26..3abd8063 100644 --- a/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200Normalizer.php +++ b/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class AuthenticationUserAuthorizationsGetResponse200Normalizer implements Denorm public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200::class; + return \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\UserAuthorizationJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php index eba9a9ea..80a93fd4 100644 --- a/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingIte public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraSearchNormalizer.php index fe0f22fa..0b2f5e7e 100644 --- a/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationUserIdAuthorizationsGetResponse200HydraSearchNormalizer impl public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraViewNormalizer.php index ee993c99..b44d4d06 100644 --- a/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationUserIdAuthorizationsGetResponse200HydraViewNormalizer implem public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200Normalizer.php b/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200Normalizer.php index 5edc19eb..e267a67c 100644 --- a/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200Normalizer.php +++ b/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class AuthenticationUserIdAuthorizationsGetResponse200Normalizer implements Deno public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200::class; + return \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\UserAuthorizationJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php index c280b28c..55d4d1b7 100644 --- a/src/Normalizer/AuthenticationUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/AuthenticationUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationUsersGetResponse200HydraSearchHydraMappingItemNormalizer imp public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationUsersGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationUsersGetResponse200HydraSearchNormalizer.php index 78f5eaae..45b22689 100644 --- a/src/Normalizer/AuthenticationUsersGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/AuthenticationUsersGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationUsersGetResponse200HydraSearchNormalizer implements Denormal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationUsersGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationUsersGetResponse200HydraViewNormalizer.php index 13b40751..d324e21f 100644 --- a/src/Normalizer/AuthenticationUsersGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/AuthenticationUsersGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationUsersGetResponse200HydraViewNormalizer implements Denormaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraView::class; + return \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationUsersGetResponse200Normalizer.php b/src/Normalizer/AuthenticationUsersGetResponse200Normalizer.php index 4e27aee3..3c04559d 100644 --- a/src/Normalizer/AuthenticationUsersGetResponse200Normalizer.php +++ b/src/Normalizer/AuthenticationUsersGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class AuthenticationUsersGetResponse200Normalizer implements DenormalizerInterfa public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationUsersGetResponse200::class; + return \Gyroscops\Api\Model\AuthenticationUsersGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationUsersGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationUsersGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\UserJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 2267508a..09a2a87a 100644 --- a/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappi public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchNormalizer.php index 5f263ef1..72dcb5ba 100644 --- a/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchNormalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraViewNormalizer.php index 09ba500e..b972f81d 100644 --- a/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraViewNormalizer i public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200Normalizer.php b/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200Normalizer.php index 9339d40b..9e29244e 100644 --- a/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200Normalizer.php +++ b/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class AuthenticationWorkspaceIdAuthorizationsGetResponse200Normalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200::class; + return \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\UserAuthorizationJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php index ddf9e0da..f335098d 100644 --- a/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItemNor public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraSearchNormalizer.php index 9c21aee8..b8566bd8 100644 --- a/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationWorkspaceIdUsersGetResponse200HydraSearchNormalizer implemen public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraViewNormalizer.php index ce5318a1..749e7ae3 100644 --- a/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationWorkspaceIdUsersGetResponse200HydraViewNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraView::class; + return \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200Normalizer.php b/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200Normalizer.php index b8d70fa4..5c5fe476 100644 --- a/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200Normalizer.php +++ b/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class AuthenticationWorkspaceIdUsersGetResponse200Normalizer implements Denormal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200::class; + return \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\UserJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItemNormalizer.php index 9cbd3035..83e54417 100644 --- a/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItemNormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraSearchNormalizer.php index 80f6c839..02146465 100644 --- a/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationWorkspacesGetResponse200HydraSearchNormalizer implements Den public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraViewNormalizer.php index 950ef1cd..de9850cd 100644 --- a/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class AuthenticationWorkspacesGetResponse200HydraViewNormalizer implements Denor public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraView::class; + return \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AuthenticationWorkspacesGetResponse200Normalizer.php b/src/Normalizer/AuthenticationWorkspacesGetResponse200Normalizer.php index 5c644b73..95a76631 100644 --- a/src/Normalizer/AuthenticationWorkspacesGetResponse200Normalizer.php +++ b/src/Normalizer/AuthenticationWorkspacesGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class AuthenticationWorkspacesGetResponse200Normalizer implements DenormalizerIn public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200::class; + return \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\WorkspaceJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AutoloadInputJsonldNormalizer.php b/src/Normalizer/AutoloadInputJsonldNormalizer.php index 7f12a022..50647b7a 100644 --- a/src/Normalizer/AutoloadInputJsonldNormalizer.php +++ b/src/Normalizer/AutoloadInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class AutoloadInputJsonldNormalizer implements DenormalizerInterface, Normalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AutoloadInputJsonld::class; + return \Gyroscops\Api\Model\AutoloadInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AutoloadInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\AutoloadInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,33 +54,33 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('namespace', $data) && $data['namespace'] !== null) { + if (\array_key_exists('namespace', $data) && null !== $data['namespace']) { $object->setNamespace($data['namespace']); - } elseif (\array_key_exists('namespace', $data) && $data['namespace'] === null) { + } elseif (\array_key_exists('namespace', $data) && null === $data['namespace']) { $object->setNamespace(null); } - if (\array_key_exists('paths', $data) && $data['paths'] !== null) { + if (\array_key_exists('paths', $data) && null !== $data['paths']) { $values = []; foreach ($data['paths'] as $value) { $values[] = $value; } $object->setPaths($values); - } elseif (\array_key_exists('paths', $data) && $data['paths'] === null) { + } elseif (\array_key_exists('paths', $data) && null === $data['paths']) { $object->setPaths(null); } @@ -84,6 +88,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/AutoloadInputNormalizer.php b/src/Normalizer/AutoloadInputNormalizer.php index c3a65a85..7a2668ef 100644 --- a/src/Normalizer/AutoloadInputNormalizer.php +++ b/src/Normalizer/AutoloadInputNormalizer.php @@ -27,15 +27,19 @@ class AutoloadInputNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\AutoloadInput::class; + return \Gyroscops\Api\Model\AutoloadInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\AutoloadInput::class; + return \is_object($data) && \Gyroscops\Api\Model\AutoloadInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,18 +54,18 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('namespace', $data) && $data['namespace'] !== null) { + if (\array_key_exists('namespace', $data) && null !== $data['namespace']) { $object->setNamespace($data['namespace']); - } elseif (\array_key_exists('namespace', $data) && $data['namespace'] === null) { + } elseif (\array_key_exists('namespace', $data) && null === $data['namespace']) { $object->setNamespace(null); } - if (\array_key_exists('paths', $data) && $data['paths'] !== null) { + if (\array_key_exists('paths', $data) && null !== $data['paths']) { $values = []; foreach ($data['paths'] as $value) { $values[] = $value; } $object->setPaths($values); - } elseif (\array_key_exists('paths', $data) && $data['paths'] === null) { + } elseif (\array_key_exists('paths', $data) && null === $data['paths']) { $object->setPaths(null); } @@ -69,6 +73,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/BigDecimalJsonldNormalizer.php b/src/Normalizer/BigDecimalJsonldNormalizer.php index f5a59ef2..3dc43ae7 100644 --- a/src/Normalizer/BigDecimalJsonldNormalizer.php +++ b/src/Normalizer/BigDecimalJsonldNormalizer.php @@ -27,15 +27,19 @@ class BigDecimalJsonldNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\BigDecimalJsonld::class; + return \Gyroscops\Api\Model\BigDecimalJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\BigDecimalJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\BigDecimalJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,74 +54,74 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('scale', $data) && $data['scale'] !== null) { + if (\array_key_exists('scale', $data) && null !== $data['scale']) { $object->setScale($data['scale']); - } elseif (\array_key_exists('scale', $data) && $data['scale'] === null) { + } elseif (\array_key_exists('scale', $data) && null === $data['scale']) { $object->setScale(null); } - if (\array_key_exists('sign', $data) && $data['sign'] !== null) { + if (\array_key_exists('sign', $data) && null !== $data['sign']) { $object->setSign($data['sign']); - } elseif (\array_key_exists('sign', $data) && $data['sign'] === null) { + } elseif (\array_key_exists('sign', $data) && null === $data['sign']) { $object->setSign(null); } - if (\array_key_exists('unscaledValue', $data) && $data['unscaledValue'] !== null) { + if (\array_key_exists('unscaledValue', $data) && null !== $data['unscaledValue']) { $object->setUnscaledValue($this->denormalizer->denormalize($data['unscaledValue'], \Gyroscops\Api\Model\BigIntegerJsonld::class, 'json', $context)); - } elseif (\array_key_exists('unscaledValue', $data) && $data['unscaledValue'] === null) { + } elseif (\array_key_exists('unscaledValue', $data) && null === $data['unscaledValue']) { $object->setUnscaledValue(null); } - if (\array_key_exists('integralPart', $data) && $data['integralPart'] !== null) { + if (\array_key_exists('integralPart', $data) && null !== $data['integralPart']) { $object->setIntegralPart($data['integralPart']); - } elseif (\array_key_exists('integralPart', $data) && $data['integralPart'] === null) { + } elseif (\array_key_exists('integralPart', $data) && null === $data['integralPart']) { $object->setIntegralPart(null); } - if (\array_key_exists('fractionalPart', $data) && $data['fractionalPart'] !== null) { + if (\array_key_exists('fractionalPart', $data) && null !== $data['fractionalPart']) { $object->setFractionalPart($data['fractionalPart']); - } elseif (\array_key_exists('fractionalPart', $data) && $data['fractionalPart'] === null) { + } elseif (\array_key_exists('fractionalPart', $data) && null === $data['fractionalPart']) { $object->setFractionalPart(null); } - if (\array_key_exists('nonZeroFractionalPart', $data) && $data['nonZeroFractionalPart'] !== null) { + if (\array_key_exists('nonZeroFractionalPart', $data) && null !== $data['nonZeroFractionalPart']) { $object->setNonZeroFractionalPart($data['nonZeroFractionalPart']); - } elseif (\array_key_exists('nonZeroFractionalPart', $data) && $data['nonZeroFractionalPart'] === null) { + } elseif (\array_key_exists('nonZeroFractionalPart', $data) && null === $data['nonZeroFractionalPart']) { $object->setNonZeroFractionalPart(null); } - if (\array_key_exists('zero', $data) && $data['zero'] !== null) { + if (\array_key_exists('zero', $data) && null !== $data['zero']) { $object->setZero($data['zero']); - } elseif (\array_key_exists('zero', $data) && $data['zero'] === null) { + } elseif (\array_key_exists('zero', $data) && null === $data['zero']) { $object->setZero(null); } - if (\array_key_exists('negative', $data) && $data['negative'] !== null) { + if (\array_key_exists('negative', $data) && null !== $data['negative']) { $object->setNegative($data['negative']); - } elseif (\array_key_exists('negative', $data) && $data['negative'] === null) { + } elseif (\array_key_exists('negative', $data) && null === $data['negative']) { $object->setNegative(null); } - if (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] !== null) { + if (\array_key_exists('negativeOrZero', $data) && null !== $data['negativeOrZero']) { $object->setNegativeOrZero($data['negativeOrZero']); - } elseif (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] === null) { + } elseif (\array_key_exists('negativeOrZero', $data) && null === $data['negativeOrZero']) { $object->setNegativeOrZero(null); } - if (\array_key_exists('positive', $data) && $data['positive'] !== null) { + if (\array_key_exists('positive', $data) && null !== $data['positive']) { $object->setPositive($data['positive']); - } elseif (\array_key_exists('positive', $data) && $data['positive'] === null) { + } elseif (\array_key_exists('positive', $data) && null === $data['positive']) { $object->setPositive(null); } - if (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] !== null) { + if (\array_key_exists('positiveOrZero', $data) && null !== $data['positiveOrZero']) { $object->setPositiveOrZero($data['positiveOrZero']); - } elseif (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] === null) { + } elseif (\array_key_exists('positiveOrZero', $data) && null === $data['positiveOrZero']) { $object->setPositiveOrZero(null); } @@ -125,6 +129,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/BigDecimalNormalizer.php b/src/Normalizer/BigDecimalNormalizer.php index 7ea04e1f..7b5ad398 100644 --- a/src/Normalizer/BigDecimalNormalizer.php +++ b/src/Normalizer/BigDecimalNormalizer.php @@ -27,15 +27,19 @@ class BigDecimalNormalizer implements DenormalizerInterface, NormalizerInterface public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\BigDecimal::class; + return \Gyroscops\Api\Model\BigDecimal::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\BigDecimal::class; + return \is_object($data) && \Gyroscops\Api\Model\BigDecimal::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,59 +54,59 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('scale', $data) && $data['scale'] !== null) { + if (\array_key_exists('scale', $data) && null !== $data['scale']) { $object->setScale($data['scale']); - } elseif (\array_key_exists('scale', $data) && $data['scale'] === null) { + } elseif (\array_key_exists('scale', $data) && null === $data['scale']) { $object->setScale(null); } - if (\array_key_exists('sign', $data) && $data['sign'] !== null) { + if (\array_key_exists('sign', $data) && null !== $data['sign']) { $object->setSign($data['sign']); - } elseif (\array_key_exists('sign', $data) && $data['sign'] === null) { + } elseif (\array_key_exists('sign', $data) && null === $data['sign']) { $object->setSign(null); } - if (\array_key_exists('unscaledValue', $data) && $data['unscaledValue'] !== null) { + if (\array_key_exists('unscaledValue', $data) && null !== $data['unscaledValue']) { $object->setUnscaledValue($this->denormalizer->denormalize($data['unscaledValue'], \Gyroscops\Api\Model\BigInteger::class, 'json', $context)); - } elseif (\array_key_exists('unscaledValue', $data) && $data['unscaledValue'] === null) { + } elseif (\array_key_exists('unscaledValue', $data) && null === $data['unscaledValue']) { $object->setUnscaledValue(null); } - if (\array_key_exists('integralPart', $data) && $data['integralPart'] !== null) { + if (\array_key_exists('integralPart', $data) && null !== $data['integralPart']) { $object->setIntegralPart($data['integralPart']); - } elseif (\array_key_exists('integralPart', $data) && $data['integralPart'] === null) { + } elseif (\array_key_exists('integralPart', $data) && null === $data['integralPart']) { $object->setIntegralPart(null); } - if (\array_key_exists('fractionalPart', $data) && $data['fractionalPart'] !== null) { + if (\array_key_exists('fractionalPart', $data) && null !== $data['fractionalPart']) { $object->setFractionalPart($data['fractionalPart']); - } elseif (\array_key_exists('fractionalPart', $data) && $data['fractionalPart'] === null) { + } elseif (\array_key_exists('fractionalPart', $data) && null === $data['fractionalPart']) { $object->setFractionalPart(null); } - if (\array_key_exists('nonZeroFractionalPart', $data) && $data['nonZeroFractionalPart'] !== null) { + if (\array_key_exists('nonZeroFractionalPart', $data) && null !== $data['nonZeroFractionalPart']) { $object->setNonZeroFractionalPart($data['nonZeroFractionalPart']); - } elseif (\array_key_exists('nonZeroFractionalPart', $data) && $data['nonZeroFractionalPart'] === null) { + } elseif (\array_key_exists('nonZeroFractionalPart', $data) && null === $data['nonZeroFractionalPart']) { $object->setNonZeroFractionalPart(null); } - if (\array_key_exists('zero', $data) && $data['zero'] !== null) { + if (\array_key_exists('zero', $data) && null !== $data['zero']) { $object->setZero($data['zero']); - } elseif (\array_key_exists('zero', $data) && $data['zero'] === null) { + } elseif (\array_key_exists('zero', $data) && null === $data['zero']) { $object->setZero(null); } - if (\array_key_exists('negative', $data) && $data['negative'] !== null) { + if (\array_key_exists('negative', $data) && null !== $data['negative']) { $object->setNegative($data['negative']); - } elseif (\array_key_exists('negative', $data) && $data['negative'] === null) { + } elseif (\array_key_exists('negative', $data) && null === $data['negative']) { $object->setNegative(null); } - if (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] !== null) { + if (\array_key_exists('negativeOrZero', $data) && null !== $data['negativeOrZero']) { $object->setNegativeOrZero($data['negativeOrZero']); - } elseif (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] === null) { + } elseif (\array_key_exists('negativeOrZero', $data) && null === $data['negativeOrZero']) { $object->setNegativeOrZero(null); } - if (\array_key_exists('positive', $data) && $data['positive'] !== null) { + if (\array_key_exists('positive', $data) && null !== $data['positive']) { $object->setPositive($data['positive']); - } elseif (\array_key_exists('positive', $data) && $data['positive'] === null) { + } elseif (\array_key_exists('positive', $data) && null === $data['positive']) { $object->setPositive(null); } - if (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] !== null) { + if (\array_key_exists('positiveOrZero', $data) && null !== $data['positiveOrZero']) { $object->setPositiveOrZero($data['positiveOrZero']); - } elseif (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] === null) { + } elseif (\array_key_exists('positiveOrZero', $data) && null === $data['positiveOrZero']) { $object->setPositiveOrZero(null); } @@ -110,6 +114,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/BigIntegerJsonldNormalizer.php b/src/Normalizer/BigIntegerJsonldNormalizer.php index bea42843..24d4e1ef 100644 --- a/src/Normalizer/BigIntegerJsonldNormalizer.php +++ b/src/Normalizer/BigIntegerJsonldNormalizer.php @@ -27,15 +27,19 @@ class BigIntegerJsonldNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\BigIntegerJsonld::class; + return \Gyroscops\Api\Model\BigIntegerJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\BigIntegerJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\BigIntegerJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,69 +54,69 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('bitLength', $data) && $data['bitLength'] !== null) { + if (\array_key_exists('bitLength', $data) && null !== $data['bitLength']) { $object->setBitLength($data['bitLength']); - } elseif (\array_key_exists('bitLength', $data) && $data['bitLength'] === null) { + } elseif (\array_key_exists('bitLength', $data) && null === $data['bitLength']) { $object->setBitLength(null); } - if (\array_key_exists('lowestSetBit', $data) && $data['lowestSetBit'] !== null) { + if (\array_key_exists('lowestSetBit', $data) && null !== $data['lowestSetBit']) { $object->setLowestSetBit($data['lowestSetBit']); - } elseif (\array_key_exists('lowestSetBit', $data) && $data['lowestSetBit'] === null) { + } elseif (\array_key_exists('lowestSetBit', $data) && null === $data['lowestSetBit']) { $object->setLowestSetBit(null); } - if (\array_key_exists('even', $data) && $data['even'] !== null) { + if (\array_key_exists('even', $data) && null !== $data['even']) { $object->setEven($data['even']); - } elseif (\array_key_exists('even', $data) && $data['even'] === null) { + } elseif (\array_key_exists('even', $data) && null === $data['even']) { $object->setEven(null); } - if (\array_key_exists('odd', $data) && $data['odd'] !== null) { + if (\array_key_exists('odd', $data) && null !== $data['odd']) { $object->setOdd($data['odd']); - } elseif (\array_key_exists('odd', $data) && $data['odd'] === null) { + } elseif (\array_key_exists('odd', $data) && null === $data['odd']) { $object->setOdd(null); } - if (\array_key_exists('sign', $data) && $data['sign'] !== null) { + if (\array_key_exists('sign', $data) && null !== $data['sign']) { $object->setSign($data['sign']); - } elseif (\array_key_exists('sign', $data) && $data['sign'] === null) { + } elseif (\array_key_exists('sign', $data) && null === $data['sign']) { $object->setSign(null); } - if (\array_key_exists('zero', $data) && $data['zero'] !== null) { + if (\array_key_exists('zero', $data) && null !== $data['zero']) { $object->setZero($data['zero']); - } elseif (\array_key_exists('zero', $data) && $data['zero'] === null) { + } elseif (\array_key_exists('zero', $data) && null === $data['zero']) { $object->setZero(null); } - if (\array_key_exists('negative', $data) && $data['negative'] !== null) { + if (\array_key_exists('negative', $data) && null !== $data['negative']) { $object->setNegative($data['negative']); - } elseif (\array_key_exists('negative', $data) && $data['negative'] === null) { + } elseif (\array_key_exists('negative', $data) && null === $data['negative']) { $object->setNegative(null); } - if (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] !== null) { + if (\array_key_exists('negativeOrZero', $data) && null !== $data['negativeOrZero']) { $object->setNegativeOrZero($data['negativeOrZero']); - } elseif (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] === null) { + } elseif (\array_key_exists('negativeOrZero', $data) && null === $data['negativeOrZero']) { $object->setNegativeOrZero(null); } - if (\array_key_exists('positive', $data) && $data['positive'] !== null) { + if (\array_key_exists('positive', $data) && null !== $data['positive']) { $object->setPositive($data['positive']); - } elseif (\array_key_exists('positive', $data) && $data['positive'] === null) { + } elseif (\array_key_exists('positive', $data) && null === $data['positive']) { $object->setPositive(null); } - if (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] !== null) { + if (\array_key_exists('positiveOrZero', $data) && null !== $data['positiveOrZero']) { $object->setPositiveOrZero($data['positiveOrZero']); - } elseif (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] === null) { + } elseif (\array_key_exists('positiveOrZero', $data) && null === $data['positiveOrZero']) { $object->setPositiveOrZero(null); } @@ -120,12 +124,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/BigIntegerNormalizer.php b/src/Normalizer/BigIntegerNormalizer.php index 7d35a7d3..d9500ae5 100644 --- a/src/Normalizer/BigIntegerNormalizer.php +++ b/src/Normalizer/BigIntegerNormalizer.php @@ -27,15 +27,19 @@ class BigIntegerNormalizer implements DenormalizerInterface, NormalizerInterface public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\BigInteger::class; + return \Gyroscops\Api\Model\BigInteger::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\BigInteger::class; + return \is_object($data) && \Gyroscops\Api\Model\BigInteger::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,54 +54,54 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('bitLength', $data) && $data['bitLength'] !== null) { + if (\array_key_exists('bitLength', $data) && null !== $data['bitLength']) { $object->setBitLength($data['bitLength']); - } elseif (\array_key_exists('bitLength', $data) && $data['bitLength'] === null) { + } elseif (\array_key_exists('bitLength', $data) && null === $data['bitLength']) { $object->setBitLength(null); } - if (\array_key_exists('lowestSetBit', $data) && $data['lowestSetBit'] !== null) { + if (\array_key_exists('lowestSetBit', $data) && null !== $data['lowestSetBit']) { $object->setLowestSetBit($data['lowestSetBit']); - } elseif (\array_key_exists('lowestSetBit', $data) && $data['lowestSetBit'] === null) { + } elseif (\array_key_exists('lowestSetBit', $data) && null === $data['lowestSetBit']) { $object->setLowestSetBit(null); } - if (\array_key_exists('even', $data) && $data['even'] !== null) { + if (\array_key_exists('even', $data) && null !== $data['even']) { $object->setEven($data['even']); - } elseif (\array_key_exists('even', $data) && $data['even'] === null) { + } elseif (\array_key_exists('even', $data) && null === $data['even']) { $object->setEven(null); } - if (\array_key_exists('odd', $data) && $data['odd'] !== null) { + if (\array_key_exists('odd', $data) && null !== $data['odd']) { $object->setOdd($data['odd']); - } elseif (\array_key_exists('odd', $data) && $data['odd'] === null) { + } elseif (\array_key_exists('odd', $data) && null === $data['odd']) { $object->setOdd(null); } - if (\array_key_exists('sign', $data) && $data['sign'] !== null) { + if (\array_key_exists('sign', $data) && null !== $data['sign']) { $object->setSign($data['sign']); - } elseif (\array_key_exists('sign', $data) && $data['sign'] === null) { + } elseif (\array_key_exists('sign', $data) && null === $data['sign']) { $object->setSign(null); } - if (\array_key_exists('zero', $data) && $data['zero'] !== null) { + if (\array_key_exists('zero', $data) && null !== $data['zero']) { $object->setZero($data['zero']); - } elseif (\array_key_exists('zero', $data) && $data['zero'] === null) { + } elseif (\array_key_exists('zero', $data) && null === $data['zero']) { $object->setZero(null); } - if (\array_key_exists('negative', $data) && $data['negative'] !== null) { + if (\array_key_exists('negative', $data) && null !== $data['negative']) { $object->setNegative($data['negative']); - } elseif (\array_key_exists('negative', $data) && $data['negative'] === null) { + } elseif (\array_key_exists('negative', $data) && null === $data['negative']) { $object->setNegative(null); } - if (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] !== null) { + if (\array_key_exists('negativeOrZero', $data) && null !== $data['negativeOrZero']) { $object->setNegativeOrZero($data['negativeOrZero']); - } elseif (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] === null) { + } elseif (\array_key_exists('negativeOrZero', $data) && null === $data['negativeOrZero']) { $object->setNegativeOrZero(null); } - if (\array_key_exists('positive', $data) && $data['positive'] !== null) { + if (\array_key_exists('positive', $data) && null !== $data['positive']) { $object->setPositive($data['positive']); - } elseif (\array_key_exists('positive', $data) && $data['positive'] === null) { + } elseif (\array_key_exists('positive', $data) && null === $data['positive']) { $object->setPositive(null); } - if (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] !== null) { + if (\array_key_exists('positiveOrZero', $data) && null !== $data['positiveOrZero']) { $object->setPositiveOrZero($data['positiveOrZero']); - } elseif (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] === null) { + } elseif (\array_key_exists('positiveOrZero', $data) && null === $data['positiveOrZero']) { $object->setPositiveOrZero(null); } @@ -105,12 +109,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/BigNumberJsonldNormalizer.php b/src/Normalizer/BigNumberJsonldNormalizer.php index 17d926a7..1a07b74e 100644 --- a/src/Normalizer/BigNumberJsonldNormalizer.php +++ b/src/Normalizer/BigNumberJsonldNormalizer.php @@ -27,15 +27,19 @@ class BigNumberJsonldNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\BigNumberJsonld::class; + return \Gyroscops\Api\Model\BigNumberJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\BigNumberJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\BigNumberJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,49 +54,49 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('zero', $data) && $data['zero'] !== null) { + if (\array_key_exists('zero', $data) && null !== $data['zero']) { $object->setZero($data['zero']); - } elseif (\array_key_exists('zero', $data) && $data['zero'] === null) { + } elseif (\array_key_exists('zero', $data) && null === $data['zero']) { $object->setZero(null); } - if (\array_key_exists('negative', $data) && $data['negative'] !== null) { + if (\array_key_exists('negative', $data) && null !== $data['negative']) { $object->setNegative($data['negative']); - } elseif (\array_key_exists('negative', $data) && $data['negative'] === null) { + } elseif (\array_key_exists('negative', $data) && null === $data['negative']) { $object->setNegative(null); } - if (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] !== null) { + if (\array_key_exists('negativeOrZero', $data) && null !== $data['negativeOrZero']) { $object->setNegativeOrZero($data['negativeOrZero']); - } elseif (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] === null) { + } elseif (\array_key_exists('negativeOrZero', $data) && null === $data['negativeOrZero']) { $object->setNegativeOrZero(null); } - if (\array_key_exists('positive', $data) && $data['positive'] !== null) { + if (\array_key_exists('positive', $data) && null !== $data['positive']) { $object->setPositive($data['positive']); - } elseif (\array_key_exists('positive', $data) && $data['positive'] === null) { + } elseif (\array_key_exists('positive', $data) && null === $data['positive']) { $object->setPositive(null); } - if (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] !== null) { + if (\array_key_exists('positiveOrZero', $data) && null !== $data['positiveOrZero']) { $object->setPositiveOrZero($data['positiveOrZero']); - } elseif (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] === null) { + } elseif (\array_key_exists('positiveOrZero', $data) && null === $data['positiveOrZero']) { $object->setPositiveOrZero(null); } - if (\array_key_exists('sign', $data) && $data['sign'] !== null) { + if (\array_key_exists('sign', $data) && null !== $data['sign']) { $object->setSign($data['sign']); - } elseif (\array_key_exists('sign', $data) && $data['sign'] === null) { + } elseif (\array_key_exists('sign', $data) && null === $data['sign']) { $object->setSign(null); } @@ -100,12 +104,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/BigNumberNormalizer.php b/src/Normalizer/BigNumberNormalizer.php index bb49bf45..52a3999e 100644 --- a/src/Normalizer/BigNumberNormalizer.php +++ b/src/Normalizer/BigNumberNormalizer.php @@ -27,15 +27,19 @@ class BigNumberNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\BigNumber::class; + return \Gyroscops\Api\Model\BigNumber::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\BigNumber::class; + return \is_object($data) && \Gyroscops\Api\Model\BigNumber::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('zero', $data) && $data['zero'] !== null) { + if (\array_key_exists('zero', $data) && null !== $data['zero']) { $object->setZero($data['zero']); - } elseif (\array_key_exists('zero', $data) && $data['zero'] === null) { + } elseif (\array_key_exists('zero', $data) && null === $data['zero']) { $object->setZero(null); } - if (\array_key_exists('negative', $data) && $data['negative'] !== null) { + if (\array_key_exists('negative', $data) && null !== $data['negative']) { $object->setNegative($data['negative']); - } elseif (\array_key_exists('negative', $data) && $data['negative'] === null) { + } elseif (\array_key_exists('negative', $data) && null === $data['negative']) { $object->setNegative(null); } - if (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] !== null) { + if (\array_key_exists('negativeOrZero', $data) && null !== $data['negativeOrZero']) { $object->setNegativeOrZero($data['negativeOrZero']); - } elseif (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] === null) { + } elseif (\array_key_exists('negativeOrZero', $data) && null === $data['negativeOrZero']) { $object->setNegativeOrZero(null); } - if (\array_key_exists('positive', $data) && $data['positive'] !== null) { + if (\array_key_exists('positive', $data) && null !== $data['positive']) { $object->setPositive($data['positive']); - } elseif (\array_key_exists('positive', $data) && $data['positive'] === null) { + } elseif (\array_key_exists('positive', $data) && null === $data['positive']) { $object->setPositive(null); } - if (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] !== null) { + if (\array_key_exists('positiveOrZero', $data) && null !== $data['positiveOrZero']) { $object->setPositiveOrZero($data['positiveOrZero']); - } elseif (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] === null) { + } elseif (\array_key_exists('positiveOrZero', $data) && null === $data['positiveOrZero']) { $object->setPositiveOrZero(null); } - if (\array_key_exists('sign', $data) && $data['sign'] !== null) { + if (\array_key_exists('sign', $data) && null !== $data['sign']) { $object->setSign($data['sign']); - } elseif (\array_key_exists('sign', $data) && $data['sign'] === null) { + } elseif (\array_key_exists('sign', $data) && null === $data['sign']) { $object->setSign(null); } @@ -85,12 +89,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/CompilationCompilePipelineCommandInputJsonldNormalizer.php b/src/Normalizer/CompilationCompilePipelineCommandInputJsonldNormalizer.php index c33d98ce..2a4a58ef 100644 --- a/src/Normalizer/CompilationCompilePipelineCommandInputJsonldNormalizer.php +++ b/src/Normalizer/CompilationCompilePipelineCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class CompilationCompilePipelineCommandInputJsonldNormalizer implements Denormal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\CompilationCompilePipelineCommandInputJsonld::class; + return \Gyroscops\Api\Model\CompilationCompilePipelineCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\CompilationCompilePipelineCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\CompilationCompilePipelineCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/CompilationCompilePipelineCommandJsonldNormalizer.php b/src/Normalizer/CompilationCompilePipelineCommandJsonldNormalizer.php index e3abce48..73525b20 100644 --- a/src/Normalizer/CompilationCompilePipelineCommandJsonldNormalizer.php +++ b/src/Normalizer/CompilationCompilePipelineCommandJsonldNormalizer.php @@ -27,15 +27,19 @@ class CompilationCompilePipelineCommandJsonldNormalizer implements DenormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\CompilationCompilePipelineCommandJsonld::class; + return \Gyroscops\Api\Model\CompilationCompilePipelineCommandJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\CompilationCompilePipelineCommandJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\CompilationCompilePipelineCommandJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($this->denormalizer->denormalize($data['id'], \Gyroscops\Api\Model\PipelineIdJsonld::class, 'json', $context)); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/CompilationCompilePipelineCommandNormalizer.php b/src/Normalizer/CompilationCompilePipelineCommandNormalizer.php index 056acdb7..546fc7ca 100644 --- a/src/Normalizer/CompilationCompilePipelineCommandNormalizer.php +++ b/src/Normalizer/CompilationCompilePipelineCommandNormalizer.php @@ -27,15 +27,19 @@ class CompilationCompilePipelineCommandNormalizer implements DenormalizerInterfa public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\CompilationCompilePipelineCommand::class; + return \Gyroscops\Api\Model\CompilationCompilePipelineCommand::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\CompilationCompilePipelineCommand::class; + return \is_object($data) && \Gyroscops\Api\Model\CompilationCompilePipelineCommand::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,9 +54,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } @@ -60,6 +64,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/CompilationJsonldNormalizer.php b/src/Normalizer/CompilationJsonldNormalizer.php index 04e81f52..c66cafd5 100644 --- a/src/Normalizer/CompilationJsonldNormalizer.php +++ b/src/Normalizer/CompilationJsonldNormalizer.php @@ -27,15 +27,19 @@ class CompilationJsonldNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\CompilationJsonld::class; + return \Gyroscops\Api\Model\CompilationJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\CompilationJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\CompilationJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,49 +54,49 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('createdAt', $data) && $data['createdAt'] !== null) { + if (\array_key_exists('createdAt', $data) && null !== $data['createdAt']) { $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['createdAt'])); - } elseif (\array_key_exists('createdAt', $data) && $data['createdAt'] === null) { + } elseif (\array_key_exists('createdAt', $data) && null === $data['createdAt']) { $object->setCreatedAt(null); } - if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { + } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { $object->setPipeline(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('owner', $data) && $data['owner'] !== null) { + if (\array_key_exists('owner', $data) && null !== $data['owner']) { $object->setOwner($data['owner']); - } elseif (\array_key_exists('owner', $data) && $data['owner'] === null) { + } elseif (\array_key_exists('owner', $data) && null === $data['owner']) { $object->setOwner(null); } @@ -100,6 +104,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/CompilationNormalizer.php b/src/Normalizer/CompilationNormalizer.php index e0c1cb91..d8a58cc8 100644 --- a/src/Normalizer/CompilationNormalizer.php +++ b/src/Normalizer/CompilationNormalizer.php @@ -27,15 +27,19 @@ class CompilationNormalizer implements DenormalizerInterface, NormalizerInterfac public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\Compilation::class; + return \Gyroscops\Api\Model\Compilation::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\Compilation::class; + return \is_object($data) && \Gyroscops\Api\Model\Compilation::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('createdAt', $data) && $data['createdAt'] !== null) { + if (\array_key_exists('createdAt', $data) && null !== $data['createdAt']) { $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['createdAt'])); - } elseif (\array_key_exists('createdAt', $data) && $data['createdAt'] === null) { + } elseif (\array_key_exists('createdAt', $data) && null === $data['createdAt']) { $object->setCreatedAt(null); } - if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { + } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { $object->setPipeline(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('owner', $data) && $data['owner'] !== null) { + if (\array_key_exists('owner', $data) && null !== $data['owner']) { $object->setOwner($data['owner']); - } elseif (\array_key_exists('owner', $data) && $data['owner'] === null) { + } elseif (\array_key_exists('owner', $data) && null === $data['owner']) { $object->setOwner(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ConfigurationChangeConfigurationValueInputJsonldNormalizer.php b/src/Normalizer/ConfigurationChangeConfigurationValueInputJsonldNormalizer.php index 07099c91..896b25d0 100644 --- a/src/Normalizer/ConfigurationChangeConfigurationValueInputJsonldNormalizer.php +++ b/src/Normalizer/ConfigurationChangeConfigurationValueInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class ConfigurationChangeConfigurationValueInputJsonldNormalizer implements Deno public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInputJsonld::class; + return \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,43 +54,43 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -94,6 +98,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ConfigurationChangeConfigurationValueInputNormalizer.php b/src/Normalizer/ConfigurationChangeConfigurationValueInputNormalizer.php index 90e6da58..1a72cf69 100644 --- a/src/Normalizer/ConfigurationChangeConfigurationValueInputNormalizer.php +++ b/src/Normalizer/ConfigurationChangeConfigurationValueInputNormalizer.php @@ -27,15 +27,19 @@ class ConfigurationChangeConfigurationValueInputNormalizer implements Denormaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInput::class; + return \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInput::class; + return \is_object($data) && \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ConfigurationCreateConfigurationInputJsonldNormalizer.php b/src/Normalizer/ConfigurationCreateConfigurationInputJsonldNormalizer.php index e6a40832..1dc8bca8 100644 --- a/src/Normalizer/ConfigurationCreateConfigurationInputJsonldNormalizer.php +++ b/src/Normalizer/ConfigurationCreateConfigurationInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class ConfigurationCreateConfigurationInputJsonldNormalizer implements Denormali public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ConfigurationCreateConfigurationInputJsonld::class; + return \Gyroscops\Api\Model\ConfigurationCreateConfigurationInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ConfigurationCreateConfigurationInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ConfigurationCreateConfigurationInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,53 +54,53 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -104,6 +108,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ConfigurationCreateConfigurationInputNormalizer.php b/src/Normalizer/ConfigurationCreateConfigurationInputNormalizer.php index b9e494bc..2587526c 100644 --- a/src/Normalizer/ConfigurationCreateConfigurationInputNormalizer.php +++ b/src/Normalizer/ConfigurationCreateConfigurationInputNormalizer.php @@ -27,15 +27,19 @@ class ConfigurationCreateConfigurationInputNormalizer implements DenormalizerInt public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ConfigurationCreateConfigurationInput::class; + return \Gyroscops\Api\Model\ConfigurationCreateConfigurationInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ConfigurationCreateConfigurationInput::class; + return \is_object($data) && \Gyroscops\Api\Model\ConfigurationCreateConfigurationInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,38 +54,38 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -89,6 +93,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ConfigurationEditNormalizer.php b/src/Normalizer/ConfigurationEditNormalizer.php index 9a1b9d16..3f6e7b67 100644 --- a/src/Normalizer/ConfigurationEditNormalizer.php +++ b/src/Normalizer/ConfigurationEditNormalizer.php @@ -27,15 +27,19 @@ class ConfigurationEditNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ConfigurationEdit::class; + return \Gyroscops\Api\Model\ConfigurationEdit::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ConfigurationEdit::class; + return \is_object($data) && \Gyroscops\Api\Model\ConfigurationEdit::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,14 +54,14 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } @@ -65,6 +69,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ConfigurationIdJsonldNormalizer.php b/src/Normalizer/ConfigurationIdJsonldNormalizer.php index 55b0a6df..45efaffe 100644 --- a/src/Normalizer/ConfigurationIdJsonldNormalizer.php +++ b/src/Normalizer/ConfigurationIdJsonldNormalizer.php @@ -27,15 +27,19 @@ class ConfigurationIdJsonldNormalizer implements DenormalizerInterface, Normaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ConfigurationIdJsonld::class; + return \Gyroscops\Api\Model\ConfigurationIdJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ConfigurationIdJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ConfigurationIdJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/ConfigurationJsonldEditNormalizer.php b/src/Normalizer/ConfigurationJsonldEditNormalizer.php index bcfdcfb3..ced66ddd 100644 --- a/src/Normalizer/ConfigurationJsonldEditNormalizer.php +++ b/src/Normalizer/ConfigurationJsonldEditNormalizer.php @@ -27,15 +27,19 @@ class ConfigurationJsonldEditNormalizer implements DenormalizerInterface, Normal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ConfigurationJsonldEdit::class; + return \Gyroscops\Api\Model\ConfigurationJsonldEdit::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ConfigurationJsonldEdit::class; + return \is_object($data) && \Gyroscops\Api\Model\ConfigurationJsonldEdit::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,29 +54,29 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } @@ -80,6 +84,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ConfigurationJsonldNormalizer.php b/src/Normalizer/ConfigurationJsonldNormalizer.php index 340c0616..1c342030 100644 --- a/src/Normalizer/ConfigurationJsonldNormalizer.php +++ b/src/Normalizer/ConfigurationJsonldNormalizer.php @@ -27,15 +27,19 @@ class ConfigurationJsonldNormalizer implements DenormalizerInterface, Normalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ConfigurationJsonld::class; + return \Gyroscops\Api\Model\ConfigurationJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ConfigurationJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ConfigurationJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,63 +54,63 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('slug', $data) && $data['slug'] !== null) { + if (\array_key_exists('slug', $data) && null !== $data['slug']) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { + } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { $object->setSlug(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -114,6 +118,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ConfigurationJsonldReadNormalizer.php b/src/Normalizer/ConfigurationJsonldReadNormalizer.php index 8e29141d..1fba0bfc 100644 --- a/src/Normalizer/ConfigurationJsonldReadNormalizer.php +++ b/src/Normalizer/ConfigurationJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class ConfigurationJsonldReadNormalizer implements DenormalizerInterface, Normal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ConfigurationJsonldRead::class; + return \Gyroscops\Api\Model\ConfigurationJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ConfigurationJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\ConfigurationJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,43 +54,43 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } @@ -94,6 +98,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ConfigurationNormalizer.php b/src/Normalizer/ConfigurationNormalizer.php index 5e6f0be4..cd700aaf 100644 --- a/src/Normalizer/ConfigurationNormalizer.php +++ b/src/Normalizer/ConfigurationNormalizer.php @@ -27,15 +27,19 @@ class ConfigurationNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\Configuration::class; + return \Gyroscops\Api\Model\Configuration::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\Configuration::class; + return \is_object($data) && \Gyroscops\Api\Model\Configuration::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,48 +54,48 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('slug', $data) && $data['slug'] !== null) { + if (\array_key_exists('slug', $data) && null !== $data['slug']) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { + } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { $object->setSlug(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -99,6 +103,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ConfigurationReadNormalizer.php b/src/Normalizer/ConfigurationReadNormalizer.php index d3711d65..fc8208d2 100644 --- a/src/Normalizer/ConfigurationReadNormalizer.php +++ b/src/Normalizer/ConfigurationReadNormalizer.php @@ -27,15 +27,19 @@ class ConfigurationReadNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ConfigurationRead::class; + return \Gyroscops\Api\Model\ConfigurationRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ConfigurationRead::class; + return \is_object($data) && \Gyroscops\Api\Model\ConfigurationRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ConfigurationRemoveConfigurationValueInputJsonldNormalizer.php b/src/Normalizer/ConfigurationRemoveConfigurationValueInputJsonldNormalizer.php index c975b86e..c98f5732 100644 --- a/src/Normalizer/ConfigurationRemoveConfigurationValueInputJsonldNormalizer.php +++ b/src/Normalizer/ConfigurationRemoveConfigurationValueInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class ConfigurationRemoveConfigurationValueInputJsonldNormalizer implements Deno public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInputJsonld::class; + return \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,48 +54,48 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = []; foreach ($data['contents'] as $value) { $values[] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -99,6 +103,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ConfigurationRemoveConfigurationValueInputNormalizer.php b/src/Normalizer/ConfigurationRemoveConfigurationValueInputNormalizer.php index 78816b46..b4163b10 100644 --- a/src/Normalizer/ConfigurationRemoveConfigurationValueInputNormalizer.php +++ b/src/Normalizer/ConfigurationRemoveConfigurationValueInputNormalizer.php @@ -27,15 +27,19 @@ class ConfigurationRemoveConfigurationValueInputNormalizer implements Denormaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInput::class; + return \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInput::class; + return \is_object($data) && \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,33 +54,33 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = []; foreach ($data['contents'] as $value) { $values[] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -84,6 +88,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ContextJsonldNormalizer.php b/src/Normalizer/ContextJsonldNormalizer.php index 829f8962..174ac7ec 100644 --- a/src/Normalizer/ContextJsonldNormalizer.php +++ b/src/Normalizer/ContextJsonldNormalizer.php @@ -27,15 +27,19 @@ class ContextJsonldNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ContextJsonld::class; + return \Gyroscops\Api\Model\ContextJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ContextJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ContextJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,29 +54,29 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('step', $data) && $data['step'] !== null) { + if (\array_key_exists('step', $data) && null !== $data['step']) { $object->setStep($data['step']); - } elseif (\array_key_exists('step', $data) && $data['step'] === null) { + } elseif (\array_key_exists('step', $data) && null === $data['step']) { $object->setStep(null); } - if (\array_key_exists('fixedScale', $data) && $data['fixedScale'] !== null) { + if (\array_key_exists('fixedScale', $data) && null !== $data['fixedScale']) { $object->setFixedScale($data['fixedScale']); - } elseif (\array_key_exists('fixedScale', $data) && $data['fixedScale'] === null) { + } elseif (\array_key_exists('fixedScale', $data) && null === $data['fixedScale']) { $object->setFixedScale(null); } @@ -80,12 +84,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/ContextNormalizer.php b/src/Normalizer/ContextNormalizer.php index 8a18344c..9372de0a 100644 --- a/src/Normalizer/ContextNormalizer.php +++ b/src/Normalizer/ContextNormalizer.php @@ -27,15 +27,19 @@ class ContextNormalizer implements DenormalizerInterface, NormalizerInterface, D public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\Context::class; + return \Gyroscops\Api\Model\Context::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\Context::class; + return \is_object($data) && \Gyroscops\Api\Model\Context::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,14 +54,14 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('step', $data) && $data['step'] !== null) { + if (\array_key_exists('step', $data) && null !== $data['step']) { $object->setStep($data['step']); - } elseif (\array_key_exists('step', $data) && $data['step'] === null) { + } elseif (\array_key_exists('step', $data) && null === $data['step']) { $object->setStep(null); } - if (\array_key_exists('fixedScale', $data) && $data['fixedScale'] !== null) { + if (\array_key_exists('fixedScale', $data) && null !== $data['fixedScale']) { $object->setFixedScale($data['fixedScale']); - } elseif (\array_key_exists('fixedScale', $data) && $data['fixedScale'] === null) { + } elseif (\array_key_exists('fixedScale', $data) && null === $data['fixedScale']) { $object->setFixedScale(null); } @@ -65,12 +69,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/CreateSecretInputJsonldNormalizer.php b/src/Normalizer/CreateSecretInputJsonldNormalizer.php index 073b32a9..a8e26a81 100644 --- a/src/Normalizer/CreateSecretInputJsonldNormalizer.php +++ b/src/Normalizer/CreateSecretInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class CreateSecretInputJsonldNormalizer implements DenormalizerInterface, Normal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\CreateSecretInputJsonld::class; + return \Gyroscops\Api\Model\CreateSecretInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\CreateSecretInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\CreateSecretInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,53 +54,53 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -104,6 +108,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/CreateSecretInputNormalizer.php b/src/Normalizer/CreateSecretInputNormalizer.php index 540ca054..3e9aa889 100644 --- a/src/Normalizer/CreateSecretInputNormalizer.php +++ b/src/Normalizer/CreateSecretInputNormalizer.php @@ -27,15 +27,19 @@ class CreateSecretInputNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\CreateSecretInput::class; + return \Gyroscops\Api\Model\CreateSecretInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\CreateSecretInput::class; + return \is_object($data) && \Gyroscops\Api\Model\CreateSecretInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,38 +54,38 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -89,6 +93,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/CredentialsNormalizer.php b/src/Normalizer/CredentialsNormalizer.php index e925c78e..93b68089 100644 --- a/src/Normalizer/CredentialsNormalizer.php +++ b/src/Normalizer/CredentialsNormalizer.php @@ -27,15 +27,19 @@ class CredentialsNormalizer implements DenormalizerInterface, NormalizerInterfac public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\Credentials::class; + return \Gyroscops\Api\Model\Credentials::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\Credentials::class; + return \is_object($data) && \Gyroscops\Api\Model\Credentials::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('username', $data) && $data['username'] !== null) { + if (\array_key_exists('username', $data) && null !== $data['username']) { $object->setUsername($data['username']); - } elseif (\array_key_exists('username', $data) && $data['username'] === null) { + } elseif (\array_key_exists('username', $data) && null === $data['username']) { $object->setUsername(null); } - if (\array_key_exists('password', $data) && $data['password'] !== null) { + if (\array_key_exists('password', $data) && null !== $data['password']) { $object->setPassword($data['password']); - } elseif (\array_key_exists('password', $data) && $data['password'] === null) { + } elseif (\array_key_exists('password', $data) && null === $data['password']) { $object->setPassword(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/CurrencyJsonldNormalizer.php b/src/Normalizer/CurrencyJsonldNormalizer.php index 65c97863..881eac4e 100644 --- a/src/Normalizer/CurrencyJsonldNormalizer.php +++ b/src/Normalizer/CurrencyJsonldNormalizer.php @@ -27,15 +27,19 @@ class CurrencyJsonldNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\CurrencyJsonld::class; + return \Gyroscops\Api\Model\CurrencyJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\CurrencyJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\CurrencyJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,39 +54,39 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('currencyCode', $data) && $data['currencyCode'] !== null) { + if (\array_key_exists('currencyCode', $data) && null !== $data['currencyCode']) { $object->setCurrencyCode($data['currencyCode']); - } elseif (\array_key_exists('currencyCode', $data) && $data['currencyCode'] === null) { + } elseif (\array_key_exists('currencyCode', $data) && null === $data['currencyCode']) { $object->setCurrencyCode(null); } - if (\array_key_exists('numericCode', $data) && $data['numericCode'] !== null) { + if (\array_key_exists('numericCode', $data) && null !== $data['numericCode']) { $object->setNumericCode($data['numericCode']); - } elseif (\array_key_exists('numericCode', $data) && $data['numericCode'] === null) { + } elseif (\array_key_exists('numericCode', $data) && null === $data['numericCode']) { $object->setNumericCode(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('defaultFractionDigits', $data) && $data['defaultFractionDigits'] !== null) { + if (\array_key_exists('defaultFractionDigits', $data) && null !== $data['defaultFractionDigits']) { $object->setDefaultFractionDigits($data['defaultFractionDigits']); - } elseif (\array_key_exists('defaultFractionDigits', $data) && $data['defaultFractionDigits'] === null) { + } elseif (\array_key_exists('defaultFractionDigits', $data) && null === $data['defaultFractionDigits']) { $object->setDefaultFractionDigits(null); } @@ -90,6 +94,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/CurrencyNormalizer.php b/src/Normalizer/CurrencyNormalizer.php index bbdf42f5..eea651bb 100644 --- a/src/Normalizer/CurrencyNormalizer.php +++ b/src/Normalizer/CurrencyNormalizer.php @@ -27,15 +27,19 @@ class CurrencyNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\Currency::class; + return \Gyroscops\Api\Model\Currency::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\Currency::class; + return \is_object($data) && \Gyroscops\Api\Model\Currency::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('currencyCode', $data) && $data['currencyCode'] !== null) { + if (\array_key_exists('currencyCode', $data) && null !== $data['currencyCode']) { $object->setCurrencyCode($data['currencyCode']); - } elseif (\array_key_exists('currencyCode', $data) && $data['currencyCode'] === null) { + } elseif (\array_key_exists('currencyCode', $data) && null === $data['currencyCode']) { $object->setCurrencyCode(null); } - if (\array_key_exists('numericCode', $data) && $data['numericCode'] !== null) { + if (\array_key_exists('numericCode', $data) && null !== $data['numericCode']) { $object->setNumericCode($data['numericCode']); - } elseif (\array_key_exists('numericCode', $data) && $data['numericCode'] === null) { + } elseif (\array_key_exists('numericCode', $data) && null === $data['numericCode']) { $object->setNumericCode(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('defaultFractionDigits', $data) && $data['defaultFractionDigits'] !== null) { + if (\array_key_exists('defaultFractionDigits', $data) && null !== $data['defaultFractionDigits']) { $object->setDefaultFractionDigits($data['defaultFractionDigits']); - } elseif (\array_key_exists('defaultFractionDigits', $data) && $data['defaultFractionDigits'] === null) { + } elseif (\array_key_exists('defaultFractionDigits', $data) && null === $data['defaultFractionDigits']) { $object->setDefaultFractionDigits(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentAddMultipleVariableFromConfigurationInputJsonldNormalizer.php b/src/Normalizer/EnvironmentAddMultipleVariableFromConfigurationInputJsonldNormalizer.php index c65b7ebb..5bc65ca1 100644 --- a/src/Normalizer/EnvironmentAddMultipleVariableFromConfigurationInputJsonldNormalizer.php +++ b/src/Normalizer/EnvironmentAddMultipleVariableFromConfigurationInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentAddMultipleVariableFromConfigurationInputJsonldNormalizer imple public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInputJsonld::class; + return \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,33 +54,33 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variables', $data) && $data['variables'] !== null) { + if (\array_key_exists('variables', $data) && null !== $data['variables']) { $values = []; foreach ($data['variables'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\VariableFromConfigurationInputJsonld::class, 'json', $context); } $object->setVariables($values); - } elseif (\array_key_exists('variables', $data) && $data['variables'] === null) { + } elseif (\array_key_exists('variables', $data) && null === $data['variables']) { $object->setVariables(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -84,6 +88,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentAddMultipleVariableFromConfigurationInputNormalizer.php b/src/Normalizer/EnvironmentAddMultipleVariableFromConfigurationInputNormalizer.php index de4b9583..0f3a340b 100644 --- a/src/Normalizer/EnvironmentAddMultipleVariableFromConfigurationInputNormalizer.php +++ b/src/Normalizer/EnvironmentAddMultipleVariableFromConfigurationInputNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentAddMultipleVariableFromConfigurationInputNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInput::class; + return \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInput::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,18 +54,18 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('variables', $data) && $data['variables'] !== null) { + if (\array_key_exists('variables', $data) && null !== $data['variables']) { $values = []; foreach ($data['variables'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\VariableFromConfigurationInput::class, 'json', $context); } $object->setVariables($values); - } elseif (\array_key_exists('variables', $data) && $data['variables'] === null) { + } elseif (\array_key_exists('variables', $data) && null === $data['variables']) { $object->setVariables(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -69,6 +73,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentAddMultipleVariableFromConstantInputJsonldNormalizer.php b/src/Normalizer/EnvironmentAddMultipleVariableFromConstantInputJsonldNormalizer.php index dcbba040..8fe4f569 100644 --- a/src/Normalizer/EnvironmentAddMultipleVariableFromConstantInputJsonldNormalizer.php +++ b/src/Normalizer/EnvironmentAddMultipleVariableFromConstantInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentAddMultipleVariableFromConstantInputJsonldNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInputJsonld::class; + return \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,33 +54,33 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variables', $data) && $data['variables'] !== null) { + if (\array_key_exists('variables', $data) && null !== $data['variables']) { $values = []; foreach ($data['variables'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\VariableFromConstantInputJsonld::class, 'json', $context); } $object->setVariables($values); - } elseif (\array_key_exists('variables', $data) && $data['variables'] === null) { + } elseif (\array_key_exists('variables', $data) && null === $data['variables']) { $object->setVariables(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -84,6 +88,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentAddMultipleVariableFromConstantInputNormalizer.php b/src/Normalizer/EnvironmentAddMultipleVariableFromConstantInputNormalizer.php index d49cc5a6..0d45c466 100644 --- a/src/Normalizer/EnvironmentAddMultipleVariableFromConstantInputNormalizer.php +++ b/src/Normalizer/EnvironmentAddMultipleVariableFromConstantInputNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentAddMultipleVariableFromConstantInputNormalizer implements Denor public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInput::class; + return \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInput::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,18 +54,18 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('variables', $data) && $data['variables'] !== null) { + if (\array_key_exists('variables', $data) && null !== $data['variables']) { $values = []; foreach ($data['variables'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\VariableFromConstantInput::class, 'json', $context); } $object->setVariables($values); - } elseif (\array_key_exists('variables', $data) && $data['variables'] === null) { + } elseif (\array_key_exists('variables', $data) && null === $data['variables']) { $object->setVariables(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -69,6 +73,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentAddMultipleVariableFromSecretInputJsonldNormalizer.php b/src/Normalizer/EnvironmentAddMultipleVariableFromSecretInputJsonldNormalizer.php index 27e1c3a5..4bced023 100644 --- a/src/Normalizer/EnvironmentAddMultipleVariableFromSecretInputJsonldNormalizer.php +++ b/src/Normalizer/EnvironmentAddMultipleVariableFromSecretInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentAddMultipleVariableFromSecretInputJsonldNormalizer implements D public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInputJsonld::class; + return \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,33 +54,33 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variables', $data) && $data['variables'] !== null) { + if (\array_key_exists('variables', $data) && null !== $data['variables']) { $values = []; foreach ($data['variables'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\VariableFromSecretInputJsonld::class, 'json', $context); } $object->setVariables($values); - } elseif (\array_key_exists('variables', $data) && $data['variables'] === null) { + } elseif (\array_key_exists('variables', $data) && null === $data['variables']) { $object->setVariables(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -84,6 +88,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentAddMultipleVariableFromSecretInputNormalizer.php b/src/Normalizer/EnvironmentAddMultipleVariableFromSecretInputNormalizer.php index 3af97a9d..7c9eda0d 100644 --- a/src/Normalizer/EnvironmentAddMultipleVariableFromSecretInputNormalizer.php +++ b/src/Normalizer/EnvironmentAddMultipleVariableFromSecretInputNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentAddMultipleVariableFromSecretInputNormalizer implements Denorma public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInput::class; + return \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInput::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,18 +54,18 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('variables', $data) && $data['variables'] !== null) { + if (\array_key_exists('variables', $data) && null !== $data['variables']) { $values = []; foreach ($data['variables'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\VariableFromSecretInput::class, 'json', $context); } $object->setVariables($values); - } elseif (\array_key_exists('variables', $data) && $data['variables'] === null) { + } elseif (\array_key_exists('variables', $data) && null === $data['variables']) { $object->setVariables(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -69,6 +73,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItemNormalizer.php index da2e72ac..f60eb3b5 100644 --- a/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItemNormaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraSearchNormalizer.php index 1ba7d821..619fdc1e 100644 --- a/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentConfigurationsGetResponse200HydraSearchNormalizer implements De public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraViewNormalizer.php b/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraViewNormalizer.php index 29ef9681..49ff644e 100644 --- a/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentConfigurationsGetResponse200HydraViewNormalizer implements Deno public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentConfigurationsGetResponse200Normalizer.php b/src/Normalizer/EnvironmentConfigurationsGetResponse200Normalizer.php index f40c0396..634e15de 100644 --- a/src/Normalizer/EnvironmentConfigurationsGetResponse200Normalizer.php +++ b/src/Normalizer/EnvironmentConfigurationsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class EnvironmentConfigurationsGetResponse200Normalizer implements DenormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200::class; + return \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ConfigurationJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentCreateEnvironmentInputJsonldNormalizer.php b/src/Normalizer/EnvironmentCreateEnvironmentInputJsonldNormalizer.php index 264e989b..3e8e9518 100644 --- a/src/Normalizer/EnvironmentCreateEnvironmentInputJsonldNormalizer.php +++ b/src/Normalizer/EnvironmentCreateEnvironmentInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentCreateEnvironmentInputJsonldNormalizer implements DenormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInputJsonld::class; + return \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,43 +54,43 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('variables', $data) && $data['variables'] !== null) { + if (\array_key_exists('variables', $data) && null !== $data['variables']) { $values = []; foreach ($data['variables'] as $value) { $values[] = $value; } $object->setVariables($values); - } elseif (\array_key_exists('variables', $data) && $data['variables'] === null) { + } elseif (\array_key_exists('variables', $data) && null === $data['variables']) { $object->setVariables(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -94,6 +98,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentCreateEnvironmentInputNormalizer.php b/src/Normalizer/EnvironmentCreateEnvironmentInputNormalizer.php index dfa5ee4d..57f72dda 100644 --- a/src/Normalizer/EnvironmentCreateEnvironmentInputNormalizer.php +++ b/src/Normalizer/EnvironmentCreateEnvironmentInputNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentCreateEnvironmentInputNormalizer implements DenormalizerInterfa public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInput::class; + return \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInput::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('variables', $data) && $data['variables'] !== null) { + if (\array_key_exists('variables', $data) && null !== $data['variables']) { $values = []; foreach ($data['variables'] as $value) { $values[] = $value; } $object->setVariables($values); - } elseif (\array_key_exists('variables', $data) && $data['variables'] === null) { + } elseif (\array_key_exists('variables', $data) && null === $data['variables']) { $object->setVariables(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItemNormalizer.php index aa170379..4e698f1d 100644 --- a/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItemNormalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraSearchNormalizer.php index a01e706e..f1805d40 100644 --- a/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentEnvironmentsGetResponse200HydraSearchNormalizer implements Deno public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraViewNormalizer.php b/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraViewNormalizer.php index 1637d904..3247947a 100644 --- a/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentEnvironmentsGetResponse200HydraViewNormalizer implements Denorm public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentEnvironmentsGetResponse200Normalizer.php b/src/Normalizer/EnvironmentEnvironmentsGetResponse200Normalizer.php index fd833b0c..052fb701 100644 --- a/src/Normalizer/EnvironmentEnvironmentsGetResponse200Normalizer.php +++ b/src/Normalizer/EnvironmentEnvironmentsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class EnvironmentEnvironmentsGetResponse200Normalizer implements DenormalizerInt public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200::class; + return \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\EnvironmentJsonldRead::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItemNormalizer.php index c5ba056c..6355209d 100644 --- a/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingIte public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchNormalizer.php index 9c6a8595..5b4498fe 100644 --- a/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchNormalizer impl public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraViewNormalizer.php b/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraViewNormalizer.php index e5faddd8..c1f53eee 100644 --- a/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentEnvironmentsIdVariablesGetResponse200HydraViewNormalizer implem public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraView::class; + return \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200Normalizer.php b/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200Normalizer.php index c98312c8..3ab3c7f2 100644 --- a/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200Normalizer.php +++ b/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class EnvironmentEnvironmentsIdVariablesGetResponse200Normalizer implements Deno public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200::class; + return \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\VariableJsonldRead::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentJsonldReadNormalizer.php b/src/Normalizer/EnvironmentJsonldReadNormalizer.php index c1b9e667..c14762a4 100644 --- a/src/Normalizer/EnvironmentJsonldReadNormalizer.php +++ b/src/Normalizer/EnvironmentJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentJsonldReadNormalizer implements DenormalizerInterface, Normaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentJsonldRead::class; + return \Gyroscops\Api\Model\EnvironmentJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,44 +54,44 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } @@ -95,6 +99,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentJsonldWriteNormalizer.php b/src/Normalizer/EnvironmentJsonldWriteNormalizer.php index 334999b2..7f42a6dd 100644 --- a/src/Normalizer/EnvironmentJsonldWriteNormalizer.php +++ b/src/Normalizer/EnvironmentJsonldWriteNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentJsonldWriteNormalizer implements DenormalizerInterface, Normali public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentJsonldWrite::class; + return \Gyroscops\Api\Model\EnvironmentJsonldWrite::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentJsonldWrite::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentJsonldWrite::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,29 +54,29 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } @@ -80,6 +84,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentReadNormalizer.php b/src/Normalizer/EnvironmentReadNormalizer.php index 685c5e07..6348f19a 100644 --- a/src/Normalizer/EnvironmentReadNormalizer.php +++ b/src/Normalizer/EnvironmentReadNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentReadNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentRead::class; + return \Gyroscops\Api\Model\EnvironmentRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentRead::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,29 +54,29 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } @@ -80,6 +84,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentSecretsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/EnvironmentSecretsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 8bf68af9..f1d880df 100644 --- a/src/Normalizer/EnvironmentSecretsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/EnvironmentSecretsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentSecretsGetResponse200HydraSearchHydraMappingItemNormalizer impl public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentSecretsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/EnvironmentSecretsGetResponse200HydraSearchNormalizer.php index fecb57c5..79443696 100644 --- a/src/Normalizer/EnvironmentSecretsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/EnvironmentSecretsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentSecretsGetResponse200HydraSearchNormalizer implements Denormali public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentSecretsGetResponse200HydraViewNormalizer.php b/src/Normalizer/EnvironmentSecretsGetResponse200HydraViewNormalizer.php index 09081968..f8495b7e 100644 --- a/src/Normalizer/EnvironmentSecretsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/EnvironmentSecretsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentSecretsGetResponse200HydraViewNormalizer implements Denormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentSecretsGetResponse200Normalizer.php b/src/Normalizer/EnvironmentSecretsGetResponse200Normalizer.php index fca93a60..6bb05a61 100644 --- a/src/Normalizer/EnvironmentSecretsGetResponse200Normalizer.php +++ b/src/Normalizer/EnvironmentSecretsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class EnvironmentSecretsGetResponse200Normalizer implements DenormalizerInterfac public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200::class; + return \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\SecretJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/EnvironmentWriteNormalizer.php b/src/Normalizer/EnvironmentWriteNormalizer.php index 2021d278..c191ed26 100644 --- a/src/Normalizer/EnvironmentWriteNormalizer.php +++ b/src/Normalizer/EnvironmentWriteNormalizer.php @@ -27,15 +27,19 @@ class EnvironmentWriteNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\EnvironmentWrite::class; + return \Gyroscops\Api\Model\EnvironmentWrite::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\EnvironmentWrite::class; + return \is_object($data) && \Gyroscops\Api\Model\EnvironmentWrite::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,14 +54,14 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } @@ -65,6 +69,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionActionJsonldNormalizer.php b/src/Normalizer/ExecutionActionJsonldNormalizer.php index b383f3e2..feedd5f4 100644 --- a/src/Normalizer/ExecutionActionJsonldNormalizer.php +++ b/src/Normalizer/ExecutionActionJsonldNormalizer.php @@ -27,15 +27,19 @@ class ExecutionActionJsonldNormalizer implements DenormalizerInterface, Normaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionActionJsonld::class; + return \Gyroscops\Api\Model\ExecutionActionJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionActionJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionActionJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,29 +54,29 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('execution', $data) && $data['execution'] !== null) { + if (\array_key_exists('execution', $data) && null !== $data['execution']) { $object->setExecution($data['execution']); - } elseif (\array_key_exists('execution', $data) && $data['execution'] === null) { + } elseif (\array_key_exists('execution', $data) && null === $data['execution']) { $object->setExecution(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } @@ -80,6 +84,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionActionNormalizer.php b/src/Normalizer/ExecutionActionNormalizer.php index cb87a45d..2d4d42a9 100644 --- a/src/Normalizer/ExecutionActionNormalizer.php +++ b/src/Normalizer/ExecutionActionNormalizer.php @@ -27,15 +27,19 @@ class ExecutionActionNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionAction::class; + return \Gyroscops\Api\Model\ExecutionAction::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionAction::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionAction::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,14 +54,14 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('execution', $data) && $data['execution'] !== null) { + if (\array_key_exists('execution', $data) && null !== $data['execution']) { $object->setExecution($data['execution']); - } elseif (\array_key_exists('execution', $data) && $data['execution'] === null) { + } elseif (\array_key_exists('execution', $data) && null === $data['execution']) { $object->setExecution(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } @@ -65,6 +69,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionDeclarePipelineExecutionCommandInputJsonldNormalizer.php b/src/Normalizer/ExecutionDeclarePipelineExecutionCommandInputJsonldNormalizer.php index ffb883dc..bd4012dc 100644 --- a/src/Normalizer/ExecutionDeclarePipelineExecutionCommandInputJsonldNormalizer.php +++ b/src/Normalizer/ExecutionDeclarePipelineExecutionCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class ExecutionDeclarePipelineExecutionCommandInputJsonldNormalizer implements D public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInputJsonld::class; + return \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,29 +54,29 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('schedule', $data) && $data['schedule'] !== null) { + if (\array_key_exists('schedule', $data) && null !== $data['schedule']) { $object->setSchedule($data['schedule']); - } elseif (\array_key_exists('schedule', $data) && $data['schedule'] === null) { + } elseif (\array_key_exists('schedule', $data) && null === $data['schedule']) { $object->setSchedule(null); } - if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { + } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { $object->setPipeline(null); } @@ -80,6 +84,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionDeclarePipelineExecutionCommandInputNormalizer.php b/src/Normalizer/ExecutionDeclarePipelineExecutionCommandInputNormalizer.php index 6650adc1..2501b036 100644 --- a/src/Normalizer/ExecutionDeclarePipelineExecutionCommandInputNormalizer.php +++ b/src/Normalizer/ExecutionDeclarePipelineExecutionCommandInputNormalizer.php @@ -27,15 +27,19 @@ class ExecutionDeclarePipelineExecutionCommandInputNormalizer implements Denorma public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInput::class; + return \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,14 +54,14 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('schedule', $data) && $data['schedule'] !== null) { + if (\array_key_exists('schedule', $data) && null !== $data['schedule']) { $object->setSchedule($data['schedule']); - } elseif (\array_key_exists('schedule', $data) && $data['schedule'] === null) { + } elseif (\array_key_exists('schedule', $data) && null === $data['schedule']) { $object->setSchedule(null); } - if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { + } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { $object->setPipeline(null); } @@ -65,6 +69,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionDeclarePipelineExecutionCommandJsonldReadNormalizer.php b/src/Normalizer/ExecutionDeclarePipelineExecutionCommandJsonldReadNormalizer.php index c918860c..7a3e629f 100644 --- a/src/Normalizer/ExecutionDeclarePipelineExecutionCommandJsonldReadNormalizer.php +++ b/src/Normalizer/ExecutionDeclarePipelineExecutionCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class ExecutionDeclarePipelineExecutionCommandJsonldReadNormalizer implements De public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandJsonldRead::class; + return \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/ExecutionFinishPipelineExecutionCommandInputJsonldNormalizer.php b/src/Normalizer/ExecutionFinishPipelineExecutionCommandInputJsonldNormalizer.php index 94fe1c36..2f3cfdbd 100644 --- a/src/Normalizer/ExecutionFinishPipelineExecutionCommandInputJsonldNormalizer.php +++ b/src/Normalizer/ExecutionFinishPipelineExecutionCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class ExecutionFinishPipelineExecutionCommandInputJsonldNormalizer implements De public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionFinishPipelineExecutionCommandInputJsonld::class; + return \Gyroscops\Api\Model\ExecutionFinishPipelineExecutionCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionFinishPipelineExecutionCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionFinishPipelineExecutionCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/ExecutionFinishPipelineExecutionCommandJsonldReadNormalizer.php b/src/Normalizer/ExecutionFinishPipelineExecutionCommandJsonldReadNormalizer.php index 41579b23..0bf06d50 100644 --- a/src/Normalizer/ExecutionFinishPipelineExecutionCommandJsonldReadNormalizer.php +++ b/src/Normalizer/ExecutionFinishPipelineExecutionCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class ExecutionFinishPipelineExecutionCommandJsonldReadNormalizer implements Den public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionFinishPipelineExecutionCommandJsonldRead::class; + return \Gyroscops\Api\Model\ExecutionFinishPipelineExecutionCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionFinishPipelineExecutionCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionFinishPipelineExecutionCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/ExecutionInterruptPipelineExecutionCommandInputJsonldNormalizer.php b/src/Normalizer/ExecutionInterruptPipelineExecutionCommandInputJsonldNormalizer.php index 00ce7094..99ec5199 100644 --- a/src/Normalizer/ExecutionInterruptPipelineExecutionCommandInputJsonldNormalizer.php +++ b/src/Normalizer/ExecutionInterruptPipelineExecutionCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class ExecutionInterruptPipelineExecutionCommandInputJsonldNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionInterruptPipelineExecutionCommandInputJsonld::class; + return \Gyroscops\Api\Model\ExecutionInterruptPipelineExecutionCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionInterruptPipelineExecutionCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionInterruptPipelineExecutionCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/ExecutionInterruptPipelineExecutionCommandJsonldReadNormalizer.php b/src/Normalizer/ExecutionInterruptPipelineExecutionCommandJsonldReadNormalizer.php index 737f42fe..8136bba8 100644 --- a/src/Normalizer/ExecutionInterruptPipelineExecutionCommandJsonldReadNormalizer.php +++ b/src/Normalizer/ExecutionInterruptPipelineExecutionCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class ExecutionInterruptPipelineExecutionCommandJsonldReadNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionInterruptPipelineExecutionCommandJsonldRead::class; + return \Gyroscops\Api\Model\ExecutionInterruptPipelineExecutionCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionInterruptPipelineExecutionCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionInterruptPipelineExecutionCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/ExecutionJsonldReadNormalizer.php b/src/Normalizer/ExecutionJsonldReadNormalizer.php index bfb8ee49..da865574 100644 --- a/src/Normalizer/ExecutionJsonldReadNormalizer.php +++ b/src/Normalizer/ExecutionJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class ExecutionJsonldReadNormalizer implements DenormalizerInterface, Normalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionJsonldRead::class; + return \Gyroscops\Api\Model\ExecutionJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,79 +54,79 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('status', $data) && $data['status'] !== null) { + if (\array_key_exists('status', $data) && null !== $data['status']) { $object->setStatus($data['status']); - } elseif (\array_key_exists('status', $data) && $data['status'] === null) { + } elseif (\array_key_exists('status', $data) && null === $data['status']) { $object->setStatus(null); } - if (\array_key_exists('errors', $data) && $data['errors'] !== null) { + if (\array_key_exists('errors', $data) && null !== $data['errors']) { $object->setErrors($data['errors']); - } elseif (\array_key_exists('errors', $data) && $data['errors'] === null) { + } elseif (\array_key_exists('errors', $data) && null === $data['errors']) { $object->setErrors(null); } - if (\array_key_exists('scheduledAt', $data) && $data['scheduledAt'] !== null) { + if (\array_key_exists('scheduledAt', $data) && null !== $data['scheduledAt']) { $object->setScheduledAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['scheduledAt'])); - } elseif (\array_key_exists('scheduledAt', $data) && $data['scheduledAt'] === null) { + } elseif (\array_key_exists('scheduledAt', $data) && null === $data['scheduledAt']) { $object->setScheduledAt(null); } - if (\array_key_exists('startedAt', $data) && $data['startedAt'] !== null) { + if (\array_key_exists('startedAt', $data) && null !== $data['startedAt']) { $object->setStartedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['startedAt'])); - } elseif (\array_key_exists('startedAt', $data) && $data['startedAt'] === null) { + } elseif (\array_key_exists('startedAt', $data) && null === $data['startedAt']) { $object->setStartedAt(null); } - if (\array_key_exists('finishedAt', $data) && $data['finishedAt'] !== null) { + if (\array_key_exists('finishedAt', $data) && null !== $data['finishedAt']) { $object->setFinishedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['finishedAt'])); - } elseif (\array_key_exists('finishedAt', $data) && $data['finishedAt'] === null) { + } elseif (\array_key_exists('finishedAt', $data) && null === $data['finishedAt']) { $object->setFinishedAt(null); } - if (\array_key_exists('interruptedAt', $data) && $data['interruptedAt'] !== null) { + if (\array_key_exists('interruptedAt', $data) && null !== $data['interruptedAt']) { $object->setInterruptedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['interruptedAt'])); - } elseif (\array_key_exists('interruptedAt', $data) && $data['interruptedAt'] === null) { + } elseif (\array_key_exists('interruptedAt', $data) && null === $data['interruptedAt']) { $object->setInterruptedAt(null); } - if (\array_key_exists('resumedAt', $data) && $data['resumedAt'] !== null) { + if (\array_key_exists('resumedAt', $data) && null !== $data['resumedAt']) { $object->setResumedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['resumedAt'])); - } elseif (\array_key_exists('resumedAt', $data) && $data['resumedAt'] === null) { + } elseif (\array_key_exists('resumedAt', $data) && null === $data['resumedAt']) { $object->setResumedAt(null); } - if (\array_key_exists('updatedAt', $data) && $data['updatedAt'] !== null) { + if (\array_key_exists('updatedAt', $data) && null !== $data['updatedAt']) { $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['updatedAt'])); - } elseif (\array_key_exists('updatedAt', $data) && $data['updatedAt'] === null) { + } elseif (\array_key_exists('updatedAt', $data) && null === $data['updatedAt']) { $object->setUpdatedAt(null); } - if (\array_key_exists('terminatedAt', $data) && $data['terminatedAt'] !== null) { + if (\array_key_exists('terminatedAt', $data) && null !== $data['terminatedAt']) { $object->setTerminatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['terminatedAt'])); - } elseif (\array_key_exists('terminatedAt', $data) && $data['terminatedAt'] === null) { + } elseif (\array_key_exists('terminatedAt', $data) && null === $data['terminatedAt']) { $object->setTerminatedAt(null); } - if (\array_key_exists('reason', $data) && $data['reason'] !== null) { + if (\array_key_exists('reason', $data) && null !== $data['reason']) { $object->setReason($data['reason']); - } elseif (\array_key_exists('reason', $data) && $data['reason'] === null) { + } elseif (\array_key_exists('reason', $data) && null === $data['reason']) { $object->setReason(null); } @@ -130,6 +134,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionPipelineJobJsonldNormalizer.php b/src/Normalizer/ExecutionPipelineJobJsonldNormalizer.php index fe439324..39e4b714 100644 --- a/src/Normalizer/ExecutionPipelineJobJsonldNormalizer.php +++ b/src/Normalizer/ExecutionPipelineJobJsonldNormalizer.php @@ -27,15 +27,19 @@ class ExecutionPipelineJobJsonldNormalizer implements DenormalizerInterface, Nor public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionPipelineJobJsonld::class; + return \Gyroscops\Api\Model\ExecutionPipelineJobJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionPipelineJobJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionPipelineJobJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,38 +54,38 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('job', $data) && $data['job'] !== null) { + if (\array_key_exists('job', $data) && null !== $data['job']) { $object->setJob($data['job']); - } elseif (\array_key_exists('job', $data) && $data['job'] === null) { + } elseif (\array_key_exists('job', $data) && null === $data['job']) { $object->setJob(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('steps', $data) && $data['steps'] !== null) { + if (\array_key_exists('steps', $data) && null !== $data['steps']) { $values = []; foreach ($data['steps'] as $value) { $values[] = $value; } $object->setSteps($values); - } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { $object->setSteps(null); } @@ -89,6 +93,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionPipelineJobNormalizer.php b/src/Normalizer/ExecutionPipelineJobNormalizer.php index 74a939e6..debc1efe 100644 --- a/src/Normalizer/ExecutionPipelineJobNormalizer.php +++ b/src/Normalizer/ExecutionPipelineJobNormalizer.php @@ -27,15 +27,19 @@ class ExecutionPipelineJobNormalizer implements DenormalizerInterface, Normalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionPipelineJob::class; + return \Gyroscops\Api\Model\ExecutionPipelineJob::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionPipelineJob::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionPipelineJob::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,23 +54,23 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('job', $data) && $data['job'] !== null) { + if (\array_key_exists('job', $data) && null !== $data['job']) { $object->setJob($data['job']); - } elseif (\array_key_exists('job', $data) && $data['job'] === null) { + } elseif (\array_key_exists('job', $data) && null === $data['job']) { $object->setJob(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('steps', $data) && $data['steps'] !== null) { + if (\array_key_exists('steps', $data) && null !== $data['steps']) { $values = []; foreach ($data['steps'] as $value) { $values[] = $value; } $object->setSteps($values); - } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { $object->setSteps(null); } @@ -74,6 +78,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionPipelineJsonldNormalizer.php b/src/Normalizer/ExecutionPipelineJsonldNormalizer.php index 9f04f507..4b720d38 100644 --- a/src/Normalizer/ExecutionPipelineJsonldNormalizer.php +++ b/src/Normalizer/ExecutionPipelineJsonldNormalizer.php @@ -27,15 +27,19 @@ class ExecutionPipelineJsonldNormalizer implements DenormalizerInterface, Normal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionPipelineJsonld::class; + return \Gyroscops\Api\Model\ExecutionPipelineJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionPipelineJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionPipelineJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,38 +54,38 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('execution', $data) && $data['execution'] !== null) { + if (\array_key_exists('execution', $data) && null !== $data['execution']) { $object->setExecution($data['execution']); - } elseif (\array_key_exists('execution', $data) && $data['execution'] === null) { + } elseif (\array_key_exists('execution', $data) && null === $data['execution']) { $object->setExecution(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('steps', $data) && $data['steps'] !== null) { + if (\array_key_exists('steps', $data) && null !== $data['steps']) { $values = []; foreach ($data['steps'] as $value) { $values[] = $value; } $object->setSteps($values); - } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { $object->setSteps(null); } @@ -89,6 +93,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionPipelineNormalizer.php b/src/Normalizer/ExecutionPipelineNormalizer.php index fb29a5b9..59f4857b 100644 --- a/src/Normalizer/ExecutionPipelineNormalizer.php +++ b/src/Normalizer/ExecutionPipelineNormalizer.php @@ -27,15 +27,19 @@ class ExecutionPipelineNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionPipeline::class; + return \Gyroscops\Api\Model\ExecutionPipeline::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionPipeline::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionPipeline::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,23 +54,23 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('execution', $data) && $data['execution'] !== null) { + if (\array_key_exists('execution', $data) && null !== $data['execution']) { $object->setExecution($data['execution']); - } elseif (\array_key_exists('execution', $data) && $data['execution'] === null) { + } elseif (\array_key_exists('execution', $data) && null === $data['execution']) { $object->setExecution(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('steps', $data) && $data['steps'] !== null) { + if (\array_key_exists('steps', $data) && null !== $data['steps']) { $values = []; foreach ($data['steps'] as $value) { $values[] = $value; } $object->setSteps($values); - } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { $object->setSteps(null); } @@ -74,6 +78,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionPipelineStepJsonldNormalizer.php b/src/Normalizer/ExecutionPipelineStepJsonldNormalizer.php index f12e7675..92dff70b 100644 --- a/src/Normalizer/ExecutionPipelineStepJsonldNormalizer.php +++ b/src/Normalizer/ExecutionPipelineStepJsonldNormalizer.php @@ -27,15 +27,19 @@ class ExecutionPipelineStepJsonldNormalizer implements DenormalizerInterface, No public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionPipelineStepJsonld::class; + return \Gyroscops\Api\Model\ExecutionPipelineStepJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionPipelineStepJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionPipelineStepJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,38 +54,38 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { $object->setPipeline($this->denormalizer->denormalize($data['pipeline'], \Gyroscops\Api\Model\AbstractPipelineJsonld::class, 'json', $context)); - } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { + } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { $object->setPipeline(null); } - if (\array_key_exists('metrics', $data) && $data['metrics'] !== null) { + if (\array_key_exists('metrics', $data) && null !== $data['metrics']) { $values = []; foreach ($data['metrics'] as $value) { $values[] = $value; } $object->setMetrics($values); - } elseif (\array_key_exists('metrics', $data) && $data['metrics'] === null) { + } elseif (\array_key_exists('metrics', $data) && null === $data['metrics']) { $object->setMetrics(null); } @@ -89,6 +93,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionPipelineStepNormalizer.php b/src/Normalizer/ExecutionPipelineStepNormalizer.php index 6a72a22d..7fe6525a 100644 --- a/src/Normalizer/ExecutionPipelineStepNormalizer.php +++ b/src/Normalizer/ExecutionPipelineStepNormalizer.php @@ -27,15 +27,19 @@ class ExecutionPipelineStepNormalizer implements DenormalizerInterface, Normaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionPipelineStep::class; + return \Gyroscops\Api\Model\ExecutionPipelineStep::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionPipelineStep::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionPipelineStep::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,23 +54,23 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { $object->setPipeline($this->denormalizer->denormalize($data['pipeline'], \Gyroscops\Api\Model\AbstractPipeline::class, 'json', $context)); - } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { + } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { $object->setPipeline(null); } - if (\array_key_exists('metrics', $data) && $data['metrics'] !== null) { + if (\array_key_exists('metrics', $data) && null !== $data['metrics']) { $values = []; foreach ($data['metrics'] as $value) { $values[] = $value; } $object->setMetrics($values); - } elseif (\array_key_exists('metrics', $data) && $data['metrics'] === null) { + } elseif (\array_key_exists('metrics', $data) && null === $data['metrics']) { $object->setMetrics(null); } @@ -74,6 +78,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionReadNormalizer.php b/src/Normalizer/ExecutionReadNormalizer.php index 63a07664..b3e707ad 100644 --- a/src/Normalizer/ExecutionReadNormalizer.php +++ b/src/Normalizer/ExecutionReadNormalizer.php @@ -27,15 +27,19 @@ class ExecutionReadNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionRead::class; + return \Gyroscops\Api\Model\ExecutionRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionRead::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,64 +54,64 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('status', $data) && $data['status'] !== null) { + if (\array_key_exists('status', $data) && null !== $data['status']) { $object->setStatus($data['status']); - } elseif (\array_key_exists('status', $data) && $data['status'] === null) { + } elseif (\array_key_exists('status', $data) && null === $data['status']) { $object->setStatus(null); } - if (\array_key_exists('errors', $data) && $data['errors'] !== null) { + if (\array_key_exists('errors', $data) && null !== $data['errors']) { $object->setErrors($data['errors']); - } elseif (\array_key_exists('errors', $data) && $data['errors'] === null) { + } elseif (\array_key_exists('errors', $data) && null === $data['errors']) { $object->setErrors(null); } - if (\array_key_exists('scheduledAt', $data) && $data['scheduledAt'] !== null) { + if (\array_key_exists('scheduledAt', $data) && null !== $data['scheduledAt']) { $object->setScheduledAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['scheduledAt'])); - } elseif (\array_key_exists('scheduledAt', $data) && $data['scheduledAt'] === null) { + } elseif (\array_key_exists('scheduledAt', $data) && null === $data['scheduledAt']) { $object->setScheduledAt(null); } - if (\array_key_exists('startedAt', $data) && $data['startedAt'] !== null) { + if (\array_key_exists('startedAt', $data) && null !== $data['startedAt']) { $object->setStartedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['startedAt'])); - } elseif (\array_key_exists('startedAt', $data) && $data['startedAt'] === null) { + } elseif (\array_key_exists('startedAt', $data) && null === $data['startedAt']) { $object->setStartedAt(null); } - if (\array_key_exists('finishedAt', $data) && $data['finishedAt'] !== null) { + if (\array_key_exists('finishedAt', $data) && null !== $data['finishedAt']) { $object->setFinishedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['finishedAt'])); - } elseif (\array_key_exists('finishedAt', $data) && $data['finishedAt'] === null) { + } elseif (\array_key_exists('finishedAt', $data) && null === $data['finishedAt']) { $object->setFinishedAt(null); } - if (\array_key_exists('interruptedAt', $data) && $data['interruptedAt'] !== null) { + if (\array_key_exists('interruptedAt', $data) && null !== $data['interruptedAt']) { $object->setInterruptedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['interruptedAt'])); - } elseif (\array_key_exists('interruptedAt', $data) && $data['interruptedAt'] === null) { + } elseif (\array_key_exists('interruptedAt', $data) && null === $data['interruptedAt']) { $object->setInterruptedAt(null); } - if (\array_key_exists('resumedAt', $data) && $data['resumedAt'] !== null) { + if (\array_key_exists('resumedAt', $data) && null !== $data['resumedAt']) { $object->setResumedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['resumedAt'])); - } elseif (\array_key_exists('resumedAt', $data) && $data['resumedAt'] === null) { + } elseif (\array_key_exists('resumedAt', $data) && null === $data['resumedAt']) { $object->setResumedAt(null); } - if (\array_key_exists('updatedAt', $data) && $data['updatedAt'] !== null) { + if (\array_key_exists('updatedAt', $data) && null !== $data['updatedAt']) { $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['updatedAt'])); - } elseif (\array_key_exists('updatedAt', $data) && $data['updatedAt'] === null) { + } elseif (\array_key_exists('updatedAt', $data) && null === $data['updatedAt']) { $object->setUpdatedAt(null); } - if (\array_key_exists('terminatedAt', $data) && $data['terminatedAt'] !== null) { + if (\array_key_exists('terminatedAt', $data) && null !== $data['terminatedAt']) { $object->setTerminatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['terminatedAt'])); - } elseif (\array_key_exists('terminatedAt', $data) && $data['terminatedAt'] === null) { + } elseif (\array_key_exists('terminatedAt', $data) && null === $data['terminatedAt']) { $object->setTerminatedAt(null); } - if (\array_key_exists('reason', $data) && $data['reason'] !== null) { + if (\array_key_exists('reason', $data) && null !== $data['reason']) { $object->setReason($data['reason']); - } elseif (\array_key_exists('reason', $data) && $data['reason'] === null) { + } elseif (\array_key_exists('reason', $data) && null === $data['reason']) { $object->setReason(null); } @@ -115,6 +119,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionResumePipelineExecutionCommandInputJsonldNormalizer.php b/src/Normalizer/ExecutionResumePipelineExecutionCommandInputJsonldNormalizer.php index 16941e1d..f7d7f8d5 100644 --- a/src/Normalizer/ExecutionResumePipelineExecutionCommandInputJsonldNormalizer.php +++ b/src/Normalizer/ExecutionResumePipelineExecutionCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class ExecutionResumePipelineExecutionCommandInputJsonldNormalizer implements De public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionResumePipelineExecutionCommandInputJsonld::class; + return \Gyroscops\Api\Model\ExecutionResumePipelineExecutionCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionResumePipelineExecutionCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionResumePipelineExecutionCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/ExecutionResumePipelineExecutionCommandJsonldReadNormalizer.php b/src/Normalizer/ExecutionResumePipelineExecutionCommandJsonldReadNormalizer.php index 067299c7..7582f071 100644 --- a/src/Normalizer/ExecutionResumePipelineExecutionCommandJsonldReadNormalizer.php +++ b/src/Normalizer/ExecutionResumePipelineExecutionCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class ExecutionResumePipelineExecutionCommandJsonldReadNormalizer implements Den public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionResumePipelineExecutionCommandJsonldRead::class; + return \Gyroscops\Api\Model\ExecutionResumePipelineExecutionCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionResumePipelineExecutionCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionResumePipelineExecutionCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/ExecutionStartPipelineExecutionCommandInputJsonldNormalizer.php b/src/Normalizer/ExecutionStartPipelineExecutionCommandInputJsonldNormalizer.php index 8fe842d1..c90b846c 100644 --- a/src/Normalizer/ExecutionStartPipelineExecutionCommandInputJsonldNormalizer.php +++ b/src/Normalizer/ExecutionStartPipelineExecutionCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class ExecutionStartPipelineExecutionCommandInputJsonldNormalizer implements Den public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionStartPipelineExecutionCommandInputJsonld::class; + return \Gyroscops\Api\Model\ExecutionStartPipelineExecutionCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionStartPipelineExecutionCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionStartPipelineExecutionCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/ExecutionStartPipelineExecutionCommandJsonldReadNormalizer.php b/src/Normalizer/ExecutionStartPipelineExecutionCommandJsonldReadNormalizer.php index 37abac9f..d7f47c20 100644 --- a/src/Normalizer/ExecutionStartPipelineExecutionCommandJsonldReadNormalizer.php +++ b/src/Normalizer/ExecutionStartPipelineExecutionCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class ExecutionStartPipelineExecutionCommandJsonldReadNormalizer implements Deno public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionStartPipelineExecutionCommandJsonldRead::class; + return \Gyroscops\Api\Model\ExecutionStartPipelineExecutionCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionStartPipelineExecutionCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionStartPipelineExecutionCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/ExecutionTerminatePipelineExecutionCommandInputJsonldNormalizer.php b/src/Normalizer/ExecutionTerminatePipelineExecutionCommandInputJsonldNormalizer.php index 074ed022..9df2f387 100644 --- a/src/Normalizer/ExecutionTerminatePipelineExecutionCommandInputJsonldNormalizer.php +++ b/src/Normalizer/ExecutionTerminatePipelineExecutionCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class ExecutionTerminatePipelineExecutionCommandInputJsonldNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInputJsonld::class; + return \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('reason', $data) && $data['reason'] !== null) { + if (\array_key_exists('reason', $data) && null !== $data['reason']) { $object->setReason($data['reason']); - } elseif (\array_key_exists('reason', $data) && $data['reason'] === null) { + } elseif (\array_key_exists('reason', $data) && null === $data['reason']) { $object->setReason(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionTerminatePipelineExecutionCommandInputNormalizer.php b/src/Normalizer/ExecutionTerminatePipelineExecutionCommandInputNormalizer.php index 802f1d4a..4031ca59 100644 --- a/src/Normalizer/ExecutionTerminatePipelineExecutionCommandInputNormalizer.php +++ b/src/Normalizer/ExecutionTerminatePipelineExecutionCommandInputNormalizer.php @@ -27,15 +27,19 @@ class ExecutionTerminatePipelineExecutionCommandInputNormalizer implements Denor public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInput::class; + return \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,9 +54,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('reason', $data) && $data['reason'] !== null) { + if (\array_key_exists('reason', $data) && null !== $data['reason']) { $object->setReason($data['reason']); - } elseif (\array_key_exists('reason', $data) && $data['reason'] === null) { + } elseif (\array_key_exists('reason', $data) && null === $data['reason']) { $object->setReason(null); } @@ -60,6 +64,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionTerminatePipelineExecutionCommandJsonldReadNormalizer.php b/src/Normalizer/ExecutionTerminatePipelineExecutionCommandJsonldReadNormalizer.php index 78376b80..688f1bbd 100644 --- a/src/Normalizer/ExecutionTerminatePipelineExecutionCommandJsonldReadNormalizer.php +++ b/src/Normalizer/ExecutionTerminatePipelineExecutionCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class ExecutionTerminatePipelineExecutionCommandJsonldReadNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandJsonldRead::class; + return \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandInputJsonldNormalizer.php b/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandInputJsonldNormalizer.php index f411657b..8346fa43 100644 --- a/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandInputJsonldNormalizer.php +++ b/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class ExecutionUpdatePipelineExecutionStateCommandInputJsonldNormalizer implemen public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandInputJsonld::class; + return \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('stepsUpdates', $data) && $data['stepsUpdates'] !== null) { + if (\array_key_exists('stepsUpdates', $data) && null !== $data['stepsUpdates']) { $object->setStepsUpdates($this->denormalizer->denormalize($data['stepsUpdates'], \Gyroscops\Api\Model\UpdateListJsonld::class, 'json', $context)); - } elseif (\array_key_exists('stepsUpdates', $data) && $data['stepsUpdates'] === null) { + } elseif (\array_key_exists('stepsUpdates', $data) && null === $data['stepsUpdates']) { $object->setStepsUpdates(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandInputNormalizer.php b/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandInputNormalizer.php index 7a47735e..af55cf43 100644 --- a/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandInputNormalizer.php +++ b/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandInputNormalizer.php @@ -27,15 +27,19 @@ class ExecutionUpdatePipelineExecutionStateCommandInputNormalizer implements Den public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandInput::class; + return \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,9 +54,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('stepsUpdates', $data) && $data['stepsUpdates'] !== null) { + if (\array_key_exists('stepsUpdates', $data) && null !== $data['stepsUpdates']) { $object->setStepsUpdates($this->denormalizer->denormalize($data['stepsUpdates'], \Gyroscops\Api\Model\UpdateList::class, 'json', $context)); - } elseif (\array_key_exists('stepsUpdates', $data) && $data['stepsUpdates'] === null) { + } elseif (\array_key_exists('stepsUpdates', $data) && null === $data['stepsUpdates']) { $object->setStepsUpdates(null); } @@ -60,6 +64,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandJsonldReadNormalizer.php b/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandJsonldReadNormalizer.php index 1c2dcb0f..06beb257 100644 --- a/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandJsonldReadNormalizer.php +++ b/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class ExecutionUpdatePipelineExecutionStateCommandJsonldReadNormalizer implement public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandJsonldRead::class; + return \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/ExecutionWorkflowJobActionJsonldNormalizer.php b/src/Normalizer/ExecutionWorkflowJobActionJsonldNormalizer.php index 05944e8f..95d0e3cc 100644 --- a/src/Normalizer/ExecutionWorkflowJobActionJsonldNormalizer.php +++ b/src/Normalizer/ExecutionWorkflowJobActionJsonldNormalizer.php @@ -27,15 +27,19 @@ class ExecutionWorkflowJobActionJsonldNormalizer implements DenormalizerInterfac public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionWorkflowJobActionJsonld::class; + return \Gyroscops\Api\Model\ExecutionWorkflowJobActionJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionWorkflowJobActionJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionWorkflowJobActionJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,29 +54,29 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('job', $data) && $data['job'] !== null) { + if (\array_key_exists('job', $data) && null !== $data['job']) { $object->setJob($data['job']); - } elseif (\array_key_exists('job', $data) && $data['job'] === null) { + } elseif (\array_key_exists('job', $data) && null === $data['job']) { $object->setJob(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } @@ -80,6 +84,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionWorkflowJobActionNormalizer.php b/src/Normalizer/ExecutionWorkflowJobActionNormalizer.php index 6f1cd857..9e7656fd 100644 --- a/src/Normalizer/ExecutionWorkflowJobActionNormalizer.php +++ b/src/Normalizer/ExecutionWorkflowJobActionNormalizer.php @@ -27,15 +27,19 @@ class ExecutionWorkflowJobActionNormalizer implements DenormalizerInterface, Nor public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionWorkflowJobAction::class; + return \Gyroscops\Api\Model\ExecutionWorkflowJobAction::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionWorkflowJobAction::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionWorkflowJobAction::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,14 +54,14 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('job', $data) && $data['job'] !== null) { + if (\array_key_exists('job', $data) && null !== $data['job']) { $object->setJob($data['job']); - } elseif (\array_key_exists('job', $data) && $data['job'] === null) { + } elseif (\array_key_exists('job', $data) && null === $data['job']) { $object->setJob(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } @@ -65,6 +69,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionWorkflowJobJsonldNormalizer.php b/src/Normalizer/ExecutionWorkflowJobJsonldNormalizer.php index d7650b79..656c9ce8 100644 --- a/src/Normalizer/ExecutionWorkflowJobJsonldNormalizer.php +++ b/src/Normalizer/ExecutionWorkflowJobJsonldNormalizer.php @@ -27,15 +27,19 @@ class ExecutionWorkflowJobJsonldNormalizer implements DenormalizerInterface, Nor public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionWorkflowJobJsonld::class; + return \Gyroscops\Api\Model\ExecutionWorkflowJobJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionWorkflowJobJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionWorkflowJobJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,39 +54,39 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('workflow', $data) && $data['workflow'] !== null) { + if (\array_key_exists('workflow', $data) && null !== $data['workflow']) { $object->setWorkflow($data['workflow']); - } elseif (\array_key_exists('workflow', $data) && $data['workflow'] === null) { + } elseif (\array_key_exists('workflow', $data) && null === $data['workflow']) { $object->setWorkflow(null); } - if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { + } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { $object->setPipeline(null); } - if (\array_key_exists('action', $data) && $data['action'] !== null) { + if (\array_key_exists('action', $data) && null !== $data['action']) { $object->setAction($data['action']); - } elseif (\array_key_exists('action', $data) && $data['action'] === null) { + } elseif (\array_key_exists('action', $data) && null === $data['action']) { $object->setAction(null); } @@ -90,6 +94,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionWorkflowJobNormalizer.php b/src/Normalizer/ExecutionWorkflowJobNormalizer.php index bd3610fa..db764a57 100644 --- a/src/Normalizer/ExecutionWorkflowJobNormalizer.php +++ b/src/Normalizer/ExecutionWorkflowJobNormalizer.php @@ -27,15 +27,19 @@ class ExecutionWorkflowJobNormalizer implements DenormalizerInterface, Normalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionWorkflowJob::class; + return \Gyroscops\Api\Model\ExecutionWorkflowJob::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionWorkflowJob::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionWorkflowJob::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('workflow', $data) && $data['workflow'] !== null) { + if (\array_key_exists('workflow', $data) && null !== $data['workflow']) { $object->setWorkflow($data['workflow']); - } elseif (\array_key_exists('workflow', $data) && $data['workflow'] === null) { + } elseif (\array_key_exists('workflow', $data) && null === $data['workflow']) { $object->setWorkflow(null); } - if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { + } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { $object->setPipeline(null); } - if (\array_key_exists('action', $data) && $data['action'] !== null) { + if (\array_key_exists('action', $data) && null !== $data['action']) { $object->setAction($data['action']); - } elseif (\array_key_exists('action', $data) && $data['action'] === null) { + } elseif (\array_key_exists('action', $data) && null === $data['action']) { $object->setAction(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionWorkflowJsonldNormalizer.php b/src/Normalizer/ExecutionWorkflowJsonldNormalizer.php index c7adf5f4..0afca043 100644 --- a/src/Normalizer/ExecutionWorkflowJsonldNormalizer.php +++ b/src/Normalizer/ExecutionWorkflowJsonldNormalizer.php @@ -27,15 +27,19 @@ class ExecutionWorkflowJsonldNormalizer implements DenormalizerInterface, Normal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionWorkflowJsonld::class; + return \Gyroscops\Api\Model\ExecutionWorkflowJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionWorkflowJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionWorkflowJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,38 +54,38 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('jobs', $data) && $data['jobs'] !== null) { + if (\array_key_exists('jobs', $data) && null !== $data['jobs']) { $values = []; foreach ($data['jobs'] as $value) { $values[] = $value; } $object->setJobs($values); - } elseif (\array_key_exists('jobs', $data) && $data['jobs'] === null) { + } elseif (\array_key_exists('jobs', $data) && null === $data['jobs']) { $object->setJobs(null); } - if (\array_key_exists('execution', $data) && $data['execution'] !== null) { + if (\array_key_exists('execution', $data) && null !== $data['execution']) { $object->setExecution($data['execution']); - } elseif (\array_key_exists('execution', $data) && $data['execution'] === null) { + } elseif (\array_key_exists('execution', $data) && null === $data['execution']) { $object->setExecution(null); } @@ -89,6 +93,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ExecutionWorkflowNormalizer.php b/src/Normalizer/ExecutionWorkflowNormalizer.php index 6ac9213a..fd3089d1 100644 --- a/src/Normalizer/ExecutionWorkflowNormalizer.php +++ b/src/Normalizer/ExecutionWorkflowNormalizer.php @@ -27,15 +27,19 @@ class ExecutionWorkflowNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ExecutionWorkflow::class; + return \Gyroscops\Api\Model\ExecutionWorkflow::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ExecutionWorkflow::class; + return \is_object($data) && \Gyroscops\Api\Model\ExecutionWorkflow::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,23 +54,23 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('jobs', $data) && $data['jobs'] !== null) { + if (\array_key_exists('jobs', $data) && null !== $data['jobs']) { $values = []; foreach ($data['jobs'] as $value) { $values[] = $value; } $object->setJobs($values); - } elseif (\array_key_exists('jobs', $data) && $data['jobs'] === null) { + } elseif (\array_key_exists('jobs', $data) && null === $data['jobs']) { $object->setJobs(null); } - if (\array_key_exists('execution', $data) && $data['execution'] !== null) { + if (\array_key_exists('execution', $data) && null !== $data['execution']) { $object->setExecution($data['execution']); - } elseif (\array_key_exists('execution', $data) && $data['execution'] === null) { + } elseif (\array_key_exists('execution', $data) && null === $data['execution']) { $object->setExecution(null); } @@ -74,6 +78,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItemNormalizer.php index be67ef67..9d5e3645 100644 --- a/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItemNorma public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchNormalizer.php index 27b3c086..6eb2a7ad 100644 --- a/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraViewNormalizer.php index 50ebdad7..d4943dac 100644 --- a/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoInstanceFromUrlGetResponse200HydraViewNormalizer implements D public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraView::class; + return \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200Normalizer.php index 4014989d..50ee32fc 100644 --- a/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200Normalizer.php +++ b/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoInstanceFromUrlGetResponse200Normalizer implements Denormaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200::class; + return \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AkeneoInstanceJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItemNormalizer.php index e55ad931..b8356836 100644 --- a/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItemNo public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchNormalizer.php index 84b7a32f..ca8fd44a 100644 --- a/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchNormalizer impleme public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraViewNormalizer.php index 18ea0fb7..ce6e706a 100644 --- a/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoInstanceOauthStateGetResponse200HydraViewNormalizer implement public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraView::class; + return \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200Normalizer.php index 8e1f9285..6c851321 100644 --- a/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200Normalizer.php +++ b/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoInstanceOauthStateGetResponse200Normalizer implements Denorma public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200::class; + return \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AkeneoInstanceJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItemNormalizer.php index b033cb03..2df6b149 100644 --- a/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItemNormalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraSearchNormalizer.php index 78bada30..a51a7adb 100644 --- a/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoInstancesGetResponse200HydraSearchNormalizer implements Denor public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraViewNormalizer.php index 2d647710..d62b4bb4 100644 --- a/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoInstancesGetResponse200HydraViewNormalizer implements Denorma public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraView::class; + return \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoInstancesGetResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoInstancesGetResponse200Normalizer.php index 57cc48cc..5c7cbf8e 100644 --- a/src/Normalizer/GatewayAkeneoInstancesGetResponse200Normalizer.php +++ b/src/Normalizer/GatewayAkeneoInstancesGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoInstancesGetResponse200Normalizer implements DenormalizerInte public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200::class; + return \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AkeneoInstanceJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItemNormalizer.php index f3d2e5d0..94cc6501 100644 --- a/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappin public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchNormalizer.php index fc17f12f..b4ea3219 100644 --- a/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchNormalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraViewNormalizer.php index d81718b9..a5ea28b6 100644 --- a/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraViewNormalizer im public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraView::class; + return \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200Normalizer.php index 181b82a9..7e94c991 100644 --- a/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200Normalizer.php +++ b/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200Normalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200::class; + return \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AkeneoLinkedAccountJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItemNormalizer.php index b7ea6332..caec832d 100644 --- a/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItemNormal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraSearchNormalizer.php index 09338d5c..e7a0fde3 100644 --- a/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoLinkedAccountsGetResponse200HydraSearchNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraViewNormalizer.php index 91f86b36..bc0a821f 100644 --- a/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoLinkedAccountsGetResponse200HydraViewNormalizer implements De public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200Normalizer.php index 278cbf8e..c1ed8405 100644 --- a/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200Normalizer.php +++ b/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoLinkedAccountsGetResponse200Normalizer implements Denormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200::class; + return \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AkeneoLinkedAccountJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItemNormalizer.php index 159daf21..661dd5ff 100644 --- a/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItemNormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraSearchNormalizer.php index 34455afb..9fd19dfe 100644 --- a/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoOauthStatesGetResponse200HydraSearchNormalizer implements Den public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraViewNormalizer.php index 6e713f5a..e12f635e 100644 --- a/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoOauthStatesGetResponse200HydraViewNormalizer implements Denor public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraView::class; + return \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200Normalizer.php index e7dedb51..98d5eb45 100644 --- a/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200Normalizer.php +++ b/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoOauthStatesGetResponse200Normalizer implements DenormalizerIn public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200::class; + return \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AkeneoOauthTokenJsonldRead::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItemNormalizer.php index 5895d29d..ff004c2e 100644 --- a/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItemNormalizer implem public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraSearchNormalizer.php index e2342588..c1a68612 100644 --- a/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraSearchNormalizer.php +++ b/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraSearchNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoOauthTokenPutBodyHydraSearchNormalizer implements Denormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearch::class; + return \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraViewNormalizer.php index f08a7984..1f947e6e 100644 --- a/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraViewNormalizer.php +++ b/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraViewNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoOauthTokenPutBodyHydraViewNormalizer implements DenormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraView::class; + return \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoOauthTokenPutBodyNormalizer.php b/src/Normalizer/GatewayAkeneoOauthTokenPutBodyNormalizer.php index 4475639b..05de7cd5 100644 --- a/src/Normalizer/GatewayAkeneoOauthTokenPutBodyNormalizer.php +++ b/src/Normalizer/GatewayAkeneoOauthTokenPutBodyNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoOauthTokenPutBodyNormalizer implements DenormalizerInterface, public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBody::class; + return \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBody::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBody::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBody::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInputJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItemNormalizer.php index 122f8b74..bc11f4a7 100644 --- a/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItemNormalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraSearchNormalizer.php index 28eba4c4..2f4cb2ab 100644 --- a/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoOauthTokenPutResponse200HydraSearchNormalizer implements Deno public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraSearch::class; + return \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraViewNormalizer.php index eebe98a3..63d64259 100644 --- a/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraViewNormalizer.php +++ b/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoOauthTokenPutResponse200HydraViewNormalizer implements Denorm public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraView::class; + return \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200Normalizer.php index ada87f40..03963ab2 100644 --- a/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200Normalizer.php +++ b/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200Normalizer.php @@ -27,15 +27,19 @@ class GatewayAkeneoOauthTokenPutResponse200Normalizer implements DenormalizerInt public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200::class; + return \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenOutputJsonldRead::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/JaneObjectNormalizer.php b/src/Normalizer/JaneObjectNormalizer.php index 562c6b5c..66eb55d4 100644 --- a/src/Normalizer/JaneObjectNormalizer.php +++ b/src/Normalizer/JaneObjectNormalizer.php @@ -23,20 +23,23 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; - protected $normalizers = [\Gyroscops\Api\Model\AbstractPipeline::class => \Gyroscops\Api\Normalizer\AbstractPipelineNormalizer::class, \Gyroscops\Api\Model\AbstractPipelineJsonld::class => \Gyroscops\Api\Normalizer\AbstractPipelineJsonldNormalizer::class, \Gyroscops\Api\Model\ActionRead::class => \Gyroscops\Api\Normalizer\ActionReadNormalizer::class, \Gyroscops\Api\Model\ActionJsonldRead::class => \Gyroscops\Api\Normalizer\ActionJsonldReadNormalizer::class, \Gyroscops\Api\Model\AddPipelineComposerAuthCommandInput::class => \Gyroscops\Api\Normalizer\AddPipelineComposerAuthCommandInputNormalizer::class, \Gyroscops\Api\Model\AddPipelineComposerAuthCommandInputJsonld::class => \Gyroscops\Api\Normalizer\AddPipelineComposerAuthCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\AddPipelineComposerRepositoryCommandInput::class => \Gyroscops\Api\Normalizer\AddPipelineComposerRepositoryCommandInputNormalizer::class, \Gyroscops\Api\Model\AddPipelineComposerRepositoryCommandInputJsonld::class => \Gyroscops\Api\Normalizer\AddPipelineComposerRepositoryCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoInstance::class => \Gyroscops\Api\Normalizer\AkeneoInstanceNormalizer::class, \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInput::class => \Gyroscops\Api\Normalizer\AkeneoInstanceAkeneoInstanceInputNormalizer::class, \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInputJsonld::class => \Gyroscops\Api\Normalizer\AkeneoInstanceAkeneoInstanceInputJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoInstanceJsonld::class => \Gyroscops\Api\Normalizer\AkeneoInstanceJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoLinkedAccount::class => \Gyroscops\Api\Normalizer\AkeneoLinkedAccountNormalizer::class, \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInput::class => \Gyroscops\Api\Normalizer\AkeneoLinkedAccountAkeneoLinkedAccountsInputNormalizer::class, \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld::class => \Gyroscops\Api\Normalizer\AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoLinkedAccountJsonld::class => \Gyroscops\Api\Normalizer\AkeneoLinkedAccountJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenRead::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenReadNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInput::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenOauthStateInputNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInputJsonld::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenOauthStateInputJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateOutputJsonldRead::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenOauthStateOutputJsonldReadNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInput::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenOauthTokenInputNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInputJsonld::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenOauthTokenInputJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenOutputJsonldRead::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenOauthTokenOutputJsonldReadNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenJsonldRead::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenJsonldReadNormalizer::class, \Gyroscops\Api\Model\AutoloadInput::class => \Gyroscops\Api\Normalizer\AutoloadInputNormalizer::class, \Gyroscops\Api\Model\AutoloadInputJsonld::class => \Gyroscops\Api\Normalizer\AutoloadInputJsonldNormalizer::class, \Gyroscops\Api\Model\BigDecimal::class => \Gyroscops\Api\Normalizer\BigDecimalNormalizer::class, \Gyroscops\Api\Model\BigDecimalJsonld::class => \Gyroscops\Api\Normalizer\BigDecimalJsonldNormalizer::class, \Gyroscops\Api\Model\BigInteger::class => \Gyroscops\Api\Normalizer\BigIntegerNormalizer::class, \Gyroscops\Api\Model\BigIntegerJsonld::class => \Gyroscops\Api\Normalizer\BigIntegerJsonldNormalizer::class, \Gyroscops\Api\Model\BigNumber::class => \Gyroscops\Api\Normalizer\BigNumberNormalizer::class, \Gyroscops\Api\Model\BigNumberJsonld::class => \Gyroscops\Api\Normalizer\BigNumberJsonldNormalizer::class, \Gyroscops\Api\Model\Compilation::class => \Gyroscops\Api\Normalizer\CompilationNormalizer::class, \Gyroscops\Api\Model\CompilationCompilePipelineCommand::class => \Gyroscops\Api\Normalizer\CompilationCompilePipelineCommandNormalizer::class, \Gyroscops\Api\Model\CompilationCompilePipelineCommandJsonld::class => \Gyroscops\Api\Normalizer\CompilationCompilePipelineCommandJsonldNormalizer::class, \Gyroscops\Api\Model\CompilationCompilePipelineCommandInputJsonld::class => \Gyroscops\Api\Normalizer\CompilationCompilePipelineCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\CompilationJsonld::class => \Gyroscops\Api\Normalizer\CompilationJsonldNormalizer::class, \Gyroscops\Api\Model\Configuration::class => \Gyroscops\Api\Normalizer\ConfigurationNormalizer::class, \Gyroscops\Api\Model\ConfigurationEdit::class => \Gyroscops\Api\Normalizer\ConfigurationEditNormalizer::class, \Gyroscops\Api\Model\ConfigurationRead::class => \Gyroscops\Api\Normalizer\ConfigurationReadNormalizer::class, \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInput::class => \Gyroscops\Api\Normalizer\ConfigurationChangeConfigurationValueInputNormalizer::class, \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInputJsonld::class => \Gyroscops\Api\Normalizer\ConfigurationChangeConfigurationValueInputJsonldNormalizer::class, \Gyroscops\Api\Model\ConfigurationCreateConfigurationInput::class => \Gyroscops\Api\Normalizer\ConfigurationCreateConfigurationInputNormalizer::class, \Gyroscops\Api\Model\ConfigurationCreateConfigurationInputJsonld::class => \Gyroscops\Api\Normalizer\ConfigurationCreateConfigurationInputJsonldNormalizer::class, \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInput::class => \Gyroscops\Api\Normalizer\ConfigurationRemoveConfigurationValueInputNormalizer::class, \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInputJsonld::class => \Gyroscops\Api\Normalizer\ConfigurationRemoveConfigurationValueInputJsonldNormalizer::class, \Gyroscops\Api\Model\ConfigurationJsonld::class => \Gyroscops\Api\Normalizer\ConfigurationJsonldNormalizer::class, \Gyroscops\Api\Model\ConfigurationJsonldEdit::class => \Gyroscops\Api\Normalizer\ConfigurationJsonldEditNormalizer::class, \Gyroscops\Api\Model\ConfigurationJsonldRead::class => \Gyroscops\Api\Normalizer\ConfigurationJsonldReadNormalizer::class, \Gyroscops\Api\Model\ConfigurationIdJsonld::class => \Gyroscops\Api\Normalizer\ConfigurationIdJsonldNormalizer::class, \Gyroscops\Api\Model\Context::class => \Gyroscops\Api\Normalizer\ContextNormalizer::class, \Gyroscops\Api\Model\ContextJsonld::class => \Gyroscops\Api\Normalizer\ContextJsonldNormalizer::class, \Gyroscops\Api\Model\CreateSecretInput::class => \Gyroscops\Api\Normalizer\CreateSecretInputNormalizer::class, \Gyroscops\Api\Model\CreateSecretInputJsonld::class => \Gyroscops\Api\Normalizer\CreateSecretInputJsonldNormalizer::class, \Gyroscops\Api\Model\Currency::class => \Gyroscops\Api\Normalizer\CurrencyNormalizer::class, \Gyroscops\Api\Model\CurrencyJsonld::class => \Gyroscops\Api\Normalizer\CurrencyJsonldNormalizer::class, \Gyroscops\Api\Model\EnvironmentRead::class => \Gyroscops\Api\Normalizer\EnvironmentReadNormalizer::class, \Gyroscops\Api\Model\EnvironmentWrite::class => \Gyroscops\Api\Normalizer\EnvironmentWriteNormalizer::class, \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInput::class => \Gyroscops\Api\Normalizer\EnvironmentAddMultipleVariableFromConfigurationInputNormalizer::class, \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInputJsonld::class => \Gyroscops\Api\Normalizer\EnvironmentAddMultipleVariableFromConfigurationInputJsonldNormalizer::class, \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInput::class => \Gyroscops\Api\Normalizer\EnvironmentAddMultipleVariableFromConstantInputNormalizer::class, \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInputJsonld::class => \Gyroscops\Api\Normalizer\EnvironmentAddMultipleVariableFromConstantInputJsonldNormalizer::class, \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInput::class => \Gyroscops\Api\Normalizer\EnvironmentAddMultipleVariableFromSecretInputNormalizer::class, \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInputJsonld::class => \Gyroscops\Api\Normalizer\EnvironmentAddMultipleVariableFromSecretInputJsonldNormalizer::class, \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInput::class => \Gyroscops\Api\Normalizer\EnvironmentCreateEnvironmentInputNormalizer::class, \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInputJsonld::class => \Gyroscops\Api\Normalizer\EnvironmentCreateEnvironmentInputJsonldNormalizer::class, \Gyroscops\Api\Model\EnvironmentJsonldRead::class => \Gyroscops\Api\Normalizer\EnvironmentJsonldReadNormalizer::class, \Gyroscops\Api\Model\EnvironmentJsonldWrite::class => \Gyroscops\Api\Normalizer\EnvironmentJsonldWriteNormalizer::class, \Gyroscops\Api\Model\ExecutionRead::class => \Gyroscops\Api\Normalizer\ExecutionReadNormalizer::class, \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionDeclarePipelineExecutionCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInput::class => \Gyroscops\Api\Normalizer\ExecutionDeclarePipelineExecutionCommandInputNormalizer::class, \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionDeclarePipelineExecutionCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionFinishPipelineExecutionCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionFinishPipelineExecutionCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionFinishPipelineExecutionCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionFinishPipelineExecutionCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionInterruptPipelineExecutionCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionInterruptPipelineExecutionCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionInterruptPipelineExecutionCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionInterruptPipelineExecutionCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionResumePipelineExecutionCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionResumePipelineExecutionCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionResumePipelineExecutionCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionResumePipelineExecutionCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionStartPipelineExecutionCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionStartPipelineExecutionCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionStartPipelineExecutionCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionStartPipelineExecutionCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionTerminatePipelineExecutionCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInput::class => \Gyroscops\Api\Normalizer\ExecutionTerminatePipelineExecutionCommandInputNormalizer::class, \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionTerminatePipelineExecutionCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionUpdatePipelineExecutionStateCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandInput::class => \Gyroscops\Api\Normalizer\ExecutionUpdatePipelineExecutionStateCommandInputNormalizer::class, \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionUpdatePipelineExecutionStateCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionAction::class => \Gyroscops\Api\Normalizer\ExecutionActionNormalizer::class, \Gyroscops\Api\Model\ExecutionActionJsonld::class => \Gyroscops\Api\Normalizer\ExecutionActionJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionPipeline::class => \Gyroscops\Api\Normalizer\ExecutionPipelineNormalizer::class, \Gyroscops\Api\Model\ExecutionPipelineJsonld::class => \Gyroscops\Api\Normalizer\ExecutionPipelineJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionPipelineJob::class => \Gyroscops\Api\Normalizer\ExecutionPipelineJobNormalizer::class, \Gyroscops\Api\Model\ExecutionPipelineJobJsonld::class => \Gyroscops\Api\Normalizer\ExecutionPipelineJobJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionPipelineStep::class => \Gyroscops\Api\Normalizer\ExecutionPipelineStepNormalizer::class, \Gyroscops\Api\Model\ExecutionPipelineStepJsonld::class => \Gyroscops\Api\Normalizer\ExecutionPipelineStepJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionWorkflow::class => \Gyroscops\Api\Normalizer\ExecutionWorkflowNormalizer::class, \Gyroscops\Api\Model\ExecutionWorkflowJsonld::class => \Gyroscops\Api\Normalizer\ExecutionWorkflowJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionWorkflowJob::class => \Gyroscops\Api\Normalizer\ExecutionWorkflowJobNormalizer::class, \Gyroscops\Api\Model\ExecutionWorkflowJobJsonld::class => \Gyroscops\Api\Normalizer\ExecutionWorkflowJobJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionWorkflowJobAction::class => \Gyroscops\Api\Normalizer\ExecutionWorkflowJobActionNormalizer::class, \Gyroscops\Api\Model\ExecutionWorkflowJobActionJsonld::class => \Gyroscops\Api\Normalizer\ExecutionWorkflowJobActionJsonldNormalizer::class, \Gyroscops\Api\Model\Money::class => \Gyroscops\Api\Normalizer\MoneyNormalizer::class, \Gyroscops\Api\Model\MoneyJsonld::class => \Gyroscops\Api\Normalizer\MoneyJsonldNormalizer::class, \Gyroscops\Api\Model\Offer::class => \Gyroscops\Api\Normalizer\OfferNormalizer::class, \Gyroscops\Api\Model\OfferJsonld::class => \Gyroscops\Api\Normalizer\OfferJsonldNormalizer::class, \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead::class => \Gyroscops\Api\Normalizer\OnPremiseRequestOnPremiseRequestReadNormalizer::class, \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestWrite::class => \Gyroscops\Api\Normalizer\OnPremiseRequestOnPremiseRequestWriteNormalizer::class, \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestRead::class => \Gyroscops\Api\Normalizer\OnPremiseRequestJsonldOnPremiseRequestReadNormalizer::class, \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestWrite::class => \Gyroscops\Api\Normalizer\OnPremiseRequestJsonldOnPremiseRequestWriteNormalizer::class, \Gyroscops\Api\Model\Option::class => \Gyroscops\Api\Normalizer\OptionNormalizer::class, \Gyroscops\Api\Model\OptionJsonld::class => \Gyroscops\Api\Normalizer\OptionJsonldNormalizer::class, \Gyroscops\Api\Model\Organization::class => \Gyroscops\Api\Normalizer\OrganizationNormalizer::class, \Gyroscops\Api\Model\OrganizationJsonld::class => \Gyroscops\Api\Normalizer\OrganizationJsonldNormalizer::class, \Gyroscops\Api\Model\OrganizationIdJsonld::class => \Gyroscops\Api\Normalizer\OrganizationIdJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineRead::class => \Gyroscops\Api\Normalizer\PipelineReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddAfterPipelineStepCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddAfterPipelineStepCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddAfterPipelineStepCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddBeforePipelineStepCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddBeforePipelineStepCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddBeforePipelineStepCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerAuthCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerAuthCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerAuthCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerPSR4AutoloadCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerPSR4AutoloadCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerPackageCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerPackageCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerPackageCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerRepositoryCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerRepositoryCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerRepositoryCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineStepProbCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineStepProbCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineStepProbeCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineStepProbeCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAppendPipelineStepCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAppendPipelineStepCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAppendPipelineStepCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineCompilePipelineCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineCompilePipelineCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineCompilePipelineCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineCompilePipelineCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineDeclarePipelineCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineDeclarePipelineCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInput::class => \Gyroscops\Api\Normalizer\PipelineDeclarePipelineCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineDeclarePipelineCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineMoveAfterPipelineStepCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInput::class => \Gyroscops\Api\Normalizer\PipelineMoveAfterPipelineStepCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineMoveAfterPipelineStepCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineMoveBeforePipelineStepCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInput::class => \Gyroscops\Api\Normalizer\PipelineMoveBeforePipelineStepCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineMoveBeforePipelineStepCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerAuthCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInput::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerAuthCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerAuthCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInput::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerPSR4AutoloadCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerPackageCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInput::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerPackageCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerPackageCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerRepositoryCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInput::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerRepositoryCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerRepositoryCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineStepProbeCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineStepProbeCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineReorderPipelineStepsCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInput::class => \Gyroscops\Api\Normalizer\PipelineReorderPipelineStepsCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineReorderPipelineStepsCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineReplacePipelineStepCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInput::class => \Gyroscops\Api\Normalizer\PipelineReplacePipelineStepCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineReplacePipelineStepCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineIdJsonld::class => \Gyroscops\Api\Normalizer\PipelineIdJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineStep::class => \Gyroscops\Api\Normalizer\PipelineStepNormalizer::class, \Gyroscops\Api\Model\PipelineStepJsonld::class => \Gyroscops\Api\Normalizer\PipelineStepJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineStepProbe::class => \Gyroscops\Api\Normalizer\PipelineStepProbeNormalizer::class, \Gyroscops\Api\Model\PipelineStepProbeJsonld::class => \Gyroscops\Api\Normalizer\PipelineStepProbeJsonldNormalizer::class, \Gyroscops\Api\Model\Price::class => \Gyroscops\Api\Normalizer\PriceNormalizer::class, \Gyroscops\Api\Model\PriceJsonld::class => \Gyroscops\Api\Normalizer\PriceJsonldNormalizer::class, \Gyroscops\Api\Model\Probe::class => \Gyroscops\Api\Normalizer\ProbeNormalizer::class, \Gyroscops\Api\Model\ProbeJsonld::class => \Gyroscops\Api\Normalizer\ProbeJsonldNormalizer::class, \Gyroscops\Api\Model\ReferralCodeReferralCodeRead::class => \Gyroscops\Api\Normalizer\ReferralCodeReferralCodeReadNormalizer::class, \Gyroscops\Api\Model\ReferralCodeReferralCodeWrite::class => \Gyroscops\Api\Normalizer\ReferralCodeReferralCodeWriteNormalizer::class, \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeRead::class => \Gyroscops\Api\Normalizer\ReferralCodeJsonldReferralCodeReadNormalizer::class, \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeWrite::class => \Gyroscops\Api\Normalizer\ReferralCodeJsonldReferralCodeWriteNormalizer::class, \Gyroscops\Api\Model\ReferralRequestReferralRequestRead::class => \Gyroscops\Api\Normalizer\ReferralRequestReferralRequestReadNormalizer::class, \Gyroscops\Api\Model\ReferralRequestReferralRequestInput::class => \Gyroscops\Api\Normalizer\ReferralRequestReferralRequestInputNormalizer::class, \Gyroscops\Api\Model\ReferralRequestReferralRequestInputJsonld::class => \Gyroscops\Api\Normalizer\ReferralRequestReferralRequestInputJsonldNormalizer::class, \Gyroscops\Api\Model\ReferralRequestJsonldReferralRequestRead::class => \Gyroscops\Api\Normalizer\ReferralRequestJsonldReferralRequestReadNormalizer::class, \Gyroscops\Api\Model\Schedule::class => \Gyroscops\Api\Normalizer\ScheduleNormalizer::class, \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInput::class => \Gyroscops\Api\Normalizer\ScheduleDeclarePipelineScheduleCommandInputNormalizer::class, \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ScheduleDeclarePipelineScheduleCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ScheduleScheduleCommandInterfaceJsonld::class => \Gyroscops\Api\Normalizer\ScheduleScheduleCommandInterfaceJsonldNormalizer::class, \Gyroscops\Api\Model\ScheduleJsonld::class => \Gyroscops\Api\Normalizer\ScheduleJsonldNormalizer::class, \Gyroscops\Api\Model\Secret::class => \Gyroscops\Api\Normalizer\SecretNormalizer::class, \Gyroscops\Api\Model\SecretEdit::class => \Gyroscops\Api\Normalizer\SecretEditNormalizer::class, \Gyroscops\Api\Model\SecretRead::class => \Gyroscops\Api\Normalizer\SecretReadNormalizer::class, \Gyroscops\Api\Model\SecretChangeSecretValueInput::class => \Gyroscops\Api\Normalizer\SecretChangeSecretValueInputNormalizer::class, \Gyroscops\Api\Model\SecretChangeSecretValueInputJsonld::class => \Gyroscops\Api\Normalizer\SecretChangeSecretValueInputJsonldNormalizer::class, \Gyroscops\Api\Model\SecretCreateSecretInput::class => \Gyroscops\Api\Normalizer\SecretCreateSecretInputNormalizer::class, \Gyroscops\Api\Model\SecretCreateSecretInputJsonld::class => \Gyroscops\Api\Normalizer\SecretCreateSecretInputJsonldNormalizer::class, \Gyroscops\Api\Model\SecretRemoveSecretValueInput::class => \Gyroscops\Api\Normalizer\SecretRemoveSecretValueInputNormalizer::class, \Gyroscops\Api\Model\SecretRemoveSecretValueInputJsonld::class => \Gyroscops\Api\Normalizer\SecretRemoveSecretValueInputJsonldNormalizer::class, \Gyroscops\Api\Model\SecretJsonld::class => \Gyroscops\Api\Normalizer\SecretJsonldNormalizer::class, \Gyroscops\Api\Model\SecretJsonldEdit::class => \Gyroscops\Api\Normalizer\SecretJsonldEditNormalizer::class, \Gyroscops\Api\Model\SecretJsonldRead::class => \Gyroscops\Api\Normalizer\SecretJsonldReadNormalizer::class, \Gyroscops\Api\Model\SecretIdJsonld::class => \Gyroscops\Api\Normalizer\SecretIdJsonldNormalizer::class, \Gyroscops\Api\Model\StepInput::class => \Gyroscops\Api\Normalizer\StepInputNormalizer::class, \Gyroscops\Api\Model\StepInputJsonld::class => \Gyroscops\Api\Normalizer\StepInputJsonldNormalizer::class, \Gyroscops\Api\Model\Subscription::class => \Gyroscops\Api\Normalizer\SubscriptionNormalizer::class, \Gyroscops\Api\Model\SubscriptionJsonld::class => \Gyroscops\Api\Normalizer\SubscriptionJsonldNormalizer::class, \Gyroscops\Api\Model\SubscriptionOption::class => \Gyroscops\Api\Normalizer\SubscriptionOptionNormalizer::class, \Gyroscops\Api\Model\SubscriptionOptionJsonld::class => \Gyroscops\Api\Normalizer\SubscriptionOptionJsonldNormalizer::class, \Gyroscops\Api\Model\TraversableJsonld::class => \Gyroscops\Api\Normalizer\TraversableJsonldNormalizer::class, \Gyroscops\Api\Model\TraversableJsonldRead::class => \Gyroscops\Api\Normalizer\TraversableJsonldReadNormalizer::class, \Gyroscops\Api\Model\UpdateList::class => \Gyroscops\Api\Normalizer\UpdateListNormalizer::class, \Gyroscops\Api\Model\UpdateListJsonld::class => \Gyroscops\Api\Normalizer\UpdateListJsonldNormalizer::class, \Gyroscops\Api\Model\User::class => \Gyroscops\Api\Normalizer\UserNormalizer::class, \Gyroscops\Api\Model\UserUserChangePasswordInput::class => \Gyroscops\Api\Normalizer\UserUserChangePasswordInputNormalizer::class, \Gyroscops\Api\Model\UserJsonld::class => \Gyroscops\Api\Normalizer\UserJsonldNormalizer::class, \Gyroscops\Api\Model\UserAuthorization::class => \Gyroscops\Api\Normalizer\UserAuthorizationNormalizer::class, \Gyroscops\Api\Model\UserAuthorizationJsonld::class => \Gyroscops\Api\Normalizer\UserAuthorizationJsonldNormalizer::class, \Gyroscops\Api\Model\VariableRead::class => \Gyroscops\Api\Normalizer\VariableReadNormalizer::class, \Gyroscops\Api\Model\VariableJsonldRead::class => \Gyroscops\Api\Normalizer\VariableJsonldReadNormalizer::class, \Gyroscops\Api\Model\VariableFromConfigurationRead::class => \Gyroscops\Api\Normalizer\VariableFromConfigurationReadNormalizer::class, \Gyroscops\Api\Model\VariableFromConfigurationJsonldRead::class => \Gyroscops\Api\Normalizer\VariableFromConfigurationJsonldReadNormalizer::class, \Gyroscops\Api\Model\VariableFromConfigurationJsonldWrite::class => \Gyroscops\Api\Normalizer\VariableFromConfigurationJsonldWriteNormalizer::class, \Gyroscops\Api\Model\VariableFromConfigurationInput::class => \Gyroscops\Api\Normalizer\VariableFromConfigurationInputNormalizer::class, \Gyroscops\Api\Model\VariableFromConfigurationInputJsonld::class => \Gyroscops\Api\Normalizer\VariableFromConfigurationInputJsonldNormalizer::class, \Gyroscops\Api\Model\VariableFromConstantRead::class => \Gyroscops\Api\Normalizer\VariableFromConstantReadNormalizer::class, \Gyroscops\Api\Model\VariableFromConstantJsonldRead::class => \Gyroscops\Api\Normalizer\VariableFromConstantJsonldReadNormalizer::class, \Gyroscops\Api\Model\VariableFromConstantJsonldWrite::class => \Gyroscops\Api\Normalizer\VariableFromConstantJsonldWriteNormalizer::class, \Gyroscops\Api\Model\VariableFromConstantInput::class => \Gyroscops\Api\Normalizer\VariableFromConstantInputNormalizer::class, \Gyroscops\Api\Model\VariableFromConstantInputJsonld::class => \Gyroscops\Api\Normalizer\VariableFromConstantInputJsonldNormalizer::class, \Gyroscops\Api\Model\VariableFromSecretRead::class => \Gyroscops\Api\Normalizer\VariableFromSecretReadNormalizer::class, \Gyroscops\Api\Model\VariableFromSecretJsonldRead::class => \Gyroscops\Api\Normalizer\VariableFromSecretJsonldReadNormalizer::class, \Gyroscops\Api\Model\VariableFromSecretJsonldWrite::class => \Gyroscops\Api\Normalizer\VariableFromSecretJsonldWriteNormalizer::class, \Gyroscops\Api\Model\VariableFromSecretInput::class => \Gyroscops\Api\Normalizer\VariableFromSecretInputNormalizer::class, \Gyroscops\Api\Model\VariableFromSecretInputJsonld::class => \Gyroscops\Api\Normalizer\VariableFromSecretInputJsonldNormalizer::class, \Gyroscops\Api\Model\WorkflowRead::class => \Gyroscops\Api\Normalizer\WorkflowReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJsonldRead::class => \Gyroscops\Api\Normalizer\WorkflowJsonldReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJobRead::class => \Gyroscops\Api\Normalizer\WorkflowJobReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJobJsonldRead::class => \Gyroscops\Api\Normalizer\WorkflowJobJsonldReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJobAction::class => \Gyroscops\Api\Normalizer\WorkflowJobActionNormalizer::class, \Gyroscops\Api\Model\WorkflowJobActionRead::class => \Gyroscops\Api\Normalizer\WorkflowJobActionReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJobActionJsonld::class => \Gyroscops\Api\Normalizer\WorkflowJobActionJsonldNormalizer::class, \Gyroscops\Api\Model\WorkflowJobActionJsonldRead::class => \Gyroscops\Api\Normalizer\WorkflowJobActionJsonldReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJobPipeline::class => \Gyroscops\Api\Normalizer\WorkflowJobPipelineNormalizer::class, \Gyroscops\Api\Model\WorkflowJobPipelineRead::class => \Gyroscops\Api\Normalizer\WorkflowJobPipelineReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJobPipelineJsonld::class => \Gyroscops\Api\Normalizer\WorkflowJobPipelineJsonldNormalizer::class, \Gyroscops\Api\Model\WorkflowJobPipelineJsonldRead::class => \Gyroscops\Api\Normalizer\WorkflowJobPipelineJsonldReadNormalizer::class, \Gyroscops\Api\Model\Workspace::class => \Gyroscops\Api\Normalizer\WorkspaceNormalizer::class, \Gyroscops\Api\Model\WorkspaceJsonld::class => \Gyroscops\Api\Normalizer\WorkspaceJsonldNormalizer::class, \Gyroscops\Api\Model\WorkspaceIdJsonld::class => \Gyroscops\Api\Normalizer\WorkspaceIdJsonldNormalizer::class, \Gyroscops\Api\Model\Token::class => \Gyroscops\Api\Normalizer\TokenNormalizer::class, \Gyroscops\Api\Model\Credentials::class => \Gyroscops\Api\Normalizer\CredentialsNormalizer::class, \Gyroscops\Api\Model\AuthenticationMeGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationMeGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationMeGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationMeGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationMeGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOfferIdOptionsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOfferIdOptionsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOfferIdOptionsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOffersGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOffersGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOffersGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOffersGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOffersGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdAuthorizationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdUsersGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdUsersGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdUsersGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdWorkspacesGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdWorkspacesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsIdOptionsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsIdOptionsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationUserAuthorizationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationUserAuthorizationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationUserAuthorizationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationUserIdAuthorizationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationUserIdAuthorizationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationUserIdAuthorizationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationUsersGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationUsersGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationUsersGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationUsersGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationUsersGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdAuthorizationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdUsersGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdUsersGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdUsersGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspacesGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspacesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspacesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200::class => \Gyroscops\Api\Normalizer\EnvironmentConfigurationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\EnvironmentConfigurationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\EnvironmentConfigurationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsGetResponse200Normalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsIdVariablesGetResponse200Normalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsIdVariablesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200::class => \Gyroscops\Api\Normalizer\EnvironmentSecretsGetResponse200Normalizer::class, \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\EnvironmentSecretsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\EnvironmentSecretsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\EnvironmentSecretsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceFromUrlGetResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceFromUrlGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceOauthStateGetResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceOauthStateGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstancesGetResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstancesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstancesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountsGetResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthStatesGetResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthStatesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthStatesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBody::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutBodyNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutBodyHydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutBodyHydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\ReferralCodesGetResponse200::class => \Gyroscops\Api\Normalizer\ReferralCodesGetResponse200Normalizer::class, \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\ReferralCodesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\ReferralCodesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\ReferralCodesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200::class => \Gyroscops\Api\Normalizer\ReferralOnPremiseRequestsGetResponse200Normalizer::class, \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\ReferralOnPremiseRequestsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\ReferralOnPremiseRequestsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\ReferralRequestsGetResponse200::class => \Gyroscops\Api\Normalizer\ReferralRequestsGetResponse200Normalizer::class, \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\ReferralRequestsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\ReferralRequestsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\ReferralRequestsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeActionsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeActionsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeActionsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeActionsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeActionsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeCompilationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeCompilationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeCompilationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobIdStepsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelineIdStepsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelinesGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelinesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionIdWorkflowJobsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionIdWorkflowJobsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepProbesGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepProbesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepProbesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepIdProbesGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepIdProbesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepIdProbesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdCompilationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdCompilationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdCompilationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdStepsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdStepsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdStepsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimePipelinesGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimePipelinesGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimePipelinesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimePipelinesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimePipelinesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdExecutionsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdExecutionsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdExecutionsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdWorkflowJobsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdWorkflowJobsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeSchedulesGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeSchedulesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeSchedulesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeSchedulesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowPipelinesGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowPipelinesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowPipelinesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowIdJobsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowIdJobsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowIdJobsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer::class, '\\' . \Jane\Component\JsonSchemaRuntime\Reference::class => '\\' . \Gyroscops\Api\Runtime\Normalizer\ReferenceNormalizer::class]; + protected $normalizers = [\Gyroscops\Api\Model\AbstractPipeline::class => \Gyroscops\Api\Normalizer\AbstractPipelineNormalizer::class, \Gyroscops\Api\Model\AbstractPipelineJsonld::class => \Gyroscops\Api\Normalizer\AbstractPipelineJsonldNormalizer::class, \Gyroscops\Api\Model\ActionRead::class => \Gyroscops\Api\Normalizer\ActionReadNormalizer::class, \Gyroscops\Api\Model\ActionJsonldRead::class => \Gyroscops\Api\Normalizer\ActionJsonldReadNormalizer::class, \Gyroscops\Api\Model\AddPipelineComposerAuthCommandInput::class => \Gyroscops\Api\Normalizer\AddPipelineComposerAuthCommandInputNormalizer::class, \Gyroscops\Api\Model\AddPipelineComposerAuthCommandInputJsonld::class => \Gyroscops\Api\Normalizer\AddPipelineComposerAuthCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\AddPipelineComposerRepositoryCommandInput::class => \Gyroscops\Api\Normalizer\AddPipelineComposerRepositoryCommandInputNormalizer::class, \Gyroscops\Api\Model\AddPipelineComposerRepositoryCommandInputJsonld::class => \Gyroscops\Api\Normalizer\AddPipelineComposerRepositoryCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoInstance::class => \Gyroscops\Api\Normalizer\AkeneoInstanceNormalizer::class, \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInput::class => \Gyroscops\Api\Normalizer\AkeneoInstanceAkeneoInstanceInputNormalizer::class, \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInputJsonld::class => \Gyroscops\Api\Normalizer\AkeneoInstanceAkeneoInstanceInputJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoInstanceJsonld::class => \Gyroscops\Api\Normalizer\AkeneoInstanceJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoLinkedAccount::class => \Gyroscops\Api\Normalizer\AkeneoLinkedAccountNormalizer::class, \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInput::class => \Gyroscops\Api\Normalizer\AkeneoLinkedAccountAkeneoLinkedAccountsInputNormalizer::class, \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld::class => \Gyroscops\Api\Normalizer\AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoLinkedAccountJsonld::class => \Gyroscops\Api\Normalizer\AkeneoLinkedAccountJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenRead::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenReadNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInput::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenOauthStateInputNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInputJsonld::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenOauthStateInputJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateOutputJsonldRead::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenOauthStateOutputJsonldReadNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInput::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenOauthTokenInputNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInputJsonld::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenOauthTokenInputJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenOutputJsonldRead::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenOauthTokenOutputJsonldReadNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenJsonldRead::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenJsonldReadNormalizer::class, \Gyroscops\Api\Model\AutoloadInput::class => \Gyroscops\Api\Normalizer\AutoloadInputNormalizer::class, \Gyroscops\Api\Model\AutoloadInputJsonld::class => \Gyroscops\Api\Normalizer\AutoloadInputJsonldNormalizer::class, \Gyroscops\Api\Model\BigDecimal::class => \Gyroscops\Api\Normalizer\BigDecimalNormalizer::class, \Gyroscops\Api\Model\BigDecimalJsonld::class => \Gyroscops\Api\Normalizer\BigDecimalJsonldNormalizer::class, \Gyroscops\Api\Model\BigInteger::class => \Gyroscops\Api\Normalizer\BigIntegerNormalizer::class, \Gyroscops\Api\Model\BigIntegerJsonld::class => \Gyroscops\Api\Normalizer\BigIntegerJsonldNormalizer::class, \Gyroscops\Api\Model\BigNumber::class => \Gyroscops\Api\Normalizer\BigNumberNormalizer::class, \Gyroscops\Api\Model\BigNumberJsonld::class => \Gyroscops\Api\Normalizer\BigNumberJsonldNormalizer::class, \Gyroscops\Api\Model\Compilation::class => \Gyroscops\Api\Normalizer\CompilationNormalizer::class, \Gyroscops\Api\Model\CompilationCompilePipelineCommand::class => \Gyroscops\Api\Normalizer\CompilationCompilePipelineCommandNormalizer::class, \Gyroscops\Api\Model\CompilationCompilePipelineCommandJsonld::class => \Gyroscops\Api\Normalizer\CompilationCompilePipelineCommandJsonldNormalizer::class, \Gyroscops\Api\Model\CompilationCompilePipelineCommandInputJsonld::class => \Gyroscops\Api\Normalizer\CompilationCompilePipelineCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\CompilationJsonld::class => \Gyroscops\Api\Normalizer\CompilationJsonldNormalizer::class, \Gyroscops\Api\Model\Configuration::class => \Gyroscops\Api\Normalizer\ConfigurationNormalizer::class, \Gyroscops\Api\Model\ConfigurationEdit::class => \Gyroscops\Api\Normalizer\ConfigurationEditNormalizer::class, \Gyroscops\Api\Model\ConfigurationRead::class => \Gyroscops\Api\Normalizer\ConfigurationReadNormalizer::class, \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInput::class => \Gyroscops\Api\Normalizer\ConfigurationChangeConfigurationValueInputNormalizer::class, \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInputJsonld::class => \Gyroscops\Api\Normalizer\ConfigurationChangeConfigurationValueInputJsonldNormalizer::class, \Gyroscops\Api\Model\ConfigurationCreateConfigurationInput::class => \Gyroscops\Api\Normalizer\ConfigurationCreateConfigurationInputNormalizer::class, \Gyroscops\Api\Model\ConfigurationCreateConfigurationInputJsonld::class => \Gyroscops\Api\Normalizer\ConfigurationCreateConfigurationInputJsonldNormalizer::class, \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInput::class => \Gyroscops\Api\Normalizer\ConfigurationRemoveConfigurationValueInputNormalizer::class, \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInputJsonld::class => \Gyroscops\Api\Normalizer\ConfigurationRemoveConfigurationValueInputJsonldNormalizer::class, \Gyroscops\Api\Model\ConfigurationJsonld::class => \Gyroscops\Api\Normalizer\ConfigurationJsonldNormalizer::class, \Gyroscops\Api\Model\ConfigurationJsonldEdit::class => \Gyroscops\Api\Normalizer\ConfigurationJsonldEditNormalizer::class, \Gyroscops\Api\Model\ConfigurationJsonldRead::class => \Gyroscops\Api\Normalizer\ConfigurationJsonldReadNormalizer::class, \Gyroscops\Api\Model\ConfigurationIdJsonld::class => \Gyroscops\Api\Normalizer\ConfigurationIdJsonldNormalizer::class, \Gyroscops\Api\Model\Context::class => \Gyroscops\Api\Normalizer\ContextNormalizer::class, \Gyroscops\Api\Model\ContextJsonld::class => \Gyroscops\Api\Normalizer\ContextJsonldNormalizer::class, \Gyroscops\Api\Model\CreateSecretInput::class => \Gyroscops\Api\Normalizer\CreateSecretInputNormalizer::class, \Gyroscops\Api\Model\CreateSecretInputJsonld::class => \Gyroscops\Api\Normalizer\CreateSecretInputJsonldNormalizer::class, \Gyroscops\Api\Model\Currency::class => \Gyroscops\Api\Normalizer\CurrencyNormalizer::class, \Gyroscops\Api\Model\CurrencyJsonld::class => \Gyroscops\Api\Normalizer\CurrencyJsonldNormalizer::class, \Gyroscops\Api\Model\EnvironmentRead::class => \Gyroscops\Api\Normalizer\EnvironmentReadNormalizer::class, \Gyroscops\Api\Model\EnvironmentWrite::class => \Gyroscops\Api\Normalizer\EnvironmentWriteNormalizer::class, \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInput::class => \Gyroscops\Api\Normalizer\EnvironmentAddMultipleVariableFromConfigurationInputNormalizer::class, \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInputJsonld::class => \Gyroscops\Api\Normalizer\EnvironmentAddMultipleVariableFromConfigurationInputJsonldNormalizer::class, \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInput::class => \Gyroscops\Api\Normalizer\EnvironmentAddMultipleVariableFromConstantInputNormalizer::class, \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInputJsonld::class => \Gyroscops\Api\Normalizer\EnvironmentAddMultipleVariableFromConstantInputJsonldNormalizer::class, \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInput::class => \Gyroscops\Api\Normalizer\EnvironmentAddMultipleVariableFromSecretInputNormalizer::class, \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInputJsonld::class => \Gyroscops\Api\Normalizer\EnvironmentAddMultipleVariableFromSecretInputJsonldNormalizer::class, \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInput::class => \Gyroscops\Api\Normalizer\EnvironmentCreateEnvironmentInputNormalizer::class, \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInputJsonld::class => \Gyroscops\Api\Normalizer\EnvironmentCreateEnvironmentInputJsonldNormalizer::class, \Gyroscops\Api\Model\EnvironmentJsonldRead::class => \Gyroscops\Api\Normalizer\EnvironmentJsonldReadNormalizer::class, \Gyroscops\Api\Model\EnvironmentJsonldWrite::class => \Gyroscops\Api\Normalizer\EnvironmentJsonldWriteNormalizer::class, \Gyroscops\Api\Model\ExecutionRead::class => \Gyroscops\Api\Normalizer\ExecutionReadNormalizer::class, \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionDeclarePipelineExecutionCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInput::class => \Gyroscops\Api\Normalizer\ExecutionDeclarePipelineExecutionCommandInputNormalizer::class, \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionDeclarePipelineExecutionCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionFinishPipelineExecutionCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionFinishPipelineExecutionCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionFinishPipelineExecutionCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionFinishPipelineExecutionCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionInterruptPipelineExecutionCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionInterruptPipelineExecutionCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionInterruptPipelineExecutionCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionInterruptPipelineExecutionCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionResumePipelineExecutionCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionResumePipelineExecutionCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionResumePipelineExecutionCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionResumePipelineExecutionCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionStartPipelineExecutionCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionStartPipelineExecutionCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionStartPipelineExecutionCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionStartPipelineExecutionCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionTerminatePipelineExecutionCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInput::class => \Gyroscops\Api\Normalizer\ExecutionTerminatePipelineExecutionCommandInputNormalizer::class, \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionTerminatePipelineExecutionCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionUpdatePipelineExecutionStateCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandInput::class => \Gyroscops\Api\Normalizer\ExecutionUpdatePipelineExecutionStateCommandInputNormalizer::class, \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionUpdatePipelineExecutionStateCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionAction::class => \Gyroscops\Api\Normalizer\ExecutionActionNormalizer::class, \Gyroscops\Api\Model\ExecutionActionJsonld::class => \Gyroscops\Api\Normalizer\ExecutionActionJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionPipeline::class => \Gyroscops\Api\Normalizer\ExecutionPipelineNormalizer::class, \Gyroscops\Api\Model\ExecutionPipelineJsonld::class => \Gyroscops\Api\Normalizer\ExecutionPipelineJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionPipelineJob::class => \Gyroscops\Api\Normalizer\ExecutionPipelineJobNormalizer::class, \Gyroscops\Api\Model\ExecutionPipelineJobJsonld::class => \Gyroscops\Api\Normalizer\ExecutionPipelineJobJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionPipelineStep::class => \Gyroscops\Api\Normalizer\ExecutionPipelineStepNormalizer::class, \Gyroscops\Api\Model\ExecutionPipelineStepJsonld::class => \Gyroscops\Api\Normalizer\ExecutionPipelineStepJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionWorkflow::class => \Gyroscops\Api\Normalizer\ExecutionWorkflowNormalizer::class, \Gyroscops\Api\Model\ExecutionWorkflowJsonld::class => \Gyroscops\Api\Normalizer\ExecutionWorkflowJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionWorkflowJob::class => \Gyroscops\Api\Normalizer\ExecutionWorkflowJobNormalizer::class, \Gyroscops\Api\Model\ExecutionWorkflowJobJsonld::class => \Gyroscops\Api\Normalizer\ExecutionWorkflowJobJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionWorkflowJobAction::class => \Gyroscops\Api\Normalizer\ExecutionWorkflowJobActionNormalizer::class, \Gyroscops\Api\Model\ExecutionWorkflowJobActionJsonld::class => \Gyroscops\Api\Normalizer\ExecutionWorkflowJobActionJsonldNormalizer::class, \Gyroscops\Api\Model\Money::class => \Gyroscops\Api\Normalizer\MoneyNormalizer::class, \Gyroscops\Api\Model\MoneyJsonld::class => \Gyroscops\Api\Normalizer\MoneyJsonldNormalizer::class, \Gyroscops\Api\Model\Offer::class => \Gyroscops\Api\Normalizer\OfferNormalizer::class, \Gyroscops\Api\Model\OfferJsonld::class => \Gyroscops\Api\Normalizer\OfferJsonldNormalizer::class, \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead::class => \Gyroscops\Api\Normalizer\OnPremiseRequestOnPremiseRequestReadNormalizer::class, \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestWrite::class => \Gyroscops\Api\Normalizer\OnPremiseRequestOnPremiseRequestWriteNormalizer::class, \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestRead::class => \Gyroscops\Api\Normalizer\OnPremiseRequestJsonldOnPremiseRequestReadNormalizer::class, \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestWrite::class => \Gyroscops\Api\Normalizer\OnPremiseRequestJsonldOnPremiseRequestWriteNormalizer::class, \Gyroscops\Api\Model\Option::class => \Gyroscops\Api\Normalizer\OptionNormalizer::class, \Gyroscops\Api\Model\OptionJsonld::class => \Gyroscops\Api\Normalizer\OptionJsonldNormalizer::class, \Gyroscops\Api\Model\Organization::class => \Gyroscops\Api\Normalizer\OrganizationNormalizer::class, \Gyroscops\Api\Model\OrganizationJsonld::class => \Gyroscops\Api\Normalizer\OrganizationJsonldNormalizer::class, \Gyroscops\Api\Model\OrganizationIdJsonld::class => \Gyroscops\Api\Normalizer\OrganizationIdJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineRead::class => \Gyroscops\Api\Normalizer\PipelineReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddAfterPipelineStepCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddAfterPipelineStepCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddAfterPipelineStepCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddBeforePipelineStepCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddBeforePipelineStepCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddBeforePipelineStepCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerAuthCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerAuthCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerAuthCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerPSR4AutoloadCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerPSR4AutoloadCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerPackageCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerPackageCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerPackageCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerRepositoryCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerRepositoryCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerRepositoryCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineStepProbCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineStepProbCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineStepProbeCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineStepProbeCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAppendPipelineStepCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAppendPipelineStepCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAppendPipelineStepCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineCompilePipelineCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineCompilePipelineCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineCompilePipelineCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineCompilePipelineCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineDeclarePipelineCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineDeclarePipelineCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInput::class => \Gyroscops\Api\Normalizer\PipelineDeclarePipelineCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineDeclarePipelineCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineMoveAfterPipelineStepCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInput::class => \Gyroscops\Api\Normalizer\PipelineMoveAfterPipelineStepCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineMoveAfterPipelineStepCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineMoveBeforePipelineStepCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInput::class => \Gyroscops\Api\Normalizer\PipelineMoveBeforePipelineStepCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineMoveBeforePipelineStepCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerAuthCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInput::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerAuthCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerAuthCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInput::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerPSR4AutoloadCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerPackageCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInput::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerPackageCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerPackageCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerRepositoryCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInput::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerRepositoryCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerRepositoryCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineStepProbeCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineStepProbeCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineReorderPipelineStepsCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInput::class => \Gyroscops\Api\Normalizer\PipelineReorderPipelineStepsCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineReorderPipelineStepsCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineReplacePipelineStepCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInput::class => \Gyroscops\Api\Normalizer\PipelineReplacePipelineStepCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineReplacePipelineStepCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineIdJsonld::class => \Gyroscops\Api\Normalizer\PipelineIdJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineStep::class => \Gyroscops\Api\Normalizer\PipelineStepNormalizer::class, \Gyroscops\Api\Model\PipelineStepJsonld::class => \Gyroscops\Api\Normalizer\PipelineStepJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineStepProbe::class => \Gyroscops\Api\Normalizer\PipelineStepProbeNormalizer::class, \Gyroscops\Api\Model\PipelineStepProbeJsonld::class => \Gyroscops\Api\Normalizer\PipelineStepProbeJsonldNormalizer::class, \Gyroscops\Api\Model\Price::class => \Gyroscops\Api\Normalizer\PriceNormalizer::class, \Gyroscops\Api\Model\PriceJsonld::class => \Gyroscops\Api\Normalizer\PriceJsonldNormalizer::class, \Gyroscops\Api\Model\Probe::class => \Gyroscops\Api\Normalizer\ProbeNormalizer::class, \Gyroscops\Api\Model\ProbeJsonld::class => \Gyroscops\Api\Normalizer\ProbeJsonldNormalizer::class, \Gyroscops\Api\Model\ReferralCodeReferralCodeRead::class => \Gyroscops\Api\Normalizer\ReferralCodeReferralCodeReadNormalizer::class, \Gyroscops\Api\Model\ReferralCodeReferralCodeWrite::class => \Gyroscops\Api\Normalizer\ReferralCodeReferralCodeWriteNormalizer::class, \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeRead::class => \Gyroscops\Api\Normalizer\ReferralCodeJsonldReferralCodeReadNormalizer::class, \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeWrite::class => \Gyroscops\Api\Normalizer\ReferralCodeJsonldReferralCodeWriteNormalizer::class, \Gyroscops\Api\Model\ReferralRequestReferralRequestRead::class => \Gyroscops\Api\Normalizer\ReferralRequestReferralRequestReadNormalizer::class, \Gyroscops\Api\Model\ReferralRequestReferralRequestInput::class => \Gyroscops\Api\Normalizer\ReferralRequestReferralRequestInputNormalizer::class, \Gyroscops\Api\Model\ReferralRequestReferralRequestInputJsonld::class => \Gyroscops\Api\Normalizer\ReferralRequestReferralRequestInputJsonldNormalizer::class, \Gyroscops\Api\Model\ReferralRequestJsonldReferralRequestRead::class => \Gyroscops\Api\Normalizer\ReferralRequestJsonldReferralRequestReadNormalizer::class, \Gyroscops\Api\Model\Schedule::class => \Gyroscops\Api\Normalizer\ScheduleNormalizer::class, \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInput::class => \Gyroscops\Api\Normalizer\ScheduleDeclarePipelineScheduleCommandInputNormalizer::class, \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ScheduleDeclarePipelineScheduleCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ScheduleScheduleCommandInterfaceJsonld::class => \Gyroscops\Api\Normalizer\ScheduleScheduleCommandInterfaceJsonldNormalizer::class, \Gyroscops\Api\Model\ScheduleJsonld::class => \Gyroscops\Api\Normalizer\ScheduleJsonldNormalizer::class, \Gyroscops\Api\Model\Secret::class => \Gyroscops\Api\Normalizer\SecretNormalizer::class, \Gyroscops\Api\Model\SecretEdit::class => \Gyroscops\Api\Normalizer\SecretEditNormalizer::class, \Gyroscops\Api\Model\SecretRead::class => \Gyroscops\Api\Normalizer\SecretReadNormalizer::class, \Gyroscops\Api\Model\SecretChangeSecretValueInput::class => \Gyroscops\Api\Normalizer\SecretChangeSecretValueInputNormalizer::class, \Gyroscops\Api\Model\SecretChangeSecretValueInputJsonld::class => \Gyroscops\Api\Normalizer\SecretChangeSecretValueInputJsonldNormalizer::class, \Gyroscops\Api\Model\SecretCreateSecretInput::class => \Gyroscops\Api\Normalizer\SecretCreateSecretInputNormalizer::class, \Gyroscops\Api\Model\SecretCreateSecretInputJsonld::class => \Gyroscops\Api\Normalizer\SecretCreateSecretInputJsonldNormalizer::class, \Gyroscops\Api\Model\SecretRemoveSecretValueInput::class => \Gyroscops\Api\Normalizer\SecretRemoveSecretValueInputNormalizer::class, \Gyroscops\Api\Model\SecretRemoveSecretValueInputJsonld::class => \Gyroscops\Api\Normalizer\SecretRemoveSecretValueInputJsonldNormalizer::class, \Gyroscops\Api\Model\SecretJsonld::class => \Gyroscops\Api\Normalizer\SecretJsonldNormalizer::class, \Gyroscops\Api\Model\SecretJsonldEdit::class => \Gyroscops\Api\Normalizer\SecretJsonldEditNormalizer::class, \Gyroscops\Api\Model\SecretJsonldRead::class => \Gyroscops\Api\Normalizer\SecretJsonldReadNormalizer::class, \Gyroscops\Api\Model\SecretIdJsonld::class => \Gyroscops\Api\Normalizer\SecretIdJsonldNormalizer::class, \Gyroscops\Api\Model\StepInput::class => \Gyroscops\Api\Normalizer\StepInputNormalizer::class, \Gyroscops\Api\Model\StepInputJsonld::class => \Gyroscops\Api\Normalizer\StepInputJsonldNormalizer::class, \Gyroscops\Api\Model\Subscription::class => \Gyroscops\Api\Normalizer\SubscriptionNormalizer::class, \Gyroscops\Api\Model\SubscriptionJsonld::class => \Gyroscops\Api\Normalizer\SubscriptionJsonldNormalizer::class, \Gyroscops\Api\Model\SubscriptionOption::class => \Gyroscops\Api\Normalizer\SubscriptionOptionNormalizer::class, \Gyroscops\Api\Model\SubscriptionOptionJsonld::class => \Gyroscops\Api\Normalizer\SubscriptionOptionJsonldNormalizer::class, \Gyroscops\Api\Model\TraversableJsonld::class => \Gyroscops\Api\Normalizer\TraversableJsonldNormalizer::class, \Gyroscops\Api\Model\TraversableJsonldRead::class => \Gyroscops\Api\Normalizer\TraversableJsonldReadNormalizer::class, \Gyroscops\Api\Model\UpdateList::class => \Gyroscops\Api\Normalizer\UpdateListNormalizer::class, \Gyroscops\Api\Model\UpdateListJsonld::class => \Gyroscops\Api\Normalizer\UpdateListJsonldNormalizer::class, \Gyroscops\Api\Model\User::class => \Gyroscops\Api\Normalizer\UserNormalizer::class, \Gyroscops\Api\Model\UserUserChangePasswordInput::class => \Gyroscops\Api\Normalizer\UserUserChangePasswordInputNormalizer::class, \Gyroscops\Api\Model\UserJsonld::class => \Gyroscops\Api\Normalizer\UserJsonldNormalizer::class, \Gyroscops\Api\Model\UserAuthorization::class => \Gyroscops\Api\Normalizer\UserAuthorizationNormalizer::class, \Gyroscops\Api\Model\UserAuthorizationJsonld::class => \Gyroscops\Api\Normalizer\UserAuthorizationJsonldNormalizer::class, \Gyroscops\Api\Model\VariableRead::class => \Gyroscops\Api\Normalizer\VariableReadNormalizer::class, \Gyroscops\Api\Model\VariableJsonldRead::class => \Gyroscops\Api\Normalizer\VariableJsonldReadNormalizer::class, \Gyroscops\Api\Model\VariableFromConfigurationRead::class => \Gyroscops\Api\Normalizer\VariableFromConfigurationReadNormalizer::class, \Gyroscops\Api\Model\VariableFromConfigurationJsonldRead::class => \Gyroscops\Api\Normalizer\VariableFromConfigurationJsonldReadNormalizer::class, \Gyroscops\Api\Model\VariableFromConfigurationJsonldWrite::class => \Gyroscops\Api\Normalizer\VariableFromConfigurationJsonldWriteNormalizer::class, \Gyroscops\Api\Model\VariableFromConfigurationInput::class => \Gyroscops\Api\Normalizer\VariableFromConfigurationInputNormalizer::class, \Gyroscops\Api\Model\VariableFromConfigurationInputJsonld::class => \Gyroscops\Api\Normalizer\VariableFromConfigurationInputJsonldNormalizer::class, \Gyroscops\Api\Model\VariableFromConstantRead::class => \Gyroscops\Api\Normalizer\VariableFromConstantReadNormalizer::class, \Gyroscops\Api\Model\VariableFromConstantJsonldRead::class => \Gyroscops\Api\Normalizer\VariableFromConstantJsonldReadNormalizer::class, \Gyroscops\Api\Model\VariableFromConstantJsonldWrite::class => \Gyroscops\Api\Normalizer\VariableFromConstantJsonldWriteNormalizer::class, \Gyroscops\Api\Model\VariableFromConstantInput::class => \Gyroscops\Api\Normalizer\VariableFromConstantInputNormalizer::class, \Gyroscops\Api\Model\VariableFromConstantInputJsonld::class => \Gyroscops\Api\Normalizer\VariableFromConstantInputJsonldNormalizer::class, \Gyroscops\Api\Model\VariableFromSecretRead::class => \Gyroscops\Api\Normalizer\VariableFromSecretReadNormalizer::class, \Gyroscops\Api\Model\VariableFromSecretJsonldRead::class => \Gyroscops\Api\Normalizer\VariableFromSecretJsonldReadNormalizer::class, \Gyroscops\Api\Model\VariableFromSecretJsonldWrite::class => \Gyroscops\Api\Normalizer\VariableFromSecretJsonldWriteNormalizer::class, \Gyroscops\Api\Model\VariableFromSecretInput::class => \Gyroscops\Api\Normalizer\VariableFromSecretInputNormalizer::class, \Gyroscops\Api\Model\VariableFromSecretInputJsonld::class => \Gyroscops\Api\Normalizer\VariableFromSecretInputJsonldNormalizer::class, \Gyroscops\Api\Model\WorkflowRead::class => \Gyroscops\Api\Normalizer\WorkflowReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJsonldRead::class => \Gyroscops\Api\Normalizer\WorkflowJsonldReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJobRead::class => \Gyroscops\Api\Normalizer\WorkflowJobReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJobJsonldRead::class => \Gyroscops\Api\Normalizer\WorkflowJobJsonldReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJobAction::class => \Gyroscops\Api\Normalizer\WorkflowJobActionNormalizer::class, \Gyroscops\Api\Model\WorkflowJobActionRead::class => \Gyroscops\Api\Normalizer\WorkflowJobActionReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJobActionJsonld::class => \Gyroscops\Api\Normalizer\WorkflowJobActionJsonldNormalizer::class, \Gyroscops\Api\Model\WorkflowJobActionJsonldRead::class => \Gyroscops\Api\Normalizer\WorkflowJobActionJsonldReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJobPipeline::class => \Gyroscops\Api\Normalizer\WorkflowJobPipelineNormalizer::class, \Gyroscops\Api\Model\WorkflowJobPipelineRead::class => \Gyroscops\Api\Normalizer\WorkflowJobPipelineReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJobPipelineJsonld::class => \Gyroscops\Api\Normalizer\WorkflowJobPipelineJsonldNormalizer::class, \Gyroscops\Api\Model\WorkflowJobPipelineJsonldRead::class => \Gyroscops\Api\Normalizer\WorkflowJobPipelineJsonldReadNormalizer::class, \Gyroscops\Api\Model\Workspace::class => \Gyroscops\Api\Normalizer\WorkspaceNormalizer::class, \Gyroscops\Api\Model\WorkspaceJsonld::class => \Gyroscops\Api\Normalizer\WorkspaceJsonldNormalizer::class, \Gyroscops\Api\Model\WorkspaceIdJsonld::class => \Gyroscops\Api\Normalizer\WorkspaceIdJsonldNormalizer::class, \Gyroscops\Api\Model\Token::class => \Gyroscops\Api\Normalizer\TokenNormalizer::class, \Gyroscops\Api\Model\Credentials::class => \Gyroscops\Api\Normalizer\CredentialsNormalizer::class, \Gyroscops\Api\Model\AuthenticationMeGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationMeGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationMeGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationMeGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationMeGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOfferIdOptionsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOfferIdOptionsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOfferIdOptionsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOffersGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOffersGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOffersGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOffersGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOffersGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdAuthorizationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdUsersGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdUsersGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdUsersGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdWorkspacesGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdWorkspacesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsIdOptionsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsIdOptionsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationUserAuthorizationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationUserAuthorizationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationUserAuthorizationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationUserIdAuthorizationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationUserIdAuthorizationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationUserIdAuthorizationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationUsersGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationUsersGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationUsersGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationUsersGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationUsersGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdAuthorizationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdUsersGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdUsersGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdUsersGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspacesGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspacesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspacesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200::class => \Gyroscops\Api\Normalizer\EnvironmentConfigurationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\EnvironmentConfigurationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\EnvironmentConfigurationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsGetResponse200Normalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsIdVariablesGetResponse200Normalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsIdVariablesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200::class => \Gyroscops\Api\Normalizer\EnvironmentSecretsGetResponse200Normalizer::class, \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\EnvironmentSecretsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\EnvironmentSecretsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\EnvironmentSecretsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceFromUrlGetResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceFromUrlGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceOauthStateGetResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceOauthStateGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstancesGetResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstancesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstancesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountsGetResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthStatesGetResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthStatesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthStatesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBody::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutBodyNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutBodyHydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutBodyHydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\ReferralCodesGetResponse200::class => \Gyroscops\Api\Normalizer\ReferralCodesGetResponse200Normalizer::class, \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\ReferralCodesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\ReferralCodesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\ReferralCodesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200::class => \Gyroscops\Api\Normalizer\ReferralOnPremiseRequestsGetResponse200Normalizer::class, \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\ReferralOnPremiseRequestsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\ReferralOnPremiseRequestsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\ReferralRequestsGetResponse200::class => \Gyroscops\Api\Normalizer\ReferralRequestsGetResponse200Normalizer::class, \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\ReferralRequestsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\ReferralRequestsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\ReferralRequestsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeActionsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeActionsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeActionsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeActionsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeActionsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeCompilationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeCompilationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeCompilationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobIdStepsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelineIdStepsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelinesGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelinesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionIdWorkflowJobsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionIdWorkflowJobsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepProbesGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepProbesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepProbesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepIdProbesGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepIdProbesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepIdProbesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdCompilationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdCompilationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdCompilationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdStepsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdStepsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdStepsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimePipelinesGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimePipelinesGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimePipelinesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimePipelinesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimePipelinesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdExecutionsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdExecutionsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdExecutionsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdWorkflowJobsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdWorkflowJobsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeSchedulesGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeSchedulesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeSchedulesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeSchedulesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowPipelinesGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowPipelinesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowPipelinesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowIdJobsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowIdJobsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowIdJobsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer::class, '\\'.\Jane\Component\JsonSchemaRuntime\Reference::class => '\\'.\Gyroscops\Api\Runtime\Normalizer\ReferenceNormalizer::class]; protected $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null): bool { - return array_key_exists($type, $this->normalizers); + return \array_key_exists($type, $this->normalizers); } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && array_key_exists($data::class, $this->normalizers); + return \is_object($data) && \array_key_exists($data::class, $this->normalizers); } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -48,6 +51,10 @@ public function normalize($object, $format = null, array $context = []) } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) diff --git a/src/Normalizer/MoneyJsonldNormalizer.php b/src/Normalizer/MoneyJsonldNormalizer.php index 70c8f7b3..42b6d2ab 100644 --- a/src/Normalizer/MoneyJsonldNormalizer.php +++ b/src/Normalizer/MoneyJsonldNormalizer.php @@ -27,15 +27,19 @@ class MoneyJsonldNormalizer implements DenormalizerInterface, NormalizerInterfac public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\MoneyJsonld::class; + return \Gyroscops\Api\Model\MoneyJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\MoneyJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\MoneyJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,83 +54,83 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('amount', $data) && $data['amount'] !== null) { + if (\array_key_exists('amount', $data) && null !== $data['amount']) { $object->setAmount($this->denormalizer->denormalize($data['amount'], \Gyroscops\Api\Model\BigDecimalJsonld::class, 'json', $context)); - } elseif (\array_key_exists('amount', $data) && $data['amount'] === null) { + } elseif (\array_key_exists('amount', $data) && null === $data['amount']) { $object->setAmount(null); } - if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + if (\array_key_exists('currency', $data) && null !== $data['currency']) { $object->setCurrency($this->denormalizer->denormalize($data['currency'], \Gyroscops\Api\Model\CurrencyJsonld::class, 'json', $context)); - } elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + } elseif (\array_key_exists('currency', $data) && null === $data['currency']) { $object->setCurrency(null); } - if (\array_key_exists('context', $data) && $data['context'] !== null) { + if (\array_key_exists('context', $data) && null !== $data['context']) { $object->setContext2($this->denormalizer->denormalize($data['context'], \Gyroscops\Api\Model\ContextJsonld::class, 'json', $context)); - } elseif (\array_key_exists('context', $data) && $data['context'] === null) { + } elseif (\array_key_exists('context', $data) && null === $data['context']) { $object->setContext2(null); } - if (\array_key_exists('minorAmount', $data) && $data['minorAmount'] !== null) { + if (\array_key_exists('minorAmount', $data) && null !== $data['minorAmount']) { $object->setMinorAmount($this->denormalizer->denormalize($data['minorAmount'], \Gyroscops\Api\Model\BigDecimalJsonld::class, 'json', $context)); - } elseif (\array_key_exists('minorAmount', $data) && $data['minorAmount'] === null) { + } elseif (\array_key_exists('minorAmount', $data) && null === $data['minorAmount']) { $object->setMinorAmount(null); } - if (\array_key_exists('unscaledAmount', $data) && $data['unscaledAmount'] !== null) { + if (\array_key_exists('unscaledAmount', $data) && null !== $data['unscaledAmount']) { $object->setUnscaledAmount($this->denormalizer->denormalize($data['unscaledAmount'], \Gyroscops\Api\Model\BigIntegerJsonld::class, 'json', $context)); - } elseif (\array_key_exists('unscaledAmount', $data) && $data['unscaledAmount'] === null) { + } elseif (\array_key_exists('unscaledAmount', $data) && null === $data['unscaledAmount']) { $object->setUnscaledAmount(null); } - if (\array_key_exists('amounts', $data) && $data['amounts'] !== null) { + if (\array_key_exists('amounts', $data) && null !== $data['amounts']) { $values = []; foreach ($data['amounts'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\BigNumberJsonld::class, 'json', $context); } $object->setAmounts($values); - } elseif (\array_key_exists('amounts', $data) && $data['amounts'] === null) { + } elseif (\array_key_exists('amounts', $data) && null === $data['amounts']) { $object->setAmounts(null); } - if (\array_key_exists('sign', $data) && $data['sign'] !== null) { + if (\array_key_exists('sign', $data) && null !== $data['sign']) { $object->setSign($data['sign']); - } elseif (\array_key_exists('sign', $data) && $data['sign'] === null) { + } elseif (\array_key_exists('sign', $data) && null === $data['sign']) { $object->setSign(null); } - if (\array_key_exists('zero', $data) && $data['zero'] !== null) { + if (\array_key_exists('zero', $data) && null !== $data['zero']) { $object->setZero($data['zero']); - } elseif (\array_key_exists('zero', $data) && $data['zero'] === null) { + } elseif (\array_key_exists('zero', $data) && null === $data['zero']) { $object->setZero(null); } - if (\array_key_exists('negative', $data) && $data['negative'] !== null) { + if (\array_key_exists('negative', $data) && null !== $data['negative']) { $object->setNegative($data['negative']); - } elseif (\array_key_exists('negative', $data) && $data['negative'] === null) { + } elseif (\array_key_exists('negative', $data) && null === $data['negative']) { $object->setNegative(null); } - if (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] !== null) { + if (\array_key_exists('negativeOrZero', $data) && null !== $data['negativeOrZero']) { $object->setNegativeOrZero($data['negativeOrZero']); - } elseif (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] === null) { + } elseif (\array_key_exists('negativeOrZero', $data) && null === $data['negativeOrZero']) { $object->setNegativeOrZero(null); } - if (\array_key_exists('positive', $data) && $data['positive'] !== null) { + if (\array_key_exists('positive', $data) && null !== $data['positive']) { $object->setPositive($data['positive']); - } elseif (\array_key_exists('positive', $data) && $data['positive'] === null) { + } elseif (\array_key_exists('positive', $data) && null === $data['positive']) { $object->setPositive(null); } - if (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] !== null) { + if (\array_key_exists('positiveOrZero', $data) && null !== $data['positiveOrZero']) { $object->setPositiveOrZero($data['positiveOrZero']); - } elseif (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] === null) { + } elseif (\array_key_exists('positiveOrZero', $data) && null === $data['positiveOrZero']) { $object->setPositiveOrZero(null); } @@ -134,6 +138,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/MoneyNormalizer.php b/src/Normalizer/MoneyNormalizer.php index 362ffdfa..7d52b71d 100644 --- a/src/Normalizer/MoneyNormalizer.php +++ b/src/Normalizer/MoneyNormalizer.php @@ -27,15 +27,19 @@ class MoneyNormalizer implements DenormalizerInterface, NormalizerInterface, Den public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\Money::class; + return \Gyroscops\Api\Model\Money::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\Money::class; + return \is_object($data) && \Gyroscops\Api\Model\Money::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,68 +54,68 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('amount', $data) && $data['amount'] !== null) { + if (\array_key_exists('amount', $data) && null !== $data['amount']) { $object->setAmount($this->denormalizer->denormalize($data['amount'], \Gyroscops\Api\Model\BigDecimal::class, 'json', $context)); - } elseif (\array_key_exists('amount', $data) && $data['amount'] === null) { + } elseif (\array_key_exists('amount', $data) && null === $data['amount']) { $object->setAmount(null); } - if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + if (\array_key_exists('currency', $data) && null !== $data['currency']) { $object->setCurrency($this->denormalizer->denormalize($data['currency'], \Gyroscops\Api\Model\Currency::class, 'json', $context)); - } elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + } elseif (\array_key_exists('currency', $data) && null === $data['currency']) { $object->setCurrency(null); } - if (\array_key_exists('context', $data) && $data['context'] !== null) { + if (\array_key_exists('context', $data) && null !== $data['context']) { $object->setContext($this->denormalizer->denormalize($data['context'], \Gyroscops\Api\Model\Context::class, 'json', $context)); - } elseif (\array_key_exists('context', $data) && $data['context'] === null) { + } elseif (\array_key_exists('context', $data) && null === $data['context']) { $object->setContext(null); } - if (\array_key_exists('minorAmount', $data) && $data['minorAmount'] !== null) { + if (\array_key_exists('minorAmount', $data) && null !== $data['minorAmount']) { $object->setMinorAmount($this->denormalizer->denormalize($data['minorAmount'], \Gyroscops\Api\Model\BigDecimal::class, 'json', $context)); - } elseif (\array_key_exists('minorAmount', $data) && $data['minorAmount'] === null) { + } elseif (\array_key_exists('minorAmount', $data) && null === $data['minorAmount']) { $object->setMinorAmount(null); } - if (\array_key_exists('unscaledAmount', $data) && $data['unscaledAmount'] !== null) { + if (\array_key_exists('unscaledAmount', $data) && null !== $data['unscaledAmount']) { $object->setUnscaledAmount($this->denormalizer->denormalize($data['unscaledAmount'], \Gyroscops\Api\Model\BigInteger::class, 'json', $context)); - } elseif (\array_key_exists('unscaledAmount', $data) && $data['unscaledAmount'] === null) { + } elseif (\array_key_exists('unscaledAmount', $data) && null === $data['unscaledAmount']) { $object->setUnscaledAmount(null); } - if (\array_key_exists('amounts', $data) && $data['amounts'] !== null) { + if (\array_key_exists('amounts', $data) && null !== $data['amounts']) { $values = []; foreach ($data['amounts'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\BigNumber::class, 'json', $context); } $object->setAmounts($values); - } elseif (\array_key_exists('amounts', $data) && $data['amounts'] === null) { + } elseif (\array_key_exists('amounts', $data) && null === $data['amounts']) { $object->setAmounts(null); } - if (\array_key_exists('sign', $data) && $data['sign'] !== null) { + if (\array_key_exists('sign', $data) && null !== $data['sign']) { $object->setSign($data['sign']); - } elseif (\array_key_exists('sign', $data) && $data['sign'] === null) { + } elseif (\array_key_exists('sign', $data) && null === $data['sign']) { $object->setSign(null); } - if (\array_key_exists('zero', $data) && $data['zero'] !== null) { + if (\array_key_exists('zero', $data) && null !== $data['zero']) { $object->setZero($data['zero']); - } elseif (\array_key_exists('zero', $data) && $data['zero'] === null) { + } elseif (\array_key_exists('zero', $data) && null === $data['zero']) { $object->setZero(null); } - if (\array_key_exists('negative', $data) && $data['negative'] !== null) { + if (\array_key_exists('negative', $data) && null !== $data['negative']) { $object->setNegative($data['negative']); - } elseif (\array_key_exists('negative', $data) && $data['negative'] === null) { + } elseif (\array_key_exists('negative', $data) && null === $data['negative']) { $object->setNegative(null); } - if (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] !== null) { + if (\array_key_exists('negativeOrZero', $data) && null !== $data['negativeOrZero']) { $object->setNegativeOrZero($data['negativeOrZero']); - } elseif (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] === null) { + } elseif (\array_key_exists('negativeOrZero', $data) && null === $data['negativeOrZero']) { $object->setNegativeOrZero(null); } - if (\array_key_exists('positive', $data) && $data['positive'] !== null) { + if (\array_key_exists('positive', $data) && null !== $data['positive']) { $object->setPositive($data['positive']); - } elseif (\array_key_exists('positive', $data) && $data['positive'] === null) { + } elseif (\array_key_exists('positive', $data) && null === $data['positive']) { $object->setPositive(null); } - if (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] !== null) { + if (\array_key_exists('positiveOrZero', $data) && null !== $data['positiveOrZero']) { $object->setPositiveOrZero($data['positiveOrZero']); - } elseif (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] === null) { + } elseif (\array_key_exists('positiveOrZero', $data) && null === $data['positiveOrZero']) { $object->setPositiveOrZero(null); } @@ -119,6 +123,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/OfferJsonldNormalizer.php b/src/Normalizer/OfferJsonldNormalizer.php index 76e9c604..7b118424 100644 --- a/src/Normalizer/OfferJsonldNormalizer.php +++ b/src/Normalizer/OfferJsonldNormalizer.php @@ -27,15 +27,19 @@ class OfferJsonldNormalizer implements DenormalizerInterface, NormalizerInterfac public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\OfferJsonld::class; + return \Gyroscops\Api\Model\OfferJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\OfferJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\OfferJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,58 +54,58 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('options', $data) && $data['options'] !== null) { + if (\array_key_exists('options', $data) && null !== $data['options']) { $values = []; foreach ($data['options'] as $value) { $values[] = $value; } $object->setOptions($values); - } elseif (\array_key_exists('options', $data) && $data['options'] === null) { + } elseif (\array_key_exists('options', $data) && null === $data['options']) { $object->setOptions(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('sku', $data) && $data['sku'] !== null) { + if (\array_key_exists('sku', $data) && null !== $data['sku']) { $object->setSku($data['sku']); - } elseif (\array_key_exists('sku', $data) && $data['sku'] === null) { + } elseif (\array_key_exists('sku', $data) && null === $data['sku']) { $object->setSku(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('slug', $data) && $data['slug'] !== null) { + if (\array_key_exists('slug', $data) && null !== $data['slug']) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { + } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { $object->setSlug(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('price', $data) && $data['price'] !== null) { + if (\array_key_exists('price', $data) && null !== $data['price']) { $object->setPrice($this->denormalizer->denormalize($data['price'], \Gyroscops\Api\Model\PriceJsonld::class, 'json', $context)); - } elseif (\array_key_exists('price', $data) && $data['price'] === null) { + } elseif (\array_key_exists('price', $data) && null === $data['price']) { $object->setPrice(null); } @@ -109,6 +113,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/OfferNormalizer.php b/src/Normalizer/OfferNormalizer.php index b715cf69..7949d586 100644 --- a/src/Normalizer/OfferNormalizer.php +++ b/src/Normalizer/OfferNormalizer.php @@ -27,15 +27,19 @@ class OfferNormalizer implements DenormalizerInterface, NormalizerInterface, Den public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\Offer::class; + return \Gyroscops\Api\Model\Offer::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\Offer::class; + return \is_object($data) && \Gyroscops\Api\Model\Offer::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,43 +54,43 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('options', $data) && $data['options'] !== null) { + if (\array_key_exists('options', $data) && null !== $data['options']) { $values = []; foreach ($data['options'] as $value) { $values[] = $value; } $object->setOptions($values); - } elseif (\array_key_exists('options', $data) && $data['options'] === null) { + } elseif (\array_key_exists('options', $data) && null === $data['options']) { $object->setOptions(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('sku', $data) && $data['sku'] !== null) { + if (\array_key_exists('sku', $data) && null !== $data['sku']) { $object->setSku($data['sku']); - } elseif (\array_key_exists('sku', $data) && $data['sku'] === null) { + } elseif (\array_key_exists('sku', $data) && null === $data['sku']) { $object->setSku(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('slug', $data) && $data['slug'] !== null) { + if (\array_key_exists('slug', $data) && null !== $data['slug']) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { + } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { $object->setSlug(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('price', $data) && $data['price'] !== null) { + if (\array_key_exists('price', $data) && null !== $data['price']) { $object->setPrice($this->denormalizer->denormalize($data['price'], \Gyroscops\Api\Model\Price::class, 'json', $context)); - } elseif (\array_key_exists('price', $data) && $data['price'] === null) { + } elseif (\array_key_exists('price', $data) && null === $data['price']) { $object->setPrice(null); } @@ -94,6 +98,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/OnPremiseRequestJsonldOnPremiseRequestReadNormalizer.php b/src/Normalizer/OnPremiseRequestJsonldOnPremiseRequestReadNormalizer.php index 5a684bca..f0cb3e20 100644 --- a/src/Normalizer/OnPremiseRequestJsonldOnPremiseRequestReadNormalizer.php +++ b/src/Normalizer/OnPremiseRequestJsonldOnPremiseRequestReadNormalizer.php @@ -27,15 +27,19 @@ class OnPremiseRequestJsonldOnPremiseRequestReadNormalizer implements Denormaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestRead::class; + return \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestRead::class; + return \is_object($data) && \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,49 +54,49 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('firstName', $data) && $data['firstName'] !== null) { + if (\array_key_exists('firstName', $data) && null !== $data['firstName']) { $object->setFirstName($data['firstName']); - } elseif (\array_key_exists('firstName', $data) && $data['firstName'] === null) { + } elseif (\array_key_exists('firstName', $data) && null === $data['firstName']) { $object->setFirstName(null); } - if (\array_key_exists('lastName', $data) && $data['lastName'] !== null) { + if (\array_key_exists('lastName', $data) && null !== $data['lastName']) { $object->setLastName($data['lastName']); - } elseif (\array_key_exists('lastName', $data) && $data['lastName'] === null) { + } elseif (\array_key_exists('lastName', $data) && null === $data['lastName']) { $object->setLastName(null); } - if (\array_key_exists('email', $data) && $data['email'] !== null) { + if (\array_key_exists('email', $data) && null !== $data['email']) { $object->setEmail($data['email']); - } elseif (\array_key_exists('email', $data) && $data['email'] === null) { + } elseif (\array_key_exists('email', $data) && null === $data['email']) { $object->setEmail(null); } - if (\array_key_exists('message', $data) && $data['message'] !== null) { + if (\array_key_exists('message', $data) && null !== $data['message']) { $object->setMessage($data['message']); - } elseif (\array_key_exists('message', $data) && $data['message'] === null) { + } elseif (\array_key_exists('message', $data) && null === $data['message']) { $object->setMessage(null); } - if (\array_key_exists('createdAt', $data) && $data['createdAt'] !== null) { + if (\array_key_exists('createdAt', $data) && null !== $data['createdAt']) { $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['createdAt'])); - } elseif (\array_key_exists('createdAt', $data) && $data['createdAt'] === null) { + } elseif (\array_key_exists('createdAt', $data) && null === $data['createdAt']) { $object->setCreatedAt(null); } @@ -100,6 +104,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/OnPremiseRequestJsonldOnPremiseRequestWriteNormalizer.php b/src/Normalizer/OnPremiseRequestJsonldOnPremiseRequestWriteNormalizer.php index ab65ea39..46dfcec1 100644 --- a/src/Normalizer/OnPremiseRequestJsonldOnPremiseRequestWriteNormalizer.php +++ b/src/Normalizer/OnPremiseRequestJsonldOnPremiseRequestWriteNormalizer.php @@ -27,15 +27,19 @@ class OnPremiseRequestJsonldOnPremiseRequestWriteNormalizer implements Denormali public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestWrite::class; + return \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestWrite::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestWrite::class; + return \is_object($data) && \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestWrite::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,39 +54,39 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('firstName', $data) && $data['firstName'] !== null) { + if (\array_key_exists('firstName', $data) && null !== $data['firstName']) { $object->setFirstName($data['firstName']); - } elseif (\array_key_exists('firstName', $data) && $data['firstName'] === null) { + } elseif (\array_key_exists('firstName', $data) && null === $data['firstName']) { $object->setFirstName(null); } - if (\array_key_exists('lastName', $data) && $data['lastName'] !== null) { + if (\array_key_exists('lastName', $data) && null !== $data['lastName']) { $object->setLastName($data['lastName']); - } elseif (\array_key_exists('lastName', $data) && $data['lastName'] === null) { + } elseif (\array_key_exists('lastName', $data) && null === $data['lastName']) { $object->setLastName(null); } - if (\array_key_exists('email', $data) && $data['email'] !== null) { + if (\array_key_exists('email', $data) && null !== $data['email']) { $object->setEmail($data['email']); - } elseif (\array_key_exists('email', $data) && $data['email'] === null) { + } elseif (\array_key_exists('email', $data) && null === $data['email']) { $object->setEmail(null); } - if (\array_key_exists('message', $data) && $data['message'] !== null) { + if (\array_key_exists('message', $data) && null !== $data['message']) { $object->setMessage($data['message']); - } elseif (\array_key_exists('message', $data) && $data['message'] === null) { + } elseif (\array_key_exists('message', $data) && null === $data['message']) { $object->setMessage(null); } @@ -90,6 +94,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/OnPremiseRequestOnPremiseRequestReadNormalizer.php b/src/Normalizer/OnPremiseRequestOnPremiseRequestReadNormalizer.php index 1bf03a12..da19d53a 100644 --- a/src/Normalizer/OnPremiseRequestOnPremiseRequestReadNormalizer.php +++ b/src/Normalizer/OnPremiseRequestOnPremiseRequestReadNormalizer.php @@ -27,15 +27,19 @@ class OnPremiseRequestOnPremiseRequestReadNormalizer implements DenormalizerInte public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead::class; + return \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead::class; + return \is_object($data) && \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('firstName', $data) && $data['firstName'] !== null) { + if (\array_key_exists('firstName', $data) && null !== $data['firstName']) { $object->setFirstName($data['firstName']); - } elseif (\array_key_exists('firstName', $data) && $data['firstName'] === null) { + } elseif (\array_key_exists('firstName', $data) && null === $data['firstName']) { $object->setFirstName(null); } - if (\array_key_exists('lastName', $data) && $data['lastName'] !== null) { + if (\array_key_exists('lastName', $data) && null !== $data['lastName']) { $object->setLastName($data['lastName']); - } elseif (\array_key_exists('lastName', $data) && $data['lastName'] === null) { + } elseif (\array_key_exists('lastName', $data) && null === $data['lastName']) { $object->setLastName(null); } - if (\array_key_exists('email', $data) && $data['email'] !== null) { + if (\array_key_exists('email', $data) && null !== $data['email']) { $object->setEmail($data['email']); - } elseif (\array_key_exists('email', $data) && $data['email'] === null) { + } elseif (\array_key_exists('email', $data) && null === $data['email']) { $object->setEmail(null); } - if (\array_key_exists('message', $data) && $data['message'] !== null) { + if (\array_key_exists('message', $data) && null !== $data['message']) { $object->setMessage($data['message']); - } elseif (\array_key_exists('message', $data) && $data['message'] === null) { + } elseif (\array_key_exists('message', $data) && null === $data['message']) { $object->setMessage(null); } - if (\array_key_exists('createdAt', $data) && $data['createdAt'] !== null) { + if (\array_key_exists('createdAt', $data) && null !== $data['createdAt']) { $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['createdAt'])); - } elseif (\array_key_exists('createdAt', $data) && $data['createdAt'] === null) { + } elseif (\array_key_exists('createdAt', $data) && null === $data['createdAt']) { $object->setCreatedAt(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/OnPremiseRequestOnPremiseRequestWriteNormalizer.php b/src/Normalizer/OnPremiseRequestOnPremiseRequestWriteNormalizer.php index a61978a3..fae0b868 100644 --- a/src/Normalizer/OnPremiseRequestOnPremiseRequestWriteNormalizer.php +++ b/src/Normalizer/OnPremiseRequestOnPremiseRequestWriteNormalizer.php @@ -27,15 +27,19 @@ class OnPremiseRequestOnPremiseRequestWriteNormalizer implements DenormalizerInt public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestWrite::class; + return \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestWrite::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestWrite::class; + return \is_object($data) && \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestWrite::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('firstName', $data) && $data['firstName'] !== null) { + if (\array_key_exists('firstName', $data) && null !== $data['firstName']) { $object->setFirstName($data['firstName']); - } elseif (\array_key_exists('firstName', $data) && $data['firstName'] === null) { + } elseif (\array_key_exists('firstName', $data) && null === $data['firstName']) { $object->setFirstName(null); } - if (\array_key_exists('lastName', $data) && $data['lastName'] !== null) { + if (\array_key_exists('lastName', $data) && null !== $data['lastName']) { $object->setLastName($data['lastName']); - } elseif (\array_key_exists('lastName', $data) && $data['lastName'] === null) { + } elseif (\array_key_exists('lastName', $data) && null === $data['lastName']) { $object->setLastName(null); } - if (\array_key_exists('email', $data) && $data['email'] !== null) { + if (\array_key_exists('email', $data) && null !== $data['email']) { $object->setEmail($data['email']); - } elseif (\array_key_exists('email', $data) && $data['email'] === null) { + } elseif (\array_key_exists('email', $data) && null === $data['email']) { $object->setEmail(null); } - if (\array_key_exists('message', $data) && $data['message'] !== null) { + if (\array_key_exists('message', $data) && null !== $data['message']) { $object->setMessage($data['message']); - } elseif (\array_key_exists('message', $data) && $data['message'] === null) { + } elseif (\array_key_exists('message', $data) && null === $data['message']) { $object->setMessage(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/OptionJsonldNormalizer.php b/src/Normalizer/OptionJsonldNormalizer.php index c5978df9..a6916ffc 100644 --- a/src/Normalizer/OptionJsonldNormalizer.php +++ b/src/Normalizer/OptionJsonldNormalizer.php @@ -27,15 +27,19 @@ class OptionJsonldNormalizer implements DenormalizerInterface, NormalizerInterfa public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\OptionJsonld::class; + return \Gyroscops\Api\Model\OptionJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\OptionJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\OptionJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,49 +54,49 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('offer', $data) && $data['offer'] !== null) { + if (\array_key_exists('offer', $data) && null !== $data['offer']) { $object->setOffer($data['offer']); - } elseif (\array_key_exists('offer', $data) && $data['offer'] === null) { + } elseif (\array_key_exists('offer', $data) && null === $data['offer']) { $object->setOffer(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('sku', $data) && $data['sku'] !== null) { + if (\array_key_exists('sku', $data) && null !== $data['sku']) { $object->setSku($data['sku']); - } elseif (\array_key_exists('sku', $data) && $data['sku'] === null) { + } elseif (\array_key_exists('sku', $data) && null === $data['sku']) { $object->setSku(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('slug', $data) && $data['slug'] !== null) { + if (\array_key_exists('slug', $data) && null !== $data['slug']) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { + } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { $object->setSlug(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('price', $data) && $data['price'] !== null) { + if (\array_key_exists('price', $data) && null !== $data['price']) { $object->setPrice($this->denormalizer->denormalize($data['price'], \Gyroscops\Api\Model\PriceJsonld::class, 'json', $context)); - } elseif (\array_key_exists('price', $data) && $data['price'] === null) { + } elseif (\array_key_exists('price', $data) && null === $data['price']) { $object->setPrice(null); } @@ -100,6 +104,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/OptionNormalizer.php b/src/Normalizer/OptionNormalizer.php index 24029590..b32c3baa 100644 --- a/src/Normalizer/OptionNormalizer.php +++ b/src/Normalizer/OptionNormalizer.php @@ -27,15 +27,19 @@ class OptionNormalizer implements DenormalizerInterface, NormalizerInterface, De public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\Option::class; + return \Gyroscops\Api\Model\Option::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\Option::class; + return \is_object($data) && \Gyroscops\Api\Model\Option::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,39 +54,39 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('offer', $data) && $data['offer'] !== null) { + if (\array_key_exists('offer', $data) && null !== $data['offer']) { $object->setOffer($data['offer']); - } elseif (\array_key_exists('offer', $data) && $data['offer'] === null) { + } elseif (\array_key_exists('offer', $data) && null === $data['offer']) { $object->setOffer(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('sku', $data) && $data['sku'] !== null) { + if (\array_key_exists('sku', $data) && null !== $data['sku']) { $object->setSku($data['sku']); - } elseif (\array_key_exists('sku', $data) && $data['sku'] === null) { + } elseif (\array_key_exists('sku', $data) && null === $data['sku']) { $object->setSku(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('slug', $data) && $data['slug'] !== null) { + if (\array_key_exists('slug', $data) && null !== $data['slug']) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { + } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { $object->setSlug(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('price', $data) && $data['price'] !== null) { + if (\array_key_exists('price', $data) && null !== $data['price']) { $object->setPrice($this->denormalizer->denormalize($data['price'], \Gyroscops\Api\Model\Price::class, 'json', $context)); - } elseif (\array_key_exists('price', $data) && $data['price'] === null) { + } elseif (\array_key_exists('price', $data) && null === $data['price']) { $object->setPrice(null); } @@ -90,6 +94,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/OrganizationIdJsonldNormalizer.php b/src/Normalizer/OrganizationIdJsonldNormalizer.php index c8018a7a..37bd20de 100644 --- a/src/Normalizer/OrganizationIdJsonldNormalizer.php +++ b/src/Normalizer/OrganizationIdJsonldNormalizer.php @@ -27,15 +27,19 @@ class OrganizationIdJsonldNormalizer implements DenormalizerInterface, Normalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\OrganizationIdJsonld::class; + return \Gyroscops\Api\Model\OrganizationIdJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\OrganizationIdJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\OrganizationIdJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/OrganizationJsonldNormalizer.php b/src/Normalizer/OrganizationJsonldNormalizer.php index 7dbb2764..497af95b 100644 --- a/src/Normalizer/OrganizationJsonldNormalizer.php +++ b/src/Normalizer/OrganizationJsonldNormalizer.php @@ -27,15 +27,19 @@ class OrganizationJsonldNormalizer implements DenormalizerInterface, NormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\OrganizationJsonld::class; + return \Gyroscops\Api\Model\OrganizationJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\OrganizationJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\OrganizationJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,70 +54,70 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('authorizations', $data) && $data['authorizations'] !== null) { + if (\array_key_exists('authorizations', $data) && null !== $data['authorizations']) { $values = []; foreach ($data['authorizations'] as $value) { $values[] = $value; } $object->setAuthorizations($values); - } elseif (\array_key_exists('authorizations', $data) && $data['authorizations'] === null) { + } elseif (\array_key_exists('authorizations', $data) && null === $data['authorizations']) { $object->setAuthorizations(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('slug', $data) && $data['slug'] !== null) { + if (\array_key_exists('slug', $data) && null !== $data['slug']) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { + } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { $object->setSlug(null); } - if (\array_key_exists('users', $data) && $data['users'] !== null) { + if (\array_key_exists('users', $data) && null !== $data['users']) { $values_1 = []; foreach ($data['users'] as $value_1) { $values_1[] = $value_1; } $object->setUsers($values_1); - } elseif (\array_key_exists('users', $data) && $data['users'] === null) { + } elseif (\array_key_exists('users', $data) && null === $data['users']) { $object->setUsers(null); } - if (\array_key_exists('externalCollaborators', $data) && $data['externalCollaborators'] !== null) { + if (\array_key_exists('externalCollaborators', $data) && null !== $data['externalCollaborators']) { $values_2 = []; foreach ($data['externalCollaborators'] as $value_2) { $values_2[] = $value_2; } $object->setExternalCollaborators($values_2); - } elseif (\array_key_exists('externalCollaborators', $data) && $data['externalCollaborators'] === null) { + } elseif (\array_key_exists('externalCollaborators', $data) && null === $data['externalCollaborators']) { $object->setExternalCollaborators(null); } - if (\array_key_exists('workspaces', $data) && $data['workspaces'] !== null) { + if (\array_key_exists('workspaces', $data) && null !== $data['workspaces']) { $values_3 = []; foreach ($data['workspaces'] as $value_3) { $values_3[] = $value_3; } $object->setWorkspaces($values_3); - } elseif (\array_key_exists('workspaces', $data) && $data['workspaces'] === null) { + } elseif (\array_key_exists('workspaces', $data) && null === $data['workspaces']) { $object->setWorkspaces(null); } @@ -121,6 +125,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/OrganizationNormalizer.php b/src/Normalizer/OrganizationNormalizer.php index 83974dee..8a9535d0 100644 --- a/src/Normalizer/OrganizationNormalizer.php +++ b/src/Normalizer/OrganizationNormalizer.php @@ -27,15 +27,19 @@ class OrganizationNormalizer implements DenormalizerInterface, NormalizerInterfa public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\Organization::class; + return \Gyroscops\Api\Model\Organization::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\Organization::class; + return \is_object($data) && \Gyroscops\Api\Model\Organization::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,55 +54,55 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('authorizations', $data) && $data['authorizations'] !== null) { + if (\array_key_exists('authorizations', $data) && null !== $data['authorizations']) { $values = []; foreach ($data['authorizations'] as $value) { $values[] = $value; } $object->setAuthorizations($values); - } elseif (\array_key_exists('authorizations', $data) && $data['authorizations'] === null) { + } elseif (\array_key_exists('authorizations', $data) && null === $data['authorizations']) { $object->setAuthorizations(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('slug', $data) && $data['slug'] !== null) { + if (\array_key_exists('slug', $data) && null !== $data['slug']) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { + } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { $object->setSlug(null); } - if (\array_key_exists('users', $data) && $data['users'] !== null) { + if (\array_key_exists('users', $data) && null !== $data['users']) { $values_1 = []; foreach ($data['users'] as $value_1) { $values_1[] = $value_1; } $object->setUsers($values_1); - } elseif (\array_key_exists('users', $data) && $data['users'] === null) { + } elseif (\array_key_exists('users', $data) && null === $data['users']) { $object->setUsers(null); } - if (\array_key_exists('externalCollaborators', $data) && $data['externalCollaborators'] !== null) { + if (\array_key_exists('externalCollaborators', $data) && null !== $data['externalCollaborators']) { $values_2 = []; foreach ($data['externalCollaborators'] as $value_2) { $values_2[] = $value_2; } $object->setExternalCollaborators($values_2); - } elseif (\array_key_exists('externalCollaborators', $data) && $data['externalCollaborators'] === null) { + } elseif (\array_key_exists('externalCollaborators', $data) && null === $data['externalCollaborators']) { $object->setExternalCollaborators(null); } - if (\array_key_exists('workspaces', $data) && $data['workspaces'] !== null) { + if (\array_key_exists('workspaces', $data) && null !== $data['workspaces']) { $values_3 = []; foreach ($data['workspaces'] as $value_3) { $values_3[] = $value_3; } $object->setWorkspaces($values_3); - } elseif (\array_key_exists('workspaces', $data) && $data['workspaces'] === null) { + } elseif (\array_key_exists('workspaces', $data) && null === $data['workspaces']) { $object->setWorkspaces(null); } @@ -106,6 +110,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineAddAfterPipelineStepCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineAddAfterPipelineStepCommandInputJsonldNormalizer.php index 70487047..b9cc4926 100644 --- a/src/Normalizer/PipelineAddAfterPipelineStepCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineAddAfterPipelineStepCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddAfterPipelineStepCommandInputJsonldNormalizer implements Denorm public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInputJsonld::class; + return \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,32 +54,32 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['configuration'] as $key => $value) { $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); @@ -85,16 +89,16 @@ public function denormalize($data, $class, $format = null, array $context = []) $values[$key] = $values_1; } $object->setConfiguration($values); - } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { $object->setConfiguration(null); } - if (\array_key_exists('probes', $data) && $data['probes'] !== null) { + if (\array_key_exists('probes', $data) && null !== $data['probes']) { $values_2 = []; foreach ($data['probes'] as $value_2) { $values_2[] = $this->denormalizer->denormalize($value_2, \Gyroscops\Api\Model\ProbeJsonld::class, 'json', $context); } $object->setProbes($values_2); - } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { + } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { $object->setProbes(null); } @@ -102,6 +106,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineAddAfterPipelineStepCommandInputNormalizer.php b/src/Normalizer/PipelineAddAfterPipelineStepCommandInputNormalizer.php index 1d8bcda5..a52e4280 100644 --- a/src/Normalizer/PipelineAddAfterPipelineStepCommandInputNormalizer.php +++ b/src/Normalizer/PipelineAddAfterPipelineStepCommandInputNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddAfterPipelineStepCommandInputNormalizer implements Denormalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInput::class; + return \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,17 +54,17 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['configuration'] as $key => $value) { $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); @@ -70,16 +74,16 @@ public function denormalize($data, $class, $format = null, array $context = []) $values[$key] = $values_1; } $object->setConfiguration($values); - } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { $object->setConfiguration(null); } - if (\array_key_exists('probes', $data) && $data['probes'] !== null) { + if (\array_key_exists('probes', $data) && null !== $data['probes']) { $values_2 = []; foreach ($data['probes'] as $value_2) { $values_2[] = $this->denormalizer->denormalize($value_2, \Gyroscops\Api\Model\Probe::class, 'json', $context); } $object->setProbes($values_2); - } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { + } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { $object->setProbes(null); } @@ -87,6 +91,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineAddAfterPipelineStepCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineAddAfterPipelineStepCommandJsonldReadNormalizer.php index 65b035e2..6e956af1 100644 --- a/src/Normalizer/PipelineAddAfterPipelineStepCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineAddAfterPipelineStepCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddAfterPipelineStepCommandJsonldReadNormalizer implements Denorma public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandJsonldRead::class; + return \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineAddBeforePipelineStepCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineAddBeforePipelineStepCommandInputJsonldNormalizer.php index 87d4e00c..7f1451d9 100644 --- a/src/Normalizer/PipelineAddBeforePipelineStepCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineAddBeforePipelineStepCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddBeforePipelineStepCommandInputJsonldNormalizer implements Denor public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInputJsonld::class; + return \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,32 +54,32 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['configuration'] as $key => $value) { $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); @@ -85,16 +89,16 @@ public function denormalize($data, $class, $format = null, array $context = []) $values[$key] = $values_1; } $object->setConfiguration($values); - } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { $object->setConfiguration(null); } - if (\array_key_exists('probes', $data) && $data['probes'] !== null) { + if (\array_key_exists('probes', $data) && null !== $data['probes']) { $values_2 = []; foreach ($data['probes'] as $value_2) { $values_2[] = $this->denormalizer->denormalize($value_2, \Gyroscops\Api\Model\ProbeJsonld::class, 'json', $context); } $object->setProbes($values_2); - } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { + } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { $object->setProbes(null); } @@ -102,6 +106,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineAddBeforePipelineStepCommandInputNormalizer.php b/src/Normalizer/PipelineAddBeforePipelineStepCommandInputNormalizer.php index b818041c..782b46bc 100644 --- a/src/Normalizer/PipelineAddBeforePipelineStepCommandInputNormalizer.php +++ b/src/Normalizer/PipelineAddBeforePipelineStepCommandInputNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddBeforePipelineStepCommandInputNormalizer implements Denormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInput::class; + return \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,17 +54,17 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['configuration'] as $key => $value) { $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); @@ -70,16 +74,16 @@ public function denormalize($data, $class, $format = null, array $context = []) $values[$key] = $values_1; } $object->setConfiguration($values); - } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { $object->setConfiguration(null); } - if (\array_key_exists('probes', $data) && $data['probes'] !== null) { + if (\array_key_exists('probes', $data) && null !== $data['probes']) { $values_2 = []; foreach ($data['probes'] as $value_2) { $values_2[] = $this->denormalizer->denormalize($value_2, \Gyroscops\Api\Model\Probe::class, 'json', $context); } $object->setProbes($values_2); - } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { + } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { $object->setProbes(null); } @@ -87,6 +91,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineAddBeforePipelineStepCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineAddBeforePipelineStepCommandJsonldReadNormalizer.php index 8185c490..29219205 100644 --- a/src/Normalizer/PipelineAddBeforePipelineStepCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineAddBeforePipelineStepCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddBeforePipelineStepCommandJsonldReadNormalizer implements Denorm public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandJsonldRead::class; + return \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineAddPipelineComposerAuthCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerAuthCommandInputJsonldNormalizer.php index 8da242d6..2dfc4856 100644 --- a/src/Normalizer/PipelineAddPipelineComposerAuthCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerAuthCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddPipelineComposerAuthCommandInputJsonldNormalizer implements Den public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInputJsonld::class; + return \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,29 +54,29 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('url', $data) && $data['url'] !== null) { + if (\array_key_exists('url', $data) && null !== $data['url']) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + } elseif (\array_key_exists('url', $data) && null === $data['url']) { $object->setUrl(null); } - if (\array_key_exists('token', $data) && $data['token'] !== null) { + if (\array_key_exists('token', $data) && null !== $data['token']) { $object->setToken($data['token']); - } elseif (\array_key_exists('token', $data) && $data['token'] === null) { + } elseif (\array_key_exists('token', $data) && null === $data['token']) { $object->setToken(null); } @@ -80,6 +84,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineAddPipelineComposerAuthCommandInputNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerAuthCommandInputNormalizer.php index 2668d327..d291b38c 100644 --- a/src/Normalizer/PipelineAddPipelineComposerAuthCommandInputNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerAuthCommandInputNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddPipelineComposerAuthCommandInputNormalizer implements Denormali public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInput::class; + return \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,14 +54,14 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('url', $data) && $data['url'] !== null) { + if (\array_key_exists('url', $data) && null !== $data['url']) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + } elseif (\array_key_exists('url', $data) && null === $data['url']) { $object->setUrl(null); } - if (\array_key_exists('token', $data) && $data['token'] !== null) { + if (\array_key_exists('token', $data) && null !== $data['token']) { $object->setToken($data['token']); - } elseif (\array_key_exists('token', $data) && $data['token'] === null) { + } elseif (\array_key_exists('token', $data) && null === $data['token']) { $object->setToken(null); } @@ -65,6 +69,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineAddPipelineComposerAuthCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerAuthCommandJsonldReadNormalizer.php index 0410bce1..ef26ff6e 100644 --- a/src/Normalizer/PipelineAddPipelineComposerAuthCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerAuthCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddPipelineComposerAuthCommandJsonldReadNormalizer implements Deno public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandJsonldRead::class; + return \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonldNormalizer.php index 949da86e..a8905153 100644 --- a/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonldNormalizer implem public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld::class; + return \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,33 +54,33 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('namespace', $data) && $data['namespace'] !== null) { + if (\array_key_exists('namespace', $data) && null !== $data['namespace']) { $object->setNamespace($data['namespace']); - } elseif (\array_key_exists('namespace', $data) && $data['namespace'] === null) { + } elseif (\array_key_exists('namespace', $data) && null === $data['namespace']) { $object->setNamespace(null); } - if (\array_key_exists('paths', $data) && $data['paths'] !== null) { + if (\array_key_exists('paths', $data) && null !== $data['paths']) { $values = []; foreach ($data['paths'] as $value) { $values[] = $value; } $object->setPaths($values); - } elseif (\array_key_exists('paths', $data) && $data['paths'] === null) { + } elseif (\array_key_exists('paths', $data) && null === $data['paths']) { $object->setPaths(null); } @@ -84,6 +88,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandInputNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandInputNormalizer.php index fefa1a59..35731e2c 100644 --- a/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandInputNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandInputNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddPipelineComposerPSR4AutoloadCommandInputNormalizer implements D public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInput::class; + return \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,18 +54,18 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('namespace', $data) && $data['namespace'] !== null) { + if (\array_key_exists('namespace', $data) && null !== $data['namespace']) { $object->setNamespace($data['namespace']); - } elseif (\array_key_exists('namespace', $data) && $data['namespace'] === null) { + } elseif (\array_key_exists('namespace', $data) && null === $data['namespace']) { $object->setNamespace(null); } - if (\array_key_exists('paths', $data) && $data['paths'] !== null) { + if (\array_key_exists('paths', $data) && null !== $data['paths']) { $values = []; foreach ($data['paths'] as $value) { $values[] = $value; } $object->setPaths($values); - } elseif (\array_key_exists('paths', $data) && $data['paths'] === null) { + } elseif (\array_key_exists('paths', $data) && null === $data['paths']) { $object->setPaths(null); } @@ -69,6 +73,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandJsonldReadNormalizer.php index 3e2bed34..bafc401b 100644 --- a/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddPipelineComposerPSR4AutoloadCommandJsonldReadNormalizer impleme public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead::class; + return \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineAddPipelineComposerPackageCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerPackageCommandInputJsonldNormalizer.php index 7a257580..c2e69502 100644 --- a/src/Normalizer/PipelineAddPipelineComposerPackageCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerPackageCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddPipelineComposerPackageCommandInputJsonldNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInputJsonld::class; + return \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,29 +54,29 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('package', $data) && $data['package'] !== null) { + if (\array_key_exists('package', $data) && null !== $data['package']) { $object->setPackage($data['package']); - } elseif (\array_key_exists('package', $data) && $data['package'] === null) { + } elseif (\array_key_exists('package', $data) && null === $data['package']) { $object->setPackage(null); } - if (\array_key_exists('version', $data) && $data['version'] !== null) { + if (\array_key_exists('version', $data) && null !== $data['version']) { $object->setVersion($data['version']); - } elseif (\array_key_exists('version', $data) && $data['version'] === null) { + } elseif (\array_key_exists('version', $data) && null === $data['version']) { $object->setVersion(null); } @@ -80,6 +84,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineAddPipelineComposerPackageCommandInputNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerPackageCommandInputNormalizer.php index 27b70180..30e97f38 100644 --- a/src/Normalizer/PipelineAddPipelineComposerPackageCommandInputNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerPackageCommandInputNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddPipelineComposerPackageCommandInputNormalizer implements Denorm public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInput::class; + return \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,14 +54,14 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('package', $data) && $data['package'] !== null) { + if (\array_key_exists('package', $data) && null !== $data['package']) { $object->setPackage($data['package']); - } elseif (\array_key_exists('package', $data) && $data['package'] === null) { + } elseif (\array_key_exists('package', $data) && null === $data['package']) { $object->setPackage(null); } - if (\array_key_exists('version', $data) && $data['version'] !== null) { + if (\array_key_exists('version', $data) && null !== $data['version']) { $object->setVersion($data['version']); - } elseif (\array_key_exists('version', $data) && $data['version'] === null) { + } elseif (\array_key_exists('version', $data) && null === $data['version']) { $object->setVersion(null); } @@ -65,6 +69,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineAddPipelineComposerPackageCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerPackageCommandJsonldReadNormalizer.php index b33bbada..5a3a3f76 100644 --- a/src/Normalizer/PipelineAddPipelineComposerPackageCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerPackageCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddPipelineComposerPackageCommandJsonldReadNormalizer implements D public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandJsonldRead::class; + return \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandInputJsonldNormalizer.php index a855c8df..80d08791 100644 --- a/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddPipelineComposerRepositoryCommandInputJsonldNormalizer implemen public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInputJsonld::class; + return \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('type', $data) && $data['type'] !== null) { + if (\array_key_exists('type', $data) && null !== $data['type']) { $object->setType2($data['type']); - } elseif (\array_key_exists('type', $data) && $data['type'] === null) { + } elseif (\array_key_exists('type', $data) && null === $data['type']) { $object->setType2(null); } - if (\array_key_exists('url', $data) && $data['url'] !== null) { + if (\array_key_exists('url', $data) && null !== $data['url']) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + } elseif (\array_key_exists('url', $data) && null === $data['url']) { $object->setUrl(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandInputNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandInputNormalizer.php index 06ee644f..97662b18 100644 --- a/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandInputNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandInputNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddPipelineComposerRepositoryCommandInputNormalizer implements Den public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInput::class; + return \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('type', $data) && $data['type'] !== null) { + if (\array_key_exists('type', $data) && null !== $data['type']) { $object->setType($data['type']); - } elseif (\array_key_exists('type', $data) && $data['type'] === null) { + } elseif (\array_key_exists('type', $data) && null === $data['type']) { $object->setType(null); } - if (\array_key_exists('url', $data) && $data['url'] !== null) { + if (\array_key_exists('url', $data) && null !== $data['url']) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + } elseif (\array_key_exists('url', $data) && null === $data['url']) { $object->setUrl(null); } @@ -70,6 +74,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandJsonldReadNormalizer.php index 17aa8fb9..220cd145 100644 --- a/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddPipelineComposerRepositoryCommandJsonldReadNormalizer implement public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandJsonldRead::class; + return \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineAddPipelineStepProbCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineAddPipelineStepProbCommandInputJsonldNormalizer.php index 4c19d3b0..86b14dba 100644 --- a/src/Normalizer/PipelineAddPipelineStepProbCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineStepProbCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddPipelineStepProbCommandInputJsonldNormalizer implements Denorma public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInputJsonld::class; + return \Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('probe', $data) && $data['probe'] !== null) { + if (\array_key_exists('probe', $data) && null !== $data['probe']) { $object->setProbe($this->denormalizer->denormalize($data['probe'], \Gyroscops\Api\Model\ProbeJsonld::class, 'json', $context)); - } elseif (\array_key_exists('probe', $data) && $data['probe'] === null) { + } elseif (\array_key_exists('probe', $data) && null === $data['probe']) { $object->setProbe(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineAddPipelineStepProbCommandInputNormalizer.php b/src/Normalizer/PipelineAddPipelineStepProbCommandInputNormalizer.php index b9fb2683..1a762d4e 100644 --- a/src/Normalizer/PipelineAddPipelineStepProbCommandInputNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineStepProbCommandInputNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddPipelineStepProbCommandInputNormalizer implements DenormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInput::class; + return \Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,9 +54,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('probe', $data) && $data['probe'] !== null) { + if (\array_key_exists('probe', $data) && null !== $data['probe']) { $object->setProbe($this->denormalizer->denormalize($data['probe'], \Gyroscops\Api\Model\Probe::class, 'json', $context)); - } elseif (\array_key_exists('probe', $data) && $data['probe'] === null) { + } elseif (\array_key_exists('probe', $data) && null === $data['probe']) { $object->setProbe(null); } @@ -60,6 +64,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineAddPipelineStepProbeCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineAddPipelineStepProbeCommandJsonldReadNormalizer.php index 25781773..1bf6c3ab 100644 --- a/src/Normalizer/PipelineAddPipelineStepProbeCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineStepProbeCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineAddPipelineStepProbeCommandJsonldReadNormalizer implements Denorma public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAddPipelineStepProbeCommandJsonldRead::class; + return \Gyroscops\Api\Model\PipelineAddPipelineStepProbeCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAddPipelineStepProbeCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineStepProbeCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineAppendPipelineStepCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineAppendPipelineStepCommandInputJsonldNormalizer.php index 93c6f1ff..e468610e 100644 --- a/src/Normalizer/PipelineAppendPipelineStepCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineAppendPipelineStepCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineAppendPipelineStepCommandInputJsonldNormalizer implements Denormal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInputJsonld::class; + return \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,32 +54,32 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['configuration'] as $key => $value) { $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); @@ -85,16 +89,16 @@ public function denormalize($data, $class, $format = null, array $context = []) $values[$key] = $values_1; } $object->setConfiguration($values); - } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { $object->setConfiguration(null); } - if (\array_key_exists('probes', $data) && $data['probes'] !== null) { + if (\array_key_exists('probes', $data) && null !== $data['probes']) { $values_2 = []; foreach ($data['probes'] as $value_2) { $values_2[] = $this->denormalizer->denormalize($value_2, \Gyroscops\Api\Model\ProbeJsonld::class, 'json', $context); } $object->setProbes($values_2); - } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { + } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { $object->setProbes(null); } @@ -102,6 +106,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineAppendPipelineStepCommandInputNormalizer.php b/src/Normalizer/PipelineAppendPipelineStepCommandInputNormalizer.php index 5178a973..8ad1b87a 100644 --- a/src/Normalizer/PipelineAppendPipelineStepCommandInputNormalizer.php +++ b/src/Normalizer/PipelineAppendPipelineStepCommandInputNormalizer.php @@ -27,15 +27,19 @@ class PipelineAppendPipelineStepCommandInputNormalizer implements DenormalizerIn public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInput::class; + return \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,17 +54,17 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['configuration'] as $key => $value) { $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); @@ -70,16 +74,16 @@ public function denormalize($data, $class, $format = null, array $context = []) $values[$key] = $values_1; } $object->setConfiguration($values); - } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { $object->setConfiguration(null); } - if (\array_key_exists('probes', $data) && $data['probes'] !== null) { + if (\array_key_exists('probes', $data) && null !== $data['probes']) { $values_2 = []; foreach ($data['probes'] as $value_2) { $values_2[] = $this->denormalizer->denormalize($value_2, \Gyroscops\Api\Model\Probe::class, 'json', $context); } $object->setProbes($values_2); - } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { + } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { $object->setProbes(null); } @@ -87,6 +91,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineAppendPipelineStepCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineAppendPipelineStepCommandJsonldReadNormalizer.php index f7800f6c..9904048b 100644 --- a/src/Normalizer/PipelineAppendPipelineStepCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineAppendPipelineStepCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineAppendPipelineStepCommandJsonldReadNormalizer implements Denormali public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandJsonldRead::class; + return \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineCompilePipelineCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineCompilePipelineCommandInputJsonldNormalizer.php index 80b31163..89c18872 100644 --- a/src/Normalizer/PipelineCompilePipelineCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineCompilePipelineCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineCompilePipelineCommandInputJsonldNormalizer implements Denormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineCompilePipelineCommandInputJsonld::class; + return \Gyroscops\Api\Model\PipelineCompilePipelineCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineCompilePipelineCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineCompilePipelineCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineCompilePipelineCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineCompilePipelineCommandJsonldReadNormalizer.php index afddf461..22c0b435 100644 --- a/src/Normalizer/PipelineCompilePipelineCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineCompilePipelineCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineCompilePipelineCommandJsonldReadNormalizer implements Denormalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineCompilePipelineCommandJsonldRead::class; + return \Gyroscops\Api\Model\PipelineCompilePipelineCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineCompilePipelineCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineCompilePipelineCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineDeclarePipelineCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineDeclarePipelineCommandInputJsonldNormalizer.php index 1e14aa12..7e87c24f 100644 --- a/src/Normalizer/PipelineDeclarePipelineCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineDeclarePipelineCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineDeclarePipelineCommandInputJsonldNormalizer implements Denormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInputJsonld::class; + return \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,74 +54,74 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('steps', $data) && $data['steps'] !== null) { + if (\array_key_exists('steps', $data) && null !== $data['steps']) { $values = []; foreach ($data['steps'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\StepInputJsonld::class, 'json', $context); } $object->setSteps($values); - } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { $object->setSteps(null); } - if (\array_key_exists('autoloads', $data) && $data['autoloads'] !== null) { + if (\array_key_exists('autoloads', $data) && null !== $data['autoloads']) { $values_1 = []; foreach ($data['autoloads'] as $value_1) { $values_1[] = $this->denormalizer->denormalize($value_1, \Gyroscops\Api\Model\AutoloadInputJsonld::class, 'json', $context); } $object->setAutoloads($values_1); - } elseif (\array_key_exists('autoloads', $data) && $data['autoloads'] === null) { + } elseif (\array_key_exists('autoloads', $data) && null === $data['autoloads']) { $object->setAutoloads(null); } - if (\array_key_exists('packages', $data) && $data['packages'] !== null) { + if (\array_key_exists('packages', $data) && null !== $data['packages']) { $values_2 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['packages'] as $key => $value_2) { $values_2[$key] = $value_2; } $object->setPackages($values_2); - } elseif (\array_key_exists('packages', $data) && $data['packages'] === null) { + } elseif (\array_key_exists('packages', $data) && null === $data['packages']) { $object->setPackages(null); } - if (\array_key_exists('repositories', $data) && $data['repositories'] !== null) { + if (\array_key_exists('repositories', $data) && null !== $data['repositories']) { $values_3 = []; foreach ($data['repositories'] as $value_3) { $values_3[] = $this->denormalizer->denormalize($value_3, \Gyroscops\Api\Model\AddPipelineComposerRepositoryCommandInputJsonld::class, 'json', $context); } $object->setRepositories($values_3); - } elseif (\array_key_exists('repositories', $data) && $data['repositories'] === null) { + } elseif (\array_key_exists('repositories', $data) && null === $data['repositories']) { $object->setRepositories(null); } - if (\array_key_exists('auths', $data) && $data['auths'] !== null) { + if (\array_key_exists('auths', $data) && null !== $data['auths']) { $values_4 = []; foreach ($data['auths'] as $value_4) { $values_4[] = $this->denormalizer->denormalize($value_4, \Gyroscops\Api\Model\AddPipelineComposerAuthCommandInputJsonld::class, 'json', $context); } $object->setAuths($values_4); - } elseif (\array_key_exists('auths', $data) && $data['auths'] === null) { + } elseif (\array_key_exists('auths', $data) && null === $data['auths']) { $object->setAuths(null); } @@ -125,6 +129,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineDeclarePipelineCommandInputNormalizer.php b/src/Normalizer/PipelineDeclarePipelineCommandInputNormalizer.php index a9214a5f..5b7bfb63 100644 --- a/src/Normalizer/PipelineDeclarePipelineCommandInputNormalizer.php +++ b/src/Normalizer/PipelineDeclarePipelineCommandInputNormalizer.php @@ -27,15 +27,19 @@ class PipelineDeclarePipelineCommandInputNormalizer implements DenormalizerInter public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInput::class; + return \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,59 +54,59 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('steps', $data) && $data['steps'] !== null) { + if (\array_key_exists('steps', $data) && null !== $data['steps']) { $values = []; foreach ($data['steps'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\StepInput::class, 'json', $context); } $object->setSteps($values); - } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { $object->setSteps(null); } - if (\array_key_exists('autoloads', $data) && $data['autoloads'] !== null) { + if (\array_key_exists('autoloads', $data) && null !== $data['autoloads']) { $values_1 = []; foreach ($data['autoloads'] as $value_1) { $values_1[] = $this->denormalizer->denormalize($value_1, \Gyroscops\Api\Model\AutoloadInput::class, 'json', $context); } $object->setAutoloads($values_1); - } elseif (\array_key_exists('autoloads', $data) && $data['autoloads'] === null) { + } elseif (\array_key_exists('autoloads', $data) && null === $data['autoloads']) { $object->setAutoloads(null); } - if (\array_key_exists('packages', $data) && $data['packages'] !== null) { + if (\array_key_exists('packages', $data) && null !== $data['packages']) { $values_2 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['packages'] as $key => $value_2) { $values_2[$key] = $value_2; } $object->setPackages($values_2); - } elseif (\array_key_exists('packages', $data) && $data['packages'] === null) { + } elseif (\array_key_exists('packages', $data) && null === $data['packages']) { $object->setPackages(null); } - if (\array_key_exists('repositories', $data) && $data['repositories'] !== null) { + if (\array_key_exists('repositories', $data) && null !== $data['repositories']) { $values_3 = []; foreach ($data['repositories'] as $value_3) { $values_3[] = $this->denormalizer->denormalize($value_3, \Gyroscops\Api\Model\AddPipelineComposerRepositoryCommandInput::class, 'json', $context); } $object->setRepositories($values_3); - } elseif (\array_key_exists('repositories', $data) && $data['repositories'] === null) { + } elseif (\array_key_exists('repositories', $data) && null === $data['repositories']) { $object->setRepositories(null); } - if (\array_key_exists('auths', $data) && $data['auths'] !== null) { + if (\array_key_exists('auths', $data) && null !== $data['auths']) { $values_4 = []; foreach ($data['auths'] as $value_4) { $values_4[] = $this->denormalizer->denormalize($value_4, \Gyroscops\Api\Model\AddPipelineComposerAuthCommandInput::class, 'json', $context); } $object->setAuths($values_4); - } elseif (\array_key_exists('auths', $data) && $data['auths'] === null) { + } elseif (\array_key_exists('auths', $data) && null === $data['auths']) { $object->setAuths(null); } @@ -110,6 +114,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineDeclarePipelineCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineDeclarePipelineCommandJsonldReadNormalizer.php index d1790130..00c85156 100644 --- a/src/Normalizer/PipelineDeclarePipelineCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineDeclarePipelineCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineDeclarePipelineCommandJsonldReadNormalizer implements Denormalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineDeclarePipelineCommandJsonldRead::class; + return \Gyroscops\Api\Model\PipelineDeclarePipelineCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineDeclarePipelineCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineDeclarePipelineCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineIdJsonldNormalizer.php b/src/Normalizer/PipelineIdJsonldNormalizer.php index eee993fa..f1558982 100644 --- a/src/Normalizer/PipelineIdJsonldNormalizer.php +++ b/src/Normalizer/PipelineIdJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineIdJsonldNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineIdJsonld::class; + return \Gyroscops\Api\Model\PipelineIdJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineIdJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineIdJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineJsonldReadNormalizer.php b/src/Normalizer/PipelineJsonldReadNormalizer.php index 73cbf5fb..69f6700e 100644 --- a/src/Normalizer/PipelineJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineJsonldReadNormalizer implements DenormalizerInterface, NormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineJsonldRead::class; + return \Gyroscops\Api\Model\PipelineJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,103 +54,103 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('isSoftDeleted', $data) && $data['isSoftDeleted'] !== null) { + if (\array_key_exists('isSoftDeleted', $data) && null !== $data['isSoftDeleted']) { $object->setIsSoftDeleted($data['isSoftDeleted']); - } elseif (\array_key_exists('isSoftDeleted', $data) && $data['isSoftDeleted'] === null) { + } elseif (\array_key_exists('isSoftDeleted', $data) && null === $data['isSoftDeleted']) { $object->setIsSoftDeleted(null); } - if (\array_key_exists('compiledAt', $data) && $data['compiledAt'] !== null) { + if (\array_key_exists('compiledAt', $data) && null !== $data['compiledAt']) { $object->setCompiledAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['compiledAt'])); - } elseif (\array_key_exists('compiledAt', $data) && $data['compiledAt'] === null) { + } elseif (\array_key_exists('compiledAt', $data) && null === $data['compiledAt']) { $object->setCompiledAt(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('runtimeType', $data) && $data['runtimeType'] !== null) { + if (\array_key_exists('runtimeType', $data) && null !== $data['runtimeType']) { $object->setRuntimeType($data['runtimeType']); - } elseif (\array_key_exists('runtimeType', $data) && $data['runtimeType'] === null) { + } elseif (\array_key_exists('runtimeType', $data) && null === $data['runtimeType']) { $object->setRuntimeType(null); } - if (\array_key_exists('runtime', $data) && $data['runtime'] !== null) { + if (\array_key_exists('runtime', $data) && null !== $data['runtime']) { $values = []; foreach ($data['runtime'] as $value) { $values[] = $value; } $object->setRuntime($values); - } elseif (\array_key_exists('runtime', $data) && $data['runtime'] === null) { + } elseif (\array_key_exists('runtime', $data) && null === $data['runtime']) { $object->setRuntime(null); } - if (\array_key_exists('autoload', $data) && $data['autoload'] !== null) { + if (\array_key_exists('autoload', $data) && null !== $data['autoload']) { $values_1 = []; foreach ($data['autoload'] as $value_1) { $values_1[] = $value_1; } $object->setAutoload($values_1); - } elseif (\array_key_exists('autoload', $data) && $data['autoload'] === null) { + } elseif (\array_key_exists('autoload', $data) && null === $data['autoload']) { $object->setAutoload(null); } - if (\array_key_exists('packages', $data) && $data['packages'] !== null) { + if (\array_key_exists('packages', $data) && null !== $data['packages']) { $values_2 = []; foreach ($data['packages'] as $value_2) { $values_2[] = $value_2; } $object->setPackages($values_2); - } elseif (\array_key_exists('packages', $data) && $data['packages'] === null) { + } elseif (\array_key_exists('packages', $data) && null === $data['packages']) { $object->setPackages(null); } - if (\array_key_exists('repositories', $data) && $data['repositories'] !== null) { + if (\array_key_exists('repositories', $data) && null !== $data['repositories']) { $values_3 = []; foreach ($data['repositories'] as $value_3) { $values_3[] = $value_3; } $object->setRepositories($values_3); - } elseif (\array_key_exists('repositories', $data) && $data['repositories'] === null) { + } elseif (\array_key_exists('repositories', $data) && null === $data['repositories']) { $object->setRepositories(null); } - if (\array_key_exists('auths', $data) && $data['auths'] !== null) { + if (\array_key_exists('auths', $data) && null !== $data['auths']) { $values_4 = []; foreach ($data['auths'] as $value_4) { $values_4[] = $value_4; } $object->setAuths($values_4); - } elseif (\array_key_exists('auths', $data) && $data['auths'] === null) { + } elseif (\array_key_exists('auths', $data) && null === $data['auths']) { $object->setAuths(null); } - if (\array_key_exists('steps', $data) && $data['steps'] !== null) { + if (\array_key_exists('steps', $data) && null !== $data['steps']) { $values_5 = []; foreach ($data['steps'] as $value_5) { $values_5[] = $value_5; } $object->setSteps($values_5); - } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { $object->setSteps(null); } @@ -154,6 +158,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineMoveAfterPipelineStepCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineMoveAfterPipelineStepCommandInputJsonldNormalizer.php index f1eab331..e2dd977b 100644 --- a/src/Normalizer/PipelineMoveAfterPipelineStepCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineMoveAfterPipelineStepCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineMoveAfterPipelineStepCommandInputJsonldNormalizer implements Denor public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInputJsonld::class; + return \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineMoveAfterPipelineStepCommandInputNormalizer.php b/src/Normalizer/PipelineMoveAfterPipelineStepCommandInputNormalizer.php index 01572af1..1fd93949 100644 --- a/src/Normalizer/PipelineMoveAfterPipelineStepCommandInputNormalizer.php +++ b/src/Normalizer/PipelineMoveAfterPipelineStepCommandInputNormalizer.php @@ -27,15 +27,19 @@ class PipelineMoveAfterPipelineStepCommandInputNormalizer implements Denormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInput::class; + return \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,9 +54,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } @@ -60,6 +64,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineMoveAfterPipelineStepCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineMoveAfterPipelineStepCommandJsonldReadNormalizer.php index 19a2aa41..7fc8df85 100644 --- a/src/Normalizer/PipelineMoveAfterPipelineStepCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineMoveAfterPipelineStepCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineMoveAfterPipelineStepCommandJsonldReadNormalizer implements Denorm public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandJsonldRead::class; + return \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineMoveBeforePipelineStepCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineMoveBeforePipelineStepCommandInputJsonldNormalizer.php index 1f285c15..0f5ff310 100644 --- a/src/Normalizer/PipelineMoveBeforePipelineStepCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineMoveBeforePipelineStepCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineMoveBeforePipelineStepCommandInputJsonldNormalizer implements Deno public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInputJsonld::class; + return \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineMoveBeforePipelineStepCommandInputNormalizer.php b/src/Normalizer/PipelineMoveBeforePipelineStepCommandInputNormalizer.php index 30bca5e1..d5fcc496 100644 --- a/src/Normalizer/PipelineMoveBeforePipelineStepCommandInputNormalizer.php +++ b/src/Normalizer/PipelineMoveBeforePipelineStepCommandInputNormalizer.php @@ -27,15 +27,19 @@ class PipelineMoveBeforePipelineStepCommandInputNormalizer implements Denormaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInput::class; + return \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,9 +54,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } @@ -60,6 +64,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineMoveBeforePipelineStepCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineMoveBeforePipelineStepCommandJsonldReadNormalizer.php index 34284d01..52c53863 100644 --- a/src/Normalizer/PipelineMoveBeforePipelineStepCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineMoveBeforePipelineStepCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineMoveBeforePipelineStepCommandJsonldReadNormalizer implements Denor public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandJsonldRead::class; + return \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineReadNormalizer.php b/src/Normalizer/PipelineReadNormalizer.php index 365cfedf..270b478c 100644 --- a/src/Normalizer/PipelineReadNormalizer.php +++ b/src/Normalizer/PipelineReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineReadNormalizer implements DenormalizerInterface, NormalizerInterfa public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineRead::class; + return \Gyroscops\Api\Model\PipelineRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,88 +54,88 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('isSoftDeleted', $data) && $data['isSoftDeleted'] !== null) { + if (\array_key_exists('isSoftDeleted', $data) && null !== $data['isSoftDeleted']) { $object->setIsSoftDeleted($data['isSoftDeleted']); - } elseif (\array_key_exists('isSoftDeleted', $data) && $data['isSoftDeleted'] === null) { + } elseif (\array_key_exists('isSoftDeleted', $data) && null === $data['isSoftDeleted']) { $object->setIsSoftDeleted(null); } - if (\array_key_exists('compiledAt', $data) && $data['compiledAt'] !== null) { + if (\array_key_exists('compiledAt', $data) && null !== $data['compiledAt']) { $object->setCompiledAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['compiledAt'])); - } elseif (\array_key_exists('compiledAt', $data) && $data['compiledAt'] === null) { + } elseif (\array_key_exists('compiledAt', $data) && null === $data['compiledAt']) { $object->setCompiledAt(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('runtimeType', $data) && $data['runtimeType'] !== null) { + if (\array_key_exists('runtimeType', $data) && null !== $data['runtimeType']) { $object->setRuntimeType($data['runtimeType']); - } elseif (\array_key_exists('runtimeType', $data) && $data['runtimeType'] === null) { + } elseif (\array_key_exists('runtimeType', $data) && null === $data['runtimeType']) { $object->setRuntimeType(null); } - if (\array_key_exists('runtime', $data) && $data['runtime'] !== null) { + if (\array_key_exists('runtime', $data) && null !== $data['runtime']) { $values = []; foreach ($data['runtime'] as $value) { $values[] = $value; } $object->setRuntime($values); - } elseif (\array_key_exists('runtime', $data) && $data['runtime'] === null) { + } elseif (\array_key_exists('runtime', $data) && null === $data['runtime']) { $object->setRuntime(null); } - if (\array_key_exists('autoload', $data) && $data['autoload'] !== null) { + if (\array_key_exists('autoload', $data) && null !== $data['autoload']) { $values_1 = []; foreach ($data['autoload'] as $value_1) { $values_1[] = $value_1; } $object->setAutoload($values_1); - } elseif (\array_key_exists('autoload', $data) && $data['autoload'] === null) { + } elseif (\array_key_exists('autoload', $data) && null === $data['autoload']) { $object->setAutoload(null); } - if (\array_key_exists('packages', $data) && $data['packages'] !== null) { + if (\array_key_exists('packages', $data) && null !== $data['packages']) { $values_2 = []; foreach ($data['packages'] as $value_2) { $values_2[] = $value_2; } $object->setPackages($values_2); - } elseif (\array_key_exists('packages', $data) && $data['packages'] === null) { + } elseif (\array_key_exists('packages', $data) && null === $data['packages']) { $object->setPackages(null); } - if (\array_key_exists('repositories', $data) && $data['repositories'] !== null) { + if (\array_key_exists('repositories', $data) && null !== $data['repositories']) { $values_3 = []; foreach ($data['repositories'] as $value_3) { $values_3[] = $value_3; } $object->setRepositories($values_3); - } elseif (\array_key_exists('repositories', $data) && $data['repositories'] === null) { + } elseif (\array_key_exists('repositories', $data) && null === $data['repositories']) { $object->setRepositories(null); } - if (\array_key_exists('auths', $data) && $data['auths'] !== null) { + if (\array_key_exists('auths', $data) && null !== $data['auths']) { $values_4 = []; foreach ($data['auths'] as $value_4) { $values_4[] = $value_4; } $object->setAuths($values_4); - } elseif (\array_key_exists('auths', $data) && $data['auths'] === null) { + } elseif (\array_key_exists('auths', $data) && null === $data['auths']) { $object->setAuths(null); } - if (\array_key_exists('steps', $data) && $data['steps'] !== null) { + if (\array_key_exists('steps', $data) && null !== $data['steps']) { $values_5 = []; foreach ($data['steps'] as $value_5) { $values_5[] = $value_5; } $object->setSteps($values_5); - } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { $object->setSteps(null); } @@ -139,6 +143,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineRemovePipelineComposerAuthCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerAuthCommandInputJsonldNormalizer.php index da0c44a1..e5a5b85f 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerAuthCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerAuthCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineRemovePipelineComposerAuthCommandInputJsonldNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInputJsonld::class; + return \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('url', $data) && $data['url'] !== null) { + if (\array_key_exists('url', $data) && null !== $data['url']) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + } elseif (\array_key_exists('url', $data) && null === $data['url']) { $object->setUrl(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineRemovePipelineComposerAuthCommandInputNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerAuthCommandInputNormalizer.php index 93d3546f..071b9bd9 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerAuthCommandInputNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerAuthCommandInputNormalizer.php @@ -27,15 +27,19 @@ class PipelineRemovePipelineComposerAuthCommandInputNormalizer implements Denorm public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInput::class; + return \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,9 +54,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('url', $data) && $data['url'] !== null) { + if (\array_key_exists('url', $data) && null !== $data['url']) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + } elseif (\array_key_exists('url', $data) && null === $data['url']) { $object->setUrl(null); } @@ -60,6 +64,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineRemovePipelineComposerAuthCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerAuthCommandJsonldReadNormalizer.php index 6c9f3702..48058bc7 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerAuthCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerAuthCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineRemovePipelineComposerAuthCommandJsonldReadNormalizer implements D public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandJsonldRead::class; + return \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonldNormalizer.php index 0e40aef7..066b66f1 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonldNormalizer imp public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld::class; + return \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('namespace', $data) && $data['namespace'] !== null) { + if (\array_key_exists('namespace', $data) && null !== $data['namespace']) { $object->setNamespace($data['namespace']); - } elseif (\array_key_exists('namespace', $data) && $data['namespace'] === null) { + } elseif (\array_key_exists('namespace', $data) && null === $data['namespace']) { $object->setNamespace(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandInputNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandInputNormalizer.php index 124cb483..052d8f07 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandInputNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandInputNormalizer.php @@ -27,15 +27,19 @@ class PipelineRemovePipelineComposerPSR4AutoloadCommandInputNormalizer implement public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInput::class; + return \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,9 +54,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('namespace', $data) && $data['namespace'] !== null) { + if (\array_key_exists('namespace', $data) && null !== $data['namespace']) { $object->setNamespace($data['namespace']); - } elseif (\array_key_exists('namespace', $data) && $data['namespace'] === null) { + } elseif (\array_key_exists('namespace', $data) && null === $data['namespace']) { $object->setNamespace(null); } @@ -60,6 +64,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldReadNormalizer.php index 8ca89a8f..9f90e54c 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldReadNormalizer impl public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead::class; + return \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineRemovePipelineComposerPackageCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerPackageCommandInputJsonldNormalizer.php index a119acc3..fbf5e0f5 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerPackageCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerPackageCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineRemovePipelineComposerPackageCommandInputJsonldNormalizer implemen public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInputJsonld::class; + return \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('package', $data) && $data['package'] !== null) { + if (\array_key_exists('package', $data) && null !== $data['package']) { $object->setPackage($data['package']); - } elseif (\array_key_exists('package', $data) && $data['package'] === null) { + } elseif (\array_key_exists('package', $data) && null === $data['package']) { $object->setPackage(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineRemovePipelineComposerPackageCommandInputNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerPackageCommandInputNormalizer.php index 30b9c481..5cdb76d1 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerPackageCommandInputNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerPackageCommandInputNormalizer.php @@ -27,15 +27,19 @@ class PipelineRemovePipelineComposerPackageCommandInputNormalizer implements Den public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInput::class; + return \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,9 +54,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('package', $data) && $data['package'] !== null) { + if (\array_key_exists('package', $data) && null !== $data['package']) { $object->setPackage($data['package']); - } elseif (\array_key_exists('package', $data) && $data['package'] === null) { + } elseif (\array_key_exists('package', $data) && null === $data['package']) { $object->setPackage(null); } @@ -60,6 +64,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineRemovePipelineComposerPackageCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerPackageCommandJsonldReadNormalizer.php index b532f46b..296a0b4e 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerPackageCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerPackageCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineRemovePipelineComposerPackageCommandJsonldReadNormalizer implement public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandJsonldRead::class; + return \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandInputJsonldNormalizer.php index 3f886906..662a4f48 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineRemovePipelineComposerRepositoryCommandInputJsonldNormalizer imple public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInputJsonld::class; + return \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandInputNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandInputNormalizer.php index 44a6e39e..d9c8d05a 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandInputNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandInputNormalizer.php @@ -27,15 +27,19 @@ class PipelineRemovePipelineComposerRepositoryCommandInputNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInput::class; + return \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,9 +54,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } @@ -60,6 +64,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandJsonldReadNormalizer.php index 746b7652..b11153f5 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineRemovePipelineComposerRepositoryCommandJsonldReadNormalizer implem public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandJsonldRead::class; + return \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineRemovePipelineStepProbeCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineRemovePipelineStepProbeCommandJsonldReadNormalizer.php index 478789a3..12368426 100644 --- a/src/Normalizer/PipelineRemovePipelineStepProbeCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineStepProbeCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineRemovePipelineStepProbeCommandJsonldReadNormalizer implements Deno public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineRemovePipelineStepProbeCommandJsonldRead::class; + return \Gyroscops\Api\Model\PipelineRemovePipelineStepProbeCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineRemovePipelineStepProbeCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineStepProbeCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineReorderPipelineStepsCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineReorderPipelineStepsCommandInputJsonldNormalizer.php index 8d2d74e6..c8bd66f7 100644 --- a/src/Normalizer/PipelineReorderPipelineStepsCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineReorderPipelineStepsCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineReorderPipelineStepsCommandInputJsonldNormalizer implements Denorm public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInputJsonld::class; + return \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('codes', $data) && $data['codes'] !== null) { + if (\array_key_exists('codes', $data) && null !== $data['codes']) { $values = []; foreach ($data['codes'] as $value) { $values[] = $value; } $object->setCodes($values); - } elseif (\array_key_exists('codes', $data) && $data['codes'] === null) { + } elseif (\array_key_exists('codes', $data) && null === $data['codes']) { $object->setCodes(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineReorderPipelineStepsCommandInputNormalizer.php b/src/Normalizer/PipelineReorderPipelineStepsCommandInputNormalizer.php index d9c1d014..6480dc13 100644 --- a/src/Normalizer/PipelineReorderPipelineStepsCommandInputNormalizer.php +++ b/src/Normalizer/PipelineReorderPipelineStepsCommandInputNormalizer.php @@ -27,15 +27,19 @@ class PipelineReorderPipelineStepsCommandInputNormalizer implements Denormalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInput::class; + return \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,13 +54,13 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('codes', $data) && $data['codes'] !== null) { + if (\array_key_exists('codes', $data) && null !== $data['codes']) { $values = []; foreach ($data['codes'] as $value) { $values[] = $value; } $object->setCodes($values); - } elseif (\array_key_exists('codes', $data) && $data['codes'] === null) { + } elseif (\array_key_exists('codes', $data) && null === $data['codes']) { $object->setCodes(null); } @@ -64,6 +68,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineReorderPipelineStepsCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineReorderPipelineStepsCommandJsonldReadNormalizer.php index 544e3448..a40ad1c7 100644 --- a/src/Normalizer/PipelineReorderPipelineStepsCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineReorderPipelineStepsCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineReorderPipelineStepsCommandJsonldReadNormalizer implements Denorma public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandJsonldRead::class; + return \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineReplacePipelineStepCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineReplacePipelineStepCommandInputJsonldNormalizer.php index c1e1b3a5..6eb2efcd 100644 --- a/src/Normalizer/PipelineReplacePipelineStepCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineReplacePipelineStepCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineReplacePipelineStepCommandInputJsonldNormalizer implements Denorma public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInputJsonld::class; + return \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,47 +54,47 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { $values = []; foreach ($data['configuration'] as $value) { $values[] = $value; } $object->setConfiguration($values); - } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { $object->setConfiguration(null); } - if (\array_key_exists('probes', $data) && $data['probes'] !== null) { + if (\array_key_exists('probes', $data) && null !== $data['probes']) { $values_1 = []; foreach ($data['probes'] as $value_1) { $values_1[] = $this->denormalizer->denormalize($value_1, \Gyroscops\Api\Model\ProbeJsonld::class, 'json', $context); } $object->setProbes($values_1); - } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { + } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { $object->setProbes(null); } @@ -98,6 +102,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineReplacePipelineStepCommandInputNormalizer.php b/src/Normalizer/PipelineReplacePipelineStepCommandInputNormalizer.php index 47afe36c..6c120e25 100644 --- a/src/Normalizer/PipelineReplacePipelineStepCommandInputNormalizer.php +++ b/src/Normalizer/PipelineReplacePipelineStepCommandInputNormalizer.php @@ -27,15 +27,19 @@ class PipelineReplacePipelineStepCommandInputNormalizer implements DenormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInput::class; + return \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,32 +54,32 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { $values = []; foreach ($data['configuration'] as $value) { $values[] = $value; } $object->setConfiguration($values); - } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { $object->setConfiguration(null); } - if (\array_key_exists('probes', $data) && $data['probes'] !== null) { + if (\array_key_exists('probes', $data) && null !== $data['probes']) { $values_1 = []; foreach ($data['probes'] as $value_1) { $values_1[] = $this->denormalizer->denormalize($value_1, \Gyroscops\Api\Model\Probe::class, 'json', $context); } $object->setProbes($values_1); - } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { + } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { $object->setProbes(null); } @@ -83,6 +87,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineReplacePipelineStepCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineReplacePipelineStepCommandJsonldReadNormalizer.php index e222c211..1ebd77f1 100644 --- a/src/Normalizer/PipelineReplacePipelineStepCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineReplacePipelineStepCommandJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class PipelineReplacePipelineStepCommandJsonldReadNormalizer implements Denormal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandJsonldRead::class; + return \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/PipelineStepJsonldNormalizer.php b/src/Normalizer/PipelineStepJsonldNormalizer.php index 29f1a82a..a065b0de 100644 --- a/src/Normalizer/PipelineStepJsonldNormalizer.php +++ b/src/Normalizer/PipelineStepJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineStepJsonldNormalizer implements DenormalizerInterface, NormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineStepJsonld::class; + return \Gyroscops\Api\Model\PipelineStepJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineStepJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineStepJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,62 +54,62 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('order', $data) && $data['order'] !== null) { + if (\array_key_exists('order', $data) && null !== $data['order']) { $object->setOrder($data['order']); - } elseif (\array_key_exists('order', $data) && $data['order'] === null) { + } elseif (\array_key_exists('order', $data) && null === $data['order']) { $object->setOrder(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { $object->setPipeline($this->denormalizer->denormalize($data['pipeline'], \Gyroscops\Api\Model\AbstractPipelineJsonld::class, 'json', $context)); - } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { + } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { $object->setPipeline(null); } - if (\array_key_exists('probes', $data) && $data['probes'] !== null) { + if (\array_key_exists('probes', $data) && null !== $data['probes']) { $values = []; foreach ($data['probes'] as $value) { $values[] = $value; } $object->setProbes($values); - } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { + } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { $object->setProbes(null); } - if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { $values_1 = []; foreach ($data['configuration'] as $value_1) { $values_1[] = $value_1; } $object->setConfiguration($values_1); - } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { $object->setConfiguration(null); } @@ -113,6 +117,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineStepNormalizer.php b/src/Normalizer/PipelineStepNormalizer.php index 0d04696f..c4cbdb49 100644 --- a/src/Normalizer/PipelineStepNormalizer.php +++ b/src/Normalizer/PipelineStepNormalizer.php @@ -27,15 +27,19 @@ class PipelineStepNormalizer implements DenormalizerInterface, NormalizerInterfa public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineStep::class; + return \Gyroscops\Api\Model\PipelineStep::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineStep::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineStep::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,47 +54,47 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('order', $data) && $data['order'] !== null) { + if (\array_key_exists('order', $data) && null !== $data['order']) { $object->setOrder($data['order']); - } elseif (\array_key_exists('order', $data) && $data['order'] === null) { + } elseif (\array_key_exists('order', $data) && null === $data['order']) { $object->setOrder(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { $object->setPipeline($this->denormalizer->denormalize($data['pipeline'], \Gyroscops\Api\Model\AbstractPipeline::class, 'json', $context)); - } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { + } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { $object->setPipeline(null); } - if (\array_key_exists('probes', $data) && $data['probes'] !== null) { + if (\array_key_exists('probes', $data) && null !== $data['probes']) { $values = []; foreach ($data['probes'] as $value) { $values[] = $value; } $object->setProbes($values); - } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { + } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { $object->setProbes(null); } - if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { $values_1 = []; foreach ($data['configuration'] as $value_1) { $values_1[] = $value_1; } $object->setConfiguration($values_1); - } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { $object->setConfiguration(null); } @@ -98,6 +102,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineStepProbeJsonldNormalizer.php b/src/Normalizer/PipelineStepProbeJsonldNormalizer.php index 644e3574..20f28276 100644 --- a/src/Normalizer/PipelineStepProbeJsonldNormalizer.php +++ b/src/Normalizer/PipelineStepProbeJsonldNormalizer.php @@ -27,15 +27,19 @@ class PipelineStepProbeJsonldNormalizer implements DenormalizerInterface, Normal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineStepProbeJsonld::class; + return \Gyroscops\Api\Model\PipelineStepProbeJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineStepProbeJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineStepProbeJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,44 +54,44 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('order', $data) && $data['order'] !== null) { + if (\array_key_exists('order', $data) && null !== $data['order']) { $object->setOrder($data['order']); - } elseif (\array_key_exists('order', $data) && $data['order'] === null) { + } elseif (\array_key_exists('order', $data) && null === $data['order']) { $object->setOrder(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('step', $data) && $data['step'] !== null) { + if (\array_key_exists('step', $data) && null !== $data['step']) { $object->setStep($data['step']); - } elseif (\array_key_exists('step', $data) && $data['step'] === null) { + } elseif (\array_key_exists('step', $data) && null === $data['step']) { $object->setStep(null); } @@ -95,6 +99,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PipelineStepProbeNormalizer.php b/src/Normalizer/PipelineStepProbeNormalizer.php index 8d5391ee..719e53d7 100644 --- a/src/Normalizer/PipelineStepProbeNormalizer.php +++ b/src/Normalizer/PipelineStepProbeNormalizer.php @@ -27,15 +27,19 @@ class PipelineStepProbeNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PipelineStepProbe::class; + return \Gyroscops\Api\Model\PipelineStepProbe::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PipelineStepProbe::class; + return \is_object($data) && \Gyroscops\Api\Model\PipelineStepProbe::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,29 +54,29 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('order', $data) && $data['order'] !== null) { + if (\array_key_exists('order', $data) && null !== $data['order']) { $object->setOrder($data['order']); - } elseif (\array_key_exists('order', $data) && $data['order'] === null) { + } elseif (\array_key_exists('order', $data) && null === $data['order']) { $object->setOrder(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('step', $data) && $data['step'] !== null) { + if (\array_key_exists('step', $data) && null !== $data['step']) { $object->setStep($data['step']); - } elseif (\array_key_exists('step', $data) && $data['step'] === null) { + } elseif (\array_key_exists('step', $data) && null === $data['step']) { $object->setStep(null); } @@ -80,6 +84,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PriceJsonldNormalizer.php b/src/Normalizer/PriceJsonldNormalizer.php index 334a2eaf..85a4e69d 100644 --- a/src/Normalizer/PriceJsonldNormalizer.php +++ b/src/Normalizer/PriceJsonldNormalizer.php @@ -27,15 +27,19 @@ class PriceJsonldNormalizer implements DenormalizerInterface, NormalizerInterfac public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\PriceJsonld::class; + return \Gyroscops\Api\Model\PriceJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\PriceJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\PriceJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('price', $data) && $data['price'] !== null) { + if (\array_key_exists('price', $data) && null !== $data['price']) { $object->setPrice($data['price']); - } elseif (\array_key_exists('price', $data) && $data['price'] === null) { + } elseif (\array_key_exists('price', $data) && null === $data['price']) { $object->setPrice(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/PriceNormalizer.php b/src/Normalizer/PriceNormalizer.php index c0ada36e..7849dc7c 100644 --- a/src/Normalizer/PriceNormalizer.php +++ b/src/Normalizer/PriceNormalizer.php @@ -27,15 +27,19 @@ class PriceNormalizer implements DenormalizerInterface, NormalizerInterface, Den public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\Price::class; + return \Gyroscops\Api\Model\Price::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\Price::class; + return \is_object($data) && \Gyroscops\Api\Model\Price::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,9 +54,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('price', $data) && $data['price'] !== null) { + if (\array_key_exists('price', $data) && null !== $data['price']) { $object->setPrice($data['price']); - } elseif (\array_key_exists('price', $data) && $data['price'] === null) { + } elseif (\array_key_exists('price', $data) && null === $data['price']) { $object->setPrice(null); } @@ -60,6 +64,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ProbeJsonldNormalizer.php b/src/Normalizer/ProbeJsonldNormalizer.php index 5e9a53b1..7e4e0bc3 100644 --- a/src/Normalizer/ProbeJsonldNormalizer.php +++ b/src/Normalizer/ProbeJsonldNormalizer.php @@ -27,15 +27,19 @@ class ProbeJsonldNormalizer implements DenormalizerInterface, NormalizerInterfac public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ProbeJsonld::class; + return \Gyroscops\Api\Model\ProbeJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ProbeJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ProbeJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,29 +54,29 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } @@ -80,6 +84,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ProbeNormalizer.php b/src/Normalizer/ProbeNormalizer.php index 08af5038..ab0c5432 100644 --- a/src/Normalizer/ProbeNormalizer.php +++ b/src/Normalizer/ProbeNormalizer.php @@ -27,15 +27,19 @@ class ProbeNormalizer implements DenormalizerInterface, NormalizerInterface, Den public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\Probe::class; + return \Gyroscops\Api\Model\Probe::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\Probe::class; + return \is_object($data) && \Gyroscops\Api\Model\Probe::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,14 +54,14 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } @@ -65,6 +69,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ReferralCodeJsonldReferralCodeReadNormalizer.php b/src/Normalizer/ReferralCodeJsonldReferralCodeReadNormalizer.php index bf13e624..595f6485 100644 --- a/src/Normalizer/ReferralCodeJsonldReferralCodeReadNormalizer.php +++ b/src/Normalizer/ReferralCodeJsonldReferralCodeReadNormalizer.php @@ -27,15 +27,19 @@ class ReferralCodeJsonldReferralCodeReadNormalizer implements DenormalizerInterf public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeRead::class; + return \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeRead::class; + return \is_object($data) && \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,43 +54,43 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('user', $data) && $data['user'] !== null) { + if (\array_key_exists('user', $data) && null !== $data['user']) { $object->setUser($data['user']); - } elseif (\array_key_exists('user', $data) && $data['user'] === null) { + } elseif (\array_key_exists('user', $data) && null === $data['user']) { $object->setUser(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('referralRequests', $data) && $data['referralRequests'] !== null) { + if (\array_key_exists('referralRequests', $data) && null !== $data['referralRequests']) { $values = []; foreach ($data['referralRequests'] as $value) { $values[] = $value; } $object->setReferralRequests($values); - } elseif (\array_key_exists('referralRequests', $data) && $data['referralRequests'] === null) { + } elseif (\array_key_exists('referralRequests', $data) && null === $data['referralRequests']) { $object->setReferralRequests(null); } @@ -94,6 +98,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ReferralCodeJsonldReferralCodeWriteNormalizer.php b/src/Normalizer/ReferralCodeJsonldReferralCodeWriteNormalizer.php index 0de8fc78..27c4f657 100644 --- a/src/Normalizer/ReferralCodeJsonldReferralCodeWriteNormalizer.php +++ b/src/Normalizer/ReferralCodeJsonldReferralCodeWriteNormalizer.php @@ -27,15 +27,19 @@ class ReferralCodeJsonldReferralCodeWriteNormalizer implements DenormalizerInter public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeWrite::class; + return \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeWrite::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeWrite::class; + return \is_object($data) && \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeWrite::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('user', $data) && $data['user'] !== null) { + if (\array_key_exists('user', $data) && null !== $data['user']) { $object->setUser($data['user']); - } elseif (\array_key_exists('user', $data) && $data['user'] === null) { + } elseif (\array_key_exists('user', $data) && null === $data['user']) { $object->setUser(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ReferralCodeReferralCodeReadNormalizer.php b/src/Normalizer/ReferralCodeReferralCodeReadNormalizer.php index 847ad1a9..9c1a5cf7 100644 --- a/src/Normalizer/ReferralCodeReferralCodeReadNormalizer.php +++ b/src/Normalizer/ReferralCodeReferralCodeReadNormalizer.php @@ -27,15 +27,19 @@ class ReferralCodeReferralCodeReadNormalizer implements DenormalizerInterface, N public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ReferralCodeReferralCodeRead::class; + return \Gyroscops\Api\Model\ReferralCodeReferralCodeRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ReferralCodeReferralCodeRead::class; + return \is_object($data) && \Gyroscops\Api\Model\ReferralCodeReferralCodeRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('user', $data) && $data['user'] !== null) { + if (\array_key_exists('user', $data) && null !== $data['user']) { $object->setUser($data['user']); - } elseif (\array_key_exists('user', $data) && $data['user'] === null) { + } elseif (\array_key_exists('user', $data) && null === $data['user']) { $object->setUser(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('referralRequests', $data) && $data['referralRequests'] !== null) { + if (\array_key_exists('referralRequests', $data) && null !== $data['referralRequests']) { $values = []; foreach ($data['referralRequests'] as $value) { $values[] = $value; } $object->setReferralRequests($values); - } elseif (\array_key_exists('referralRequests', $data) && $data['referralRequests'] === null) { + } elseif (\array_key_exists('referralRequests', $data) && null === $data['referralRequests']) { $object->setReferralRequests(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ReferralCodeReferralCodeWriteNormalizer.php b/src/Normalizer/ReferralCodeReferralCodeWriteNormalizer.php index 12bb7f0b..dab4ac42 100644 --- a/src/Normalizer/ReferralCodeReferralCodeWriteNormalizer.php +++ b/src/Normalizer/ReferralCodeReferralCodeWriteNormalizer.php @@ -27,15 +27,19 @@ class ReferralCodeReferralCodeWriteNormalizer implements DenormalizerInterface, public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ReferralCodeReferralCodeWrite::class; + return \Gyroscops\Api\Model\ReferralCodeReferralCodeWrite::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ReferralCodeReferralCodeWrite::class; + return \is_object($data) && \Gyroscops\Api\Model\ReferralCodeReferralCodeWrite::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,9 +54,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('user', $data) && $data['user'] !== null) { + if (\array_key_exists('user', $data) && null !== $data['user']) { $object->setUser($data['user']); - } elseif (\array_key_exists('user', $data) && $data['user'] === null) { + } elseif (\array_key_exists('user', $data) && null === $data['user']) { $object->setUser(null); } @@ -60,6 +64,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ReferralCodesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/ReferralCodesGetResponse200HydraSearchHydraMappingItemNormalizer.php index ac02b957..bc48fa60 100644 --- a/src/Normalizer/ReferralCodesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/ReferralCodesGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class ReferralCodesGetResponse200HydraSearchHydraMappingItemNormalizer implement public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ReferralCodesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/ReferralCodesGetResponse200HydraSearchNormalizer.php index ff5db6e1..e4ca19e0 100644 --- a/src/Normalizer/ReferralCodesGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/ReferralCodesGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class ReferralCodesGetResponse200HydraSearchNormalizer implements DenormalizerIn public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ReferralCodesGetResponse200HydraViewNormalizer.php b/src/Normalizer/ReferralCodesGetResponse200HydraViewNormalizer.php index 4134bec1..bd906d8a 100644 --- a/src/Normalizer/ReferralCodesGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/ReferralCodesGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class ReferralCodesGetResponse200HydraViewNormalizer implements DenormalizerInte public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraView::class; + return \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ReferralCodesGetResponse200Normalizer.php b/src/Normalizer/ReferralCodesGetResponse200Normalizer.php index f0ca8295..e937fd44 100644 --- a/src/Normalizer/ReferralCodesGetResponse200Normalizer.php +++ b/src/Normalizer/ReferralCodesGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class ReferralCodesGetResponse200Normalizer implements DenormalizerInterface, No public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ReferralCodesGetResponse200::class; + return \Gyroscops\Api\Model\ReferralCodesGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ReferralCodesGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\ReferralCodesGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeRead::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 72960015..10a32740 100644 --- a/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItemNormaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraSearchNormalizer.php index d1c65707..19928397 100644 --- a/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class ReferralOnPremiseRequestsGetResponse200HydraSearchNormalizer implements De public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraViewNormalizer.php b/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraViewNormalizer.php index e2e2733f..c71476a9 100644 --- a/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class ReferralOnPremiseRequestsGetResponse200HydraViewNormalizer implements Deno public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ReferralOnPremiseRequestsGetResponse200Normalizer.php b/src/Normalizer/ReferralOnPremiseRequestsGetResponse200Normalizer.php index 4f402efa..ab7a23d1 100644 --- a/src/Normalizer/ReferralOnPremiseRequestsGetResponse200Normalizer.php +++ b/src/Normalizer/ReferralOnPremiseRequestsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class ReferralOnPremiseRequestsGetResponse200Normalizer implements DenormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200::class; + return \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestRead::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ReferralRequestJsonldReferralRequestReadNormalizer.php b/src/Normalizer/ReferralRequestJsonldReferralRequestReadNormalizer.php index ca8692ae..afc749de 100644 --- a/src/Normalizer/ReferralRequestJsonldReferralRequestReadNormalizer.php +++ b/src/Normalizer/ReferralRequestJsonldReferralRequestReadNormalizer.php @@ -27,15 +27,19 @@ class ReferralRequestJsonldReferralRequestReadNormalizer implements Denormalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ReferralRequestJsonldReferralRequestRead::class; + return \Gyroscops\Api\Model\ReferralRequestJsonldReferralRequestRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ReferralRequestJsonldReferralRequestRead::class; + return \is_object($data) && \Gyroscops\Api\Model\ReferralRequestJsonldReferralRequestRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,69 +54,69 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('email', $data) && $data['email'] !== null) { + if (\array_key_exists('email', $data) && null !== $data['email']) { $object->setEmail($data['email']); - } elseif (\array_key_exists('email', $data) && $data['email'] === null) { + } elseif (\array_key_exists('email', $data) && null === $data['email']) { $object->setEmail(null); } - if (\array_key_exists('firstName', $data) && $data['firstName'] !== null) { + if (\array_key_exists('firstName', $data) && null !== $data['firstName']) { $object->setFirstName($data['firstName']); - } elseif (\array_key_exists('firstName', $data) && $data['firstName'] === null) { + } elseif (\array_key_exists('firstName', $data) && null === $data['firstName']) { $object->setFirstName(null); } - if (\array_key_exists('lastName', $data) && $data['lastName'] !== null) { + if (\array_key_exists('lastName', $data) && null !== $data['lastName']) { $object->setLastName($data['lastName']); - } elseif (\array_key_exists('lastName', $data) && $data['lastName'] === null) { + } elseif (\array_key_exists('lastName', $data) && null === $data['lastName']) { $object->setLastName(null); } - if (\array_key_exists('userName', $data) && $data['userName'] !== null) { + if (\array_key_exists('userName', $data) && null !== $data['userName']) { $object->setUserName($data['userName']); - } elseif (\array_key_exists('userName', $data) && $data['userName'] === null) { + } elseif (\array_key_exists('userName', $data) && null === $data['userName']) { $object->setUserName(null); } - if (\array_key_exists('companyName', $data) && $data['companyName'] !== null) { + if (\array_key_exists('companyName', $data) && null !== $data['companyName']) { $object->setCompanyName($data['companyName']); - } elseif (\array_key_exists('companyName', $data) && $data['companyName'] === null) { + } elseif (\array_key_exists('companyName', $data) && null === $data['companyName']) { $object->setCompanyName(null); } - if (\array_key_exists('creationDate', $data) && $data['creationDate'] !== null) { + if (\array_key_exists('creationDate', $data) && null !== $data['creationDate']) { $object->setCreationDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['creationDate'])); - } elseif (\array_key_exists('creationDate', $data) && $data['creationDate'] === null) { + } elseif (\array_key_exists('creationDate', $data) && null === $data['creationDate']) { $object->setCreationDate(null); } - if (\array_key_exists('referralCode', $data) && $data['referralCode'] !== null) { + if (\array_key_exists('referralCode', $data) && null !== $data['referralCode']) { $object->setReferralCode($data['referralCode']); - } elseif (\array_key_exists('referralCode', $data) && $data['referralCode'] === null) { + } elseif (\array_key_exists('referralCode', $data) && null === $data['referralCode']) { $object->setReferralCode(null); } - if (\array_key_exists('approver', $data) && $data['approver'] !== null) { + if (\array_key_exists('approver', $data) && null !== $data['approver']) { $object->setApprover($data['approver']); - } elseif (\array_key_exists('approver', $data) && $data['approver'] === null) { + } elseif (\array_key_exists('approver', $data) && null === $data['approver']) { $object->setApprover(null); } - if (\array_key_exists('status', $data) && $data['status'] !== null) { + if (\array_key_exists('status', $data) && null !== $data['status']) { $object->setStatus($data['status']); - } elseif (\array_key_exists('status', $data) && $data['status'] === null) { + } elseif (\array_key_exists('status', $data) && null === $data['status']) { $object->setStatus(null); } @@ -120,6 +124,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ReferralRequestReferralRequestInputJsonldNormalizer.php b/src/Normalizer/ReferralRequestReferralRequestInputJsonldNormalizer.php index 4db665cf..6ecf1dd4 100644 --- a/src/Normalizer/ReferralRequestReferralRequestInputJsonldNormalizer.php +++ b/src/Normalizer/ReferralRequestReferralRequestInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class ReferralRequestReferralRequestInputJsonldNormalizer implements Denormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ReferralRequestReferralRequestInputJsonld::class; + return \Gyroscops\Api\Model\ReferralRequestReferralRequestInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ReferralRequestReferralRequestInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ReferralRequestReferralRequestInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,49 +54,49 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('email', $data) && $data['email'] !== null) { + if (\array_key_exists('email', $data) && null !== $data['email']) { $object->setEmail($data['email']); - } elseif (\array_key_exists('email', $data) && $data['email'] === null) { + } elseif (\array_key_exists('email', $data) && null === $data['email']) { $object->setEmail(null); } - if (\array_key_exists('firstName', $data) && $data['firstName'] !== null) { + if (\array_key_exists('firstName', $data) && null !== $data['firstName']) { $object->setFirstName($data['firstName']); - } elseif (\array_key_exists('firstName', $data) && $data['firstName'] === null) { + } elseif (\array_key_exists('firstName', $data) && null === $data['firstName']) { $object->setFirstName(null); } - if (\array_key_exists('lastName', $data) && $data['lastName'] !== null) { + if (\array_key_exists('lastName', $data) && null !== $data['lastName']) { $object->setLastName($data['lastName']); - } elseif (\array_key_exists('lastName', $data) && $data['lastName'] === null) { + } elseif (\array_key_exists('lastName', $data) && null === $data['lastName']) { $object->setLastName(null); } - if (\array_key_exists('username', $data) && $data['username'] !== null) { + if (\array_key_exists('username', $data) && null !== $data['username']) { $object->setUsername($data['username']); - } elseif (\array_key_exists('username', $data) && $data['username'] === null) { + } elseif (\array_key_exists('username', $data) && null === $data['username']) { $object->setUsername(null); } - if (\array_key_exists('companyName', $data) && $data['companyName'] !== null) { + if (\array_key_exists('companyName', $data) && null !== $data['companyName']) { $object->setCompanyName($data['companyName']); - } elseif (\array_key_exists('companyName', $data) && $data['companyName'] === null) { + } elseif (\array_key_exists('companyName', $data) && null === $data['companyName']) { $object->setCompanyName(null); } - if (\array_key_exists('referralCode', $data) && $data['referralCode'] !== null) { + if (\array_key_exists('referralCode', $data) && null !== $data['referralCode']) { $object->setReferralCode($data['referralCode']); - } elseif (\array_key_exists('referralCode', $data) && $data['referralCode'] === null) { + } elseif (\array_key_exists('referralCode', $data) && null === $data['referralCode']) { $object->setReferralCode(null); } @@ -100,6 +104,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ReferralRequestReferralRequestInputNormalizer.php b/src/Normalizer/ReferralRequestReferralRequestInputNormalizer.php index 7f2fc459..75ea2499 100644 --- a/src/Normalizer/ReferralRequestReferralRequestInputNormalizer.php +++ b/src/Normalizer/ReferralRequestReferralRequestInputNormalizer.php @@ -27,15 +27,19 @@ class ReferralRequestReferralRequestInputNormalizer implements DenormalizerInter public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ReferralRequestReferralRequestInput::class; + return \Gyroscops\Api\Model\ReferralRequestReferralRequestInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ReferralRequestReferralRequestInput::class; + return \is_object($data) && \Gyroscops\Api\Model\ReferralRequestReferralRequestInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('email', $data) && $data['email'] !== null) { + if (\array_key_exists('email', $data) && null !== $data['email']) { $object->setEmail($data['email']); - } elseif (\array_key_exists('email', $data) && $data['email'] === null) { + } elseif (\array_key_exists('email', $data) && null === $data['email']) { $object->setEmail(null); } - if (\array_key_exists('firstName', $data) && $data['firstName'] !== null) { + if (\array_key_exists('firstName', $data) && null !== $data['firstName']) { $object->setFirstName($data['firstName']); - } elseif (\array_key_exists('firstName', $data) && $data['firstName'] === null) { + } elseif (\array_key_exists('firstName', $data) && null === $data['firstName']) { $object->setFirstName(null); } - if (\array_key_exists('lastName', $data) && $data['lastName'] !== null) { + if (\array_key_exists('lastName', $data) && null !== $data['lastName']) { $object->setLastName($data['lastName']); - } elseif (\array_key_exists('lastName', $data) && $data['lastName'] === null) { + } elseif (\array_key_exists('lastName', $data) && null === $data['lastName']) { $object->setLastName(null); } - if (\array_key_exists('username', $data) && $data['username'] !== null) { + if (\array_key_exists('username', $data) && null !== $data['username']) { $object->setUsername($data['username']); - } elseif (\array_key_exists('username', $data) && $data['username'] === null) { + } elseif (\array_key_exists('username', $data) && null === $data['username']) { $object->setUsername(null); } - if (\array_key_exists('companyName', $data) && $data['companyName'] !== null) { + if (\array_key_exists('companyName', $data) && null !== $data['companyName']) { $object->setCompanyName($data['companyName']); - } elseif (\array_key_exists('companyName', $data) && $data['companyName'] === null) { + } elseif (\array_key_exists('companyName', $data) && null === $data['companyName']) { $object->setCompanyName(null); } - if (\array_key_exists('referralCode', $data) && $data['referralCode'] !== null) { + if (\array_key_exists('referralCode', $data) && null !== $data['referralCode']) { $object->setReferralCode($data['referralCode']); - } elseif (\array_key_exists('referralCode', $data) && $data['referralCode'] === null) { + } elseif (\array_key_exists('referralCode', $data) && null === $data['referralCode']) { $object->setReferralCode(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ReferralRequestReferralRequestReadNormalizer.php b/src/Normalizer/ReferralRequestReferralRequestReadNormalizer.php index cb3abea4..be378d47 100644 --- a/src/Normalizer/ReferralRequestReferralRequestReadNormalizer.php +++ b/src/Normalizer/ReferralRequestReferralRequestReadNormalizer.php @@ -27,15 +27,19 @@ class ReferralRequestReferralRequestReadNormalizer implements DenormalizerInterf public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ReferralRequestReferralRequestRead::class; + return \Gyroscops\Api\Model\ReferralRequestReferralRequestRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ReferralRequestReferralRequestRead::class; + return \is_object($data) && \Gyroscops\Api\Model\ReferralRequestReferralRequestRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,54 +54,54 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('email', $data) && $data['email'] !== null) { + if (\array_key_exists('email', $data) && null !== $data['email']) { $object->setEmail($data['email']); - } elseif (\array_key_exists('email', $data) && $data['email'] === null) { + } elseif (\array_key_exists('email', $data) && null === $data['email']) { $object->setEmail(null); } - if (\array_key_exists('firstName', $data) && $data['firstName'] !== null) { + if (\array_key_exists('firstName', $data) && null !== $data['firstName']) { $object->setFirstName($data['firstName']); - } elseif (\array_key_exists('firstName', $data) && $data['firstName'] === null) { + } elseif (\array_key_exists('firstName', $data) && null === $data['firstName']) { $object->setFirstName(null); } - if (\array_key_exists('lastName', $data) && $data['lastName'] !== null) { + if (\array_key_exists('lastName', $data) && null !== $data['lastName']) { $object->setLastName($data['lastName']); - } elseif (\array_key_exists('lastName', $data) && $data['lastName'] === null) { + } elseif (\array_key_exists('lastName', $data) && null === $data['lastName']) { $object->setLastName(null); } - if (\array_key_exists('userName', $data) && $data['userName'] !== null) { + if (\array_key_exists('userName', $data) && null !== $data['userName']) { $object->setUserName($data['userName']); - } elseif (\array_key_exists('userName', $data) && $data['userName'] === null) { + } elseif (\array_key_exists('userName', $data) && null === $data['userName']) { $object->setUserName(null); } - if (\array_key_exists('companyName', $data) && $data['companyName'] !== null) { + if (\array_key_exists('companyName', $data) && null !== $data['companyName']) { $object->setCompanyName($data['companyName']); - } elseif (\array_key_exists('companyName', $data) && $data['companyName'] === null) { + } elseif (\array_key_exists('companyName', $data) && null === $data['companyName']) { $object->setCompanyName(null); } - if (\array_key_exists('creationDate', $data) && $data['creationDate'] !== null) { + if (\array_key_exists('creationDate', $data) && null !== $data['creationDate']) { $object->setCreationDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['creationDate'])); - } elseif (\array_key_exists('creationDate', $data) && $data['creationDate'] === null) { + } elseif (\array_key_exists('creationDate', $data) && null === $data['creationDate']) { $object->setCreationDate(null); } - if (\array_key_exists('referralCode', $data) && $data['referralCode'] !== null) { + if (\array_key_exists('referralCode', $data) && null !== $data['referralCode']) { $object->setReferralCode($data['referralCode']); - } elseif (\array_key_exists('referralCode', $data) && $data['referralCode'] === null) { + } elseif (\array_key_exists('referralCode', $data) && null === $data['referralCode']) { $object->setReferralCode(null); } - if (\array_key_exists('approver', $data) && $data['approver'] !== null) { + if (\array_key_exists('approver', $data) && null !== $data['approver']) { $object->setApprover($data['approver']); - } elseif (\array_key_exists('approver', $data) && $data['approver'] === null) { + } elseif (\array_key_exists('approver', $data) && null === $data['approver']) { $object->setApprover(null); } - if (\array_key_exists('status', $data) && $data['status'] !== null) { + if (\array_key_exists('status', $data) && null !== $data['status']) { $object->setStatus($data['status']); - } elseif (\array_key_exists('status', $data) && $data['status'] === null) { + } elseif (\array_key_exists('status', $data) && null === $data['status']) { $object->setStatus(null); } @@ -105,6 +109,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ReferralRequestsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/ReferralRequestsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 6bcb23ab..8772028d 100644 --- a/src/Normalizer/ReferralRequestsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/ReferralRequestsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class ReferralRequestsGetResponse200HydraSearchHydraMappingItemNormalizer implem public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ReferralRequestsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/ReferralRequestsGetResponse200HydraSearchNormalizer.php index 1df4a602..7c86ec78 100644 --- a/src/Normalizer/ReferralRequestsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/ReferralRequestsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class ReferralRequestsGetResponse200HydraSearchNormalizer implements Denormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ReferralRequestsGetResponse200HydraViewNormalizer.php b/src/Normalizer/ReferralRequestsGetResponse200HydraViewNormalizer.php index 41cb0602..21d12a6b 100644 --- a/src/Normalizer/ReferralRequestsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/ReferralRequestsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class ReferralRequestsGetResponse200HydraViewNormalizer implements DenormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ReferralRequestsGetResponse200Normalizer.php b/src/Normalizer/ReferralRequestsGetResponse200Normalizer.php index e0b0428a..fb05fc79 100644 --- a/src/Normalizer/ReferralRequestsGetResponse200Normalizer.php +++ b/src/Normalizer/ReferralRequestsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class ReferralRequestsGetResponse200Normalizer implements DenormalizerInterface, public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ReferralRequestsGetResponse200::class; + return \Gyroscops\Api\Model\ReferralRequestsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ReferralRequestsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\ReferralRequestsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ReferralRequestJsonldReferralRequestRead::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeActionsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeActionsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 456faa45..1d0a0fa2 100644 --- a/src/Normalizer/RuntimeActionsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimeActionsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimeActionsGetResponse200HydraSearchHydraMappingItemNormalizer implemen public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeActionsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeActionsGetResponse200HydraSearchNormalizer.php index b6fb5460..6c12e8d3 100644 --- a/src/Normalizer/RuntimeActionsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimeActionsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimeActionsGetResponse200HydraSearchNormalizer implements DenormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeActionsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeActionsGetResponse200HydraViewNormalizer.php index 6bc4ca39..73ed61c3 100644 --- a/src/Normalizer/RuntimeActionsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimeActionsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimeActionsGetResponse200HydraViewNormalizer implements DenormalizerInt public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeActionsGetResponse200Normalizer.php b/src/Normalizer/RuntimeActionsGetResponse200Normalizer.php index b7aef959..514d2dd1 100644 --- a/src/Normalizer/RuntimeActionsGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimeActionsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimeActionsGetResponse200Normalizer implements DenormalizerInterface, N public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeActionsGetResponse200::class; + return \Gyroscops\Api\Model\RuntimeActionsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeActionsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeActionsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ActionJsonldRead::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer.php index ad6396e0..dff34294 100644 --- a/src/Normalizer/RuntimeCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimeCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimeCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer imp public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeCompilationsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeCompilationsGetResponse200HydraSearchNormalizer.php index fb2a778b..cfdce272 100644 --- a/src/Normalizer/RuntimeCompilationsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimeCompilationsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimeCompilationsGetResponse200HydraSearchNormalizer implements Denormal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeCompilationsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeCompilationsGetResponse200HydraViewNormalizer.php index ce7e44cb..4a1cfb52 100644 --- a/src/Normalizer/RuntimeCompilationsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimeCompilationsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimeCompilationsGetResponse200HydraViewNormalizer implements Denormaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeCompilationsGetResponse200Normalizer.php b/src/Normalizer/RuntimeCompilationsGetResponse200Normalizer.php index 9985ccfe..81f32d63 100644 --- a/src/Normalizer/RuntimeCompilationsGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimeCompilationsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimeCompilationsGetResponse200Normalizer implements DenormalizerInterfa public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200::class; + return \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\CompilationJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 4311abea..0e3b8cb8 100644 --- a/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMapp public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchNormalizer.php index 86538eeb..18e0cf05 100644 --- a/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchNormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraViewNormalizer.php index 93cc4169..23670aa0 100644 --- a/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraViewNormalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200Normalizer.php index bfc8bbc1..fda01267 100644 --- a/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionExecutionPipelineIdStepsGetResponse200Normalizer implement public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200::class; + return \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionPipelineStepJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php index 7d4d6b80..304dd547 100644 --- a/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingIte public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchNormalizer.php index 15405a88..e911d64d 100644 --- a/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchNormalizer impl public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraViewNormalizer.php index e4851613..e747a052 100644 --- a/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionExecutionPipelinesGetResponse200HydraViewNormalizer implem public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200Normalizer.php index 7e44fa8c..6957f4d8 100644 --- a/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionExecutionPipelinesGetResponse200Normalizer implements Deno public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200::class; + return \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionPipelineJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 33afab18..9597101b 100644 --- a/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappi public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchNormalizer.php index abd06e68..88e42d21 100644 --- a/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchNormalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraViewNormalizer.php index 03390e42..be0a3f57 100644 --- a/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraViewNormalizer i public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200Normalizer.php index 19d24f09..5f275af3 100644 --- a/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionExecutionWorkflowIdJobsGetResponse200Normalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200::class; + return \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionWorkflowJobJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 2087b228..db2f03b3 100644 --- a/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingIte public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchNormalizer.php index de1905e8..951b5c9e 100644 --- a/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchNormalizer impl public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraViewNormalizer.php index 5856c73f..578cab5e 100644 --- a/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionExecutionWorkflowsGetResponse200HydraViewNormalizer implem public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200Normalizer.php index 5d52ff97..e0eb0bb2 100644 --- a/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionExecutionWorkflowsGetResponse200Normalizer implements Deno public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200::class; + return \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionWorkflowJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 0e61c27e..b0c16441 100644 --- a/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNor public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchNormalizer.php index a1c800f5..03ce5c61 100644 --- a/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchNormalizer implemen public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraViewNormalizer.php index ab6fc9c0..2c9bda46 100644 --- a/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionIdWorkflowJobsGetResponse200HydraViewNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200Normalizer.php index 5fb85156..163c3106 100644 --- a/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionIdWorkflowJobsGetResponse200Normalizer implements Denormal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200::class; + return \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionWorkflowJobJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 81ca3c13..ae3af70f 100644 --- a/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingIte public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchNormalizer.php index c58d5d9c..c0ca280d 100644 --- a/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchNormalizer impl public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraViewNormalizer.php index af9185fc..c433140c 100644 --- a/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionPipelineJobIdStepsGetResponse200HydraViewNormalizer implem public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200Normalizer.php index bfca6637..3f4032ec 100644 --- a/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionPipelineJobIdStepsGetResponse200Normalizer implements Deno public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200::class; + return \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionPipelineStepJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php index b7f8fd9c..018f972d 100644 --- a/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItemNorma public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraSearchNormalizer.php index 0046200e..6eb4c928 100644 --- a/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionPipelineJobsGetResponse200HydraSearchNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraViewNormalizer.php index e0973bff..7eea615a 100644 --- a/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionPipelineJobsGetResponse200HydraViewNormalizer implements D public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200Normalizer.php index 8f76241f..bc69ee79 100644 --- a/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionPipelineJobsGetResponse200Normalizer implements Denormaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200::class; + return \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionPipelineJobJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 53b5c748..a00c7f02 100644 --- a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200H public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchNormalizer.php index 6b9e3091..00d2665e 100644 --- a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200H public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraViewNormalizer.php index feeeeb18..6d7035fc 100644 --- a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200H public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200Normalizer.php index c7b88136..8b715262 100644 --- a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200N public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200::class; + return \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionPipelineStepJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 91031154..4c4668a5 100644 --- a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydr public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchNormalizer.php index ab947852..862ddd0a 100644 --- a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchNorm public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraViewNormalizer.php index efc05e0f..9079addb 100644 --- a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraViewNormal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200Normalizer.php index bcffc1fc..b7139b46 100644 --- a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200Normalizer impl public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200::class; + return \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionWorkflowJobJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 796cb57a..7e3e0753 100644 --- a/src/Normalizer/RuntimeExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimeExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer imple public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionsGetResponse200HydraSearchNormalizer.php index c55a9191..8600cc9f 100644 --- a/src/Normalizer/RuntimeExecutionsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimeExecutionsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionsGetResponse200HydraSearchNormalizer implements Denormaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionsGetResponse200HydraViewNormalizer.php index 00be2a3f..5002ea4d 100644 --- a/src/Normalizer/RuntimeExecutionsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimeExecutionsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionsGetResponse200HydraViewNormalizer implements Denormalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeExecutionsGetResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionsGetResponse200Normalizer.php index 6b68ffea..839ade6f 100644 --- a/src/Normalizer/RuntimeExecutionsGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimeExecutionsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimeExecutionsGetResponse200Normalizer implements DenormalizerInterface public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200::class; + return \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionJsonldRead::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 840c3b1f..8da63017 100644 --- a/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItemNorm public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraSearchNormalizer.php index 06bfd0e0..301ef825 100644 --- a/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimePipelineIdCompilationsGetResponse200HydraSearchNormalizer implement public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraViewNormalizer.php index fa2d1bfb..0eed78c2 100644 --- a/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimePipelineIdCompilationsGetResponse200HydraViewNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200Normalizer.php b/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200Normalizer.php index 2f75a170..310ec103 100644 --- a/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimePipelineIdCompilationsGetResponse200Normalizer implements Denormali public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200::class; + return \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\CompilationJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 0e6556e9..da5ae435 100644 --- a/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraSearchNormalizer.php index 34af92df..67bd360f 100644 --- a/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimePipelineIdStepsGetResponse200HydraSearchNormalizer implements Denor public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraViewNormalizer.php index cda7c0d9..675a2a1b 100644 --- a/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimePipelineIdStepsGetResponse200HydraViewNormalizer implements Denorma public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelineIdStepsGetResponse200Normalizer.php b/src/Normalizer/RuntimePipelineIdStepsGetResponse200Normalizer.php index 8b9d6028..35f7a24b 100644 --- a/src/Normalizer/RuntimePipelineIdStepsGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimePipelineIdStepsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimePipelineIdStepsGetResponse200Normalizer implements DenormalizerInte public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200::class; + return \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\PipelineStepJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItemNormalizer.php index ba858036..ea3d6c55 100644 --- a/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItemNormal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraSearchNormalizer.php index 2fcbae13..46ae8fd2 100644 --- a/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimePipelineStepIdProbesGetResponse200HydraSearchNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraViewNormalizer.php index b929f134..dc062087 100644 --- a/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimePipelineStepIdProbesGetResponse200HydraViewNormalizer implements De public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200Normalizer.php b/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200Normalizer.php index 7c2849ec..5043f9dd 100644 --- a/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimePipelineStepIdProbesGetResponse200Normalizer implements Denormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200::class; + return \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\PipelineStepProbeJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItemNormalizer.php index 28fb5327..2e841325 100644 --- a/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItemNormaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraSearchNormalizer.php index 6da7121a..f9476ee9 100644 --- a/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimePipelineStepProbesGetResponse200HydraSearchNormalizer implements De public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraViewNormalizer.php index 7bf53f40..41c4a275 100644 --- a/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimePipelineStepProbesGetResponse200HydraViewNormalizer implements Deno public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelineStepProbesGetResponse200Normalizer.php b/src/Normalizer/RuntimePipelineStepProbesGetResponse200Normalizer.php index a74c2866..06eee471 100644 --- a/src/Normalizer/RuntimePipelineStepProbesGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimePipelineStepProbesGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimePipelineStepProbesGetResponse200Normalizer implements DenormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200::class; + return \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\PipelineStepProbeJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php index f9c79906..37ecd429 100644 --- a/src/Normalizer/RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer im public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelineStepsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimePipelineStepsGetResponse200HydraSearchNormalizer.php index 09ec4540..98fa2fc8 100644 --- a/src/Normalizer/RuntimePipelineStepsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimePipelineStepsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimePipelineStepsGetResponse200HydraSearchNormalizer implements Denorma public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelineStepsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimePipelineStepsGetResponse200HydraViewNormalizer.php index bf7db800..eec3ccdf 100644 --- a/src/Normalizer/RuntimePipelineStepsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimePipelineStepsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimePipelineStepsGetResponse200HydraViewNormalizer implements Denormali public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelineStepsGetResponse200Normalizer.php b/src/Normalizer/RuntimePipelineStepsGetResponse200Normalizer.php index 1ca747da..8dcb7651 100644 --- a/src/Normalizer/RuntimePipelineStepsGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimePipelineStepsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimePipelineStepsGetResponse200Normalizer implements DenormalizerInterf public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200::class; + return \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\PipelineStepJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimePipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php index 088b9e30..491219d3 100644 --- a/src/Normalizer/RuntimePipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimePipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimePipelinesGetResponse200HydraSearchHydraMappingItemNormalizer implem public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelinesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimePipelinesGetResponse200HydraSearchNormalizer.php index 825ce27e..b0340aae 100644 --- a/src/Normalizer/RuntimePipelinesGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimePipelinesGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimePipelinesGetResponse200HydraSearchNormalizer implements Denormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelinesGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimePipelinesGetResponse200HydraViewNormalizer.php index c36d058e..bd9912f4 100644 --- a/src/Normalizer/RuntimePipelinesGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimePipelinesGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimePipelinesGetResponse200HydraViewNormalizer implements DenormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimePipelinesGetResponse200Normalizer.php b/src/Normalizer/RuntimePipelinesGetResponse200Normalizer.php index e67527c3..99156bcc 100644 --- a/src/Normalizer/RuntimePipelinesGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimePipelinesGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimePipelinesGetResponse200Normalizer implements DenormalizerInterface, public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimePipelinesGetResponse200::class; + return \Gyroscops\Api\Model\RuntimePipelinesGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimePipelinesGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimePipelinesGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\PipelineJsonldRead::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer.php index a007ca7a..a03788e1 100644 --- a/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItemNormal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraSearchNormalizer.php index 0dc90367..f3a9dcba 100644 --- a/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimeScheduleIdExecutionsGetResponse200HydraSearchNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraViewNormalizer.php index f7534de6..ed6b3618 100644 --- a/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimeScheduleIdExecutionsGetResponse200HydraViewNormalizer implements De public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200Normalizer.php b/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200Normalizer.php index 1ea5477a..658d0acf 100644 --- a/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimeScheduleIdExecutionsGetResponse200Normalizer implements Denormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200::class; + return \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionJsonldRead::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php index cffd00d0..8ce84248 100644 --- a/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNorm public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchNormalizer.php index 95ea50d2..ed0bcf2a 100644 --- a/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchNormalizer implement public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraViewNormalizer.php index 81caf8c2..7a78c45b 100644 --- a/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimeScheduleIdWorkflowJobsGetResponse200HydraViewNormalizer implements public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200Normalizer.php b/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200Normalizer.php index 8d29901a..6fb0f811 100644 --- a/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimeScheduleIdWorkflowJobsGetResponse200Normalizer implements Denormali public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200::class; + return \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\WorkflowJobJsonldRead::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeSchedulesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeSchedulesGetResponse200HydraSearchHydraMappingItemNormalizer.php index 3d4dd586..19fdbbdd 100644 --- a/src/Normalizer/RuntimeSchedulesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimeSchedulesGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimeSchedulesGetResponse200HydraSearchHydraMappingItemNormalizer implem public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeSchedulesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeSchedulesGetResponse200HydraSearchNormalizer.php index 3148a6de..0f54b434 100644 --- a/src/Normalizer/RuntimeSchedulesGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimeSchedulesGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimeSchedulesGetResponse200HydraSearchNormalizer implements Denormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeSchedulesGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeSchedulesGetResponse200HydraViewNormalizer.php index ebb5bfac..588db508 100644 --- a/src/Normalizer/RuntimeSchedulesGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimeSchedulesGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimeSchedulesGetResponse200HydraViewNormalizer implements DenormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeSchedulesGetResponse200Normalizer.php b/src/Normalizer/RuntimeSchedulesGetResponse200Normalizer.php index 78fd57bc..a2bb6f64 100644 --- a/src/Normalizer/RuntimeSchedulesGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimeSchedulesGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimeSchedulesGetResponse200Normalizer implements DenormalizerInterface, public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200::class; + return \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ScheduleJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 3c0941d9..df482dab 100644 --- a/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer i public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraSearchNormalizer.php index 8a2f30f8..58efd702 100644 --- a/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimeWorkflowIdJobsGetResponse200HydraSearchNormalizer implements Denorm public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraViewNormalizer.php index 94a365f0..7c25a7c0 100644 --- a/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimeWorkflowIdJobsGetResponse200HydraViewNormalizer implements Denormal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200Normalizer.php b/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200Normalizer.php index bbf2c469..180bd898 100644 --- a/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimeWorkflowIdJobsGetResponse200Normalizer implements DenormalizerInter public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200::class; + return \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\WorkflowJobJsonldRead::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php index f53823e0..5749853f 100644 --- a/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItemNormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraSearchNormalizer.php index b114b76a..7ac3a510 100644 --- a/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimeWorkflowPipelinesGetResponse200HydraSearchNormalizer implements Den public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraViewNormalizer.php index eb08f01a..41dd0aab 100644 --- a/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimeWorkflowPipelinesGetResponse200HydraViewNormalizer implements Denor public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200Normalizer.php b/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200Normalizer.php index cbdd01f3..8437b2f8 100644 --- a/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimeWorkflowPipelinesGetResponse200Normalizer implements DenormalizerIn public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200::class; + return \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\WorkflowJobPipelineJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php index c9185b87..d9d8b101 100644 --- a/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMa public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchNormalizer.php index 07ac53e5..fbe6992e 100644 --- a/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchNormali public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraViewNormalizer.php index f48d683d..0101ab4d 100644 --- a/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraViewNormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200Normalizer.php b/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200Normalizer.php index d53a5ffd..0b8fe02b 100644 --- a/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200Normalizer impleme public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200::class; + return \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\PipelineStepJsonld::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer.php index 977cc045..60f17251 100644 --- a/src/Normalizer/RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer.php @@ -27,15 +27,19 @@ class RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer implem public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItem::class; + return \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItem::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItem::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItem::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + if (\array_key_exists('variable', $data) && null !== $data['variable']) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && $data['property'] !== null) { + if (\array_key_exists('property', $data) && null !== $data['property']) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + } elseif (\array_key_exists('property', $data) && null === $data['property']) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && $data['required'] !== null) { + if (\array_key_exists('required', $data) && null !== $data['required']) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + } elseif (\array_key_exists('required', $data) && null === $data['required']) { $object->setRequired(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeWorkflowsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeWorkflowsGetResponse200HydraSearchNormalizer.php index 66b90bc4..3df5c309 100644 --- a/src/Normalizer/RuntimeWorkflowsGetResponse200HydraSearchNormalizer.php +++ b/src/Normalizer/RuntimeWorkflowsGetResponse200HydraSearchNormalizer.php @@ -27,15 +27,19 @@ class RuntimeWorkflowsGetResponse200HydraSearchNormalizer implements Denormalize public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraSearch::class; + return \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraSearch::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraSearch::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraSearch::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { $values = []; foreach ($data['hydra:mapping'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { $object->setHydraMapping(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeWorkflowsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeWorkflowsGetResponse200HydraViewNormalizer.php index 3071d9a3..3b700d5a 100644 --- a/src/Normalizer/RuntimeWorkflowsGetResponse200HydraViewNormalizer.php +++ b/src/Normalizer/RuntimeWorkflowsGetResponse200HydraViewNormalizer.php @@ -27,15 +27,19 @@ class RuntimeWorkflowsGetResponse200HydraViewNormalizer implements DenormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraView::class; + return \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraView::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraView::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraView::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { $object->setHydraNext(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/RuntimeWorkflowsGetResponse200Normalizer.php b/src/Normalizer/RuntimeWorkflowsGetResponse200Normalizer.php index 0f8e4264..b507ba07 100644 --- a/src/Normalizer/RuntimeWorkflowsGetResponse200Normalizer.php +++ b/src/Normalizer/RuntimeWorkflowsGetResponse200Normalizer.php @@ -27,15 +27,19 @@ class RuntimeWorkflowsGetResponse200Normalizer implements DenormalizerInterface, public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200::class; + return \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200::class; + return \is_object($data) && \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { + if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { $values = []; foreach ($data['hydra:member'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\WorkflowJsonldRead::class, 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { $object->setHydraSearch(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ScheduleDeclarePipelineScheduleCommandInputJsonldNormalizer.php b/src/Normalizer/ScheduleDeclarePipelineScheduleCommandInputJsonldNormalizer.php index 7507c53e..40f4a070 100644 --- a/src/Normalizer/ScheduleDeclarePipelineScheduleCommandInputJsonldNormalizer.php +++ b/src/Normalizer/ScheduleDeclarePipelineScheduleCommandInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class ScheduleDeclarePipelineScheduleCommandInputJsonldNormalizer implements Den public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInputJsonld::class; + return \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,54 +54,54 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { + } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { $object->setPipeline(null); } - if (\array_key_exists('type', $data) && $data['type'] !== null) { + if (\array_key_exists('type', $data) && null !== $data['type']) { $object->setType2($data['type']); - } elseif (\array_key_exists('type', $data) && $data['type'] === null) { + } elseif (\array_key_exists('type', $data) && null === $data['type']) { $object->setType2(null); } - if (\array_key_exists('date', $data) && $data['date'] !== null) { + if (\array_key_exists('date', $data) && null !== $data['date']) { $object->setDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['date'])); - } elseif (\array_key_exists('date', $data) && $data['date'] === null) { + } elseif (\array_key_exists('date', $data) && null === $data['date']) { $object->setDate(null); } - if (\array_key_exists('start', $data) && $data['start'] !== null) { + if (\array_key_exists('start', $data) && null !== $data['start']) { $object->setStart(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['start'])); - } elseif (\array_key_exists('start', $data) && $data['start'] === null) { + } elseif (\array_key_exists('start', $data) && null === $data['start']) { $object->setStart(null); } - if (\array_key_exists('interval', $data) && $data['interval'] !== null) { + if (\array_key_exists('interval', $data) && null !== $data['interval']) { $object->setInterval($data['interval']); - } elseif (\array_key_exists('interval', $data) && $data['interval'] === null) { + } elseif (\array_key_exists('interval', $data) && null === $data['interval']) { $object->setInterval(null); } - if (\array_key_exists('recurrences', $data) && $data['recurrences'] !== null) { + if (\array_key_exists('recurrences', $data) && null !== $data['recurrences']) { $object->setRecurrences($data['recurrences']); - } elseif (\array_key_exists('recurrences', $data) && $data['recurrences'] === null) { + } elseif (\array_key_exists('recurrences', $data) && null === $data['recurrences']) { $object->setRecurrences(null); } - if (\array_key_exists('end', $data) && $data['end'] !== null) { + if (\array_key_exists('end', $data) && null !== $data['end']) { $object->setEnd(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['end'])); - } elseif (\array_key_exists('end', $data) && $data['end'] === null) { + } elseif (\array_key_exists('end', $data) && null === $data['end']) { $object->setEnd(null); } @@ -105,6 +109,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ScheduleDeclarePipelineScheduleCommandInputNormalizer.php b/src/Normalizer/ScheduleDeclarePipelineScheduleCommandInputNormalizer.php index d3511fcc..faad7081 100644 --- a/src/Normalizer/ScheduleDeclarePipelineScheduleCommandInputNormalizer.php +++ b/src/Normalizer/ScheduleDeclarePipelineScheduleCommandInputNormalizer.php @@ -27,15 +27,19 @@ class ScheduleDeclarePipelineScheduleCommandInputNormalizer implements Denormali public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInput::class; + return \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInput::class; + return \is_object($data) && \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,39 +54,39 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { + } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { $object->setPipeline(null); } - if (\array_key_exists('type', $data) && $data['type'] !== null) { + if (\array_key_exists('type', $data) && null !== $data['type']) { $object->setType($data['type']); - } elseif (\array_key_exists('type', $data) && $data['type'] === null) { + } elseif (\array_key_exists('type', $data) && null === $data['type']) { $object->setType(null); } - if (\array_key_exists('date', $data) && $data['date'] !== null) { + if (\array_key_exists('date', $data) && null !== $data['date']) { $object->setDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['date'])); - } elseif (\array_key_exists('date', $data) && $data['date'] === null) { + } elseif (\array_key_exists('date', $data) && null === $data['date']) { $object->setDate(null); } - if (\array_key_exists('start', $data) && $data['start'] !== null) { + if (\array_key_exists('start', $data) && null !== $data['start']) { $object->setStart(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['start'])); - } elseif (\array_key_exists('start', $data) && $data['start'] === null) { + } elseif (\array_key_exists('start', $data) && null === $data['start']) { $object->setStart(null); } - if (\array_key_exists('interval', $data) && $data['interval'] !== null) { + if (\array_key_exists('interval', $data) && null !== $data['interval']) { $object->setInterval($data['interval']); - } elseif (\array_key_exists('interval', $data) && $data['interval'] === null) { + } elseif (\array_key_exists('interval', $data) && null === $data['interval']) { $object->setInterval(null); } - if (\array_key_exists('recurrences', $data) && $data['recurrences'] !== null) { + if (\array_key_exists('recurrences', $data) && null !== $data['recurrences']) { $object->setRecurrences($data['recurrences']); - } elseif (\array_key_exists('recurrences', $data) && $data['recurrences'] === null) { + } elseif (\array_key_exists('recurrences', $data) && null === $data['recurrences']) { $object->setRecurrences(null); } - if (\array_key_exists('end', $data) && $data['end'] !== null) { + if (\array_key_exists('end', $data) && null !== $data['end']) { $object->setEnd(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['end'])); - } elseif (\array_key_exists('end', $data) && $data['end'] === null) { + } elseif (\array_key_exists('end', $data) && null === $data['end']) { $object->setEnd(null); } @@ -90,6 +94,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ScheduleJsonldNormalizer.php b/src/Normalizer/ScheduleJsonldNormalizer.php index b3b72ce6..aa453b18 100644 --- a/src/Normalizer/ScheduleJsonldNormalizer.php +++ b/src/Normalizer/ScheduleJsonldNormalizer.php @@ -27,15 +27,19 @@ class ScheduleJsonldNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ScheduleJsonld::class; + return \Gyroscops\Api\Model\ScheduleJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ScheduleJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ScheduleJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,83 +54,83 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('type', $data) && $data['type'] !== null) { + if (\array_key_exists('type', $data) && null !== $data['type']) { $object->setType2($data['type']); - } elseif (\array_key_exists('type', $data) && $data['type'] === null) { + } elseif (\array_key_exists('type', $data) && null === $data['type']) { $object->setType2(null); } - if (\array_key_exists('startAt', $data) && $data['startAt'] !== null) { + if (\array_key_exists('startAt', $data) && null !== $data['startAt']) { $object->setStartAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['startAt'])); - } elseif (\array_key_exists('startAt', $data) && $data['startAt'] === null) { + } elseif (\array_key_exists('startAt', $data) && null === $data['startAt']) { $object->setStartAt(null); } - if (\array_key_exists('interval', $data) && $data['interval'] !== null) { + if (\array_key_exists('interval', $data) && null !== $data['interval']) { $object->setInterval($data['interval']); - } elseif (\array_key_exists('interval', $data) && $data['interval'] === null) { + } elseif (\array_key_exists('interval', $data) && null === $data['interval']) { $object->setInterval(null); } - if (\array_key_exists('endAt', $data) && $data['endAt'] !== null) { + if (\array_key_exists('endAt', $data) && null !== $data['endAt']) { $object->setEndAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['endAt'])); - } elseif (\array_key_exists('endAt', $data) && $data['endAt'] === null) { + } elseif (\array_key_exists('endAt', $data) && null === $data['endAt']) { $object->setEndAt(null); } - if (\array_key_exists('recurrences', $data) && $data['recurrences'] !== null) { + if (\array_key_exists('recurrences', $data) && null !== $data['recurrences']) { $object->setRecurrences($data['recurrences']); - } elseif (\array_key_exists('recurrences', $data) && $data['recurrences'] === null) { + } elseif (\array_key_exists('recurrences', $data) && null === $data['recurrences']) { $object->setRecurrences(null); } - if (\array_key_exists('executions', $data) && $data['executions'] !== null) { + if (\array_key_exists('executions', $data) && null !== $data['executions']) { $values = []; foreach ($data['executions'] as $value) { $values[] = $value; } $object->setExecutions($values); - } elseif (\array_key_exists('executions', $data) && $data['executions'] === null) { + } elseif (\array_key_exists('executions', $data) && null === $data['executions']) { $object->setExecutions(null); } - if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { + } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { $object->setPipeline(null); } - if (\array_key_exists('workflow', $data) && $data['workflow'] !== null) { + if (\array_key_exists('workflow', $data) && null !== $data['workflow']) { $object->setWorkflow($data['workflow']); - } elseif (\array_key_exists('workflow', $data) && $data['workflow'] === null) { + } elseif (\array_key_exists('workflow', $data) && null === $data['workflow']) { $object->setWorkflow(null); } - if (\array_key_exists('owner', $data) && $data['owner'] !== null) { + if (\array_key_exists('owner', $data) && null !== $data['owner']) { $object->setOwner($data['owner']); - } elseif (\array_key_exists('owner', $data) && $data['owner'] === null) { + } elseif (\array_key_exists('owner', $data) && null === $data['owner']) { $object->setOwner(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } @@ -134,6 +138,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ScheduleNormalizer.php b/src/Normalizer/ScheduleNormalizer.php index 10046ef0..72404f5b 100644 --- a/src/Normalizer/ScheduleNormalizer.php +++ b/src/Normalizer/ScheduleNormalizer.php @@ -27,15 +27,19 @@ class ScheduleNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\Schedule::class; + return \Gyroscops\Api\Model\Schedule::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\Schedule::class; + return \is_object($data) && \Gyroscops\Api\Model\Schedule::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,68 +54,68 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('type', $data) && $data['type'] !== null) { + if (\array_key_exists('type', $data) && null !== $data['type']) { $object->setType($data['type']); - } elseif (\array_key_exists('type', $data) && $data['type'] === null) { + } elseif (\array_key_exists('type', $data) && null === $data['type']) { $object->setType(null); } - if (\array_key_exists('startAt', $data) && $data['startAt'] !== null) { + if (\array_key_exists('startAt', $data) && null !== $data['startAt']) { $object->setStartAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['startAt'])); - } elseif (\array_key_exists('startAt', $data) && $data['startAt'] === null) { + } elseif (\array_key_exists('startAt', $data) && null === $data['startAt']) { $object->setStartAt(null); } - if (\array_key_exists('interval', $data) && $data['interval'] !== null) { + if (\array_key_exists('interval', $data) && null !== $data['interval']) { $object->setInterval($data['interval']); - } elseif (\array_key_exists('interval', $data) && $data['interval'] === null) { + } elseif (\array_key_exists('interval', $data) && null === $data['interval']) { $object->setInterval(null); } - if (\array_key_exists('endAt', $data) && $data['endAt'] !== null) { + if (\array_key_exists('endAt', $data) && null !== $data['endAt']) { $object->setEndAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['endAt'])); - } elseif (\array_key_exists('endAt', $data) && $data['endAt'] === null) { + } elseif (\array_key_exists('endAt', $data) && null === $data['endAt']) { $object->setEndAt(null); } - if (\array_key_exists('recurrences', $data) && $data['recurrences'] !== null) { + if (\array_key_exists('recurrences', $data) && null !== $data['recurrences']) { $object->setRecurrences($data['recurrences']); - } elseif (\array_key_exists('recurrences', $data) && $data['recurrences'] === null) { + } elseif (\array_key_exists('recurrences', $data) && null === $data['recurrences']) { $object->setRecurrences(null); } - if (\array_key_exists('executions', $data) && $data['executions'] !== null) { + if (\array_key_exists('executions', $data) && null !== $data['executions']) { $values = []; foreach ($data['executions'] as $value) { $values[] = $value; } $object->setExecutions($values); - } elseif (\array_key_exists('executions', $data) && $data['executions'] === null) { + } elseif (\array_key_exists('executions', $data) && null === $data['executions']) { $object->setExecutions(null); } - if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { + } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { $object->setPipeline(null); } - if (\array_key_exists('workflow', $data) && $data['workflow'] !== null) { + if (\array_key_exists('workflow', $data) && null !== $data['workflow']) { $object->setWorkflow($data['workflow']); - } elseif (\array_key_exists('workflow', $data) && $data['workflow'] === null) { + } elseif (\array_key_exists('workflow', $data) && null === $data['workflow']) { $object->setWorkflow(null); } - if (\array_key_exists('owner', $data) && $data['owner'] !== null) { + if (\array_key_exists('owner', $data) && null !== $data['owner']) { $object->setOwner($data['owner']); - } elseif (\array_key_exists('owner', $data) && $data['owner'] === null) { + } elseif (\array_key_exists('owner', $data) && null === $data['owner']) { $object->setOwner(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } @@ -119,6 +123,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/ScheduleScheduleCommandInterfaceJsonldNormalizer.php b/src/Normalizer/ScheduleScheduleCommandInterfaceJsonldNormalizer.php index 16f9efb9..15d7cbe1 100644 --- a/src/Normalizer/ScheduleScheduleCommandInterfaceJsonldNormalizer.php +++ b/src/Normalizer/ScheduleScheduleCommandInterfaceJsonldNormalizer.php @@ -27,15 +27,19 @@ class ScheduleScheduleCommandInterfaceJsonldNormalizer implements DenormalizerIn public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\ScheduleScheduleCommandInterfaceJsonld::class; + return \Gyroscops\Api\Model\ScheduleScheduleCommandInterfaceJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\ScheduleScheduleCommandInterfaceJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\ScheduleScheduleCommandInterfaceJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/SecretChangeSecretValueInputJsonldNormalizer.php b/src/Normalizer/SecretChangeSecretValueInputJsonldNormalizer.php index 56c68607..1771f95c 100644 --- a/src/Normalizer/SecretChangeSecretValueInputJsonldNormalizer.php +++ b/src/Normalizer/SecretChangeSecretValueInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class SecretChangeSecretValueInputJsonldNormalizer implements DenormalizerInterf public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\SecretChangeSecretValueInputJsonld::class; + return \Gyroscops\Api\Model\SecretChangeSecretValueInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\SecretChangeSecretValueInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\SecretChangeSecretValueInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,48 +54,48 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -99,6 +103,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/SecretChangeSecretValueInputNormalizer.php b/src/Normalizer/SecretChangeSecretValueInputNormalizer.php index 22bb44b9..cc6bcd0c 100644 --- a/src/Normalizer/SecretChangeSecretValueInputNormalizer.php +++ b/src/Normalizer/SecretChangeSecretValueInputNormalizer.php @@ -27,15 +27,19 @@ class SecretChangeSecretValueInputNormalizer implements DenormalizerInterface, N public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\SecretChangeSecretValueInput::class; + return \Gyroscops\Api\Model\SecretChangeSecretValueInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\SecretChangeSecretValueInput::class; + return \is_object($data) && \Gyroscops\Api\Model\SecretChangeSecretValueInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,33 +54,33 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -84,6 +88,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/SecretCreateSecretInputJsonldNormalizer.php b/src/Normalizer/SecretCreateSecretInputJsonldNormalizer.php index 6ef333e3..8c1bfdea 100644 --- a/src/Normalizer/SecretCreateSecretInputJsonldNormalizer.php +++ b/src/Normalizer/SecretCreateSecretInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class SecretCreateSecretInputJsonldNormalizer implements DenormalizerInterface, public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\SecretCreateSecretInputJsonld::class; + return \Gyroscops\Api\Model\SecretCreateSecretInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\SecretCreateSecretInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\SecretCreateSecretInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,53 +54,53 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -104,6 +108,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/SecretCreateSecretInputNormalizer.php b/src/Normalizer/SecretCreateSecretInputNormalizer.php index 975f3bd1..c31d0c16 100644 --- a/src/Normalizer/SecretCreateSecretInputNormalizer.php +++ b/src/Normalizer/SecretCreateSecretInputNormalizer.php @@ -27,15 +27,19 @@ class SecretCreateSecretInputNormalizer implements DenormalizerInterface, Normal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\SecretCreateSecretInput::class; + return \Gyroscops\Api\Model\SecretCreateSecretInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\SecretCreateSecretInput::class; + return \is_object($data) && \Gyroscops\Api\Model\SecretCreateSecretInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,38 +54,38 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -89,6 +93,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/SecretEditNormalizer.php b/src/Normalizer/SecretEditNormalizer.php index 71a212ee..c1a77091 100644 --- a/src/Normalizer/SecretEditNormalizer.php +++ b/src/Normalizer/SecretEditNormalizer.php @@ -27,15 +27,19 @@ class SecretEditNormalizer implements DenormalizerInterface, NormalizerInterface public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\SecretEdit::class; + return \Gyroscops\Api\Model\SecretEdit::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\SecretEdit::class; + return \is_object($data) && \Gyroscops\Api\Model\SecretEdit::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,14 +54,14 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } @@ -65,6 +69,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/SecretIdJsonldNormalizer.php b/src/Normalizer/SecretIdJsonldNormalizer.php index 7fc2e6ca..afbe04b2 100644 --- a/src/Normalizer/SecretIdJsonldNormalizer.php +++ b/src/Normalizer/SecretIdJsonldNormalizer.php @@ -27,15 +27,19 @@ class SecretIdJsonldNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\SecretIdJsonld::class; + return \Gyroscops\Api\Model\SecretIdJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\SecretIdJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\SecretIdJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/SecretJsonldEditNormalizer.php b/src/Normalizer/SecretJsonldEditNormalizer.php index daf60e35..64dfb216 100644 --- a/src/Normalizer/SecretJsonldEditNormalizer.php +++ b/src/Normalizer/SecretJsonldEditNormalizer.php @@ -27,15 +27,19 @@ class SecretJsonldEditNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\SecretJsonldEdit::class; + return \Gyroscops\Api\Model\SecretJsonldEdit::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\SecretJsonldEdit::class; + return \is_object($data) && \Gyroscops\Api\Model\SecretJsonldEdit::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,29 +54,29 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } @@ -80,6 +84,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/SecretJsonldNormalizer.php b/src/Normalizer/SecretJsonldNormalizer.php index 39478be9..cdad3524 100644 --- a/src/Normalizer/SecretJsonldNormalizer.php +++ b/src/Normalizer/SecretJsonldNormalizer.php @@ -27,15 +27,19 @@ class SecretJsonldNormalizer implements DenormalizerInterface, NormalizerInterfa public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\SecretJsonld::class; + return \Gyroscops\Api\Model\SecretJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\SecretJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\SecretJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,63 +54,63 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('slug', $data) && $data['slug'] !== null) { + if (\array_key_exists('slug', $data) && null !== $data['slug']) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { + } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { $object->setSlug(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -114,6 +118,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/SecretJsonldReadNormalizer.php b/src/Normalizer/SecretJsonldReadNormalizer.php index f02bad84..fadec0c6 100644 --- a/src/Normalizer/SecretJsonldReadNormalizer.php +++ b/src/Normalizer/SecretJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class SecretJsonldReadNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\SecretJsonldRead::class; + return \Gyroscops\Api\Model\SecretJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\SecretJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\SecretJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,48 +54,48 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonldRead::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -99,6 +103,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/SecretNormalizer.php b/src/Normalizer/SecretNormalizer.php index 4eea6cb6..7d51be14 100644 --- a/src/Normalizer/SecretNormalizer.php +++ b/src/Normalizer/SecretNormalizer.php @@ -27,15 +27,19 @@ class SecretNormalizer implements DenormalizerInterface, NormalizerInterface, De public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\Secret::class; + return \Gyroscops\Api\Model\Secret::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\Secret::class; + return \is_object($data) && \Gyroscops\Api\Model\Secret::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,48 +54,48 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('slug', $data) && $data['slug'] !== null) { + if (\array_key_exists('slug', $data) && null !== $data['slug']) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { + } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { $object->setSlug(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -99,6 +103,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/SecretReadNormalizer.php b/src/Normalizer/SecretReadNormalizer.php index e23490f5..c3bf9b14 100644 --- a/src/Normalizer/SecretReadNormalizer.php +++ b/src/Normalizer/SecretReadNormalizer.php @@ -27,15 +27,19 @@ class SecretReadNormalizer implements DenormalizerInterface, NormalizerInterface public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\SecretRead::class; + return \Gyroscops\Api\Model\SecretRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\SecretRead::class; + return \is_object($data) && \Gyroscops\Api\Model\SecretRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,33 +54,33 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('description', $data) && $data['description'] !== null) { + if (\array_key_exists('description', $data) && null !== $data['description']) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + } elseif (\array_key_exists('description', $data) && null === $data['description']) { $object->setDescription(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -84,6 +88,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/SecretRemoveSecretValueInputJsonldNormalizer.php b/src/Normalizer/SecretRemoveSecretValueInputJsonldNormalizer.php index e74c7146..b8d97feb 100644 --- a/src/Normalizer/SecretRemoveSecretValueInputJsonldNormalizer.php +++ b/src/Normalizer/SecretRemoveSecretValueInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class SecretRemoveSecretValueInputJsonldNormalizer implements DenormalizerInterf public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\SecretRemoveSecretValueInputJsonld::class; + return \Gyroscops\Api\Model\SecretRemoveSecretValueInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\SecretRemoveSecretValueInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\SecretRemoveSecretValueInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,48 +54,48 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = []; foreach ($data['contents'] as $value) { $values[] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -99,6 +103,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/SecretRemoveSecretValueInputNormalizer.php b/src/Normalizer/SecretRemoveSecretValueInputNormalizer.php index 659d0a9c..20253ea9 100644 --- a/src/Normalizer/SecretRemoveSecretValueInputNormalizer.php +++ b/src/Normalizer/SecretRemoveSecretValueInputNormalizer.php @@ -27,15 +27,19 @@ class SecretRemoveSecretValueInputNormalizer implements DenormalizerInterface, N public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\SecretRemoveSecretValueInput::class; + return \Gyroscops\Api\Model\SecretRemoveSecretValueInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\SecretRemoveSecretValueInput::class; + return \is_object($data) && \Gyroscops\Api\Model\SecretRemoveSecretValueInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,33 +54,33 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('contents', $data) && $data['contents'] !== null) { + if (\array_key_exists('contents', $data) && null !== $data['contents']) { $values = []; foreach ($data['contents'] as $value) { $values[] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { + } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -84,6 +88,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/StepInputJsonldNormalizer.php b/src/Normalizer/StepInputJsonldNormalizer.php index a79cb213..ec207c47 100644 --- a/src/Normalizer/StepInputJsonldNormalizer.php +++ b/src/Normalizer/StepInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class StepInputJsonldNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\StepInputJsonld::class; + return \Gyroscops\Api\Model\StepInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\StepInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\StepInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,32 +54,32 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['configuration'] as $key => $value) { $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); @@ -85,16 +89,16 @@ public function denormalize($data, $class, $format = null, array $context = []) $values[$key] = $values_1; } $object->setConfiguration($values); - } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { $object->setConfiguration(null); } - if (\array_key_exists('probes', $data) && $data['probes'] !== null) { + if (\array_key_exists('probes', $data) && null !== $data['probes']) { $values_2 = []; foreach ($data['probes'] as $value_2) { $values_2[] = $this->denormalizer->denormalize($value_2, \Gyroscops\Api\Model\ProbeJsonld::class, 'json', $context); } $object->setProbes($values_2); - } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { + } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { $object->setProbes(null); } @@ -102,6 +106,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/StepInputNormalizer.php b/src/Normalizer/StepInputNormalizer.php index 93cddb83..812f1344 100644 --- a/src/Normalizer/StepInputNormalizer.php +++ b/src/Normalizer/StepInputNormalizer.php @@ -27,15 +27,19 @@ class StepInputNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\StepInput::class; + return \Gyroscops\Api\Model\StepInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\StepInput::class; + return \is_object($data) && \Gyroscops\Api\Model\StepInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,17 +54,17 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['configuration'] as $key => $value) { $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); @@ -70,16 +74,16 @@ public function denormalize($data, $class, $format = null, array $context = []) $values[$key] = $values_1; } $object->setConfiguration($values); - } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { $object->setConfiguration(null); } - if (\array_key_exists('probes', $data) && $data['probes'] !== null) { + if (\array_key_exists('probes', $data) && null !== $data['probes']) { $values_2 = []; foreach ($data['probes'] as $value_2) { $values_2[] = $this->denormalizer->denormalize($value_2, \Gyroscops\Api\Model\Probe::class, 'json', $context); } $object->setProbes($values_2); - } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { + } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { $object->setProbes(null); } @@ -87,6 +91,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/SubscriptionJsonldNormalizer.php b/src/Normalizer/SubscriptionJsonldNormalizer.php index 5b293fe3..ced12f2e 100644 --- a/src/Normalizer/SubscriptionJsonldNormalizer.php +++ b/src/Normalizer/SubscriptionJsonldNormalizer.php @@ -27,15 +27,19 @@ class SubscriptionJsonldNormalizer implements DenormalizerInterface, NormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\SubscriptionJsonld::class; + return \Gyroscops\Api\Model\SubscriptionJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\SubscriptionJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\SubscriptionJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,57 +54,57 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('offer', $data) && $data['offer'] !== null) { + if (\array_key_exists('offer', $data) && null !== $data['offer']) { $object->setOffer($data['offer']); - } elseif (\array_key_exists('offer', $data) && $data['offer'] === null) { + } elseif (\array_key_exists('offer', $data) && null === $data['offer']) { $object->setOffer(null); } - if (\array_key_exists('options', $data) && $data['options'] !== null) { + if (\array_key_exists('options', $data) && null !== $data['options']) { $values = []; foreach ($data['options'] as $value) { $values[] = $value; } $object->setOptions($values); - } elseif (\array_key_exists('options', $data) && $data['options'] === null) { + } elseif (\array_key_exists('options', $data) && null === $data['options']) { $object->setOptions(null); } - if (\array_key_exists('cost', $data) && $data['cost'] !== null) { + if (\array_key_exists('cost', $data) && null !== $data['cost']) { $object->setCost($this->denormalizer->denormalize($data['cost'], \Gyroscops\Api\Model\PriceJsonld::class, 'json', $context)); - } elseif (\array_key_exists('cost', $data) && $data['cost'] === null) { + } elseif (\array_key_exists('cost', $data) && null === $data['cost']) { $object->setCost(null); } - if (\array_key_exists('periods', $data) && $data['periods'] !== null) { + if (\array_key_exists('periods', $data) && null !== $data['periods']) { $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['periods'] as $key => $value_1) { $values_1[$key] = $value_1; } $object->setPeriods($values_1); - } elseif (\array_key_exists('periods', $data) && $data['periods'] === null) { + } elseif (\array_key_exists('periods', $data) && null === $data['periods']) { $object->setPeriods(null); } @@ -108,6 +112,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/SubscriptionNormalizer.php b/src/Normalizer/SubscriptionNormalizer.php index 50404c03..ed27a453 100644 --- a/src/Normalizer/SubscriptionNormalizer.php +++ b/src/Normalizer/SubscriptionNormalizer.php @@ -27,15 +27,19 @@ class SubscriptionNormalizer implements DenormalizerInterface, NormalizerInterfa public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\Subscription::class; + return \Gyroscops\Api\Model\Subscription::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\Subscription::class; + return \is_object($data) && \Gyroscops\Api\Model\Subscription::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,42 +54,42 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('offer', $data) && $data['offer'] !== null) { + if (\array_key_exists('offer', $data) && null !== $data['offer']) { $object->setOffer($data['offer']); - } elseif (\array_key_exists('offer', $data) && $data['offer'] === null) { + } elseif (\array_key_exists('offer', $data) && null === $data['offer']) { $object->setOffer(null); } - if (\array_key_exists('options', $data) && $data['options'] !== null) { + if (\array_key_exists('options', $data) && null !== $data['options']) { $values = []; foreach ($data['options'] as $value) { $values[] = $value; } $object->setOptions($values); - } elseif (\array_key_exists('options', $data) && $data['options'] === null) { + } elseif (\array_key_exists('options', $data) && null === $data['options']) { $object->setOptions(null); } - if (\array_key_exists('cost', $data) && $data['cost'] !== null) { + if (\array_key_exists('cost', $data) && null !== $data['cost']) { $object->setCost($this->denormalizer->denormalize($data['cost'], \Gyroscops\Api\Model\Price::class, 'json', $context)); - } elseif (\array_key_exists('cost', $data) && $data['cost'] === null) { + } elseif (\array_key_exists('cost', $data) && null === $data['cost']) { $object->setCost(null); } - if (\array_key_exists('periods', $data) && $data['periods'] !== null) { + if (\array_key_exists('periods', $data) && null !== $data['periods']) { $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['periods'] as $key => $value_1) { $values_1[$key] = $value_1; } $object->setPeriods($values_1); - } elseif (\array_key_exists('periods', $data) && $data['periods'] === null) { + } elseif (\array_key_exists('periods', $data) && null === $data['periods']) { $object->setPeriods(null); } @@ -93,6 +97,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/SubscriptionOptionJsonldNormalizer.php b/src/Normalizer/SubscriptionOptionJsonldNormalizer.php index 3f0369d7..534970ab 100644 --- a/src/Normalizer/SubscriptionOptionJsonldNormalizer.php +++ b/src/Normalizer/SubscriptionOptionJsonldNormalizer.php @@ -27,15 +27,19 @@ class SubscriptionOptionJsonldNormalizer implements DenormalizerInterface, Norma public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\SubscriptionOptionJsonld::class; + return \Gyroscops\Api\Model\SubscriptionOptionJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\SubscriptionOptionJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\SubscriptionOptionJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('subscription', $data) && $data['subscription'] !== null) { + if (\array_key_exists('subscription', $data) && null !== $data['subscription']) { $object->setSubscription($data['subscription']); - } elseif (\array_key_exists('subscription', $data) && $data['subscription'] === null) { + } elseif (\array_key_exists('subscription', $data) && null === $data['subscription']) { $object->setSubscription(null); } - if (\array_key_exists('option', $data) && $data['option'] !== null) { + if (\array_key_exists('option', $data) && null !== $data['option']) { $object->setOption($data['option']); - } elseif (\array_key_exists('option', $data) && $data['option'] === null) { + } elseif (\array_key_exists('option', $data) && null === $data['option']) { $object->setOption(null); } - if (\array_key_exists('price', $data) && $data['price'] !== null) { + if (\array_key_exists('price', $data) && null !== $data['price']) { $object->setPrice($this->denormalizer->denormalize($data['price'], \Gyroscops\Api\Model\PriceJsonld::class, 'json', $context)); - } elseif (\array_key_exists('price', $data) && $data['price'] === null) { + } elseif (\array_key_exists('price', $data) && null === $data['price']) { $object->setPrice(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/SubscriptionOptionNormalizer.php b/src/Normalizer/SubscriptionOptionNormalizer.php index 68a93758..733c16a4 100644 --- a/src/Normalizer/SubscriptionOptionNormalizer.php +++ b/src/Normalizer/SubscriptionOptionNormalizer.php @@ -27,15 +27,19 @@ class SubscriptionOptionNormalizer implements DenormalizerInterface, NormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\SubscriptionOption::class; + return \Gyroscops\Api\Model\SubscriptionOption::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\SubscriptionOption::class; + return \is_object($data) && \Gyroscops\Api\Model\SubscriptionOption::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('subscription', $data) && $data['subscription'] !== null) { + if (\array_key_exists('subscription', $data) && null !== $data['subscription']) { $object->setSubscription($data['subscription']); - } elseif (\array_key_exists('subscription', $data) && $data['subscription'] === null) { + } elseif (\array_key_exists('subscription', $data) && null === $data['subscription']) { $object->setSubscription(null); } - if (\array_key_exists('option', $data) && $data['option'] !== null) { + if (\array_key_exists('option', $data) && null !== $data['option']) { $object->setOption($data['option']); - } elseif (\array_key_exists('option', $data) && $data['option'] === null) { + } elseif (\array_key_exists('option', $data) && null === $data['option']) { $object->setOption(null); } - if (\array_key_exists('price', $data) && $data['price'] !== null) { + if (\array_key_exists('price', $data) && null !== $data['price']) { $object->setPrice($this->denormalizer->denormalize($data['price'], \Gyroscops\Api\Model\Price::class, 'json', $context)); - } elseif (\array_key_exists('price', $data) && $data['price'] === null) { + } elseif (\array_key_exists('price', $data) && null === $data['price']) { $object->setPrice(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/TokenNormalizer.php b/src/Normalizer/TokenNormalizer.php index a5490e38..b1b84c08 100644 --- a/src/Normalizer/TokenNormalizer.php +++ b/src/Normalizer/TokenNormalizer.php @@ -27,15 +27,19 @@ class TokenNormalizer implements DenormalizerInterface, NormalizerInterface, Den public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\Token::class; + return \Gyroscops\Api\Model\Token::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\Token::class; + return \is_object($data) && \Gyroscops\Api\Model\Token::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,9 +54,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('token', $data) && $data['token'] !== null) { + if (\array_key_exists('token', $data) && null !== $data['token']) { $object->setToken($data['token']); - } elseif (\array_key_exists('token', $data) && $data['token'] === null) { + } elseif (\array_key_exists('token', $data) && null === $data['token']) { $object->setToken(null); } @@ -60,12 +64,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/TraversableJsonldNormalizer.php b/src/Normalizer/TraversableJsonldNormalizer.php index 87862c07..ef3c5e3f 100644 --- a/src/Normalizer/TraversableJsonldNormalizer.php +++ b/src/Normalizer/TraversableJsonldNormalizer.php @@ -27,15 +27,19 @@ class TraversableJsonldNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\TraversableJsonld::class; + return \Gyroscops\Api\Model\TraversableJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\TraversableJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\TraversableJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/TraversableJsonldReadNormalizer.php b/src/Normalizer/TraversableJsonldReadNormalizer.php index 378a2e9e..d745d84b 100644 --- a/src/Normalizer/TraversableJsonldReadNormalizer.php +++ b/src/Normalizer/TraversableJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class TraversableJsonldReadNormalizer implements DenormalizerInterface, Normaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\TraversableJsonldRead::class; + return \Gyroscops\Api\Model\TraversableJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\TraversableJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\TraversableJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/UpdateListJsonldNormalizer.php b/src/Normalizer/UpdateListJsonldNormalizer.php index 980e9455..b19cc53f 100644 --- a/src/Normalizer/UpdateListJsonldNormalizer.php +++ b/src/Normalizer/UpdateListJsonldNormalizer.php @@ -27,15 +27,19 @@ class UpdateListJsonldNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\UpdateListJsonld::class; + return \Gyroscops\Api\Model\UpdateListJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\UpdateListJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\UpdateListJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/UpdateListNormalizer.php b/src/Normalizer/UpdateListNormalizer.php index 549e749d..188defbb 100644 --- a/src/Normalizer/UpdateListNormalizer.php +++ b/src/Normalizer/UpdateListNormalizer.php @@ -27,15 +27,19 @@ class UpdateListNormalizer implements DenormalizerInterface, NormalizerInterface public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\UpdateList::class; + return \Gyroscops\Api\Model\UpdateList::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\UpdateList::class; + return \is_object($data) && \Gyroscops\Api\Model\UpdateList::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,9 +54,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { + } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { $object->setIterator(null); } @@ -60,6 +64,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/UserAuthorizationJsonldNormalizer.php b/src/Normalizer/UserAuthorizationJsonldNormalizer.php index a45c91c3..24acc4b2 100644 --- a/src/Normalizer/UserAuthorizationJsonldNormalizer.php +++ b/src/Normalizer/UserAuthorizationJsonldNormalizer.php @@ -27,15 +27,19 @@ class UserAuthorizationJsonldNormalizer implements DenormalizerInterface, Normal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\UserAuthorizationJsonld::class; + return \Gyroscops\Api\Model\UserAuthorizationJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\UserAuthorizationJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\UserAuthorizationJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,53 +54,53 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('user', $data) && $data['user'] !== null) { + if (\array_key_exists('user', $data) && null !== $data['user']) { $object->setUser($data['user']); - } elseif (\array_key_exists('user', $data) && $data['user'] === null) { + } elseif (\array_key_exists('user', $data) && null === $data['user']) { $object->setUser(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('resource', $data) && $data['resource'] !== null) { + if (\array_key_exists('resource', $data) && null !== $data['resource']) { $object->setResource($data['resource']); - } elseif (\array_key_exists('resource', $data) && $data['resource'] === null) { + } elseif (\array_key_exists('resource', $data) && null === $data['resource']) { $object->setResource(null); } - if (\array_key_exists('authorizations', $data) && $data['authorizations'] !== null) { + if (\array_key_exists('authorizations', $data) && null !== $data['authorizations']) { $values = []; foreach ($data['authorizations'] as $value) { $values[] = $value; } $object->setAuthorizations($values); - } elseif (\array_key_exists('authorizations', $data) && $data['authorizations'] === null) { + } elseif (\array_key_exists('authorizations', $data) && null === $data['authorizations']) { $object->setAuthorizations(null); } @@ -104,6 +108,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/UserAuthorizationNormalizer.php b/src/Normalizer/UserAuthorizationNormalizer.php index bf58dceb..f30fb9a0 100644 --- a/src/Normalizer/UserAuthorizationNormalizer.php +++ b/src/Normalizer/UserAuthorizationNormalizer.php @@ -27,15 +27,19 @@ class UserAuthorizationNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\UserAuthorization::class; + return \Gyroscops\Api\Model\UserAuthorization::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\UserAuthorization::class; + return \is_object($data) && \Gyroscops\Api\Model\UserAuthorization::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,38 +54,38 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('user', $data) && $data['user'] !== null) { + if (\array_key_exists('user', $data) && null !== $data['user']) { $object->setUser($data['user']); - } elseif (\array_key_exists('user', $data) && $data['user'] === null) { + } elseif (\array_key_exists('user', $data) && null === $data['user']) { $object->setUser(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('resource', $data) && $data['resource'] !== null) { + if (\array_key_exists('resource', $data) && null !== $data['resource']) { $object->setResource($data['resource']); - } elseif (\array_key_exists('resource', $data) && $data['resource'] === null) { + } elseif (\array_key_exists('resource', $data) && null === $data['resource']) { $object->setResource(null); } - if (\array_key_exists('authorizations', $data) && $data['authorizations'] !== null) { + if (\array_key_exists('authorizations', $data) && null !== $data['authorizations']) { $values = []; foreach ($data['authorizations'] as $value) { $values[] = $value; } $object->setAuthorizations($values); - } elseif (\array_key_exists('authorizations', $data) && $data['authorizations'] === null) { + } elseif (\array_key_exists('authorizations', $data) && null === $data['authorizations']) { $object->setAuthorizations(null); } @@ -89,6 +93,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/UserJsonldNormalizer.php b/src/Normalizer/UserJsonldNormalizer.php index a96e3676..b795ba1b 100644 --- a/src/Normalizer/UserJsonldNormalizer.php +++ b/src/Normalizer/UserJsonldNormalizer.php @@ -27,15 +27,19 @@ class UserJsonldNormalizer implements DenormalizerInterface, NormalizerInterface public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\UserJsonld::class; + return \Gyroscops\Api\Model\UserJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\UserJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\UserJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,57 +54,57 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('firstName', $data) && $data['firstName'] !== null) { + if (\array_key_exists('firstName', $data) && null !== $data['firstName']) { $object->setFirstName($data['firstName']); - } elseif (\array_key_exists('firstName', $data) && $data['firstName'] === null) { + } elseif (\array_key_exists('firstName', $data) && null === $data['firstName']) { $object->setFirstName(null); } - if (\array_key_exists('lastName', $data) && $data['lastName'] !== null) { + if (\array_key_exists('lastName', $data) && null !== $data['lastName']) { $object->setLastName($data['lastName']); - } elseif (\array_key_exists('lastName', $data) && $data['lastName'] === null) { + } elseif (\array_key_exists('lastName', $data) && null === $data['lastName']) { $object->setLastName(null); } - if (\array_key_exists('username', $data) && $data['username'] !== null) { + if (\array_key_exists('username', $data) && null !== $data['username']) { $object->setUsername($data['username']); - } elseif (\array_key_exists('username', $data) && $data['username'] === null) { + } elseif (\array_key_exists('username', $data) && null === $data['username']) { $object->setUsername(null); } - if (\array_key_exists('email', $data) && $data['email'] !== null) { + if (\array_key_exists('email', $data) && null !== $data['email']) { $object->setEmail($data['email']); - } elseif (\array_key_exists('email', $data) && $data['email'] === null) { + } elseif (\array_key_exists('email', $data) && null === $data['email']) { $object->setEmail(null); } - if (\array_key_exists('password', $data) && $data['password'] !== null) { + if (\array_key_exists('password', $data) && null !== $data['password']) { $object->setPassword($data['password']); - } elseif (\array_key_exists('password', $data) && $data['password'] === null) { + } elseif (\array_key_exists('password', $data) && null === $data['password']) { $object->setPassword(null); } - if (\array_key_exists('enabled', $data) && $data['enabled'] !== null) { + if (\array_key_exists('enabled', $data) && null !== $data['enabled']) { $object->setEnabled($data['enabled']); - } elseif (\array_key_exists('enabled', $data) && $data['enabled'] === null) { + } elseif (\array_key_exists('enabled', $data) && null === $data['enabled']) { $object->setEnabled(null); } - if (\array_key_exists('roles', $data) && $data['roles'] !== null) { + if (\array_key_exists('roles', $data) && null !== $data['roles']) { $values = []; foreach ($data['roles'] as $value) { $values_1 = []; @@ -110,86 +114,86 @@ public function denormalize($data, $class, $format = null, array $context = []) $values[] = $values_1; } $object->setRoles($values); - } elseif (\array_key_exists('roles', $data) && $data['roles'] === null) { + } elseif (\array_key_exists('roles', $data) && null === $data['roles']) { $object->setRoles(null); } - if (\array_key_exists('authorizations', $data) && $data['authorizations'] !== null) { + if (\array_key_exists('authorizations', $data) && null !== $data['authorizations']) { $values_2 = []; foreach ($data['authorizations'] as $value_2) { $values_2[] = $value_2; } $object->setAuthorizations($values_2); - } elseif (\array_key_exists('authorizations', $data) && $data['authorizations'] === null) { + } elseif (\array_key_exists('authorizations', $data) && null === $data['authorizations']) { $object->setAuthorizations(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('additionalOrganizations', $data) && $data['additionalOrganizations'] !== null) { + if (\array_key_exists('additionalOrganizations', $data) && null !== $data['additionalOrganizations']) { $values_3 = []; foreach ($data['additionalOrganizations'] as $value_3) { $values_3[] = $value_3; } $object->setAdditionalOrganizations($values_3); - } elseif (\array_key_exists('additionalOrganizations', $data) && $data['additionalOrganizations'] === null) { + } elseif (\array_key_exists('additionalOrganizations', $data) && null === $data['additionalOrganizations']) { $object->setAdditionalOrganizations(null); } - if (\array_key_exists('workspaces', $data) && $data['workspaces'] !== null) { + if (\array_key_exists('workspaces', $data) && null !== $data['workspaces']) { $values_4 = []; foreach ($data['workspaces'] as $value_4) { $values_4[] = $value_4; } $object->setWorkspaces($values_4); - } elseif (\array_key_exists('workspaces', $data) && $data['workspaces'] === null) { + } elseif (\array_key_exists('workspaces', $data) && null === $data['workspaces']) { $object->setWorkspaces(null); } - if (\array_key_exists('currentWorkspace', $data) && $data['currentWorkspace'] !== null) { + if (\array_key_exists('currentWorkspace', $data) && null !== $data['currentWorkspace']) { $object->setCurrentWorkspace($data['currentWorkspace']); - } elseif (\array_key_exists('currentWorkspace', $data) && $data['currentWorkspace'] === null) { + } elseif (\array_key_exists('currentWorkspace', $data) && null === $data['currentWorkspace']) { $object->setCurrentWorkspace(null); } - if (\array_key_exists('currentOrganization', $data) && $data['currentOrganization'] !== null) { + if (\array_key_exists('currentOrganization', $data) && null !== $data['currentOrganization']) { $object->setCurrentOrganization($data['currentOrganization']); - } elseif (\array_key_exists('currentOrganization', $data) && $data['currentOrganization'] === null) { + } elseif (\array_key_exists('currentOrganization', $data) && null === $data['currentOrganization']) { $object->setCurrentOrganization(null); } - if (\array_key_exists('referralCodes', $data) && $data['referralCodes'] !== null) { + if (\array_key_exists('referralCodes', $data) && null !== $data['referralCodes']) { $values_5 = []; foreach ($data['referralCodes'] as $value_5) { $values_5[] = $value_5; } $object->setReferralCodes($values_5); - } elseif (\array_key_exists('referralCodes', $data) && $data['referralCodes'] === null) { + } elseif (\array_key_exists('referralCodes', $data) && null === $data['referralCodes']) { $object->setReferralCodes(null); } - if (\array_key_exists('acceptedReferralRequests', $data) && $data['acceptedReferralRequests'] !== null) { + if (\array_key_exists('acceptedReferralRequests', $data) && null !== $data['acceptedReferralRequests']) { $values_6 = []; foreach ($data['acceptedReferralRequests'] as $value_6) { $values_6[] = $value_6; } $object->setAcceptedReferralRequests($values_6); - } elseif (\array_key_exists('acceptedReferralRequests', $data) && $data['acceptedReferralRequests'] === null) { + } elseif (\array_key_exists('acceptedReferralRequests', $data) && null === $data['acceptedReferralRequests']) { $object->setAcceptedReferralRequests(null); } - if (\array_key_exists('userIdentifier', $data) && $data['userIdentifier'] !== null) { + if (\array_key_exists('userIdentifier', $data) && null !== $data['userIdentifier']) { $object->setUserIdentifier($data['userIdentifier']); - } elseif (\array_key_exists('userIdentifier', $data) && $data['userIdentifier'] === null) { + } elseif (\array_key_exists('userIdentifier', $data) && null === $data['userIdentifier']) { $object->setUserIdentifier(null); } - if (\array_key_exists('salt', $data) && $data['salt'] !== null) { + if (\array_key_exists('salt', $data) && null !== $data['salt']) { $object->setSalt($data['salt']); - } elseif (\array_key_exists('salt', $data) && $data['salt'] === null) { + } elseif (\array_key_exists('salt', $data) && null === $data['salt']) { $object->setSalt(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $values_7 = []; foreach ($data['workspace'] as $value_7) { $values_7[] = $value_7; } $object->setWorkspace($values_7); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } @@ -197,6 +201,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/UserNormalizer.php b/src/Normalizer/UserNormalizer.php index 89fd5d90..6e5437b5 100644 --- a/src/Normalizer/UserNormalizer.php +++ b/src/Normalizer/UserNormalizer.php @@ -27,15 +27,19 @@ class UserNormalizer implements DenormalizerInterface, NormalizerInterface, Deno public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\User::class; + return \Gyroscops\Api\Model\User::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\User::class; + return \is_object($data) && \Gyroscops\Api\Model\User::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,42 +54,42 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('firstName', $data) && $data['firstName'] !== null) { + if (\array_key_exists('firstName', $data) && null !== $data['firstName']) { $object->setFirstName($data['firstName']); - } elseif (\array_key_exists('firstName', $data) && $data['firstName'] === null) { + } elseif (\array_key_exists('firstName', $data) && null === $data['firstName']) { $object->setFirstName(null); } - if (\array_key_exists('lastName', $data) && $data['lastName'] !== null) { + if (\array_key_exists('lastName', $data) && null !== $data['lastName']) { $object->setLastName($data['lastName']); - } elseif (\array_key_exists('lastName', $data) && $data['lastName'] === null) { + } elseif (\array_key_exists('lastName', $data) && null === $data['lastName']) { $object->setLastName(null); } - if (\array_key_exists('username', $data) && $data['username'] !== null) { + if (\array_key_exists('username', $data) && null !== $data['username']) { $object->setUsername($data['username']); - } elseif (\array_key_exists('username', $data) && $data['username'] === null) { + } elseif (\array_key_exists('username', $data) && null === $data['username']) { $object->setUsername(null); } - if (\array_key_exists('email', $data) && $data['email'] !== null) { + if (\array_key_exists('email', $data) && null !== $data['email']) { $object->setEmail($data['email']); - } elseif (\array_key_exists('email', $data) && $data['email'] === null) { + } elseif (\array_key_exists('email', $data) && null === $data['email']) { $object->setEmail(null); } - if (\array_key_exists('password', $data) && $data['password'] !== null) { + if (\array_key_exists('password', $data) && null !== $data['password']) { $object->setPassword($data['password']); - } elseif (\array_key_exists('password', $data) && $data['password'] === null) { + } elseif (\array_key_exists('password', $data) && null === $data['password']) { $object->setPassword(null); } - if (\array_key_exists('enabled', $data) && $data['enabled'] !== null) { + if (\array_key_exists('enabled', $data) && null !== $data['enabled']) { $object->setEnabled($data['enabled']); - } elseif (\array_key_exists('enabled', $data) && $data['enabled'] === null) { + } elseif (\array_key_exists('enabled', $data) && null === $data['enabled']) { $object->setEnabled(null); } - if (\array_key_exists('roles', $data) && $data['roles'] !== null) { + if (\array_key_exists('roles', $data) && null !== $data['roles']) { $values = []; foreach ($data['roles'] as $value) { $values_1 = []; @@ -95,86 +99,86 @@ public function denormalize($data, $class, $format = null, array $context = []) $values[] = $values_1; } $object->setRoles($values); - } elseif (\array_key_exists('roles', $data) && $data['roles'] === null) { + } elseif (\array_key_exists('roles', $data) && null === $data['roles']) { $object->setRoles(null); } - if (\array_key_exists('authorizations', $data) && $data['authorizations'] !== null) { + if (\array_key_exists('authorizations', $data) && null !== $data['authorizations']) { $values_2 = []; foreach ($data['authorizations'] as $value_2) { $values_2[] = $value_2; } $object->setAuthorizations($values_2); - } elseif (\array_key_exists('authorizations', $data) && $data['authorizations'] === null) { + } elseif (\array_key_exists('authorizations', $data) && null === $data['authorizations']) { $object->setAuthorizations(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('additionalOrganizations', $data) && $data['additionalOrganizations'] !== null) { + if (\array_key_exists('additionalOrganizations', $data) && null !== $data['additionalOrganizations']) { $values_3 = []; foreach ($data['additionalOrganizations'] as $value_3) { $values_3[] = $value_3; } $object->setAdditionalOrganizations($values_3); - } elseif (\array_key_exists('additionalOrganizations', $data) && $data['additionalOrganizations'] === null) { + } elseif (\array_key_exists('additionalOrganizations', $data) && null === $data['additionalOrganizations']) { $object->setAdditionalOrganizations(null); } - if (\array_key_exists('workspaces', $data) && $data['workspaces'] !== null) { + if (\array_key_exists('workspaces', $data) && null !== $data['workspaces']) { $values_4 = []; foreach ($data['workspaces'] as $value_4) { $values_4[] = $value_4; } $object->setWorkspaces($values_4); - } elseif (\array_key_exists('workspaces', $data) && $data['workspaces'] === null) { + } elseif (\array_key_exists('workspaces', $data) && null === $data['workspaces']) { $object->setWorkspaces(null); } - if (\array_key_exists('currentWorkspace', $data) && $data['currentWorkspace'] !== null) { + if (\array_key_exists('currentWorkspace', $data) && null !== $data['currentWorkspace']) { $object->setCurrentWorkspace($data['currentWorkspace']); - } elseif (\array_key_exists('currentWorkspace', $data) && $data['currentWorkspace'] === null) { + } elseif (\array_key_exists('currentWorkspace', $data) && null === $data['currentWorkspace']) { $object->setCurrentWorkspace(null); } - if (\array_key_exists('currentOrganization', $data) && $data['currentOrganization'] !== null) { + if (\array_key_exists('currentOrganization', $data) && null !== $data['currentOrganization']) { $object->setCurrentOrganization($data['currentOrganization']); - } elseif (\array_key_exists('currentOrganization', $data) && $data['currentOrganization'] === null) { + } elseif (\array_key_exists('currentOrganization', $data) && null === $data['currentOrganization']) { $object->setCurrentOrganization(null); } - if (\array_key_exists('referralCodes', $data) && $data['referralCodes'] !== null) { + if (\array_key_exists('referralCodes', $data) && null !== $data['referralCodes']) { $values_5 = []; foreach ($data['referralCodes'] as $value_5) { $values_5[] = $value_5; } $object->setReferralCodes($values_5); - } elseif (\array_key_exists('referralCodes', $data) && $data['referralCodes'] === null) { + } elseif (\array_key_exists('referralCodes', $data) && null === $data['referralCodes']) { $object->setReferralCodes(null); } - if (\array_key_exists('acceptedReferralRequests', $data) && $data['acceptedReferralRequests'] !== null) { + if (\array_key_exists('acceptedReferralRequests', $data) && null !== $data['acceptedReferralRequests']) { $values_6 = []; foreach ($data['acceptedReferralRequests'] as $value_6) { $values_6[] = $value_6; } $object->setAcceptedReferralRequests($values_6); - } elseif (\array_key_exists('acceptedReferralRequests', $data) && $data['acceptedReferralRequests'] === null) { + } elseif (\array_key_exists('acceptedReferralRequests', $data) && null === $data['acceptedReferralRequests']) { $object->setAcceptedReferralRequests(null); } - if (\array_key_exists('userIdentifier', $data) && $data['userIdentifier'] !== null) { + if (\array_key_exists('userIdentifier', $data) && null !== $data['userIdentifier']) { $object->setUserIdentifier($data['userIdentifier']); - } elseif (\array_key_exists('userIdentifier', $data) && $data['userIdentifier'] === null) { + } elseif (\array_key_exists('userIdentifier', $data) && null === $data['userIdentifier']) { $object->setUserIdentifier(null); } - if (\array_key_exists('salt', $data) && $data['salt'] !== null) { + if (\array_key_exists('salt', $data) && null !== $data['salt']) { $object->setSalt($data['salt']); - } elseif (\array_key_exists('salt', $data) && $data['salt'] === null) { + } elseif (\array_key_exists('salt', $data) && null === $data['salt']) { $object->setSalt(null); } - if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { $values_7 = []; foreach ($data['workspace'] as $value_7) { $values_7[] = $value_7; } $object->setWorkspace($values_7); - } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { $object->setWorkspace(null); } @@ -182,6 +186,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/UserUserChangePasswordInputNormalizer.php b/src/Normalizer/UserUserChangePasswordInputNormalizer.php index 72d73042..ec4084c4 100644 --- a/src/Normalizer/UserUserChangePasswordInputNormalizer.php +++ b/src/Normalizer/UserUserChangePasswordInputNormalizer.php @@ -27,15 +27,19 @@ class UserUserChangePasswordInputNormalizer implements DenormalizerInterface, No public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\UserUserChangePasswordInput::class; + return \Gyroscops\Api\Model\UserUserChangePasswordInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\UserUserChangePasswordInput::class; + return \is_object($data) && \Gyroscops\Api\Model\UserUserChangePasswordInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('currentPassword', $data) && $data['currentPassword'] !== null) { + if (\array_key_exists('currentPassword', $data) && null !== $data['currentPassword']) { $object->setCurrentPassword($data['currentPassword']); - } elseif (\array_key_exists('currentPassword', $data) && $data['currentPassword'] === null) { + } elseif (\array_key_exists('currentPassword', $data) && null === $data['currentPassword']) { $object->setCurrentPassword(null); } - if (\array_key_exists('newPassword', $data) && $data['newPassword'] !== null) { + if (\array_key_exists('newPassword', $data) && null !== $data['newPassword']) { $object->setNewPassword($data['newPassword']); - } elseif (\array_key_exists('newPassword', $data) && $data['newPassword'] === null) { + } elseif (\array_key_exists('newPassword', $data) && null === $data['newPassword']) { $object->setNewPassword(null); } - if (\array_key_exists('confirmPassword', $data) && $data['confirmPassword'] !== null) { + if (\array_key_exists('confirmPassword', $data) && null !== $data['confirmPassword']) { $object->setConfirmPassword($data['confirmPassword']); - } elseif (\array_key_exists('confirmPassword', $data) && $data['confirmPassword'] === null) { + } elseif (\array_key_exists('confirmPassword', $data) && null === $data['confirmPassword']) { $object->setConfirmPassword(null); } @@ -70,6 +74,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/VariableFromConfigurationInputJsonldNormalizer.php b/src/Normalizer/VariableFromConfigurationInputJsonldNormalizer.php index 1952a4a5..b54b2f45 100644 --- a/src/Normalizer/VariableFromConfigurationInputJsonldNormalizer.php +++ b/src/Normalizer/VariableFromConfigurationInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class VariableFromConfigurationInputJsonldNormalizer implements DenormalizerInte public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\VariableFromConfigurationInputJsonld::class; + return \Gyroscops\Api\Model\VariableFromConfigurationInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\VariableFromConfigurationInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\VariableFromConfigurationInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,29 +54,29 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('from', $data) && $data['from'] !== null) { + if (\array_key_exists('from', $data) && null !== $data['from']) { $object->setFrom($data['from']); - } elseif (\array_key_exists('from', $data) && $data['from'] === null) { + } elseif (\array_key_exists('from', $data) && null === $data['from']) { $object->setFrom(null); } @@ -80,6 +84,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/VariableFromConfigurationInputNormalizer.php b/src/Normalizer/VariableFromConfigurationInputNormalizer.php index 0ceb7ed3..972ea920 100644 --- a/src/Normalizer/VariableFromConfigurationInputNormalizer.php +++ b/src/Normalizer/VariableFromConfigurationInputNormalizer.php @@ -27,15 +27,19 @@ class VariableFromConfigurationInputNormalizer implements DenormalizerInterface, public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\VariableFromConfigurationInput::class; + return \Gyroscops\Api\Model\VariableFromConfigurationInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\VariableFromConfigurationInput::class; + return \is_object($data) && \Gyroscops\Api\Model\VariableFromConfigurationInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,14 +54,14 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('from', $data) && $data['from'] !== null) { + if (\array_key_exists('from', $data) && null !== $data['from']) { $object->setFrom($data['from']); - } elseif (\array_key_exists('from', $data) && $data['from'] === null) { + } elseif (\array_key_exists('from', $data) && null === $data['from']) { $object->setFrom(null); } @@ -65,6 +69,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/VariableFromConfigurationJsonldReadNormalizer.php b/src/Normalizer/VariableFromConfigurationJsonldReadNormalizer.php index 51233ab5..15931bec 100644 --- a/src/Normalizer/VariableFromConfigurationJsonldReadNormalizer.php +++ b/src/Normalizer/VariableFromConfigurationJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class VariableFromConfigurationJsonldReadNormalizer implements DenormalizerInter public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\VariableFromConfigurationJsonldRead::class; + return \Gyroscops\Api\Model\VariableFromConfigurationJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\VariableFromConfigurationJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\VariableFromConfigurationJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,39 +54,39 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { $object->setConfiguration($data['configuration']); - } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { $object->setConfiguration(null); } - if (\array_key_exists('item', $data) && $data['item'] !== null) { + if (\array_key_exists('item', $data) && null !== $data['item']) { $object->setItem($data['item']); - } elseif (\array_key_exists('item', $data) && $data['item'] === null) { + } elseif (\array_key_exists('item', $data) && null === $data['item']) { $object->setItem(null); } - if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + if (\array_key_exists('environment', $data) && null !== $data['environment']) { $object->setEnvironment($data['environment']); - } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { + } elseif (\array_key_exists('environment', $data) && null === $data['environment']) { $object->setEnvironment(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } @@ -90,6 +94,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/VariableFromConfigurationJsonldWriteNormalizer.php b/src/Normalizer/VariableFromConfigurationJsonldWriteNormalizer.php index c8009b84..4cc29275 100644 --- a/src/Normalizer/VariableFromConfigurationJsonldWriteNormalizer.php +++ b/src/Normalizer/VariableFromConfigurationJsonldWriteNormalizer.php @@ -27,15 +27,19 @@ class VariableFromConfigurationJsonldWriteNormalizer implements DenormalizerInte public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\VariableFromConfigurationJsonldWrite::class; + return \Gyroscops\Api\Model\VariableFromConfigurationJsonldWrite::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\VariableFromConfigurationJsonldWrite::class; + return \is_object($data) && \Gyroscops\Api\Model\VariableFromConfigurationJsonldWrite::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/VariableFromConfigurationReadNormalizer.php b/src/Normalizer/VariableFromConfigurationReadNormalizer.php index 9ddbeca6..1165201b 100644 --- a/src/Normalizer/VariableFromConfigurationReadNormalizer.php +++ b/src/Normalizer/VariableFromConfigurationReadNormalizer.php @@ -27,15 +27,19 @@ class VariableFromConfigurationReadNormalizer implements DenormalizerInterface, public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\VariableFromConfigurationRead::class; + return \Gyroscops\Api\Model\VariableFromConfigurationRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\VariableFromConfigurationRead::class; + return \is_object($data) && \Gyroscops\Api\Model\VariableFromConfigurationRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { $object->setConfiguration($data['configuration']); - } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { $object->setConfiguration(null); } - if (\array_key_exists('item', $data) && $data['item'] !== null) { + if (\array_key_exists('item', $data) && null !== $data['item']) { $object->setItem($data['item']); - } elseif (\array_key_exists('item', $data) && $data['item'] === null) { + } elseif (\array_key_exists('item', $data) && null === $data['item']) { $object->setItem(null); } - if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + if (\array_key_exists('environment', $data) && null !== $data['environment']) { $object->setEnvironment($data['environment']); - } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { + } elseif (\array_key_exists('environment', $data) && null === $data['environment']) { $object->setEnvironment(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/VariableFromConstantInputJsonldNormalizer.php b/src/Normalizer/VariableFromConstantInputJsonldNormalizer.php index 86966515..eb68a0b7 100644 --- a/src/Normalizer/VariableFromConstantInputJsonldNormalizer.php +++ b/src/Normalizer/VariableFromConstantInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class VariableFromConstantInputJsonldNormalizer implements DenormalizerInterface public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\VariableFromConstantInputJsonld::class; + return \Gyroscops\Api\Model\VariableFromConstantInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\VariableFromConstantInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\VariableFromConstantInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,29 +54,29 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('value', $data) && $data['value'] !== null) { + if (\array_key_exists('value', $data) && null !== $data['value']) { $object->setValue($data['value']); - } elseif (\array_key_exists('value', $data) && $data['value'] === null) { + } elseif (\array_key_exists('value', $data) && null === $data['value']) { $object->setValue(null); } @@ -80,6 +84,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/VariableFromConstantInputNormalizer.php b/src/Normalizer/VariableFromConstantInputNormalizer.php index d345c2d6..3434652e 100644 --- a/src/Normalizer/VariableFromConstantInputNormalizer.php +++ b/src/Normalizer/VariableFromConstantInputNormalizer.php @@ -27,15 +27,19 @@ class VariableFromConstantInputNormalizer implements DenormalizerInterface, Norm public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\VariableFromConstantInput::class; + return \Gyroscops\Api\Model\VariableFromConstantInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\VariableFromConstantInput::class; + return \is_object($data) && \Gyroscops\Api\Model\VariableFromConstantInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,14 +54,14 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('value', $data) && $data['value'] !== null) { + if (\array_key_exists('value', $data) && null !== $data['value']) { $object->setValue($data['value']); - } elseif (\array_key_exists('value', $data) && $data['value'] === null) { + } elseif (\array_key_exists('value', $data) && null === $data['value']) { $object->setValue(null); } @@ -65,6 +69,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/VariableFromConstantJsonldReadNormalizer.php b/src/Normalizer/VariableFromConstantJsonldReadNormalizer.php index bc1eb164..0d7e5859 100644 --- a/src/Normalizer/VariableFromConstantJsonldReadNormalizer.php +++ b/src/Normalizer/VariableFromConstantJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class VariableFromConstantJsonldReadNormalizer implements DenormalizerInterface, public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\VariableFromConstantJsonldRead::class; + return \Gyroscops\Api\Model\VariableFromConstantJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\VariableFromConstantJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\VariableFromConstantJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('value', $data) && $data['value'] !== null) { + if (\array_key_exists('value', $data) && null !== $data['value']) { $object->setValue($data['value']); - } elseif (\array_key_exists('value', $data) && $data['value'] === null) { + } elseif (\array_key_exists('value', $data) && null === $data['value']) { $object->setValue(null); } - if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + if (\array_key_exists('environment', $data) && null !== $data['environment']) { $object->setEnvironment($data['environment']); - } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { + } elseif (\array_key_exists('environment', $data) && null === $data['environment']) { $object->setEnvironment(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/VariableFromConstantJsonldWriteNormalizer.php b/src/Normalizer/VariableFromConstantJsonldWriteNormalizer.php index 2d5f030e..80516af4 100644 --- a/src/Normalizer/VariableFromConstantJsonldWriteNormalizer.php +++ b/src/Normalizer/VariableFromConstantJsonldWriteNormalizer.php @@ -27,15 +27,19 @@ class VariableFromConstantJsonldWriteNormalizer implements DenormalizerInterface public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\VariableFromConstantJsonldWrite::class; + return \Gyroscops\Api\Model\VariableFromConstantJsonldWrite::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\VariableFromConstantJsonldWrite::class; + return \is_object($data) && \Gyroscops\Api\Model\VariableFromConstantJsonldWrite::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/VariableFromConstantReadNormalizer.php b/src/Normalizer/VariableFromConstantReadNormalizer.php index c52b0f5d..be66a3a8 100644 --- a/src/Normalizer/VariableFromConstantReadNormalizer.php +++ b/src/Normalizer/VariableFromConstantReadNormalizer.php @@ -27,15 +27,19 @@ class VariableFromConstantReadNormalizer implements DenormalizerInterface, Norma public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\VariableFromConstantRead::class; + return \Gyroscops\Api\Model\VariableFromConstantRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\VariableFromConstantRead::class; + return \is_object($data) && \Gyroscops\Api\Model\VariableFromConstantRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('value', $data) && $data['value'] !== null) { + if (\array_key_exists('value', $data) && null !== $data['value']) { $object->setValue($data['value']); - } elseif (\array_key_exists('value', $data) && $data['value'] === null) { + } elseif (\array_key_exists('value', $data) && null === $data['value']) { $object->setValue(null); } - if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + if (\array_key_exists('environment', $data) && null !== $data['environment']) { $object->setEnvironment($data['environment']); - } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { + } elseif (\array_key_exists('environment', $data) && null === $data['environment']) { $object->setEnvironment(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } @@ -70,6 +74,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/VariableFromSecretInputJsonldNormalizer.php b/src/Normalizer/VariableFromSecretInputJsonldNormalizer.php index f7759051..c12f5795 100644 --- a/src/Normalizer/VariableFromSecretInputJsonldNormalizer.php +++ b/src/Normalizer/VariableFromSecretInputJsonldNormalizer.php @@ -27,15 +27,19 @@ class VariableFromSecretInputJsonldNormalizer implements DenormalizerInterface, public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\VariableFromSecretInputJsonld::class; + return \Gyroscops\Api\Model\VariableFromSecretInputJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\VariableFromSecretInputJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\VariableFromSecretInputJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,29 +54,29 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('from', $data) && $data['from'] !== null) { + if (\array_key_exists('from', $data) && null !== $data['from']) { $object->setFrom($data['from']); - } elseif (\array_key_exists('from', $data) && $data['from'] === null) { + } elseif (\array_key_exists('from', $data) && null === $data['from']) { $object->setFrom(null); } @@ -80,6 +84,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/VariableFromSecretInputNormalizer.php b/src/Normalizer/VariableFromSecretInputNormalizer.php index 8b84b767..0695bc46 100644 --- a/src/Normalizer/VariableFromSecretInputNormalizer.php +++ b/src/Normalizer/VariableFromSecretInputNormalizer.php @@ -27,15 +27,19 @@ class VariableFromSecretInputNormalizer implements DenormalizerInterface, Normal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\VariableFromSecretInput::class; + return \Gyroscops\Api\Model\VariableFromSecretInput::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\VariableFromSecretInput::class; + return \is_object($data) && \Gyroscops\Api\Model\VariableFromSecretInput::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,14 +54,14 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('from', $data) && $data['from'] !== null) { + if (\array_key_exists('from', $data) && null !== $data['from']) { $object->setFrom($data['from']); - } elseif (\array_key_exists('from', $data) && $data['from'] === null) { + } elseif (\array_key_exists('from', $data) && null === $data['from']) { $object->setFrom(null); } @@ -65,6 +69,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/VariableFromSecretJsonldReadNormalizer.php b/src/Normalizer/VariableFromSecretJsonldReadNormalizer.php index 0cb32eac..fc8f736c 100644 --- a/src/Normalizer/VariableFromSecretJsonldReadNormalizer.php +++ b/src/Normalizer/VariableFromSecretJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class VariableFromSecretJsonldReadNormalizer implements DenormalizerInterface, N public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\VariableFromSecretJsonldRead::class; + return \Gyroscops\Api\Model\VariableFromSecretJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\VariableFromSecretJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\VariableFromSecretJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,39 +54,39 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('secret', $data) && $data['secret'] !== null) { + if (\array_key_exists('secret', $data) && null !== $data['secret']) { $object->setSecret($data['secret']); - } elseif (\array_key_exists('secret', $data) && $data['secret'] === null) { + } elseif (\array_key_exists('secret', $data) && null === $data['secret']) { $object->setSecret(null); } - if (\array_key_exists('item', $data) && $data['item'] !== null) { + if (\array_key_exists('item', $data) && null !== $data['item']) { $object->setItem($data['item']); - } elseif (\array_key_exists('item', $data) && $data['item'] === null) { + } elseif (\array_key_exists('item', $data) && null === $data['item']) { $object->setItem(null); } - if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + if (\array_key_exists('environment', $data) && null !== $data['environment']) { $object->setEnvironment($data['environment']); - } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { + } elseif (\array_key_exists('environment', $data) && null === $data['environment']) { $object->setEnvironment(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } @@ -90,6 +94,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/VariableFromSecretJsonldWriteNormalizer.php b/src/Normalizer/VariableFromSecretJsonldWriteNormalizer.php index 79da99cb..5935f23d 100644 --- a/src/Normalizer/VariableFromSecretJsonldWriteNormalizer.php +++ b/src/Normalizer/VariableFromSecretJsonldWriteNormalizer.php @@ -27,15 +27,19 @@ class VariableFromSecretJsonldWriteNormalizer implements DenormalizerInterface, public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\VariableFromSecretJsonldWrite::class; + return \Gyroscops\Api\Model\VariableFromSecretJsonldWrite::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\VariableFromSecretJsonldWrite::class; + return \is_object($data) && \Gyroscops\Api\Model\VariableFromSecretJsonldWrite::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/VariableFromSecretReadNormalizer.php b/src/Normalizer/VariableFromSecretReadNormalizer.php index 94f98738..f2a95ae1 100644 --- a/src/Normalizer/VariableFromSecretReadNormalizer.php +++ b/src/Normalizer/VariableFromSecretReadNormalizer.php @@ -27,15 +27,19 @@ class VariableFromSecretReadNormalizer implements DenormalizerInterface, Normali public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\VariableFromSecretRead::class; + return \Gyroscops\Api\Model\VariableFromSecretRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\VariableFromSecretRead::class; + return \is_object($data) && \Gyroscops\Api\Model\VariableFromSecretRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('secret', $data) && $data['secret'] !== null) { + if (\array_key_exists('secret', $data) && null !== $data['secret']) { $object->setSecret($data['secret']); - } elseif (\array_key_exists('secret', $data) && $data['secret'] === null) { + } elseif (\array_key_exists('secret', $data) && null === $data['secret']) { $object->setSecret(null); } - if (\array_key_exists('item', $data) && $data['item'] !== null) { + if (\array_key_exists('item', $data) && null !== $data['item']) { $object->setItem($data['item']); - } elseif (\array_key_exists('item', $data) && $data['item'] === null) { + } elseif (\array_key_exists('item', $data) && null === $data['item']) { $object->setItem(null); } - if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + if (\array_key_exists('environment', $data) && null !== $data['environment']) { $object->setEnvironment($data['environment']); - } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { + } elseif (\array_key_exists('environment', $data) && null === $data['environment']) { $object->setEnvironment(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/VariableJsonldReadNormalizer.php b/src/Normalizer/VariableJsonldReadNormalizer.php index 29113f79..187a7da5 100644 --- a/src/Normalizer/VariableJsonldReadNormalizer.php +++ b/src/Normalizer/VariableJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class VariableJsonldReadNormalizer implements DenormalizerInterface, NormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\VariableJsonldRead::class; + return \Gyroscops\Api\Model\VariableJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\VariableJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\VariableJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + if (\array_key_exists('environment', $data) && null !== $data['environment']) { $object->setEnvironment($data['environment']); - } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { + } elseif (\array_key_exists('environment', $data) && null === $data['environment']) { $object->setEnvironment(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/VariableReadNormalizer.php b/src/Normalizer/VariableReadNormalizer.php index 6428fc31..56e63acc 100644 --- a/src/Normalizer/VariableReadNormalizer.php +++ b/src/Normalizer/VariableReadNormalizer.php @@ -27,15 +27,19 @@ class VariableReadNormalizer implements DenormalizerInterface, NormalizerInterfa public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\VariableRead::class; + return \Gyroscops\Api\Model\VariableRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\VariableRead::class; + return \is_object($data) && \Gyroscops\Api\Model\VariableRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,14 +54,14 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + if (\array_key_exists('environment', $data) && null !== $data['environment']) { $object->setEnvironment($data['environment']); - } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { + } elseif (\array_key_exists('environment', $data) && null === $data['environment']) { $object->setEnvironment(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } @@ -65,6 +69,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/WorkflowJobActionJsonldNormalizer.php b/src/Normalizer/WorkflowJobActionJsonldNormalizer.php index a1e0b2d6..d4e9d2ce 100644 --- a/src/Normalizer/WorkflowJobActionJsonldNormalizer.php +++ b/src/Normalizer/WorkflowJobActionJsonldNormalizer.php @@ -27,15 +27,19 @@ class WorkflowJobActionJsonldNormalizer implements DenormalizerInterface, Normal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\WorkflowJobActionJsonld::class; + return \Gyroscops\Api\Model\WorkflowJobActionJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\WorkflowJobActionJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\WorkflowJobActionJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,29 +54,29 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('job', $data) && $data['job'] !== null) { + if (\array_key_exists('job', $data) && null !== $data['job']) { $object->setJob($data['job']); - } elseif (\array_key_exists('job', $data) && $data['job'] === null) { + } elseif (\array_key_exists('job', $data) && null === $data['job']) { $object->setJob(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } @@ -80,6 +84,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/WorkflowJobActionJsonldReadNormalizer.php b/src/Normalizer/WorkflowJobActionJsonldReadNormalizer.php index 31085a39..50e6dad7 100644 --- a/src/Normalizer/WorkflowJobActionJsonldReadNormalizer.php +++ b/src/Normalizer/WorkflowJobActionJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class WorkflowJobActionJsonldReadNormalizer implements DenormalizerInterface, No public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\WorkflowJobActionJsonldRead::class; + return \Gyroscops\Api\Model\WorkflowJobActionJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\WorkflowJobActionJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\WorkflowJobActionJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,24 +54,24 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } @@ -75,6 +79,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/WorkflowJobActionNormalizer.php b/src/Normalizer/WorkflowJobActionNormalizer.php index cdc9b70f..ef8232c7 100644 --- a/src/Normalizer/WorkflowJobActionNormalizer.php +++ b/src/Normalizer/WorkflowJobActionNormalizer.php @@ -27,15 +27,19 @@ class WorkflowJobActionNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\WorkflowJobAction::class; + return \Gyroscops\Api\Model\WorkflowJobAction::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\WorkflowJobAction::class; + return \is_object($data) && \Gyroscops\Api\Model\WorkflowJobAction::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,14 +54,14 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('job', $data) && $data['job'] !== null) { + if (\array_key_exists('job', $data) && null !== $data['job']) { $object->setJob($data['job']); - } elseif (\array_key_exists('job', $data) && $data['job'] === null) { + } elseif (\array_key_exists('job', $data) && null === $data['job']) { $object->setJob(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } @@ -65,6 +69,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/WorkflowJobActionReadNormalizer.php b/src/Normalizer/WorkflowJobActionReadNormalizer.php index 7ca372af..6d38fd98 100644 --- a/src/Normalizer/WorkflowJobActionReadNormalizer.php +++ b/src/Normalizer/WorkflowJobActionReadNormalizer.php @@ -27,15 +27,19 @@ class WorkflowJobActionReadNormalizer implements DenormalizerInterface, Normaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\WorkflowJobActionRead::class; + return \Gyroscops\Api\Model\WorkflowJobActionRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\WorkflowJobActionRead::class; + return \is_object($data) && \Gyroscops\Api\Model\WorkflowJobActionRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,9 +54,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } @@ -60,6 +64,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/WorkflowJobJsonldReadNormalizer.php b/src/Normalizer/WorkflowJobJsonldReadNormalizer.php index 2f0874a3..f0336d69 100644 --- a/src/Normalizer/WorkflowJobJsonldReadNormalizer.php +++ b/src/Normalizer/WorkflowJobJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class WorkflowJobJsonldReadNormalizer implements DenormalizerInterface, Normaliz public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\WorkflowJobJsonldRead::class; + return \Gyroscops\Api\Model\WorkflowJobJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\WorkflowJobJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\WorkflowJobJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,34 +54,34 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('workflow', $data) && $data['workflow'] !== null) { + if (\array_key_exists('workflow', $data) && null !== $data['workflow']) { $object->setWorkflow($data['workflow']); - } elseif (\array_key_exists('workflow', $data) && $data['workflow'] === null) { + } elseif (\array_key_exists('workflow', $data) && null === $data['workflow']) { $object->setWorkflow(null); } - if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { + } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { $object->setPipeline(null); } - if (\array_key_exists('action', $data) && $data['action'] !== null) { + if (\array_key_exists('action', $data) && null !== $data['action']) { $object->setAction($data['action']); - } elseif (\array_key_exists('action', $data) && $data['action'] === null) { + } elseif (\array_key_exists('action', $data) && null === $data['action']) { $object->setAction(null); } @@ -85,6 +89,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/WorkflowJobPipelineJsonldNormalizer.php b/src/Normalizer/WorkflowJobPipelineJsonldNormalizer.php index e6d13fc1..74a2dcab 100644 --- a/src/Normalizer/WorkflowJobPipelineJsonldNormalizer.php +++ b/src/Normalizer/WorkflowJobPipelineJsonldNormalizer.php @@ -27,15 +27,19 @@ class WorkflowJobPipelineJsonldNormalizer implements DenormalizerInterface, Norm public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\WorkflowJobPipelineJsonld::class; + return \Gyroscops\Api\Model\WorkflowJobPipelineJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\WorkflowJobPipelineJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\WorkflowJobPipelineJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,98 +54,98 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('job', $data) && $data['job'] !== null) { + if (\array_key_exists('job', $data) && null !== $data['job']) { $object->setJob($data['job']); - } elseif (\array_key_exists('job', $data) && $data['job'] === null) { + } elseif (\array_key_exists('job', $data) && null === $data['job']) { $object->setJob(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('runtimeType', $data) && $data['runtimeType'] !== null) { + if (\array_key_exists('runtimeType', $data) && null !== $data['runtimeType']) { $object->setRuntimeType($data['runtimeType']); - } elseif (\array_key_exists('runtimeType', $data) && $data['runtimeType'] === null) { + } elseif (\array_key_exists('runtimeType', $data) && null === $data['runtimeType']) { $object->setRuntimeType(null); } - if (\array_key_exists('runtime', $data) && $data['runtime'] !== null) { + if (\array_key_exists('runtime', $data) && null !== $data['runtime']) { $values = []; foreach ($data['runtime'] as $value) { $values[] = $value; } $object->setRuntime($values); - } elseif (\array_key_exists('runtime', $data) && $data['runtime'] === null) { + } elseif (\array_key_exists('runtime', $data) && null === $data['runtime']) { $object->setRuntime(null); } - if (\array_key_exists('autoload', $data) && $data['autoload'] !== null) { + if (\array_key_exists('autoload', $data) && null !== $data['autoload']) { $values_1 = []; foreach ($data['autoload'] as $value_1) { $values_1[] = $value_1; } $object->setAutoload($values_1); - } elseif (\array_key_exists('autoload', $data) && $data['autoload'] === null) { + } elseif (\array_key_exists('autoload', $data) && null === $data['autoload']) { $object->setAutoload(null); } - if (\array_key_exists('packages', $data) && $data['packages'] !== null) { + if (\array_key_exists('packages', $data) && null !== $data['packages']) { $values_2 = []; foreach ($data['packages'] as $value_2) { $values_2[] = $value_2; } $object->setPackages($values_2); - } elseif (\array_key_exists('packages', $data) && $data['packages'] === null) { + } elseif (\array_key_exists('packages', $data) && null === $data['packages']) { $object->setPackages(null); } - if (\array_key_exists('repositories', $data) && $data['repositories'] !== null) { + if (\array_key_exists('repositories', $data) && null !== $data['repositories']) { $values_3 = []; foreach ($data['repositories'] as $value_3) { $values_3[] = $value_3; } $object->setRepositories($values_3); - } elseif (\array_key_exists('repositories', $data) && $data['repositories'] === null) { + } elseif (\array_key_exists('repositories', $data) && null === $data['repositories']) { $object->setRepositories(null); } - if (\array_key_exists('auths', $data) && $data['auths'] !== null) { + if (\array_key_exists('auths', $data) && null !== $data['auths']) { $values_4 = []; foreach ($data['auths'] as $value_4) { $values_4[] = $value_4; } $object->setAuths($values_4); - } elseif (\array_key_exists('auths', $data) && $data['auths'] === null) { + } elseif (\array_key_exists('auths', $data) && null === $data['auths']) { $object->setAuths(null); } - if (\array_key_exists('steps', $data) && $data['steps'] !== null) { + if (\array_key_exists('steps', $data) && null !== $data['steps']) { $values_5 = []; foreach ($data['steps'] as $value_5) { $values_5[] = $value_5; } $object->setSteps($values_5); - } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { $object->setSteps(null); } @@ -149,6 +153,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/WorkflowJobPipelineJsonldReadNormalizer.php b/src/Normalizer/WorkflowJobPipelineJsonldReadNormalizer.php index 827998f9..69b81dad 100644 --- a/src/Normalizer/WorkflowJobPipelineJsonldReadNormalizer.php +++ b/src/Normalizer/WorkflowJobPipelineJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class WorkflowJobPipelineJsonldReadNormalizer implements DenormalizerInterface, public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\WorkflowJobPipelineJsonldRead::class; + return \Gyroscops\Api\Model\WorkflowJobPipelineJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\WorkflowJobPipelineJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\WorkflowJobPipelineJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,93 +54,93 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('runtimeType', $data) && $data['runtimeType'] !== null) { + if (\array_key_exists('runtimeType', $data) && null !== $data['runtimeType']) { $object->setRuntimeType($data['runtimeType']); - } elseif (\array_key_exists('runtimeType', $data) && $data['runtimeType'] === null) { + } elseif (\array_key_exists('runtimeType', $data) && null === $data['runtimeType']) { $object->setRuntimeType(null); } - if (\array_key_exists('runtime', $data) && $data['runtime'] !== null) { + if (\array_key_exists('runtime', $data) && null !== $data['runtime']) { $values = []; foreach ($data['runtime'] as $value) { $values[] = $value; } $object->setRuntime($values); - } elseif (\array_key_exists('runtime', $data) && $data['runtime'] === null) { + } elseif (\array_key_exists('runtime', $data) && null === $data['runtime']) { $object->setRuntime(null); } - if (\array_key_exists('autoload', $data) && $data['autoload'] !== null) { + if (\array_key_exists('autoload', $data) && null !== $data['autoload']) { $values_1 = []; foreach ($data['autoload'] as $value_1) { $values_1[] = $value_1; } $object->setAutoload($values_1); - } elseif (\array_key_exists('autoload', $data) && $data['autoload'] === null) { + } elseif (\array_key_exists('autoload', $data) && null === $data['autoload']) { $object->setAutoload(null); } - if (\array_key_exists('packages', $data) && $data['packages'] !== null) { + if (\array_key_exists('packages', $data) && null !== $data['packages']) { $values_2 = []; foreach ($data['packages'] as $value_2) { $values_2[] = $value_2; } $object->setPackages($values_2); - } elseif (\array_key_exists('packages', $data) && $data['packages'] === null) { + } elseif (\array_key_exists('packages', $data) && null === $data['packages']) { $object->setPackages(null); } - if (\array_key_exists('repositories', $data) && $data['repositories'] !== null) { + if (\array_key_exists('repositories', $data) && null !== $data['repositories']) { $values_3 = []; foreach ($data['repositories'] as $value_3) { $values_3[] = $value_3; } $object->setRepositories($values_3); - } elseif (\array_key_exists('repositories', $data) && $data['repositories'] === null) { + } elseif (\array_key_exists('repositories', $data) && null === $data['repositories']) { $object->setRepositories(null); } - if (\array_key_exists('auths', $data) && $data['auths'] !== null) { + if (\array_key_exists('auths', $data) && null !== $data['auths']) { $values_4 = []; foreach ($data['auths'] as $value_4) { $values_4[] = $value_4; } $object->setAuths($values_4); - } elseif (\array_key_exists('auths', $data) && $data['auths'] === null) { + } elseif (\array_key_exists('auths', $data) && null === $data['auths']) { $object->setAuths(null); } - if (\array_key_exists('steps', $data) && $data['steps'] !== null) { + if (\array_key_exists('steps', $data) && null !== $data['steps']) { $values_5 = []; foreach ($data['steps'] as $value_5) { $values_5[] = $value_5; } $object->setSteps($values_5); - } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { $object->setSteps(null); } @@ -144,6 +148,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/WorkflowJobPipelineNormalizer.php b/src/Normalizer/WorkflowJobPipelineNormalizer.php index 0fe8e296..78ce6fb9 100644 --- a/src/Normalizer/WorkflowJobPipelineNormalizer.php +++ b/src/Normalizer/WorkflowJobPipelineNormalizer.php @@ -27,15 +27,19 @@ class WorkflowJobPipelineNormalizer implements DenormalizerInterface, Normalizer public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\WorkflowJobPipeline::class; + return \Gyroscops\Api\Model\WorkflowJobPipeline::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\WorkflowJobPipeline::class; + return \is_object($data) && \Gyroscops\Api\Model\WorkflowJobPipeline::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,83 +54,83 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('job', $data) && $data['job'] !== null) { + if (\array_key_exists('job', $data) && null !== $data['job']) { $object->setJob($data['job']); - } elseif (\array_key_exists('job', $data) && $data['job'] === null) { + } elseif (\array_key_exists('job', $data) && null === $data['job']) { $object->setJob(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('runtimeType', $data) && $data['runtimeType'] !== null) { + if (\array_key_exists('runtimeType', $data) && null !== $data['runtimeType']) { $object->setRuntimeType($data['runtimeType']); - } elseif (\array_key_exists('runtimeType', $data) && $data['runtimeType'] === null) { + } elseif (\array_key_exists('runtimeType', $data) && null === $data['runtimeType']) { $object->setRuntimeType(null); } - if (\array_key_exists('runtime', $data) && $data['runtime'] !== null) { + if (\array_key_exists('runtime', $data) && null !== $data['runtime']) { $values = []; foreach ($data['runtime'] as $value) { $values[] = $value; } $object->setRuntime($values); - } elseif (\array_key_exists('runtime', $data) && $data['runtime'] === null) { + } elseif (\array_key_exists('runtime', $data) && null === $data['runtime']) { $object->setRuntime(null); } - if (\array_key_exists('autoload', $data) && $data['autoload'] !== null) { + if (\array_key_exists('autoload', $data) && null !== $data['autoload']) { $values_1 = []; foreach ($data['autoload'] as $value_1) { $values_1[] = $value_1; } $object->setAutoload($values_1); - } elseif (\array_key_exists('autoload', $data) && $data['autoload'] === null) { + } elseif (\array_key_exists('autoload', $data) && null === $data['autoload']) { $object->setAutoload(null); } - if (\array_key_exists('packages', $data) && $data['packages'] !== null) { + if (\array_key_exists('packages', $data) && null !== $data['packages']) { $values_2 = []; foreach ($data['packages'] as $value_2) { $values_2[] = $value_2; } $object->setPackages($values_2); - } elseif (\array_key_exists('packages', $data) && $data['packages'] === null) { + } elseif (\array_key_exists('packages', $data) && null === $data['packages']) { $object->setPackages(null); } - if (\array_key_exists('repositories', $data) && $data['repositories'] !== null) { + if (\array_key_exists('repositories', $data) && null !== $data['repositories']) { $values_3 = []; foreach ($data['repositories'] as $value_3) { $values_3[] = $value_3; } $object->setRepositories($values_3); - } elseif (\array_key_exists('repositories', $data) && $data['repositories'] === null) { + } elseif (\array_key_exists('repositories', $data) && null === $data['repositories']) { $object->setRepositories(null); } - if (\array_key_exists('auths', $data) && $data['auths'] !== null) { + if (\array_key_exists('auths', $data) && null !== $data['auths']) { $values_4 = []; foreach ($data['auths'] as $value_4) { $values_4[] = $value_4; } $object->setAuths($values_4); - } elseif (\array_key_exists('auths', $data) && $data['auths'] === null) { + } elseif (\array_key_exists('auths', $data) && null === $data['auths']) { $object->setAuths(null); } - if (\array_key_exists('steps', $data) && $data['steps'] !== null) { + if (\array_key_exists('steps', $data) && null !== $data['steps']) { $values_5 = []; foreach ($data['steps'] as $value_5) { $values_5[] = $value_5; } $object->setSteps($values_5); - } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { $object->setSteps(null); } @@ -134,6 +138,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/WorkflowJobPipelineReadNormalizer.php b/src/Normalizer/WorkflowJobPipelineReadNormalizer.php index 5ecad094..9f3ad2bf 100644 --- a/src/Normalizer/WorkflowJobPipelineReadNormalizer.php +++ b/src/Normalizer/WorkflowJobPipelineReadNormalizer.php @@ -27,15 +27,19 @@ class WorkflowJobPipelineReadNormalizer implements DenormalizerInterface, Normal public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\WorkflowJobPipelineRead::class; + return \Gyroscops\Api\Model\WorkflowJobPipelineRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\WorkflowJobPipelineRead::class; + return \is_object($data) && \Gyroscops\Api\Model\WorkflowJobPipelineRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,78 +54,78 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('runtimeType', $data) && $data['runtimeType'] !== null) { + if (\array_key_exists('runtimeType', $data) && null !== $data['runtimeType']) { $object->setRuntimeType($data['runtimeType']); - } elseif (\array_key_exists('runtimeType', $data) && $data['runtimeType'] === null) { + } elseif (\array_key_exists('runtimeType', $data) && null === $data['runtimeType']) { $object->setRuntimeType(null); } - if (\array_key_exists('runtime', $data) && $data['runtime'] !== null) { + if (\array_key_exists('runtime', $data) && null !== $data['runtime']) { $values = []; foreach ($data['runtime'] as $value) { $values[] = $value; } $object->setRuntime($values); - } elseif (\array_key_exists('runtime', $data) && $data['runtime'] === null) { + } elseif (\array_key_exists('runtime', $data) && null === $data['runtime']) { $object->setRuntime(null); } - if (\array_key_exists('autoload', $data) && $data['autoload'] !== null) { + if (\array_key_exists('autoload', $data) && null !== $data['autoload']) { $values_1 = []; foreach ($data['autoload'] as $value_1) { $values_1[] = $value_1; } $object->setAutoload($values_1); - } elseif (\array_key_exists('autoload', $data) && $data['autoload'] === null) { + } elseif (\array_key_exists('autoload', $data) && null === $data['autoload']) { $object->setAutoload(null); } - if (\array_key_exists('packages', $data) && $data['packages'] !== null) { + if (\array_key_exists('packages', $data) && null !== $data['packages']) { $values_2 = []; foreach ($data['packages'] as $value_2) { $values_2[] = $value_2; } $object->setPackages($values_2); - } elseif (\array_key_exists('packages', $data) && $data['packages'] === null) { + } elseif (\array_key_exists('packages', $data) && null === $data['packages']) { $object->setPackages(null); } - if (\array_key_exists('repositories', $data) && $data['repositories'] !== null) { + if (\array_key_exists('repositories', $data) && null !== $data['repositories']) { $values_3 = []; foreach ($data['repositories'] as $value_3) { $values_3[] = $value_3; } $object->setRepositories($values_3); - } elseif (\array_key_exists('repositories', $data) && $data['repositories'] === null) { + } elseif (\array_key_exists('repositories', $data) && null === $data['repositories']) { $object->setRepositories(null); } - if (\array_key_exists('auths', $data) && $data['auths'] !== null) { + if (\array_key_exists('auths', $data) && null !== $data['auths']) { $values_4 = []; foreach ($data['auths'] as $value_4) { $values_4[] = $value_4; } $object->setAuths($values_4); - } elseif (\array_key_exists('auths', $data) && $data['auths'] === null) { + } elseif (\array_key_exists('auths', $data) && null === $data['auths']) { $object->setAuths(null); } - if (\array_key_exists('steps', $data) && $data['steps'] !== null) { + if (\array_key_exists('steps', $data) && null !== $data['steps']) { $values_5 = []; foreach ($data['steps'] as $value_5) { $values_5[] = $value_5; } $object->setSteps($values_5); - } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { $object->setSteps(null); } @@ -129,6 +133,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/WorkflowJobReadNormalizer.php b/src/Normalizer/WorkflowJobReadNormalizer.php index 00961db9..9f0784ef 100644 --- a/src/Normalizer/WorkflowJobReadNormalizer.php +++ b/src/Normalizer/WorkflowJobReadNormalizer.php @@ -27,15 +27,19 @@ class WorkflowJobReadNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\WorkflowJobRead::class; + return \Gyroscops\Api\Model\WorkflowJobRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\WorkflowJobRead::class; + return \is_object($data) && \Gyroscops\Api\Model\WorkflowJobRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('workflow', $data) && $data['workflow'] !== null) { + if (\array_key_exists('workflow', $data) && null !== $data['workflow']) { $object->setWorkflow($data['workflow']); - } elseif (\array_key_exists('workflow', $data) && $data['workflow'] === null) { + } elseif (\array_key_exists('workflow', $data) && null === $data['workflow']) { $object->setWorkflow(null); } - if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { + } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { $object->setPipeline(null); } - if (\array_key_exists('action', $data) && $data['action'] !== null) { + if (\array_key_exists('action', $data) && null !== $data['action']) { $object->setAction($data['action']); - } elseif (\array_key_exists('action', $data) && $data['action'] === null) { + } elseif (\array_key_exists('action', $data) && null === $data['action']) { $object->setAction(null); } @@ -70,6 +74,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/WorkflowJsonldReadNormalizer.php b/src/Normalizer/WorkflowJsonldReadNormalizer.php index c07427f1..0cbfee16 100644 --- a/src/Normalizer/WorkflowJsonldReadNormalizer.php +++ b/src/Normalizer/WorkflowJsonldReadNormalizer.php @@ -27,15 +27,19 @@ class WorkflowJsonldReadNormalizer implements DenormalizerInterface, NormalizerI public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\WorkflowJsonldRead::class; + return \Gyroscops\Api\Model\WorkflowJsonldRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\WorkflowJsonldRead::class; + return \is_object($data) && \Gyroscops\Api\Model\WorkflowJsonldRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,43 +54,43 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('jobs', $data) && $data['jobs'] !== null) { + if (\array_key_exists('jobs', $data) && null !== $data['jobs']) { $values = []; foreach ($data['jobs'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\WorkflowJobJsonldRead::class, 'json', $context); } $object->setJobs($values); - } elseif (\array_key_exists('jobs', $data) && $data['jobs'] === null) { + } elseif (\array_key_exists('jobs', $data) && null === $data['jobs']) { $object->setJobs(null); } @@ -94,6 +98,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/WorkflowReadNormalizer.php b/src/Normalizer/WorkflowReadNormalizer.php index 56ee81ab..e8077e87 100644 --- a/src/Normalizer/WorkflowReadNormalizer.php +++ b/src/Normalizer/WorkflowReadNormalizer.php @@ -27,15 +27,19 @@ class WorkflowReadNormalizer implements DenormalizerInterface, NormalizerInterfa public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\WorkflowRead::class; + return \Gyroscops\Api\Model\WorkflowRead::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\WorkflowRead::class; + return \is_object($data) && \Gyroscops\Api\Model\WorkflowRead::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,28 +54,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('code', $data) && $data['code'] !== null) { + if (\array_key_exists('code', $data) && null !== $data['code']) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + } elseif (\array_key_exists('code', $data) && null === $data['code']) { $object->setCode(null); } - if (\array_key_exists('label', $data) && $data['label'] !== null) { + if (\array_key_exists('label', $data) && null !== $data['label']) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + } elseif (\array_key_exists('label', $data) && null === $data['label']) { $object->setLabel(null); } - if (\array_key_exists('jobs', $data) && $data['jobs'] !== null) { + if (\array_key_exists('jobs', $data) && null !== $data['jobs']) { $values = []; foreach ($data['jobs'] as $value) { $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\WorkflowJobRead::class, 'json', $context); } $object->setJobs($values); - } elseif (\array_key_exists('jobs', $data) && $data['jobs'] === null) { + } elseif (\array_key_exists('jobs', $data) && null === $data['jobs']) { $object->setJobs(null); } @@ -79,6 +83,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/WorkspaceIdJsonldNormalizer.php b/src/Normalizer/WorkspaceIdJsonldNormalizer.php index 1e295ed9..4a716693 100644 --- a/src/Normalizer/WorkspaceIdJsonldNormalizer.php +++ b/src/Normalizer/WorkspaceIdJsonldNormalizer.php @@ -27,15 +27,19 @@ class WorkspaceIdJsonldNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\WorkspaceIdJsonld::class; + return \Gyroscops\Api\Model\WorkspaceIdJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\WorkspaceIdJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\WorkspaceIdJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,19 +54,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } @@ -70,12 +74,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $data = []; - - return $data; + return []; } } diff --git a/src/Normalizer/WorkspaceJsonldNormalizer.php b/src/Normalizer/WorkspaceJsonldNormalizer.php index d789b9c2..c129998d 100644 --- a/src/Normalizer/WorkspaceJsonldNormalizer.php +++ b/src/Normalizer/WorkspaceJsonldNormalizer.php @@ -27,15 +27,19 @@ class WorkspaceJsonldNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\WorkspaceJsonld::class; + return \Gyroscops\Api\Model\WorkspaceJsonld::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\WorkspaceJsonld::class; + return \is_object($data) && \Gyroscops\Api\Model\WorkspaceJsonld::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,57 +54,57 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + if (\array_key_exists('@context', $data) && null !== $data['@context']) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + if (\array_key_exists('@id', $data) && null !== $data['@id']) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { $object->setId(null); } - if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + if (\array_key_exists('@type', $data) && null !== $data['@type']) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { $object->setType(null); } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId2(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('slug', $data) && $data['slug'] !== null) { + if (\array_key_exists('slug', $data) && null !== $data['slug']) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { + } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { $object->setSlug(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('authorizations', $data) && $data['authorizations'] !== null) { + if (\array_key_exists('authorizations', $data) && null !== $data['authorizations']) { $values = []; foreach ($data['authorizations'] as $value) { $values[] = $value; } $object->setAuthorizations($values); - } elseif (\array_key_exists('authorizations', $data) && $data['authorizations'] === null) { + } elseif (\array_key_exists('authorizations', $data) && null === $data['authorizations']) { $object->setAuthorizations(null); } - if (\array_key_exists('users', $data) && $data['users'] !== null) { + if (\array_key_exists('users', $data) && null !== $data['users']) { $values_1 = []; foreach ($data['users'] as $value_1) { $values_1[] = $value_1; } $object->setUsers($values_1); - } elseif (\array_key_exists('users', $data) && $data['users'] === null) { + } elseif (\array_key_exists('users', $data) && null === $data['users']) { $object->setUsers(null); } @@ -108,6 +112,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Normalizer/WorkspaceNormalizer.php b/src/Normalizer/WorkspaceNormalizer.php index 95a7b543..bb902d53 100644 --- a/src/Normalizer/WorkspaceNormalizer.php +++ b/src/Normalizer/WorkspaceNormalizer.php @@ -27,15 +27,19 @@ class WorkspaceNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization($data, $type, $format = null): bool { - return $type === \Gyroscops\Api\Model\Workspace::class; + return \Gyroscops\Api\Model\Workspace::class === $type; } public function supportsNormalization($data, $format = null): bool { - return is_object($data) && $data::class === \Gyroscops\Api\Model\Workspace::class; + return \is_object($data) && \Gyroscops\Api\Model\Workspace::class === $data::class; } /** + * @param mixed $data + * @param mixed $class + * @param mixed|null $format + * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -50,42 +54,42 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { + if (\array_key_exists('id', $data) && null !== $data['id']) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + } elseif (\array_key_exists('id', $data) && null === $data['id']) { $object->setId(null); } - if (\array_key_exists('name', $data) && $data['name'] !== null) { + if (\array_key_exists('name', $data) && null !== $data['name']) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + } elseif (\array_key_exists('name', $data) && null === $data['name']) { $object->setName(null); } - if (\array_key_exists('slug', $data) && $data['slug'] !== null) { + if (\array_key_exists('slug', $data) && null !== $data['slug']) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { + } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { $object->setSlug(null); } - if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + if (\array_key_exists('organization', $data) && null !== $data['organization']) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { $object->setOrganization(null); } - if (\array_key_exists('authorizations', $data) && $data['authorizations'] !== null) { + if (\array_key_exists('authorizations', $data) && null !== $data['authorizations']) { $values = []; foreach ($data['authorizations'] as $value) { $values[] = $value; } $object->setAuthorizations($values); - } elseif (\array_key_exists('authorizations', $data) && $data['authorizations'] === null) { + } elseif (\array_key_exists('authorizations', $data) && null === $data['authorizations']) { $object->setAuthorizations(null); } - if (\array_key_exists('users', $data) && $data['users'] !== null) { + if (\array_key_exists('users', $data) && null !== $data['users']) { $values_1 = []; foreach ($data['users'] as $value_1) { $values_1[] = $value_1; } $object->setUsers($values_1); - } elseif (\array_key_exists('users', $data) && $data['users'] === null) { + } elseif (\array_key_exists('users', $data) && null === $data['users']) { $object->setUsers(null); } @@ -93,6 +97,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } /** + * @param mixed $object + * @param mixed|null $format + * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) diff --git a/src/Runtime/Client/BaseEndpoint.php b/src/Runtime/Client/BaseEndpoint.php index 9e7b67b0..5a07ee80 100644 --- a/src/Runtime/Client/BaseEndpoint.php +++ b/src/Runtime/Client/BaseEndpoint.php @@ -38,9 +38,9 @@ protected function getExtraHeaders(): array public function getQueryString(): string { $optionsResolved = $this->getQueryOptionsResolver()->resolve($this->queryParameters); - $optionsResolved = array_map(fn($value) => $value ?? '', $optionsResolved); + $optionsResolved = array_map(fn ($value) => $value ?? '', $optionsResolved); - return http_build_query($optionsResolved, '', '&', PHP_QUERY_RFC3986); + return http_build_query($optionsResolved, '', '&', \PHP_QUERY_RFC3986); } public function getHeaders(array $baseHeaders = []): array @@ -73,7 +73,7 @@ protected function getMultipartBody($streamFactory = null): array $bodyBuilder->addResource($key, $value); } - return [['Content-Type' => ['multipart/form-data; boundary="' . ($bodyBuilder->getBoundary() . '"')]], $bodyBuilder->build()]; + return [['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'"')]], $bodyBuilder->build()]; } protected function getFormOptionsResolver(): OptionsResolver diff --git a/src/Runtime/Client/Client.php b/src/Runtime/Client/Client.php index c0efdf8e..41481d5e 100644 --- a/src/Runtime/Client/Client.php +++ b/src/Runtime/Client/Client.php @@ -68,14 +68,14 @@ private function processEndpoint(Endpoint $endpoint): ResponseInterface [$bodyHeaders, $body] = $endpoint->getBody($this->serializer, $this->streamFactory); $queryString = $endpoint->getQueryString(); $uriGlue = !str_contains($endpoint->getUri(), '?') ? '?' : '&'; - $uri = $queryString !== '' ? $endpoint->getUri() . $uriGlue . $queryString : $endpoint->getUri(); + $uri = '' !== $queryString ? $endpoint->getUri().$uriGlue.$queryString : $endpoint->getUri(); $request = $this->requestFactory->createRequest($endpoint->getMethod(), $uri); if ($body) { if ($body instanceof StreamInterface) { $request = $request->withBody($body); - } elseif (is_resource($body)) { + } elseif (\is_resource($body)) { $request = $request->withBody($this->streamFactory->createStreamFromResource($body)); - } elseif (strlen((string) $body) <= 4000 && @file_exists($body)) { + } elseif (\strlen((string) $body) <= 4000 && @file_exists($body)) { // more than 4096 chars will trigger an error $request = $request->withBody($this->streamFactory->createStreamFromFile($body)); } else { @@ -85,7 +85,7 @@ private function processEndpoint(Endpoint $endpoint): ResponseInterface foreach ($endpoint->getHeaders($bodyHeaders) as $name => $value) { $request = $request->withHeader($name, $value); } - if (count($endpoint->getAuthenticationScopes()) > 0) { + if (\count($endpoint->getAuthenticationScopes()) > 0) { $scopes = []; foreach ($endpoint->getAuthenticationScopes() as $scope) { $scopes[] = $scope; diff --git a/src/Runtime/Client/Endpoint.php b/src/Runtime/Client/Endpoint.php index b08c50a9..291e466a 100644 --- a/src/Runtime/Client/Endpoint.php +++ b/src/Runtime/Client/Endpoint.php @@ -20,6 +20,8 @@ interface Endpoint * * Return value consist of an array where the first item will be a list of headers to add on the request (like the Content Type) * And the second value consist of the body object. + * + * @param mixed|null $streamFactory */ public function getBody(SerializerInterface $serializer, $streamFactory = null): array; diff --git a/src/Runtime/Normalizer/CheckArray.php b/src/Runtime/Normalizer/CheckArray.php index 33f05878..00ade8cb 100644 --- a/src/Runtime/Normalizer/CheckArray.php +++ b/src/Runtime/Normalizer/CheckArray.php @@ -14,6 +14,6 @@ trait CheckArray { public function isOnlyNumericKeys(array $array): bool { - return count(array_filter($array, fn($key) => is_numeric($key), ARRAY_FILTER_USE_KEY)) === count($array); + return \count(array_filter($array, fn ($key) => is_numeric($key), \ARRAY_FILTER_USE_KEY)) === \count($array); } }