diff --git a/.gitignore b/.gitignore index fa0757b..668a124 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ /vendor/ .idea .php-cs-fixer.cache -composer-lock.json +composer.lock diff --git a/jane-initial-config.php b/.jane-openapi similarity index 86% rename from jane-initial-config.php rename to .jane-openapi index bc937a8..34cd014 100644 --- a/jane-initial-config.php +++ b/.jane-openapi @@ -6,7 +6,7 @@ return [ 'openapi-file' => 'https://api.checkbox.in.ua/api/openapi.json', 'namespace' => 'Vendor\Library\Generated\CheckboxUA', - 'directory' => __DIR__.'/generated/checkbox_ua', + 'directory' => __DIR__.'/src', 'throw-unexpected-status-code' => true, 'date-format' => 'Y-m-d\\TH:i:s.uP', 'clean-generated' => true, diff --git a/composer.json b/composer.json index ddf1e36..20d7012 100644 --- a/composer.json +++ b/composer.json @@ -10,11 +10,11 @@ }, "require": { "php": "^8.2", - "jane-php/open-api-runtime": "^7.5", + "jane-php/open-api-runtime": "^7.6", "guzzlehttp/guzzle": "^7.8" }, "require-dev": { - "jane-php/open-api-3": "^7.5", + "jane-php/open-api-3": "^7.6", "phpstan/phpstan": "^1.10", "friendsofphp/php-cs-fixer": "*" }, diff --git a/src/Normalizer/AddressModelNormalizer.php b/src/Normalizer/AddressModelNormalizer.php index 76b33fb..fb82d25 100644 --- a/src/Normalizer/AddressModelNormalizer.php +++ b/src/Normalizer/AddressModelNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\AddressModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -82,7 +82,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['address_type'] = $object->getAddressType(); diff --git a/src/Normalizer/BalanceModelNormalizer.php b/src/Normalizer/BalanceModelNormalizer.php index 9a096da..cb1a7f6 100644 --- a/src/Normalizer/BalanceModelNormalizer.php +++ b/src/Normalizer/BalanceModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\BalanceModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -99,7 +99,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['initial'] = $object->getInitial(); diff --git a/src/Normalizer/BodyImportGoodsFromFileApiV1GoodsImportUploadPostNormalizer.php b/src/Normalizer/BodyImportGoodsFromFileApiV1GoodsImportUploadPostNormalizer.php index 0ddb651..041a765 100644 --- a/src/Normalizer/BodyImportGoodsFromFileApiV1GoodsImportUploadPostNormalizer.php +++ b/src/Normalizer/BodyImportGoodsFromFileApiV1GoodsImportUploadPostNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\BodyImportGoodsFromFileApiV1GoodsImportUploadPost; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -58,7 +58,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['file'] = $object->getFile(); diff --git a/src/Normalizer/BonusPayloadNormalizer.php b/src/Normalizer/BonusPayloadNormalizer.php index 7456d4b..8bfe582 100644 --- a/src/Normalizer/BonusPayloadNormalizer.php +++ b/src/Normalizer/BonusPayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\BonusPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -66,7 +66,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['bonus_card'] = $object->getBonusCard(); diff --git a/src/Normalizer/BranchModelNormalizer.php b/src/Normalizer/BranchModelNormalizer.php index 95b2d8e..8bc8666 100644 --- a/src/Normalizer/BranchModelNormalizer.php +++ b/src/Normalizer/BranchModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\BranchModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -79,7 +79,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/CalculatedDiscountPayloadNormalizer.php b/src/Normalizer/CalculatedDiscountPayloadNormalizer.php index 58a502b..6da5b3d 100644 --- a/src/Normalizer/CalculatedDiscountPayloadNormalizer.php +++ b/src/Normalizer/CalculatedDiscountPayloadNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CalculatedDiscountPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -93,7 +93,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['type'] = $object->getType(); diff --git a/src/Normalizer/CalculatedGoodDetailsPayloadNormalizer.php b/src/Normalizer/CalculatedGoodDetailsPayloadNormalizer.php index 448c087..096a405 100644 --- a/src/Normalizer/CalculatedGoodDetailsPayloadNormalizer.php +++ b/src/Normalizer/CalculatedGoodDetailsPayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CalculatedGoodDetailsPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -94,7 +94,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['code'] = $object->getCode(); diff --git a/src/Normalizer/CalculatedGoodItemPayloadNormalizer.php b/src/Normalizer/CalculatedGoodItemPayloadNormalizer.php index 752fdb6..3178845 100644 --- a/src/Normalizer/CalculatedGoodItemPayloadNormalizer.php +++ b/src/Normalizer/CalculatedGoodItemPayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CalculatedGoodItemPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -94,7 +94,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['good'] = $this->normalizer->normalize($object->getGood(), 'json', $context); diff --git a/src/Normalizer/CalculatedGoodTaxPayloadNormalizer.php b/src/Normalizer/CalculatedGoodTaxPayloadNormalizer.php index 12ed8e0..56bdb7e 100644 --- a/src/Normalizer/CalculatedGoodTaxPayloadNormalizer.php +++ b/src/Normalizer/CalculatedGoodTaxPayloadNormalizer.php @@ -32,7 +32,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CalculatedGoodTaxPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -104,7 +104,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['code'] = $object->getCode(); diff --git a/src/Normalizer/CalculatedReceiptSellPayloadNormalizer.php b/src/Normalizer/CalculatedReceiptSellPayloadNormalizer.php index fd3186d..c498256 100644 --- a/src/Normalizer/CalculatedReceiptSellPayloadNormalizer.php +++ b/src/Normalizer/CalculatedReceiptSellPayloadNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CalculatedReceiptSellPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -187,7 +187,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { diff --git a/src/Normalizer/CalculatedReceiptTaxPayloadNormalizer.php b/src/Normalizer/CalculatedReceiptTaxPayloadNormalizer.php index 538040d..961c6e6 100644 --- a/src/Normalizer/CalculatedReceiptTaxPayloadNormalizer.php +++ b/src/Normalizer/CalculatedReceiptTaxPayloadNormalizer.php @@ -32,7 +32,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CalculatedReceiptTaxPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -126,7 +126,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { diff --git a/src/Normalizer/CardPaymentPayloadNormalizer.php b/src/Normalizer/CardPaymentPayloadNormalizer.php index d1f58ee..c6db35e 100644 --- a/src/Normalizer/CardPaymentPayloadNormalizer.php +++ b/src/Normalizer/CardPaymentPayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CardPaymentPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -130,7 +130,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('type') && null !== $object->getType()) { diff --git a/src/Normalizer/CashPaymentPayloadNormalizer.php b/src/Normalizer/CashPaymentPayloadNormalizer.php index cbf86fe..9827a42 100644 --- a/src/Normalizer/CashPaymentPayloadNormalizer.php +++ b/src/Normalizer/CashPaymentPayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashPaymentPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -70,7 +70,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('type') && null !== $object->getType()) { diff --git a/src/Normalizer/CashRegisterDeviceModelNormalizer.php b/src/Normalizer/CashRegisterDeviceModelNormalizer.php index f0abdd5..a69cab9 100644 --- a/src/Normalizer/CashRegisterDeviceModelNormalizer.php +++ b/src/Normalizer/CashRegisterDeviceModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashRegisterDeviceModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -119,7 +119,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/CashRegisterModelNormalizer.php b/src/Normalizer/CashRegisterModelNormalizer.php index ed4c510..d3cc510 100644 --- a/src/Normalizer/CashRegisterModelNormalizer.php +++ b/src/Normalizer/CashRegisterModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashRegisterModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -79,7 +79,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/CashRegisterOfflineTimeNormalizer.php b/src/Normalizer/CashRegisterOfflineTimeNormalizer.php index 26fe0ec..744d7bb 100644 --- a/src/Normalizer/CashRegisterOfflineTimeNormalizer.php +++ b/src/Normalizer/CashRegisterOfflineTimeNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashRegisterOfflineTime; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -66,7 +66,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('status') && null !== $object->getStatus()) { diff --git a/src/Normalizer/CashRegisterOfflineTimeSessionNormalizer.php b/src/Normalizer/CashRegisterOfflineTimeSessionNormalizer.php index 67a6bc8..9b4a7c5 100644 --- a/src/Normalizer/CashRegisterOfflineTimeSessionNormalizer.php +++ b/src/Normalizer/CashRegisterOfflineTimeSessionNormalizer.php @@ -32,7 +32,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashRegisterOfflineTimeSession; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -71,7 +71,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('start') && null !== $object->getStart()) { diff --git a/src/Normalizer/CashRegisterOfflineTimeStatusNormalizer.php b/src/Normalizer/CashRegisterOfflineTimeStatusNormalizer.php index 41bd0da..e1f96cb 100644 --- a/src/Normalizer/CashRegisterOfflineTimeStatusNormalizer.php +++ b/src/Normalizer/CashRegisterOfflineTimeStatusNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashRegisterOfflineTimeStatus; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -69,7 +69,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('current') && null !== $object->getCurrent()) { diff --git a/src/Normalizer/CashWithdrawalReceiptPayloadNormalizer.php b/src/Normalizer/CashWithdrawalReceiptPayloadNormalizer.php index 3751cd1..82b4e5f 100644 --- a/src/Normalizer/CashWithdrawalReceiptPayloadNormalizer.php +++ b/src/Normalizer/CashWithdrawalReceiptPayloadNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashWithdrawalReceiptPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -107,7 +107,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { diff --git a/src/Normalizer/CashierAccessTokenResponseModelNormalizer.php b/src/Normalizer/CashierAccessTokenResponseModelNormalizer.php index 7e3bd98..f075f3d 100644 --- a/src/Normalizer/CashierAccessTokenResponseModelNormalizer.php +++ b/src/Normalizer/CashierAccessTokenResponseModelNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashierAccessTokenResponseModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -66,7 +66,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('type') && null !== $object->getType()) { diff --git a/src/Normalizer/CashierModelNormalizer.php b/src/Normalizer/CashierModelNormalizer.php index 313e0ba..fd125c6 100644 --- a/src/Normalizer/CashierModelNormalizer.php +++ b/src/Normalizer/CashierModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashierModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -95,7 +95,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/CashierPermissionsModelNormalizer.php b/src/Normalizer/CashierPermissionsModelNormalizer.php index e92931f..afe9937 100644 --- a/src/Normalizer/CashierPermissionsModelNormalizer.php +++ b/src/Normalizer/CashierPermissionsModelNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashierPermissionsModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -126,7 +126,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('orders') && null !== $object->getOrders()) { diff --git a/src/Normalizer/CashierSignInNormalizer.php b/src/Normalizer/CashierSignInNormalizer.php index f734356..89878e3 100644 --- a/src/Normalizer/CashierSignInNormalizer.php +++ b/src/Normalizer/CashierSignInNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashierSignIn; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -62,7 +62,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['login'] = $object->getLogin(); diff --git a/src/Normalizer/CashierSignInPinCodeNormalizer.php b/src/Normalizer/CashierSignInPinCodeNormalizer.php index 15483bb..c903939 100644 --- a/src/Normalizer/CashierSignInPinCodeNormalizer.php +++ b/src/Normalizer/CashierSignInPinCodeNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashierSignInPinCode; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -58,7 +58,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['pin_code'] = $object->getPinCode(); diff --git a/src/Normalizer/CashierSignatureStatusNormalizer.php b/src/Normalizer/CashierSignatureStatusNormalizer.php index 8aa9d7c..d2977c4 100644 --- a/src/Normalizer/CashierSignatureStatusNormalizer.php +++ b/src/Normalizer/CashierSignatureStatusNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashierSignatureStatus; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -66,7 +66,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['online'] = $object->getOnline(); diff --git a/src/Normalizer/CheckStatusResponseSchemaNormalizer.php b/src/Normalizer/CheckStatusResponseSchemaNormalizer.php index a9fa9f6..0481049 100644 --- a/src/Normalizer/CheckStatusResponseSchemaNormalizer.php +++ b/src/Normalizer/CheckStatusResponseSchemaNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CheckStatusResponseSchema; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -82,7 +82,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['task_id'] = $object->getTaskId(); diff --git a/src/Normalizer/CloseShiftPayloadNormalizer.php b/src/Normalizer/CloseShiftPayloadNormalizer.php index f431072..66595b5 100644 --- a/src/Normalizer/CloseShiftPayloadNormalizer.php +++ b/src/Normalizer/CloseShiftPayloadNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CloseShiftPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -71,7 +71,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('skipClientNameCheck') && null !== $object->getSkipClientNameCheck()) { diff --git a/src/Normalizer/CloseShiftPayloadReportNormalizer.php b/src/Normalizer/CloseShiftPayloadReportNormalizer.php index e34b105..11150cb 100644 --- a/src/Normalizer/CloseShiftPayloadReportNormalizer.php +++ b/src/Normalizer/CloseShiftPayloadReportNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CloseShiftPayloadReport; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -131,7 +131,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { diff --git a/src/Normalizer/CreateOrderModelNormalizer.php b/src/Normalizer/CreateOrderModelNormalizer.php index 68c9099..c8af06a 100644 --- a/src/Normalizer/CreateOrderModelNormalizer.php +++ b/src/Normalizer/CreateOrderModelNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CreateOrderModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -90,7 +90,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { diff --git a/src/Normalizer/CreateShiftPayloadNormalizer.php b/src/Normalizer/CreateShiftPayloadNormalizer.php index d401297..e4ceeda 100644 --- a/src/Normalizer/CreateShiftPayloadNormalizer.php +++ b/src/Normalizer/CreateShiftPayloadNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CreateShiftPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -67,7 +67,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { diff --git a/src/Normalizer/CurrencyExchangePayloadNormalizer.php b/src/Normalizer/CurrencyExchangePayloadNormalizer.php index 518c173..8a95943 100644 --- a/src/Normalizer/CurrencyExchangePayloadNormalizer.php +++ b/src/Normalizer/CurrencyExchangePayloadNormalizer.php @@ -32,7 +32,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CurrencyExchangePayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -107,7 +107,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { diff --git a/src/Normalizer/CurrencyExchangeSchemaNormalizer.php b/src/Normalizer/CurrencyExchangeSchemaNormalizer.php index 92ba21b..bc6383a 100644 --- a/src/Normalizer/CurrencyExchangeSchemaNormalizer.php +++ b/src/Normalizer/CurrencyExchangeSchemaNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CurrencyExchangeSchema; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -89,7 +89,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('sell') && null !== $object->getSell()) { diff --git a/src/Normalizer/CurrencyPayloadNormalizer.php b/src/Normalizer/CurrencyPayloadNormalizer.php index 00ec58b..9783233 100644 --- a/src/Normalizer/CurrencyPayloadNormalizer.php +++ b/src/Normalizer/CurrencyPayloadNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CurrencyPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -66,7 +66,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['currency'] = $object->getCurrency(); diff --git a/src/Normalizer/CurrencyRateModelNormalizer.php b/src/Normalizer/CurrencyRateModelNormalizer.php index 45b233d..44a5852 100644 --- a/src/Normalizer/CurrencyRateModelNormalizer.php +++ b/src/Normalizer/CurrencyRateModelNormalizer.php @@ -32,7 +32,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CurrencyRateModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -109,7 +109,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['code'] = $object->getCode(); diff --git a/src/Normalizer/CurrencyRatePayloadNormalizer.php b/src/Normalizer/CurrencyRatePayloadNormalizer.php index 0d0895d..b968d73 100644 --- a/src/Normalizer/CurrencyRatePayloadNormalizer.php +++ b/src/Normalizer/CurrencyRatePayloadNormalizer.php @@ -32,7 +32,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CurrencyRatePayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -93,7 +93,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['code'] = $object->getCode(); diff --git a/src/Normalizer/CurrencySchemaNormalizer.php b/src/Normalizer/CurrencySchemaNormalizer.php index 6b5f2d7..c62b093 100644 --- a/src/Normalizer/CurrencySchemaNormalizer.php +++ b/src/Normalizer/CurrencySchemaNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CurrencySchema; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -70,7 +70,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['currency'] = $object->getCurrency(); diff --git a/src/Normalizer/DailyCashFlowPayloadNormalizer.php b/src/Normalizer/DailyCashFlowPayloadNormalizer.php index 20c22bf..100b2a2 100644 --- a/src/Normalizer/DailyCashFlowPayloadNormalizer.php +++ b/src/Normalizer/DailyCashFlowPayloadNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\DailyCashFlowPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -75,7 +75,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['from_date'] = $object->getFromDate()->format('Y-m-d'); diff --git a/src/Normalizer/DeleteIntegrationSchemaNormalizer.php b/src/Normalizer/DeleteIntegrationSchemaNormalizer.php index 84f5653..fb16c75 100644 --- a/src/Normalizer/DeleteIntegrationSchemaNormalizer.php +++ b/src/Normalizer/DeleteIntegrationSchemaNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\DeleteIntegrationSchema; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -58,7 +58,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['ok'] = $object->getOk(); diff --git a/src/Normalizer/DeleteWebhookSchemaNormalizer.php b/src/Normalizer/DeleteWebhookSchemaNormalizer.php index bb84c1e..771cea2 100644 --- a/src/Normalizer/DeleteWebhookSchemaNormalizer.php +++ b/src/Normalizer/DeleteWebhookSchemaNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\DeleteWebhookSchema; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -58,7 +58,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['ok'] = $object->getOk(); diff --git a/src/Normalizer/DeliveryPayloadNormalizer.php b/src/Normalizer/DeliveryPayloadNormalizer.php index 73d2ed4..4662285 100644 --- a/src/Normalizer/DeliveryPayloadNormalizer.php +++ b/src/Normalizer/DeliveryPayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\DeliveryPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -70,7 +70,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('email') && null !== $object->getEmail()) { diff --git a/src/Normalizer/DetailedCashRegisterModelNormalizer.php b/src/Normalizer/DetailedCashRegisterModelNormalizer.php index bdfea1a..40c7adb 100644 --- a/src/Normalizer/DetailedCashRegisterModelNormalizer.php +++ b/src/Normalizer/DetailedCashRegisterModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\DetailedCashRegisterModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -99,7 +99,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/DetailedCashierModelNormalizer.php b/src/Normalizer/DetailedCashierModelNormalizer.php index 31047f4..49f6898 100644 --- a/src/Normalizer/DetailedCashierModelNormalizer.php +++ b/src/Normalizer/DetailedCashierModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\DetailedCashierModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -99,7 +99,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/DetailedOfflineFiscalCodeModelNormalizer.php b/src/Normalizer/DetailedOfflineFiscalCodeModelNormalizer.php index 1a98907..d8ceb47 100644 --- a/src/Normalizer/DetailedOfflineFiscalCodeModelNormalizer.php +++ b/src/Normalizer/DetailedOfflineFiscalCodeModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\DetailedOfflineFiscalCodeModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -71,7 +71,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['fiscal_code'] = $object->getFiscalCode(); diff --git a/src/Normalizer/DiscountModelNormalizer.php b/src/Normalizer/DiscountModelNormalizer.php index 9f8a335..03f0609 100644 --- a/src/Normalizer/DiscountModelNormalizer.php +++ b/src/Normalizer/DiscountModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\DiscountModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -90,7 +90,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['type'] = $object->getType(); diff --git a/src/Normalizer/DiscountPayloadNormalizer.php b/src/Normalizer/DiscountPayloadNormalizer.php index 7f01c26..a9e806d 100644 --- a/src/Normalizer/DiscountPayloadNormalizer.php +++ b/src/Normalizer/DiscountPayloadNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\DiscountPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -86,7 +86,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['type'] = $object->getType(); diff --git a/src/Normalizer/DocumentsStateModelNormalizer.php b/src/Normalizer/DocumentsStateModelNormalizer.php index e031dd5..2a8fd8d 100644 --- a/src/Normalizer/DocumentsStateModelNormalizer.php +++ b/src/Normalizer/DocumentsStateModelNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\DocumentsStateModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -66,7 +66,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['last_receipt_code'] = $object->getLastReceiptCode(); diff --git a/src/Normalizer/ExtendedReceiptReportFiltersPayloadNormalizer.php b/src/Normalizer/ExtendedReceiptReportFiltersPayloadNormalizer.php index 896ff5f..9e338f4 100644 --- a/src/Normalizer/ExtendedReceiptReportFiltersPayloadNormalizer.php +++ b/src/Normalizer/ExtendedReceiptReportFiltersPayloadNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ExtendedReceiptReportFiltersPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -83,7 +83,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['from_date'] = $object->getFromDate()->format('Y-m-d\\TH:i:s.uP'); diff --git a/src/Normalizer/ExtendedReportFiltersPayloadNormalizer.php b/src/Normalizer/ExtendedReportFiltersPayloadNormalizer.php index 6ff0da6..93504e2 100644 --- a/src/Normalizer/ExtendedReportFiltersPayloadNormalizer.php +++ b/src/Normalizer/ExtendedReportFiltersPayloadNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ExtendedReportFiltersPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -83,7 +83,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['from_date'] = $object->getFromDate()->format('Y-m-d\\TH:i:s.uP'); diff --git a/src/Normalizer/ExtendedReportPayloadShortNormalizer.php b/src/Normalizer/ExtendedReportPayloadShortNormalizer.php index 79f95c2..ffa4f81 100644 --- a/src/Normalizer/ExtendedReportPayloadShortNormalizer.php +++ b/src/Normalizer/ExtendedReportPayloadShortNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ExtendedReportPayloadShort; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -75,7 +75,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['from_date'] = $object->getFromDate()->format('Y-m-d\\TH:i:s.uP'); diff --git a/src/Normalizer/ExtendedTaxModelNormalizer.php b/src/Normalizer/ExtendedTaxModelNormalizer.php index beafce8..75b7d69 100644 --- a/src/Normalizer/ExtendedTaxModelNormalizer.php +++ b/src/Normalizer/ExtendedTaxModelNormalizer.php @@ -32,7 +32,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ExtendedTaxModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -120,7 +120,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/GoOfflinePayloadNormalizer.php b/src/Normalizer/GoOfflinePayloadNormalizer.php index a592f9a..8887b12 100644 --- a/src/Normalizer/GoOfflinePayloadNormalizer.php +++ b/src/Normalizer/GoOfflinePayloadNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\GoOfflinePayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -63,7 +63,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('goOfflineDate') && null !== $object->getGoOfflineDate()) { diff --git a/src/Normalizer/GoodDetailsPayloadNormalizer.php b/src/Normalizer/GoodDetailsPayloadNormalizer.php index 022b975..4049689 100644 --- a/src/Normalizer/GoodDetailsPayloadNormalizer.php +++ b/src/Normalizer/GoodDetailsPayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\GoodDetailsPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -98,7 +98,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['code'] = $object->getCode(); diff --git a/src/Normalizer/GoodItemModelNormalizer.php b/src/Normalizer/GoodItemModelNormalizer.php index f041dc8..3b0fcb2 100644 --- a/src/Normalizer/GoodItemModelNormalizer.php +++ b/src/Normalizer/GoodItemModelNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\GoodItemModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -90,7 +90,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['good'] = $this->normalizer->normalize($object->getGood(), 'json', $context); diff --git a/src/Normalizer/GoodItemPayloadGoodNormalizer.php b/src/Normalizer/GoodItemPayloadGoodNormalizer.php index d41c7b0..0e06327 100644 --- a/src/Normalizer/GoodItemPayloadGoodNormalizer.php +++ b/src/Normalizer/GoodItemPayloadGoodNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\GoodItemPayloadGood; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -98,7 +98,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['code'] = $object->getCode(); diff --git a/src/Normalizer/GoodItemPayloadNormalizer.php b/src/Normalizer/GoodItemPayloadNormalizer.php index 2f790f1..6cb49aa 100644 --- a/src/Normalizer/GoodItemPayloadNormalizer.php +++ b/src/Normalizer/GoodItemPayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\GoodItemPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -86,7 +86,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['good'] = $this->normalizer->normalize($object->getGood(), 'json', $context); diff --git a/src/Normalizer/GoodModelBaseNormalizer.php b/src/Normalizer/GoodModelBaseNormalizer.php index 5585b7c..f10a0f2 100644 --- a/src/Normalizer/GoodModelBaseNormalizer.php +++ b/src/Normalizer/GoodModelBaseNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\GoodModelBase; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -107,7 +107,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/GoodTaxNormalizer.php b/src/Normalizer/GoodTaxNormalizer.php index b258e02..07096b8 100644 --- a/src/Normalizer/GoodTaxNormalizer.php +++ b/src/Normalizer/GoodTaxNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\GoodTax; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -107,7 +107,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/HTTPErrorNormalizer.php b/src/Normalizer/HTTPErrorNormalizer.php index 6f95291..641ed01 100644 --- a/src/Normalizer/HTTPErrorNormalizer.php +++ b/src/Normalizer/HTTPErrorNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\HTTPError; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -58,7 +58,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['message'] = $object->getMessage(); diff --git a/src/Normalizer/HTTPValidationErrorNormalizer.php b/src/Normalizer/HTTPValidationErrorNormalizer.php index b70b092..cff731c 100644 --- a/src/Normalizer/HTTPValidationErrorNormalizer.php +++ b/src/Normalizer/HTTPValidationErrorNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\HTTPValidationError; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -66,7 +66,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('detail') && null !== $object->getDetail()) { diff --git a/src/Normalizer/IntegrationEditOrderReceiptSchemaNormalizer.php b/src/Normalizer/IntegrationEditOrderReceiptSchemaNormalizer.php index ba36b88..0573d4c 100644 --- a/src/Normalizer/IntegrationEditOrderReceiptSchemaNormalizer.php +++ b/src/Normalizer/IntegrationEditOrderReceiptSchemaNormalizer.php @@ -29,7 +29,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\IntegrationEditOrderReceiptSchema; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -137,7 +137,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('cashierName') && null !== $object->getCashierName()) { diff --git a/src/Normalizer/IntegrationInfoResponseSchemaNormalizer.php b/src/Normalizer/IntegrationInfoResponseSchemaNormalizer.php index 83d5a19..33e5c24 100644 --- a/src/Normalizer/IntegrationInfoResponseSchemaNormalizer.php +++ b/src/Normalizer/IntegrationInfoResponseSchemaNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\IntegrationInfoResponseSchema; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -79,7 +79,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['url'] = $object->getUrl(); diff --git a/src/Normalizer/IntegrationInfoSchemaNormalizer.php b/src/Normalizer/IntegrationInfoSchemaNormalizer.php index 211da3b..2679f38 100644 --- a/src/Normalizer/IntegrationInfoSchemaNormalizer.php +++ b/src/Normalizer/IntegrationInfoSchemaNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\IntegrationInfoSchema; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -75,7 +75,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['url'] = $object->getUrl(); diff --git a/src/Normalizer/JaneObjectNormalizer.php b/src/Normalizer/JaneObjectNormalizer.php index d6592d4..79431f2 100644 --- a/src/Normalizer/JaneObjectNormalizer.php +++ b/src/Normalizer/JaneObjectNormalizer.php @@ -34,7 +34,7 @@ public function supportsNormalization($data, $format = null, array $context = [] /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $normalizerClass = $this->normalizers[get_class($object)]; $normalizer = $this->getNormalizer($normalizerClass); @@ -42,12 +42,12 @@ public function normalize($object, $format = null, array $context = []) return $normalizer->normalize($object, $format, $context); } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { - $denormalizerClass = $this->normalizers[$class]; + $denormalizerClass = $this->normalizers[$type]; $denormalizer = $this->getNormalizer($denormalizerClass); - return $denormalizer->denormalize($data, $class, $format, $context); + return $denormalizer->denormalize($data, $type, $format, $context); } private function getNormalizer(string $normalizerClass) diff --git a/src/Normalizer/NotificationPayloadNormalizer.php b/src/Normalizer/NotificationPayloadNormalizer.php index d783f03..4dde95c 100644 --- a/src/Normalizer/NotificationPayloadNormalizer.php +++ b/src/Normalizer/NotificationPayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\NotificationPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -58,7 +58,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['ok'] = $object->getOk(); diff --git a/src/Normalizer/ObsoleteCardPaymentPayloadNormalizer.php b/src/Normalizer/ObsoleteCardPaymentPayloadNormalizer.php index ef4c22b..a37b45f 100644 --- a/src/Normalizer/ObsoleteCardPaymentPayloadNormalizer.php +++ b/src/Normalizer/ObsoleteCardPaymentPayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ObsoleteCardPaymentPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -130,7 +130,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('type') && null !== $object->getType()) { diff --git a/src/Normalizer/OfflineCodesCountSchemaNormalizer.php b/src/Normalizer/OfflineCodesCountSchemaNormalizer.php index 5a64c0a..ef30093 100644 --- a/src/Normalizer/OfflineCodesCountSchemaNormalizer.php +++ b/src/Normalizer/OfflineCodesCountSchemaNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OfflineCodesCountSchema; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -70,7 +70,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('available') && null !== $object->getAvailable()) { diff --git a/src/Normalizer/OfflineReceiptSellPayloadNormalizer.php b/src/Normalizer/OfflineReceiptSellPayloadNormalizer.php index 329bc91..cf3c861 100644 --- a/src/Normalizer/OfflineReceiptSellPayloadNormalizer.php +++ b/src/Normalizer/OfflineReceiptSellPayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OfflineReceiptSellPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -170,7 +170,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { diff --git a/src/Normalizer/OperationBaseResponseSchemaNormalizer.php b/src/Normalizer/OperationBaseResponseSchemaNormalizer.php index 032e058..7216671 100644 --- a/src/Normalizer/OperationBaseResponseSchemaNormalizer.php +++ b/src/Normalizer/OperationBaseResponseSchemaNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OperationBaseResponseSchema; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -62,7 +62,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['task_id'] = $object->getTaskId(); diff --git a/src/Normalizer/OperationErrorModelNormalizer.php b/src/Normalizer/OperationErrorModelNormalizer.php index bb91e59..f8af1dd 100644 --- a/src/Normalizer/OperationErrorModelNormalizer.php +++ b/src/Normalizer/OperationErrorModelNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OperationErrorModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -62,7 +62,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['error'] = $object->getError(); diff --git a/src/Normalizer/OrderDeliveryDetailsModelNormalizer.php b/src/Normalizer/OrderDeliveryDetailsModelNormalizer.php index 70d9a80..ea6107f 100644 --- a/src/Normalizer/OrderDeliveryDetailsModelNormalizer.php +++ b/src/Normalizer/OrderDeliveryDetailsModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OrderDeliveryDetailsModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -87,7 +87,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['address'] = $this->normalizer->normalize($object->getAddress(), 'json', $context); diff --git a/src/Normalizer/OrderGoodDetailsModelNormalizer.php b/src/Normalizer/OrderGoodDetailsModelNormalizer.php index 88b4fd2..3034d69 100644 --- a/src/Normalizer/OrderGoodDetailsModelNormalizer.php +++ b/src/Normalizer/OrderGoodDetailsModelNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OrderGoodDetailsModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -98,7 +98,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['code'] = $object->getCode(); diff --git a/src/Normalizer/OrderGoodItemModelGoodNormalizer.php b/src/Normalizer/OrderGoodItemModelGoodNormalizer.php index 09c2f5e..80c5c84 100644 --- a/src/Normalizer/OrderGoodItemModelGoodNormalizer.php +++ b/src/Normalizer/OrderGoodItemModelGoodNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OrderGoodItemModelGood; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -98,7 +98,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['code'] = $object->getCode(); diff --git a/src/Normalizer/OrderGoodItemModelNormalizer.php b/src/Normalizer/OrderGoodItemModelNormalizer.php index 6e12293..8899995 100644 --- a/src/Normalizer/OrderGoodItemModelNormalizer.php +++ b/src/Normalizer/OrderGoodItemModelNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OrderGoodItemModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -82,7 +82,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('good') && null !== $object->getGood()) { diff --git a/src/Normalizer/OrderModelNormalizer.php b/src/Normalizer/OrderModelNormalizer.php index 29efc1a..c766ec0 100644 --- a/src/Normalizer/OrderModelNormalizer.php +++ b/src/Normalizer/OrderModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OrderModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -103,7 +103,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/OrderReceiptModelNormalizer.php b/src/Normalizer/OrderReceiptModelNormalizer.php index 990caac..952dc92 100644 --- a/src/Normalizer/OrderReceiptModelNormalizer.php +++ b/src/Normalizer/OrderReceiptModelNormalizer.php @@ -29,7 +29,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OrderReceiptModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -129,7 +129,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('cashierName') && null !== $object->getCashierName()) { diff --git a/src/Normalizer/OrderUpdateSchemaNormalizer.php b/src/Normalizer/OrderUpdateSchemaNormalizer.php index f749f7e..c0159b8 100644 --- a/src/Normalizer/OrderUpdateSchemaNormalizer.php +++ b/src/Normalizer/OrderUpdateSchemaNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OrderUpdateSchema; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -58,7 +58,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['order'] = $this->normalizer->normalize($object->getOrder(), 'json', $context); diff --git a/src/Normalizer/OrganizationBillingSchemaNormalizer.php b/src/Normalizer/OrganizationBillingSchemaNormalizer.php index 6683c37..870bcff 100644 --- a/src/Normalizer/OrganizationBillingSchemaNormalizer.php +++ b/src/Normalizer/OrganizationBillingSchemaNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OrganizationBillingSchema; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -66,7 +66,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['can_send_sms'] = $object->getCanSendSms(); diff --git a/src/Normalizer/OrganizationModelNormalizer.php b/src/Normalizer/OrganizationModelNormalizer.php index 76633e7..9d6fdb7 100644 --- a/src/Normalizer/OrganizationModelNormalizer.php +++ b/src/Normalizer/OrganizationModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OrganizationModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -103,7 +103,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/OrganizationReceiptConfigSchemaNormalizer.php b/src/Normalizer/OrganizationReceiptConfigSchemaNormalizer.php index 89de842..e1500f8 100644 --- a/src/Normalizer/OrganizationReceiptConfigSchemaNormalizer.php +++ b/src/Normalizer/OrganizationReceiptConfigSchemaNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OrganizationReceiptConfigSchema; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -98,7 +98,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('textGlobalHeader') && null !== $object->getTextGlobalHeader()) { diff --git a/src/Normalizer/PaginatedResultDetailedCashRegisterModelMetaNormalizer.php b/src/Normalizer/PaginatedResultDetailedCashRegisterModelMetaNormalizer.php index a5c64f4..ecc28a0 100644 --- a/src/Normalizer/PaginatedResultDetailedCashRegisterModelMetaNormalizer.php +++ b/src/Normalizer/PaginatedResultDetailedCashRegisterModelMetaNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultDetailedCashRegisterModelMeta; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -62,7 +62,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['limit'] = $object->getLimit(); diff --git a/src/Normalizer/PaginatedResultDetailedCashRegisterModelNormalizer.php b/src/Normalizer/PaginatedResultDetailedCashRegisterModelNormalizer.php index ff1b49d..6268bc6 100644 --- a/src/Normalizer/PaginatedResultDetailedCashRegisterModelNormalizer.php +++ b/src/Normalizer/PaginatedResultDetailedCashRegisterModelNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultDetailedCashRegisterModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -66,7 +66,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['meta'] = $this->normalizer->normalize($object->getMeta(), 'json', $context); diff --git a/src/Normalizer/PaginatedResultGoodModelMetaNormalizer.php b/src/Normalizer/PaginatedResultGoodModelMetaNormalizer.php index d261bad..31f14d9 100644 --- a/src/Normalizer/PaginatedResultGoodModelMetaNormalizer.php +++ b/src/Normalizer/PaginatedResultGoodModelMetaNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultGoodModelMeta; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -62,7 +62,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['limit'] = $object->getLimit(); diff --git a/src/Normalizer/PaginatedResultGoodModelNormalizer.php b/src/Normalizer/PaginatedResultGoodModelNormalizer.php index d1314c2..d40df21 100644 --- a/src/Normalizer/PaginatedResultGoodModelNormalizer.php +++ b/src/Normalizer/PaginatedResultGoodModelNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultGoodModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -66,7 +66,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['meta'] = $this->normalizer->normalize($object->getMeta(), 'json', $context); diff --git a/src/Normalizer/PaginatedResultOrderModelMetaNormalizer.php b/src/Normalizer/PaginatedResultOrderModelMetaNormalizer.php index 62f9c3f..92ed674 100644 --- a/src/Normalizer/PaginatedResultOrderModelMetaNormalizer.php +++ b/src/Normalizer/PaginatedResultOrderModelMetaNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultOrderModelMeta; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -62,7 +62,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['limit'] = $object->getLimit(); diff --git a/src/Normalizer/PaginatedResultOrderModelNormalizer.php b/src/Normalizer/PaginatedResultOrderModelNormalizer.php index 048f0a4..ab3b5ee 100644 --- a/src/Normalizer/PaginatedResultOrderModelNormalizer.php +++ b/src/Normalizer/PaginatedResultOrderModelNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultOrderModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -66,7 +66,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['meta'] = $this->normalizer->normalize($object->getMeta(), 'json', $context); diff --git a/src/Normalizer/PaginatedResultReceiptModelMetaNormalizer.php b/src/Normalizer/PaginatedResultReceiptModelMetaNormalizer.php index 024d6e5..e17677d 100644 --- a/src/Normalizer/PaginatedResultReceiptModelMetaNormalizer.php +++ b/src/Normalizer/PaginatedResultReceiptModelMetaNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultReceiptModelMeta; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -62,7 +62,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['limit'] = $object->getLimit(); diff --git a/src/Normalizer/PaginatedResultReceiptModelNormalizer.php b/src/Normalizer/PaginatedResultReceiptModelNormalizer.php index f733b18..46dd9ca 100644 --- a/src/Normalizer/PaginatedResultReceiptModelNormalizer.php +++ b/src/Normalizer/PaginatedResultReceiptModelNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultReceiptModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -66,7 +66,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['meta'] = $this->normalizer->normalize($object->getMeta(), 'json', $context); diff --git a/src/Normalizer/PaginatedResultReportModelMetaNormalizer.php b/src/Normalizer/PaginatedResultReportModelMetaNormalizer.php index 7aab931..27370bc 100644 --- a/src/Normalizer/PaginatedResultReportModelMetaNormalizer.php +++ b/src/Normalizer/PaginatedResultReportModelMetaNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultReportModelMeta; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -62,7 +62,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['limit'] = $object->getLimit(); diff --git a/src/Normalizer/PaginatedResultReportModelNormalizer.php b/src/Normalizer/PaginatedResultReportModelNormalizer.php index a96dbe7..8cb64e9 100644 --- a/src/Normalizer/PaginatedResultReportModelNormalizer.php +++ b/src/Normalizer/PaginatedResultReportModelNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultReportModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -66,7 +66,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['meta'] = $this->normalizer->normalize($object->getMeta(), 'json', $context); diff --git a/src/Normalizer/PaginatedResultShiftModelMetaNormalizer.php b/src/Normalizer/PaginatedResultShiftModelMetaNormalizer.php index 02e34b0..462f605 100644 --- a/src/Normalizer/PaginatedResultShiftModelMetaNormalizer.php +++ b/src/Normalizer/PaginatedResultShiftModelMetaNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultShiftModelMeta; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -62,7 +62,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['limit'] = $object->getLimit(); diff --git a/src/Normalizer/PaginatedResultShiftModelNormalizer.php b/src/Normalizer/PaginatedResultShiftModelNormalizer.php index bcc9307..f112dbf 100644 --- a/src/Normalizer/PaginatedResultShiftModelNormalizer.php +++ b/src/Normalizer/PaginatedResultShiftModelNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultShiftModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -66,7 +66,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['meta'] = $this->normalizer->normalize($object->getMeta(), 'json', $context); diff --git a/src/Normalizer/PaginatedResultShiftWithCashRegisterModelMetaNormalizer.php b/src/Normalizer/PaginatedResultShiftWithCashRegisterModelMetaNormalizer.php index f7f1aaf..71a868f 100644 --- a/src/Normalizer/PaginatedResultShiftWithCashRegisterModelMetaNormalizer.php +++ b/src/Normalizer/PaginatedResultShiftWithCashRegisterModelMetaNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultShiftWithCashRegisterModelMeta; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -62,7 +62,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['limit'] = $object->getLimit(); diff --git a/src/Normalizer/PaginatedResultShiftWithCashRegisterModelNormalizer.php b/src/Normalizer/PaginatedResultShiftWithCashRegisterModelNormalizer.php index 02c2f35..4d66483 100644 --- a/src/Normalizer/PaginatedResultShiftWithCashRegisterModelNormalizer.php +++ b/src/Normalizer/PaginatedResultShiftWithCashRegisterModelNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultShiftWithCashRegisterModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -66,7 +66,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['meta'] = $this->normalizer->normalize($object->getMeta(), 'json', $context); diff --git a/src/Normalizer/PaginatedResultShortTransactionMetaNormalizer.php b/src/Normalizer/PaginatedResultShortTransactionMetaNormalizer.php index 07ddf8d..8e0f58d 100644 --- a/src/Normalizer/PaginatedResultShortTransactionMetaNormalizer.php +++ b/src/Normalizer/PaginatedResultShortTransactionMetaNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultShortTransactionMeta; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -62,7 +62,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['limit'] = $object->getLimit(); diff --git a/src/Normalizer/PaginatedResultShortTransactionNormalizer.php b/src/Normalizer/PaginatedResultShortTransactionNormalizer.php index d5057d9..fb89051 100644 --- a/src/Normalizer/PaginatedResultShortTransactionNormalizer.php +++ b/src/Normalizer/PaginatedResultShortTransactionNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultShortTransaction; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -66,7 +66,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['meta'] = $this->normalizer->normalize($object->getMeta(), 'json', $context); diff --git a/src/Normalizer/PaginationMetaNormalizer.php b/src/Normalizer/PaginationMetaNormalizer.php index 689dddd..d2d7c33 100644 --- a/src/Normalizer/PaginationMetaNormalizer.php +++ b/src/Normalizer/PaginationMetaNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginationMeta; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -62,7 +62,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['limit'] = $object->getLimit(); diff --git a/src/Normalizer/PublicReportTaskSchemaNormalizer.php b/src/Normalizer/PublicReportTaskSchemaNormalizer.php index d96518d..000851b 100644 --- a/src/Normalizer/PublicReportTaskSchemaNormalizer.php +++ b/src/Normalizer/PublicReportTaskSchemaNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PublicReportTaskSchema; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -79,7 +79,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/ReceiptConfigPayloadNormalizer.php b/src/Normalizer/ReceiptConfigPayloadNormalizer.php index fa69bdf..88f9f9d 100644 --- a/src/Normalizer/ReceiptConfigPayloadNormalizer.php +++ b/src/Normalizer/ReceiptConfigPayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReceiptConfigPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -86,7 +86,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('htmlGlobalHeader') && null !== $object->getHtmlGlobalHeader()) { diff --git a/src/Normalizer/ReceiptDeliverySmsPayloadNormalizer.php b/src/Normalizer/ReceiptDeliverySmsPayloadNormalizer.php index 8cd438f..00d9911 100644 --- a/src/Normalizer/ReceiptDeliverySmsPayloadNormalizer.php +++ b/src/Normalizer/ReceiptDeliverySmsPayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReceiptDeliverySmsPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -58,7 +58,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['phone'] = $object->getPhone(); diff --git a/src/Normalizer/ReceiptModelNormalizer.php b/src/Normalizer/ReceiptModelNormalizer.php index 32d1c38..a55a0af 100644 --- a/src/Normalizer/ReceiptModelNormalizer.php +++ b/src/Normalizer/ReceiptModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReceiptModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -219,7 +219,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/ReceiptSellPayloadNormalizer.php b/src/Normalizer/ReceiptSellPayloadNormalizer.php index 84811d5..2ecc913 100644 --- a/src/Normalizer/ReceiptSellPayloadNormalizer.php +++ b/src/Normalizer/ReceiptSellPayloadNormalizer.php @@ -29,7 +29,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReceiptSellPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -161,7 +161,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { diff --git a/src/Normalizer/ReceiptServicePayloadNormalizer.php b/src/Normalizer/ReceiptServicePayloadNormalizer.php index bfce9cf..07b8722 100644 --- a/src/Normalizer/ReceiptServicePayloadNormalizer.php +++ b/src/Normalizer/ReceiptServicePayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReceiptServicePayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -90,7 +90,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { diff --git a/src/Normalizer/ReceiptUpdateSchemaNormalizer.php b/src/Normalizer/ReceiptUpdateSchemaNormalizer.php index 0ee31d7..c73ca9f 100644 --- a/src/Normalizer/ReceiptUpdateSchemaNormalizer.php +++ b/src/Normalizer/ReceiptUpdateSchemaNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReceiptUpdateSchema; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -58,7 +58,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['receipt'] = $this->normalizer->normalize($object->getReceipt(), 'json', $context); diff --git a/src/Normalizer/ReportModelNormalizer.php b/src/Normalizer/ReportModelNormalizer.php index 027ce4e..df357dc 100644 --- a/src/Normalizer/ReportModelNormalizer.php +++ b/src/Normalizer/ReportModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReportModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -147,7 +147,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/ReportPayloadNormalizer.php b/src/Normalizer/ReportPayloadNormalizer.php index 1c20e59..66ef8a2 100644 --- a/src/Normalizer/ReportPayloadNormalizer.php +++ b/src/Normalizer/ReportPayloadNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReportPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -131,7 +131,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { diff --git a/src/Normalizer/ReportPaymentsModelNormalizer.php b/src/Normalizer/ReportPaymentsModelNormalizer.php index 730f31e..1a8a8ad 100644 --- a/src/Normalizer/ReportPaymentsModelNormalizer.php +++ b/src/Normalizer/ReportPaymentsModelNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReportPaymentsModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -98,7 +98,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/ReportPaymentsPayloadNormalizer.php b/src/Normalizer/ReportPaymentsPayloadNormalizer.php index a00b7b0..e32e186 100644 --- a/src/Normalizer/ReportPaymentsPayloadNormalizer.php +++ b/src/Normalizer/ReportPaymentsPayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReportPaymentsPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -94,7 +94,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['type'] = $object->getType(); diff --git a/src/Normalizer/ReportTaskSchemaNormalizer.php b/src/Normalizer/ReportTaskSchemaNormalizer.php index c861426..e7225a0 100644 --- a/src/Normalizer/ReportTaskSchemaNormalizer.php +++ b/src/Normalizer/ReportTaskSchemaNormalizer.php @@ -32,7 +32,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReportTaskSchema; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -99,7 +99,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/ReportTaxesModelNormalizer.php b/src/Normalizer/ReportTaxesModelNormalizer.php index 7df5f55..463fdfb 100644 --- a/src/Normalizer/ReportTaxesModelNormalizer.php +++ b/src/Normalizer/ReportTaxesModelNormalizer.php @@ -32,7 +32,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReportTaxesModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -111,7 +111,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/ReportTaxesPayloadNormalizer.php b/src/Normalizer/ReportTaxesPayloadNormalizer.php index 07c065d..6348a9a 100644 --- a/src/Normalizer/ReportTaxesPayloadNormalizer.php +++ b/src/Normalizer/ReportTaxesPayloadNormalizer.php @@ -32,7 +32,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReportTaxesPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -126,7 +126,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['code'] = $object->getCode(); diff --git a/src/Normalizer/ReportWithExtensionPayloadShortNormalizer.php b/src/Normalizer/ReportWithExtensionPayloadShortNormalizer.php index b9193f0..550e97e 100644 --- a/src/Normalizer/ReportWithExtensionPayloadShortNormalizer.php +++ b/src/Normalizer/ReportWithExtensionPayloadShortNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReportWithExtensionPayloadShort; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -87,7 +87,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['from_date'] = $object->getFromDate()->format('Y-m-d\\TH:i:s.uP'); diff --git a/src/Normalizer/ServiceCurrencyItemPayloadNormalizer.php b/src/Normalizer/ServiceCurrencyItemPayloadNormalizer.php index c9697aa..5d1499c 100644 --- a/src/Normalizer/ServiceCurrencyItemPayloadNormalizer.php +++ b/src/Normalizer/ServiceCurrencyItemPayloadNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ServiceCurrencyItemPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -66,7 +66,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['currency'] = $object->getCurrency(); diff --git a/src/Normalizer/ServiceCurrencyPayloadNormalizer.php b/src/Normalizer/ServiceCurrencyPayloadNormalizer.php index df772a4..0d6676a 100644 --- a/src/Normalizer/ServiceCurrencyPayloadNormalizer.php +++ b/src/Normalizer/ServiceCurrencyPayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ServiceCurrencyPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -70,7 +70,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { diff --git a/src/Normalizer/ServiceReceiptUpdateSchemaNormalizer.php b/src/Normalizer/ServiceReceiptUpdateSchemaNormalizer.php index 5608587..9ea26e2 100644 --- a/src/Normalizer/ServiceReceiptUpdateSchemaNormalizer.php +++ b/src/Normalizer/ServiceReceiptUpdateSchemaNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ServiceReceiptUpdateSchema; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -58,7 +58,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['service_receipt'] = $this->normalizer->normalize($object->getServiceReceipt(), 'json', $context); diff --git a/src/Normalizer/SetIntegrationPayloadNormalizer.php b/src/Normalizer/SetIntegrationPayloadNormalizer.php index 686de6a..9e5a46f 100644 --- a/src/Normalizer/SetIntegrationPayloadNormalizer.php +++ b/src/Normalizer/SetIntegrationPayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\SetIntegrationPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -58,7 +58,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['url'] = $object->getUrl(); diff --git a/src/Normalizer/SetWebhookPayloadNormalizer.php b/src/Normalizer/SetWebhookPayloadNormalizer.php index da5451a..2feb125 100644 --- a/src/Normalizer/SetWebhookPayloadNormalizer.php +++ b/src/Normalizer/SetWebhookPayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\SetWebhookPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -58,7 +58,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['url'] = $object->getUrl(); diff --git a/src/Normalizer/SetupRatesPayloadNormalizer.php b/src/Normalizer/SetupRatesPayloadNormalizer.php index cef7c1d..7061cb9 100644 --- a/src/Normalizer/SetupRatesPayloadNormalizer.php +++ b/src/Normalizer/SetupRatesPayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\SetupRatesPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -62,7 +62,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $values = []; diff --git a/src/Normalizer/ShiftModelNormalizer.php b/src/Normalizer/ShiftModelNormalizer.php index a1ece0c..02bc48e 100644 --- a/src/Normalizer/ShiftModelNormalizer.php +++ b/src/Normalizer/ShiftModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShiftModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -115,7 +115,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/ShiftTaxModelNormalizer.php b/src/Normalizer/ShiftTaxModelNormalizer.php index cb6bb64..375be63 100644 --- a/src/Normalizer/ShiftTaxModelNormalizer.php +++ b/src/Normalizer/ShiftTaxModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShiftTaxModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -115,7 +115,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/ShiftUpdateSchemaNormalizer.php b/src/Normalizer/ShiftUpdateSchemaNormalizer.php index 09ca922..4afd2c6 100644 --- a/src/Normalizer/ShiftUpdateSchemaNormalizer.php +++ b/src/Normalizer/ShiftUpdateSchemaNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShiftUpdateSchema; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -58,7 +58,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['shift'] = $this->normalizer->normalize($object->getShift(), 'json', $context); diff --git a/src/Normalizer/ShiftWithCashRegisterModelNormalizer.php b/src/Normalizer/ShiftWithCashRegisterModelNormalizer.php index dfb8a33..770fa17 100644 --- a/src/Normalizer/ShiftWithCashRegisterModelNormalizer.php +++ b/src/Normalizer/ShiftWithCashRegisterModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShiftWithCashRegisterModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -119,7 +119,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/ShiftWithCashierAndCashRegisterNormalizer.php b/src/Normalizer/ShiftWithCashierAndCashRegisterNormalizer.php index 4a52549..d26b5f0 100644 --- a/src/Normalizer/ShiftWithCashierAndCashRegisterNormalizer.php +++ b/src/Normalizer/ShiftWithCashierAndCashRegisterNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShiftWithCashierAndCashRegister; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -123,7 +123,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/ShiftWithCashierModelNormalizer.php b/src/Normalizer/ShiftWithCashierModelNormalizer.php index 00e77ae..ca2d1be 100644 --- a/src/Normalizer/ShiftWithCashierModelNormalizer.php +++ b/src/Normalizer/ShiftWithCashierModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShiftWithCashierModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -119,7 +119,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/ShortCloseShiftPayloadNormalizer.php b/src/Normalizer/ShortCloseShiftPayloadNormalizer.php index a9e6731..c7c07ee 100644 --- a/src/Normalizer/ShortCloseShiftPayloadNormalizer.php +++ b/src/Normalizer/ShortCloseShiftPayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShortCloseShiftPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -62,7 +62,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('skipClientNameCheck') && null !== $object->getSkipClientNameCheck()) { diff --git a/src/Normalizer/ShortCloseShiftPayloadReportNormalizer.php b/src/Normalizer/ShortCloseShiftPayloadReportNormalizer.php index 62503b4..f937faf 100644 --- a/src/Normalizer/ShortCloseShiftPayloadReportNormalizer.php +++ b/src/Normalizer/ShortCloseShiftPayloadReportNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShortCloseShiftPayloadReport; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -131,7 +131,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { diff --git a/src/Normalizer/ShortOrganizationModelNormalizer.php b/src/Normalizer/ShortOrganizationModelNormalizer.php index 02c13a5..1eadff6 100644 --- a/src/Normalizer/ShortOrganizationModelNormalizer.php +++ b/src/Normalizer/ShortOrganizationModelNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShortOrganizationModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -70,7 +70,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/ShortReceiptModelNormalizer.php b/src/Normalizer/ShortReceiptModelNormalizer.php index 398d7ed..6a87072 100644 --- a/src/Normalizer/ShortReceiptModelNormalizer.php +++ b/src/Normalizer/ShortReceiptModelNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShortReceiptModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -210,7 +210,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/ShortTransactionNormalizer.php b/src/Normalizer/ShortTransactionNormalizer.php index e7a6411..d7efec8 100644 --- a/src/Normalizer/ShortTransactionNormalizer.php +++ b/src/Normalizer/ShortTransactionNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShortTransaction; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -111,7 +111,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/SrsoSchemaGoodSchemaGoodModelNormalizer.php b/src/Normalizer/SrsoSchemaGoodSchemaGoodModelNormalizer.php index a165e42..30d7c8c 100644 --- a/src/Normalizer/SrsoSchemaGoodSchemaGoodModelNormalizer.php +++ b/src/Normalizer/SrsoSchemaGoodSchemaGoodModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\SrsoSchemaGoodSchemaGoodModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -119,7 +119,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/SrsoSchemaReceiptSchemaGoodModelNormalizer.php b/src/Normalizer/SrsoSchemaReceiptSchemaGoodModelNormalizer.php index c3254f4..e0dcad0 100644 --- a/src/Normalizer/SrsoSchemaReceiptSchemaGoodModelNormalizer.php +++ b/src/Normalizer/SrsoSchemaReceiptSchemaGoodModelNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\SrsoSchemaReceiptSchemaGoodModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -90,7 +90,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['code'] = $object->getCode(); diff --git a/src/Normalizer/TaxModelNormalizer.php b/src/Normalizer/TaxModelNormalizer.php index 1f9c47f..d96a9b8 100644 --- a/src/Normalizer/TaxModelNormalizer.php +++ b/src/Normalizer/TaxModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\TaxModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -99,7 +99,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/TransactionModelNormalizer.php b/src/Normalizer/TransactionModelNormalizer.php index bb2300c..557eea8 100644 --- a/src/Normalizer/TransactionModelNormalizer.php +++ b/src/Normalizer/TransactionModelNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\TransactionModel; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -131,7 +131,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['id'] = $object->getId(); diff --git a/src/Normalizer/UpdateTransactionPayloadNormalizer.php b/src/Normalizer/UpdateTransactionPayloadNormalizer.php index a4f635b..c6f64d1 100644 --- a/src/Normalizer/UpdateTransactionPayloadNormalizer.php +++ b/src/Normalizer/UpdateTransactionPayloadNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\UpdateTransactionPayload; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -58,7 +58,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['request_signature'] = $object->getRequestSignature(); diff --git a/src/Normalizer/ValidationErrorNormalizer.php b/src/Normalizer/ValidationErrorNormalizer.php index 6043f95..ef815fb 100644 --- a/src/Normalizer/ValidationErrorNormalizer.php +++ b/src/Normalizer/ValidationErrorNormalizer.php @@ -30,7 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ValidationError; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -70,7 +70,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $values = []; diff --git a/src/Normalizer/WebhookInfoResponseSchemaNormalizer.php b/src/Normalizer/WebhookInfoResponseSchemaNormalizer.php index 2908b1f..56f9aee 100644 --- a/src/Normalizer/WebhookInfoResponseSchemaNormalizer.php +++ b/src/Normalizer/WebhookInfoResponseSchemaNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\WebhookInfoResponseSchema; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -79,7 +79,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['url'] = $object->getUrl(); diff --git a/src/Normalizer/WebhookInfoSchemaNormalizer.php b/src/Normalizer/WebhookInfoSchemaNormalizer.php index 953aa37..4ac758f 100644 --- a/src/Normalizer/WebhookInfoSchemaNormalizer.php +++ b/src/Normalizer/WebhookInfoSchemaNormalizer.php @@ -31,7 +31,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\WebhookInfoSchema; } - public function denormalize($data, $class, $format = null, array $context = []) + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { if (isset($data['$ref'])) { return new Reference($data['$ref'], $context['document-origin']); @@ -75,7 +75,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * @return array|string|int|float|bool|ArrayObject|null */ - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; $data['url'] = $object->getUrl(); diff --git a/src/Runtime/Normalizer/ReferenceNormalizer.php b/src/Runtime/Normalizer/ReferenceNormalizer.php index 9a395a0..56d0043 100644 --- a/src/Runtime/Normalizer/ReferenceNormalizer.php +++ b/src/Runtime/Normalizer/ReferenceNormalizer.php @@ -9,16 +9,23 @@ class ReferenceNormalizer implements NormalizerInterface { - public function normalize($object, $format = null, array $context = []) + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $ref = []; - $ref['$ref'] = (string) $object->getReferenceUri(); + $ref['$ref'] = (string)$object->getReferenceUri(); return $ref; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return $data instanceof Reference; } + + public function getSupportedTypes(?string $format): array + { + return [ + Reference::class + ]; + } }