From d6d786b5a3a6260b561d1de5ce76ce78650784d5 Mon Sep 17 00:00:00 2001 From: nortoh Date: Wed, 28 Aug 2024 13:42:40 -0500 Subject: [PATCH 1/2] feat: upgrade to jane-php v7.8; regenerate spec --- src/Normalizer/AddressNormalizer.php | 12 +- src/Normalizer/AuthConfigNormalizer.php | 12 +- .../AuthPostResponse200Normalizer.php | 12 +- src/Normalizer/BuildInfoNormalizer.php | 24 +- .../BuildPrunePostResponse200Normalizer.php | 12 +- src/Normalizer/ClusterInfoNormalizer.php | 24 +- src/Normalizer/CommitNormalizer.php | 12 +- src/Normalizer/ConfigNormalizer.php | 20 +- src/Normalizer/ConfigSpecNormalizer.php | 12 +- .../ConfigsCreatePostBodyNormalizer.php | 12 +- ...tainerConfigExposedPortsItemNormalizer.php | 12 +- src/Normalizer/ContainerConfigNormalizer.php | 24 +- .../ContainerConfigVolumesItemNormalizer.php | 12 +- ...ntainerSummaryItemHostConfigNormalizer.php | 12 +- ...erSummaryItemNetworkSettingsNormalizer.php | 16 +- .../ContainerSummaryItemNormalizer.php | 28 +- ...eatePostBodyNetworkingConfigNormalizer.php | 16 +- .../ContainersCreatePostBodyNormalizer.php | 32 +- ...tainersCreatePostResponse201Normalizer.php | 12 +- ...inersIdArchiveGetResponse400Normalizer.php | 12 +- ...IdArchiveHeadJsonResponse400Normalizer.php | 12 +- ...hiveHeadTextplainResponse400Normalizer.php | 12 +- ...sIdChangesGetResponse200ItemNormalizer.php | 12 +- .../ContainersIdExecPostBodyNormalizer.php | 12 +- ...nersIdJsonGetResponse200NodeNormalizer.php | 12 +- ...ntainersIdJsonGetResponse200Normalizer.php | 40 +- ...ersIdJsonGetResponse200StateNormalizer.php | 12 +- ...inersIdTopGetJsonResponse200Normalizer.php | 12 +- ...IdTopGetTextplainResponse200Normalizer.php | 12 +- .../ContainersIdUpdatePostBodyNormalizer.php | 44 +- ...inersIdUpdatePostResponse200Normalizer.php | 12 +- ...rsIdWaitPostResponse200ErrorNormalizer.php | 12 +- ...tainersIdWaitPostResponse200Normalizer.php | 16 +- ...ntainersPrunePostResponse200Normalizer.php | 12 +- src/Normalizer/CreateImageInfoNormalizer.php | 16 +- src/Normalizer/DeviceMappingNormalizer.php | 12 +- ...JsonGetResponse200DescriptorNormalizer.php | 12 +- ...butionNameJsonGetResponse200Normalizer.php | 20 +- ...nGetResponse200PlatformsItemNormalizer.php | 12 +- src/Normalizer/DriverNormalizer.php | 12 +- .../EndpointIPAMConfigNormalizer.php | 12 +- .../EndpointPortConfigNormalizer.php | 12 +- src/Normalizer/EndpointSettingsNormalizer.php | 16 +- src/Normalizer/EndpointSpecNormalizer.php | 16 +- .../EngineDescriptionNormalizer.php | 16 +- ...EngineDescriptionPluginsItemNormalizer.php | 12 +- src/Normalizer/ErrorDetailNormalizer.php | 12 +- src/Normalizer/ErrorResponseNormalizer.php | 12 +- .../EventsGetResponse200ActorNormalizer.php | 12 +- .../EventsGetResponse200Normalizer.php | 16 +- .../ExecIdJsonGetResponse200Normalizer.php | 16 +- .../ExecIdStartPostBodyNormalizer.php | 12 +- ...rcesItemDiscreteResourceSpecNormalizer.php | 12 +- ...sourcesItemNamedResourceSpecNormalizer.php | 12 +- .../GenericResourcesItemNormalizer.php | 20 +- src/Normalizer/GraphDriverDataNormalizer.php | 12 +- src/Normalizer/HealthConfigNormalizer.php | 12 +- .../HostConfigLogConfigNormalizer.php | 12 +- src/Normalizer/HostConfigNormalizer.php | 56 +- src/Normalizer/IPAMNormalizer.php | 12 +- src/Normalizer/IdResponseNormalizer.php | 12 +- .../ImageDeleteResponseItemNormalizer.php | 12 +- src/Normalizer/ImageIDNormalizer.php | 12 +- src/Normalizer/ImageMetadataNormalizer.php | 12 +- src/Normalizer/ImageNormalizer.php | 32 +- src/Normalizer/ImageRootFSNormalizer.php | 12 +- src/Normalizer/ImageSummaryNormalizer.php | 12 +- ...ameHistoryGetResponse200ItemNormalizer.php | 12 +- .../ImagesPrunePostResponse200Normalizer.php | 16 +- ...agesSearchGetResponse200ItemNormalizer.php | 12 +- src/Normalizer/IndexInfoNormalizer.php | 12 +- src/Normalizer/JaneObjectNormalizer.php | 1190 ++++++++++++++++- src/Normalizer/JoinTokensNormalizer.php | 12 +- src/Normalizer/ManagerStatusNormalizer.php | 12 +- src/Normalizer/MountBindOptionsNormalizer.php | 12 +- src/Normalizer/MountNormalizer.php | 24 +- src/Normalizer/MountPointNormalizer.php | 12 +- .../MountTmpfsOptionsNormalizer.php | 12 +- ...untVolumeOptionsDriverConfigNormalizer.php | 12 +- .../MountVolumeOptionsNormalizer.php | 16 +- src/Normalizer/NetworkContainerNormalizer.php | 12 +- src/Normalizer/NetworkNormalizer.php | 20 +- src/Normalizer/NetworkSettingsNormalizer.php | 28 +- .../NetworksCreatePostBodyNormalizer.php | 16 +- ...etworksCreatePostResponse201Normalizer.php | 12 +- .../NetworksIdConnectPostBodyNormalizer.php | 16 +- ...NetworksIdDisconnectPostBodyNormalizer.php | 12 +- ...NetworksPrunePostResponse200Normalizer.php | 12 +- src/Normalizer/NodeDescriptionNormalizer.php | 28 +- src/Normalizer/NodeNormalizer.php | 32 +- src/Normalizer/NodeSpecNormalizer.php | 12 +- src/Normalizer/NodeStatusNormalizer.php | 12 +- src/Normalizer/ObjectVersionNormalizer.php | 12 +- src/Normalizer/PeerNodeNormalizer.php | 12 +- src/Normalizer/PlatformNormalizer.php | 12 +- src/Normalizer/PluginConfigArgsNormalizer.php | 12 +- .../PluginConfigInterfaceNormalizer.php | 16 +- .../PluginConfigLinuxNormalizer.php | 16 +- .../PluginConfigNetworkNormalizer.php | 12 +- src/Normalizer/PluginConfigNormalizer.php | 44 +- .../PluginConfigRootfsNormalizer.php | 12 +- src/Normalizer/PluginConfigUserNormalizer.php | 12 +- src/Normalizer/PluginDeviceNormalizer.php | 12 +- src/Normalizer/PluginEnvNormalizer.php | 12 +- .../PluginInterfaceTypeNormalizer.php | 12 +- src/Normalizer/PluginMountNormalizer.php | 12 +- src/Normalizer/PluginNormalizer.php | 20 +- src/Normalizer/PluginSettingsNormalizer.php | 20 +- src/Normalizer/PluginsInfoNormalizer.php | 12 +- ...uginsNameUpgradePostBodyItemNormalizer.php | 12 +- ...ilegesGetJsonResponse200ItemNormalizer.php | 12 +- ...sGetTextplainResponse200ItemNormalizer.php | 12 +- .../PluginsPullPostBodyItemNormalizer.php | 12 +- src/Normalizer/PortBindingNormalizer.php | 12 +- src/Normalizer/PortNormalizer.php | 12 +- src/Normalizer/ProcessConfigNormalizer.php | 12 +- src/Normalizer/ProgressDetailNormalizer.php | 12 +- src/Normalizer/PushImageInfoNormalizer.php | 16 +- .../RegistryServiceConfigNormalizer.php | 16 +- src/Normalizer/ResourceObjectNormalizer.php | 16 +- ...sourcesBlkioWeightDeviceItemNormalizer.php | 12 +- src/Normalizer/ResourcesNormalizer.php | 40 +- .../ResourcesUlimitsItemNormalizer.php | 12 +- src/Normalizer/RestartPolicyNormalizer.php | 12 +- src/Normalizer/RuntimeNormalizer.php | 12 +- src/Normalizer/SecretNormalizer.php | 20 +- src/Normalizer/SecretSpecNormalizer.php | 16 +- .../SecretsCreatePostBodyNormalizer.php | 16 +- src/Normalizer/ServiceEndpointNormalizer.php | 24 +- ...erviceEndpointVirtualIPsItemNormalizer.php | 12 +- src/Normalizer/ServiceNormalizer.php | 28 +- .../ServiceSpecModeGlobalNormalizer.php | 12 +- src/Normalizer/ServiceSpecModeNormalizer.php | 20 +- .../ServiceSpecModeReplicatedNormalizer.php | 12 +- .../ServiceSpecNetworksItemNormalizer.php | 12 +- src/Normalizer/ServiceSpecNormalizer.php | 36 +- .../ServiceSpecRollbackConfigNormalizer.php | 12 +- .../ServiceSpecUpdateConfigNormalizer.php | 12 +- .../ServiceUpdateResponseNormalizer.php | 12 +- .../ServiceUpdateStatusNormalizer.php | 12 +- .../ServicesCreatePostBodyNormalizer.php | 36 +- ...ervicesCreatePostResponse201Normalizer.php | 12 +- .../ServicesIdUpdatePostBodyNormalizer.php | 36 +- src/Normalizer/SwarmInfoNormalizer.php | 20 +- .../SwarmInitPostBodyNormalizer.php | 16 +- .../SwarmJoinPostBodyNormalizer.php | 12 +- src/Normalizer/SwarmNormalizer.php | 28 +- ...mSpecCAConfigExternalCAsItemNormalizer.php | 12 +- .../SwarmSpecCAConfigNormalizer.php | 16 +- .../SwarmSpecDispatcherNormalizer.php | 12 +- .../SwarmSpecEncryptionConfigNormalizer.php | 12 +- src/Normalizer/SwarmSpecNormalizer.php | 36 +- .../SwarmSpecOrchestrationNormalizer.php | 12 +- src/Normalizer/SwarmSpecRaftNormalizer.php | 12 +- ...armSpecTaskDefaultsLogDriverNormalizer.php | 12 +- .../SwarmSpecTaskDefaultsNormalizer.php | 16 +- .../SwarmUnlockPostBodyNormalizer.php | 12 +- ...mUnlockkeyGetJsonResponse200Normalizer.php | 12 +- ...ckkeyGetTextplainResponse200Normalizer.php | 12 +- .../SystemDfGetJsonResponse200Normalizer.php | 24 +- ...temDfGetTextplainResponse200Normalizer.php | 24 +- src/Normalizer/SystemInfoNormalizer.php | 44 +- src/Normalizer/TLSInfoNormalizer.php | 12 +- src/Normalizer/TaskNormalizer.php | 28 +- ...ContainerSpecConfigsItemFileNormalizer.php | 12 +- ...SpecContainerSpecConfigsItemNormalizer.php | 16 +- ...skSpecContainerSpecDNSConfigNormalizer.php | 12 +- .../TaskSpecContainerSpecNormalizer.php | 36 +- ...SpecPrivilegesCredentialSpecNormalizer.php | 12 +- ...kSpecContainerSpecPrivilegesNormalizer.php | 20 +- ...SpecPrivilegesSELinuxContextNormalizer.php | 12 +- ...ContainerSpecSecretsItemFileNormalizer.php | 12 +- ...SpecContainerSpecSecretsItemNormalizer.php | 16 +- .../TaskSpecLogDriverNormalizer.php | 12 +- .../TaskSpecNetworksItemNormalizer.php | 12 +- src/Normalizer/TaskSpecNormalizer.php | 40 +- .../TaskSpecPlacementNormalizer.php | 20 +- ...SpecPlacementPreferencesItemNormalizer.php | 16 +- ...acementPreferencesItemSpreadNormalizer.php | 12 +- .../TaskSpecPluginSpecNormalizer.php | 16 +- ...luginSpecPluginPrivilegeItemNormalizer.php | 12 +- .../TaskSpecResourcesNormalizer.php | 20 +- .../TaskSpecRestartPolicyNormalizer.php | 12 +- .../TaskStatusContainerStatusNormalizer.php | 12 +- src/Normalizer/TaskStatusNormalizer.php | 16 +- src/Normalizer/ThrottleDeviceNormalizer.php | 12 +- ...onse200ComponentsItemDetailsNormalizer.php | 12 +- ...GetResponse200ComponentsItemNormalizer.php | 16 +- .../VersionGetResponse200Normalizer.php | 20 +- ...ersionGetResponse200PlatformNormalizer.php | 12 +- src/Normalizer/VolumeNormalizer.php | 20 +- src/Normalizer/VolumeStatusItemNormalizer.php | 12 +- src/Normalizer/VolumeUsageDataNormalizer.php | 12 +- .../VolumesCreatePostBodyNormalizer.php | 12 +- .../VolumesGetResponse200Normalizer.php | 16 +- .../VolumesPrunePostResponse200Normalizer.php | 12 +- 196 files changed, 2764 insertions(+), 1582 deletions(-) diff --git a/src/Normalizer/AddressNormalizer.php b/src/Normalizer/AddressNormalizer.php index eb452973..ab349116 100644 --- a/src/Normalizer/AddressNormalizer.php +++ b/src/Normalizer/AddressNormalizer.php @@ -22,11 +22,11 @@ class AddressNormalizer implements DenormalizerInterface, NormalizerInterface, D use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Address'; + return $type === \Docker\API\Model\Address::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Address'; + return is_object($data) && get_class($data) === \Docker\API\Model\Address::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Address' => false]; + return [\Docker\API\Model\Address::class => false]; } } } else { @@ -91,11 +91,11 @@ class AddressNormalizer implements DenormalizerInterface, NormalizerInterface, D use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Address'; + return $type === \Docker\API\Model\Address::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Address'; + return is_object($data) && get_class($data) === \Docker\API\Model\Address::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Address' => false]; + return [\Docker\API\Model\Address::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/AuthConfigNormalizer.php b/src/Normalizer/AuthConfigNormalizer.php index 3b581d7b..d7648991 100644 --- a/src/Normalizer/AuthConfigNormalizer.php +++ b/src/Normalizer/AuthConfigNormalizer.php @@ -22,11 +22,11 @@ class AuthConfigNormalizer implements DenormalizerInterface, NormalizerInterface use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\AuthConfig'; + return $type === \Docker\API\Model\AuthConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\AuthConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\AuthConfig::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -99,7 +99,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\AuthConfig' => false]; + return [\Docker\API\Model\AuthConfig::class => false]; } } } else { @@ -111,11 +111,11 @@ class AuthConfigNormalizer implements DenormalizerInterface, NormalizerInterface use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\AuthConfig'; + return $type === \Docker\API\Model\AuthConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\AuthConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\AuthConfig::class; } /** * @return mixed @@ -194,7 +194,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\AuthConfig' => false]; + return [\Docker\API\Model\AuthConfig::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/AuthPostResponse200Normalizer.php b/src/Normalizer/AuthPostResponse200Normalizer.php index a9a53748..c2044f47 100644 --- a/src/Normalizer/AuthPostResponse200Normalizer.php +++ b/src/Normalizer/AuthPostResponse200Normalizer.php @@ -22,11 +22,11 @@ class AuthPostResponse200Normalizer implements DenormalizerInterface, Normalizer use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\AuthPostResponse200'; + return $type === \Docker\API\Model\AuthPostResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\AuthPostResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\AuthPostResponse200::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -77,7 +77,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\AuthPostResponse200' => false]; + return [\Docker\API\Model\AuthPostResponse200::class => false]; } } } else { @@ -89,11 +89,11 @@ class AuthPostResponse200Normalizer implements DenormalizerInterface, Normalizer use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\AuthPostResponse200'; + return $type === \Docker\API\Model\AuthPostResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\AuthPostResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\AuthPostResponse200::class; } /** * @return mixed @@ -150,7 +150,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\AuthPostResponse200' => false]; + return [\Docker\API\Model\AuthPostResponse200::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/BuildInfoNormalizer.php b/src/Normalizer/BuildInfoNormalizer.php index fee8decf..dd74ac16 100644 --- a/src/Normalizer/BuildInfoNormalizer.php +++ b/src/Normalizer/BuildInfoNormalizer.php @@ -22,11 +22,11 @@ class BuildInfoNormalizer implements DenormalizerInterface, NormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\BuildInfo'; + return $type === \Docker\API\Model\BuildInfo::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\BuildInfo'; + return is_object($data) && get_class($data) === \Docker\API\Model\BuildInfo::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -62,7 +62,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setError(null); } if (\array_key_exists('errorDetail', $data) && $data['errorDetail'] !== null) { - $object->setErrorDetail($this->denormalizer->denormalize($data['errorDetail'], 'Docker\\API\\Model\\ErrorDetail', 'json', $context)); + $object->setErrorDetail($this->denormalizer->denormalize($data['errorDetail'], \Docker\API\Model\ErrorDetail::class, 'json', $context)); unset($data['errorDetail']); } elseif (\array_key_exists('errorDetail', $data) && $data['errorDetail'] === null) { @@ -83,14 +83,14 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setProgress(null); } if (\array_key_exists('progressDetail', $data) && $data['progressDetail'] !== null) { - $object->setProgressDetail($this->denormalizer->denormalize($data['progressDetail'], 'Docker\\API\\Model\\ProgressDetail', 'json', $context)); + $object->setProgressDetail($this->denormalizer->denormalize($data['progressDetail'], \Docker\API\Model\ProgressDetail::class, 'json', $context)); unset($data['progressDetail']); } elseif (\array_key_exists('progressDetail', $data) && $data['progressDetail'] === null) { $object->setProgressDetail(null); } if (\array_key_exists('aux', $data) && $data['aux'] !== null) { - $object->setAux($this->denormalizer->denormalize($data['aux'], 'Docker\\API\\Model\\ImageID', 'json', $context)); + $object->setAux($this->denormalizer->denormalize($data['aux'], \Docker\API\Model\ImageID::class, 'json', $context)); unset($data['aux']); } elseif (\array_key_exists('aux', $data) && $data['aux'] === null) { @@ -139,7 +139,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\BuildInfo' => false]; + return [\Docker\API\Model\BuildInfo::class => false]; } } } else { @@ -151,11 +151,11 @@ class BuildInfoNormalizer implements DenormalizerInterface, NormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\BuildInfo'; + return $type === \Docker\API\Model\BuildInfo::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\BuildInfo'; + return is_object($data) && get_class($data) === \Docker\API\Model\BuildInfo::class; } /** * @return mixed @@ -194,7 +194,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setError(null); } if (\array_key_exists('errorDetail', $data) && $data['errorDetail'] !== null) { - $object->setErrorDetail($this->denormalizer->denormalize($data['errorDetail'], 'Docker\\API\\Model\\ErrorDetail', 'json', $context)); + $object->setErrorDetail($this->denormalizer->denormalize($data['errorDetail'], \Docker\API\Model\ErrorDetail::class, 'json', $context)); unset($data['errorDetail']); } elseif (\array_key_exists('errorDetail', $data) && $data['errorDetail'] === null) { @@ -215,14 +215,14 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setProgress(null); } if (\array_key_exists('progressDetail', $data) && $data['progressDetail'] !== null) { - $object->setProgressDetail($this->denormalizer->denormalize($data['progressDetail'], 'Docker\\API\\Model\\ProgressDetail', 'json', $context)); + $object->setProgressDetail($this->denormalizer->denormalize($data['progressDetail'], \Docker\API\Model\ProgressDetail::class, 'json', $context)); unset($data['progressDetail']); } elseif (\array_key_exists('progressDetail', $data) && $data['progressDetail'] === null) { $object->setProgressDetail(null); } if (\array_key_exists('aux', $data) && $data['aux'] !== null) { - $object->setAux($this->denormalizer->denormalize($data['aux'], 'Docker\\API\\Model\\ImageID', 'json', $context)); + $object->setAux($this->denormalizer->denormalize($data['aux'], \Docker\API\Model\ImageID::class, 'json', $context)); unset($data['aux']); } elseif (\array_key_exists('aux', $data) && $data['aux'] === null) { @@ -274,7 +274,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\BuildInfo' => false]; + return [\Docker\API\Model\BuildInfo::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/BuildPrunePostResponse200Normalizer.php b/src/Normalizer/BuildPrunePostResponse200Normalizer.php index 5d31e56c..084f40ce 100644 --- a/src/Normalizer/BuildPrunePostResponse200Normalizer.php +++ b/src/Normalizer/BuildPrunePostResponse200Normalizer.php @@ -22,11 +22,11 @@ class BuildPrunePostResponse200Normalizer implements DenormalizerInterface, Norm use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\BuildPrunePostResponse200'; + return $type === \Docker\API\Model\BuildPrunePostResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\BuildPrunePostResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\BuildPrunePostResponse200::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\BuildPrunePostResponse200' => false]; + return [\Docker\API\Model\BuildPrunePostResponse200::class => false]; } } } else { @@ -81,11 +81,11 @@ class BuildPrunePostResponse200Normalizer implements DenormalizerInterface, Norm use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\BuildPrunePostResponse200'; + return $type === \Docker\API\Model\BuildPrunePostResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\BuildPrunePostResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\BuildPrunePostResponse200::class; } /** * @return mixed @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\BuildPrunePostResponse200' => false]; + return [\Docker\API\Model\BuildPrunePostResponse200::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ClusterInfoNormalizer.php b/src/Normalizer/ClusterInfoNormalizer.php index b3af3ebd..08691d9c 100644 --- a/src/Normalizer/ClusterInfoNormalizer.php +++ b/src/Normalizer/ClusterInfoNormalizer.php @@ -22,11 +22,11 @@ class ClusterInfoNormalizer implements DenormalizerInterface, NormalizerInterfac use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ClusterInfo'; + return $type === \Docker\API\Model\ClusterInfo::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ClusterInfo'; + return is_object($data) && get_class($data) === \Docker\API\Model\ClusterInfo::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -48,7 +48,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setID(null); } if (\array_key_exists('Version', $data) && $data['Version'] !== null) { - $object->setVersion($this->denormalizer->denormalize($data['Version'], 'Docker\\API\\Model\\ObjectVersion', 'json', $context)); + $object->setVersion($this->denormalizer->denormalize($data['Version'], \Docker\API\Model\ObjectVersion::class, 'json', $context)); unset($data['Version']); } elseif (\array_key_exists('Version', $data) && $data['Version'] === null) { @@ -69,14 +69,14 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setUpdatedAt(null); } if (\array_key_exists('Spec', $data) && $data['Spec'] !== null) { - $object->setSpec($this->denormalizer->denormalize($data['Spec'], 'Docker\\API\\Model\\SwarmSpec', 'json', $context)); + $object->setSpec($this->denormalizer->denormalize($data['Spec'], \Docker\API\Model\SwarmSpec::class, 'json', $context)); unset($data['Spec']); } elseif (\array_key_exists('Spec', $data) && $data['Spec'] === null) { $object->setSpec(null); } if (\array_key_exists('TLSInfo', $data) && $data['TLSInfo'] !== null) { - $object->setTLSInfo($this->denormalizer->denormalize($data['TLSInfo'], 'Docker\\API\\Model\\TLSInfo', 'json', $context)); + $object->setTLSInfo($this->denormalizer->denormalize($data['TLSInfo'], \Docker\API\Model\TLSInfo::class, 'json', $context)); unset($data['TLSInfo']); } elseif (\array_key_exists('TLSInfo', $data) && $data['TLSInfo'] === null) { @@ -129,7 +129,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ClusterInfo' => false]; + return [\Docker\API\Model\ClusterInfo::class => false]; } } } else { @@ -141,11 +141,11 @@ class ClusterInfoNormalizer implements DenormalizerInterface, NormalizerInterfac use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ClusterInfo'; + return $type === \Docker\API\Model\ClusterInfo::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ClusterInfo'; + return is_object($data) && get_class($data) === \Docker\API\Model\ClusterInfo::class; } /** * @return mixed @@ -170,7 +170,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setID(null); } if (\array_key_exists('Version', $data) && $data['Version'] !== null) { - $object->setVersion($this->denormalizer->denormalize($data['Version'], 'Docker\\API\\Model\\ObjectVersion', 'json', $context)); + $object->setVersion($this->denormalizer->denormalize($data['Version'], \Docker\API\Model\ObjectVersion::class, 'json', $context)); unset($data['Version']); } elseif (\array_key_exists('Version', $data) && $data['Version'] === null) { @@ -191,14 +191,14 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setUpdatedAt(null); } if (\array_key_exists('Spec', $data) && $data['Spec'] !== null) { - $object->setSpec($this->denormalizer->denormalize($data['Spec'], 'Docker\\API\\Model\\SwarmSpec', 'json', $context)); + $object->setSpec($this->denormalizer->denormalize($data['Spec'], \Docker\API\Model\SwarmSpec::class, 'json', $context)); unset($data['Spec']); } elseif (\array_key_exists('Spec', $data) && $data['Spec'] === null) { $object->setSpec(null); } if (\array_key_exists('TLSInfo', $data) && $data['TLSInfo'] !== null) { - $object->setTLSInfo($this->denormalizer->denormalize($data['TLSInfo'], 'Docker\\API\\Model\\TLSInfo', 'json', $context)); + $object->setTLSInfo($this->denormalizer->denormalize($data['TLSInfo'], \Docker\API\Model\TLSInfo::class, 'json', $context)); unset($data['TLSInfo']); } elseif (\array_key_exists('TLSInfo', $data) && $data['TLSInfo'] === null) { @@ -254,7 +254,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ClusterInfo' => false]; + return [\Docker\API\Model\ClusterInfo::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/CommitNormalizer.php b/src/Normalizer/CommitNormalizer.php index cfec9184..a9faab1d 100644 --- a/src/Normalizer/CommitNormalizer.php +++ b/src/Normalizer/CommitNormalizer.php @@ -22,11 +22,11 @@ class CommitNormalizer implements DenormalizerInterface, NormalizerInterface, De use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Commit'; + return $type === \Docker\API\Model\Commit::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Commit'; + return is_object($data) && get_class($data) === \Docker\API\Model\Commit::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Commit' => false]; + return [\Docker\API\Model\Commit::class => false]; } } } else { @@ -91,11 +91,11 @@ class CommitNormalizer implements DenormalizerInterface, NormalizerInterface, De use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Commit'; + return $type === \Docker\API\Model\Commit::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Commit'; + return is_object($data) && get_class($data) === \Docker\API\Model\Commit::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Commit' => false]; + return [\Docker\API\Model\Commit::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ConfigNormalizer.php b/src/Normalizer/ConfigNormalizer.php index 2692c4dc..1a3cae5d 100644 --- a/src/Normalizer/ConfigNormalizer.php +++ b/src/Normalizer/ConfigNormalizer.php @@ -22,11 +22,11 @@ class ConfigNormalizer implements DenormalizerInterface, NormalizerInterface, De use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Config'; + return $type === \Docker\API\Model\Config::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Config'; + return is_object($data) && get_class($data) === \Docker\API\Model\Config::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -48,7 +48,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setID(null); } if (\array_key_exists('Version', $data) && $data['Version'] !== null) { - $object->setVersion($this->denormalizer->denormalize($data['Version'], 'Docker\\API\\Model\\ObjectVersion', 'json', $context)); + $object->setVersion($this->denormalizer->denormalize($data['Version'], \Docker\API\Model\ObjectVersion::class, 'json', $context)); unset($data['Version']); } elseif (\array_key_exists('Version', $data) && $data['Version'] === null) { @@ -69,7 +69,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setUpdatedAt(null); } if (\array_key_exists('Spec', $data) && $data['Spec'] !== null) { - $object->setSpec($this->denormalizer->denormalize($data['Spec'], 'Docker\\API\\Model\\ConfigSpec', 'json', $context)); + $object->setSpec($this->denormalizer->denormalize($data['Spec'], \Docker\API\Model\ConfigSpec::class, 'json', $context)); unset($data['Spec']); } elseif (\array_key_exists('Spec', $data) && $data['Spec'] === null) { @@ -109,7 +109,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Config' => false]; + return [\Docker\API\Model\Config::class => false]; } } } else { @@ -121,11 +121,11 @@ class ConfigNormalizer implements DenormalizerInterface, NormalizerInterface, De use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Config'; + return $type === \Docker\API\Model\Config::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Config'; + return is_object($data) && get_class($data) === \Docker\API\Model\Config::class; } /** * @return mixed @@ -150,7 +150,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setID(null); } if (\array_key_exists('Version', $data) && $data['Version'] !== null) { - $object->setVersion($this->denormalizer->denormalize($data['Version'], 'Docker\\API\\Model\\ObjectVersion', 'json', $context)); + $object->setVersion($this->denormalizer->denormalize($data['Version'], \Docker\API\Model\ObjectVersion::class, 'json', $context)); unset($data['Version']); } elseif (\array_key_exists('Version', $data) && $data['Version'] === null) { @@ -171,7 +171,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setUpdatedAt(null); } if (\array_key_exists('Spec', $data) && $data['Spec'] !== null) { - $object->setSpec($this->denormalizer->denormalize($data['Spec'], 'Docker\\API\\Model\\ConfigSpec', 'json', $context)); + $object->setSpec($this->denormalizer->denormalize($data['Spec'], \Docker\API\Model\ConfigSpec::class, 'json', $context)); unset($data['Spec']); } elseif (\array_key_exists('Spec', $data) && $data['Spec'] === null) { @@ -214,7 +214,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Config' => false]; + return [\Docker\API\Model\Config::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ConfigSpecNormalizer.php b/src/Normalizer/ConfigSpecNormalizer.php index cce9e2ad..4df69e7e 100644 --- a/src/Normalizer/ConfigSpecNormalizer.php +++ b/src/Normalizer/ConfigSpecNormalizer.php @@ -22,11 +22,11 @@ class ConfigSpecNormalizer implements DenormalizerInterface, NormalizerInterface use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ConfigSpec'; + return $type === \Docker\API\Model\ConfigSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ConfigSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\ConfigSpec::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -97,7 +97,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ConfigSpec' => false]; + return [\Docker\API\Model\ConfigSpec::class => false]; } } } else { @@ -109,11 +109,11 @@ class ConfigSpecNormalizer implements DenormalizerInterface, NormalizerInterface use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ConfigSpec'; + return $type === \Docker\API\Model\ConfigSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ConfigSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\ConfigSpec::class; } /** * @return mixed @@ -190,7 +190,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ConfigSpec' => false]; + return [\Docker\API\Model\ConfigSpec::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ConfigsCreatePostBodyNormalizer.php b/src/Normalizer/ConfigsCreatePostBodyNormalizer.php index 08eda536..05a58bb9 100644 --- a/src/Normalizer/ConfigsCreatePostBodyNormalizer.php +++ b/src/Normalizer/ConfigsCreatePostBodyNormalizer.php @@ -22,11 +22,11 @@ class ConfigsCreatePostBodyNormalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ConfigsCreatePostBody'; + return $type === \Docker\API\Model\ConfigsCreatePostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ConfigsCreatePostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\ConfigsCreatePostBody::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -97,7 +97,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ConfigsCreatePostBody' => false]; + return [\Docker\API\Model\ConfigsCreatePostBody::class => false]; } } } else { @@ -109,11 +109,11 @@ class ConfigsCreatePostBodyNormalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ConfigsCreatePostBody'; + return $type === \Docker\API\Model\ConfigsCreatePostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ConfigsCreatePostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\ConfigsCreatePostBody::class; } /** * @return mixed @@ -190,7 +190,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ConfigsCreatePostBody' => false]; + return [\Docker\API\Model\ConfigsCreatePostBody::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainerConfigExposedPortsItemNormalizer.php b/src/Normalizer/ContainerConfigExposedPortsItemNormalizer.php index f8d1f6ad..0b1cab08 100644 --- a/src/Normalizer/ContainerConfigExposedPortsItemNormalizer.php +++ b/src/Normalizer/ContainerConfigExposedPortsItemNormalizer.php @@ -22,11 +22,11 @@ class ContainerConfigExposedPortsItemNormalizer implements DenormalizerInterface use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainerConfigExposedPortsItem'; + return $type === \Docker\API\Model\ContainerConfigExposedPortsItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainerConfigExposedPortsItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainerConfigExposedPortsItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -59,7 +59,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainerConfigExposedPortsItem' => false]; + return [\Docker\API\Model\ContainerConfigExposedPortsItem::class => false]; } } } else { @@ -71,11 +71,11 @@ class ContainerConfigExposedPortsItemNormalizer implements DenormalizerInterface use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainerConfigExposedPortsItem'; + return $type === \Docker\API\Model\ContainerConfigExposedPortsItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainerConfigExposedPortsItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainerConfigExposedPortsItem::class; } /** * @return mixed @@ -114,7 +114,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainerConfigExposedPortsItem' => false]; + return [\Docker\API\Model\ContainerConfigExposedPortsItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainerConfigNormalizer.php b/src/Normalizer/ContainerConfigNormalizer.php index 45d92a91..f793a8cf 100644 --- a/src/Normalizer/ContainerConfigNormalizer.php +++ b/src/Normalizer/ContainerConfigNormalizer.php @@ -22,11 +22,11 @@ class ContainerConfigNormalizer implements DenormalizerInterface, NormalizerInte use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainerConfig'; + return $type === \Docker\API\Model\ContainerConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainerConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainerConfig::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -85,7 +85,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('ExposedPorts', $data) && $data['ExposedPorts'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['ExposedPorts'] as $key => $value) { - $values[$key] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\ContainerConfigExposedPortsItem', 'json', $context); + $values[$key] = $this->denormalizer->denormalize($value, \Docker\API\Model\ContainerConfigExposedPortsItem::class, 'json', $context); } $object->setExposedPorts($values); unset($data['ExposedPorts']); @@ -137,7 +137,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setCmd(null); } if (\array_key_exists('Healthcheck', $data) && $data['Healthcheck'] !== null) { - $object->setHealthcheck($this->denormalizer->denormalize($data['Healthcheck'], 'Docker\\API\\Model\\HealthConfig', 'json', $context)); + $object->setHealthcheck($this->denormalizer->denormalize($data['Healthcheck'], \Docker\API\Model\HealthConfig::class, 'json', $context)); unset($data['Healthcheck']); } elseif (\array_key_exists('Healthcheck', $data) && $data['Healthcheck'] === null) { @@ -160,7 +160,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Volumes', $data) && $data['Volumes'] !== null) { $values_3 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['Volumes'] as $key_1 => $value_3) { - $values_3[$key_1] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\ContainerConfigVolumesItem', 'json', $context); + $values_3[$key_1] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\ContainerConfigVolumesItem::class, 'json', $context); } $object->setVolumes($values_3); unset($data['Volumes']); @@ -373,7 +373,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainerConfig' => false]; + return [\Docker\API\Model\ContainerConfig::class => false]; } } } else { @@ -385,11 +385,11 @@ class ContainerConfigNormalizer implements DenormalizerInterface, NormalizerInte use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainerConfig'; + return $type === \Docker\API\Model\ContainerConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainerConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainerConfig::class; } /** * @return mixed @@ -451,7 +451,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('ExposedPorts', $data) && $data['ExposedPorts'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['ExposedPorts'] as $key => $value) { - $values[$key] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\ContainerConfigExposedPortsItem', 'json', $context); + $values[$key] = $this->denormalizer->denormalize($value, \Docker\API\Model\ContainerConfigExposedPortsItem::class, 'json', $context); } $object->setExposedPorts($values); unset($data['ExposedPorts']); @@ -503,7 +503,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setCmd(null); } if (\array_key_exists('Healthcheck', $data) && $data['Healthcheck'] !== null) { - $object->setHealthcheck($this->denormalizer->denormalize($data['Healthcheck'], 'Docker\\API\\Model\\HealthConfig', 'json', $context)); + $object->setHealthcheck($this->denormalizer->denormalize($data['Healthcheck'], \Docker\API\Model\HealthConfig::class, 'json', $context)); unset($data['Healthcheck']); } elseif (\array_key_exists('Healthcheck', $data) && $data['Healthcheck'] === null) { @@ -526,7 +526,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Volumes', $data) && $data['Volumes'] !== null) { $values_3 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['Volumes'] as $key_1 => $value_3) { - $values_3[$key_1] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\ContainerConfigVolumesItem', 'json', $context); + $values_3[$key_1] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\ContainerConfigVolumesItem::class, 'json', $context); } $object->setVolumes($values_3); unset($data['Volumes']); @@ -742,7 +742,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainerConfig' => false]; + return [\Docker\API\Model\ContainerConfig::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainerConfigVolumesItemNormalizer.php b/src/Normalizer/ContainerConfigVolumesItemNormalizer.php index 9d6265dd..cb9a9a39 100644 --- a/src/Normalizer/ContainerConfigVolumesItemNormalizer.php +++ b/src/Normalizer/ContainerConfigVolumesItemNormalizer.php @@ -22,11 +22,11 @@ class ContainerConfigVolumesItemNormalizer implements DenormalizerInterface, Nor use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainerConfigVolumesItem'; + return $type === \Docker\API\Model\ContainerConfigVolumesItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainerConfigVolumesItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainerConfigVolumesItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -59,7 +59,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainerConfigVolumesItem' => false]; + return [\Docker\API\Model\ContainerConfigVolumesItem::class => false]; } } } else { @@ -71,11 +71,11 @@ class ContainerConfigVolumesItemNormalizer implements DenormalizerInterface, Nor use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainerConfigVolumesItem'; + return $type === \Docker\API\Model\ContainerConfigVolumesItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainerConfigVolumesItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainerConfigVolumesItem::class; } /** * @return mixed @@ -114,7 +114,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainerConfigVolumesItem' => false]; + return [\Docker\API\Model\ContainerConfigVolumesItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainerSummaryItemHostConfigNormalizer.php b/src/Normalizer/ContainerSummaryItemHostConfigNormalizer.php index 6ada067f..f2626474 100644 --- a/src/Normalizer/ContainerSummaryItemHostConfigNormalizer.php +++ b/src/Normalizer/ContainerSummaryItemHostConfigNormalizer.php @@ -22,11 +22,11 @@ class ContainerSummaryItemHostConfigNormalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainerSummaryItemHostConfig'; + return $type === \Docker\API\Model\ContainerSummaryItemHostConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainerSummaryItemHostConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainerSummaryItemHostConfig::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainerSummaryItemHostConfig' => false]; + return [\Docker\API\Model\ContainerSummaryItemHostConfig::class => false]; } } } else { @@ -81,11 +81,11 @@ class ContainerSummaryItemHostConfigNormalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainerSummaryItemHostConfig'; + return $type === \Docker\API\Model\ContainerSummaryItemHostConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainerSummaryItemHostConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainerSummaryItemHostConfig::class; } /** * @return mixed @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainerSummaryItemHostConfig' => false]; + return [\Docker\API\Model\ContainerSummaryItemHostConfig::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainerSummaryItemNetworkSettingsNormalizer.php b/src/Normalizer/ContainerSummaryItemNetworkSettingsNormalizer.php index 9049e687..b28e97e0 100644 --- a/src/Normalizer/ContainerSummaryItemNetworkSettingsNormalizer.php +++ b/src/Normalizer/ContainerSummaryItemNetworkSettingsNormalizer.php @@ -22,11 +22,11 @@ class ContainerSummaryItemNetworkSettingsNormalizer implements DenormalizerInter use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainerSummaryItemNetworkSettings'; + return $type === \Docker\API\Model\ContainerSummaryItemNetworkSettings::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainerSummaryItemNetworkSettings'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainerSummaryItemNetworkSettings::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -43,7 +43,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Networks', $data) && $data['Networks'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['Networks'] as $key => $value) { - $values[$key] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\EndpointSettings', 'json', $context); + $values[$key] = $this->denormalizer->denormalize($value, \Docker\API\Model\EndpointSettings::class, 'json', $context); } $object->setNetworks($values); unset($data['Networks']); @@ -77,7 +77,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainerSummaryItemNetworkSettings' => false]; + return [\Docker\API\Model\ContainerSummaryItemNetworkSettings::class => false]; } } } else { @@ -89,11 +89,11 @@ class ContainerSummaryItemNetworkSettingsNormalizer implements DenormalizerInter use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainerSummaryItemNetworkSettings'; + return $type === \Docker\API\Model\ContainerSummaryItemNetworkSettings::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainerSummaryItemNetworkSettings'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainerSummaryItemNetworkSettings::class; } /** * @return mixed @@ -113,7 +113,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Networks', $data) && $data['Networks'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['Networks'] as $key => $value) { - $values[$key] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\EndpointSettings', 'json', $context); + $values[$key] = $this->denormalizer->denormalize($value, \Docker\API\Model\EndpointSettings::class, 'json', $context); } $object->setNetworks($values); unset($data['Networks']); @@ -150,7 +150,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainerSummaryItemNetworkSettings' => false]; + return [\Docker\API\Model\ContainerSummaryItemNetworkSettings::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainerSummaryItemNormalizer.php b/src/Normalizer/ContainerSummaryItemNormalizer.php index 102cdbf3..a9e615e7 100644 --- a/src/Normalizer/ContainerSummaryItemNormalizer.php +++ b/src/Normalizer/ContainerSummaryItemNormalizer.php @@ -22,11 +22,11 @@ class ContainerSummaryItemNormalizer implements DenormalizerInterface, Normalize use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainerSummaryItem'; + return $type === \Docker\API\Model\ContainerSummaryItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainerSummaryItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainerSummaryItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Ports', $data) && $data['Ports'] !== null) { $values_1 = []; foreach ($data['Ports'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\Port', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\Port::class, 'json', $context); } $object->setPorts($values_1); unset($data['Ports']); @@ -137,14 +137,14 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setStatus(null); } if (\array_key_exists('HostConfig', $data) && $data['HostConfig'] !== null) { - $object->setHostConfig($this->denormalizer->denormalize($data['HostConfig'], 'Docker\\API\\Model\\ContainerSummaryItemHostConfig', 'json', $context)); + $object->setHostConfig($this->denormalizer->denormalize($data['HostConfig'], \Docker\API\Model\ContainerSummaryItemHostConfig::class, 'json', $context)); unset($data['HostConfig']); } elseif (\array_key_exists('HostConfig', $data) && $data['HostConfig'] === null) { $object->setHostConfig(null); } if (\array_key_exists('NetworkSettings', $data) && $data['NetworkSettings'] !== null) { - $object->setNetworkSettings($this->denormalizer->denormalize($data['NetworkSettings'], 'Docker\\API\\Model\\ContainerSummaryItemNetworkSettings', 'json', $context)); + $object->setNetworkSettings($this->denormalizer->denormalize($data['NetworkSettings'], \Docker\API\Model\ContainerSummaryItemNetworkSettings::class, 'json', $context)); unset($data['NetworkSettings']); } elseif (\array_key_exists('NetworkSettings', $data) && $data['NetworkSettings'] === null) { @@ -153,7 +153,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Mounts', $data) && $data['Mounts'] !== null) { $values_3 = []; foreach ($data['Mounts'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\Mount', 'json', $context); + $values_3[] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\Mount::class, 'json', $context); } $object->setMounts($values_3); unset($data['Mounts']); @@ -241,7 +241,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainerSummaryItem' => false]; + return [\Docker\API\Model\ContainerSummaryItem::class => false]; } } } else { @@ -253,11 +253,11 @@ class ContainerSummaryItemNormalizer implements DenormalizerInterface, Normalize use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainerSummaryItem'; + return $type === \Docker\API\Model\ContainerSummaryItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainerSummaryItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainerSummaryItem::class; } /** * @return mixed @@ -323,7 +323,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Ports', $data) && $data['Ports'] !== null) { $values_1 = []; foreach ($data['Ports'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\Port', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\Port::class, 'json', $context); } $object->setPorts($values_1); unset($data['Ports']); @@ -371,14 +371,14 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setStatus(null); } if (\array_key_exists('HostConfig', $data) && $data['HostConfig'] !== null) { - $object->setHostConfig($this->denormalizer->denormalize($data['HostConfig'], 'Docker\\API\\Model\\ContainerSummaryItemHostConfig', 'json', $context)); + $object->setHostConfig($this->denormalizer->denormalize($data['HostConfig'], \Docker\API\Model\ContainerSummaryItemHostConfig::class, 'json', $context)); unset($data['HostConfig']); } elseif (\array_key_exists('HostConfig', $data) && $data['HostConfig'] === null) { $object->setHostConfig(null); } if (\array_key_exists('NetworkSettings', $data) && $data['NetworkSettings'] !== null) { - $object->setNetworkSettings($this->denormalizer->denormalize($data['NetworkSettings'], 'Docker\\API\\Model\\ContainerSummaryItemNetworkSettings', 'json', $context)); + $object->setNetworkSettings($this->denormalizer->denormalize($data['NetworkSettings'], \Docker\API\Model\ContainerSummaryItemNetworkSettings::class, 'json', $context)); unset($data['NetworkSettings']); } elseif (\array_key_exists('NetworkSettings', $data) && $data['NetworkSettings'] === null) { @@ -387,7 +387,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Mounts', $data) && $data['Mounts'] !== null) { $values_3 = []; foreach ($data['Mounts'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\Mount', 'json', $context); + $values_3[] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\Mount::class, 'json', $context); } $object->setMounts($values_3); unset($data['Mounts']); @@ -478,7 +478,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainerSummaryItem' => false]; + return [\Docker\API\Model\ContainerSummaryItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainersCreatePostBodyNetworkingConfigNormalizer.php b/src/Normalizer/ContainersCreatePostBodyNetworkingConfigNormalizer.php index 22a28dfe..7271c1fd 100644 --- a/src/Normalizer/ContainersCreatePostBodyNetworkingConfigNormalizer.php +++ b/src/Normalizer/ContainersCreatePostBodyNetworkingConfigNormalizer.php @@ -22,11 +22,11 @@ class ContainersCreatePostBodyNetworkingConfigNormalizer implements Denormalizer use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersCreatePostBodyNetworkingConfig'; + return $type === \Docker\API\Model\ContainersCreatePostBodyNetworkingConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersCreatePostBodyNetworkingConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersCreatePostBodyNetworkingConfig::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -43,7 +43,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('EndpointsConfig', $data) && $data['EndpointsConfig'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['EndpointsConfig'] as $key => $value) { - $values[$key] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\EndpointSettings', 'json', $context); + $values[$key] = $this->denormalizer->denormalize($value, \Docker\API\Model\EndpointSettings::class, 'json', $context); } $object->setEndpointsConfig($values); unset($data['EndpointsConfig']); @@ -77,7 +77,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersCreatePostBodyNetworkingConfig' => false]; + return [\Docker\API\Model\ContainersCreatePostBodyNetworkingConfig::class => false]; } } } else { @@ -89,11 +89,11 @@ class ContainersCreatePostBodyNetworkingConfigNormalizer implements Denormalizer use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersCreatePostBodyNetworkingConfig'; + return $type === \Docker\API\Model\ContainersCreatePostBodyNetworkingConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersCreatePostBodyNetworkingConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersCreatePostBodyNetworkingConfig::class; } /** * @return mixed @@ -113,7 +113,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('EndpointsConfig', $data) && $data['EndpointsConfig'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['EndpointsConfig'] as $key => $value) { - $values[$key] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\EndpointSettings', 'json', $context); + $values[$key] = $this->denormalizer->denormalize($value, \Docker\API\Model\EndpointSettings::class, 'json', $context); } $object->setEndpointsConfig($values); unset($data['EndpointsConfig']); @@ -150,7 +150,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersCreatePostBodyNetworkingConfig' => false]; + return [\Docker\API\Model\ContainersCreatePostBodyNetworkingConfig::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainersCreatePostBodyNormalizer.php b/src/Normalizer/ContainersCreatePostBodyNormalizer.php index 0e00e112..c5f22540 100644 --- a/src/Normalizer/ContainersCreatePostBodyNormalizer.php +++ b/src/Normalizer/ContainersCreatePostBodyNormalizer.php @@ -22,11 +22,11 @@ class ContainersCreatePostBodyNormalizer implements DenormalizerInterface, Norma use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersCreatePostBody'; + return $type === \Docker\API\Model\ContainersCreatePostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersCreatePostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersCreatePostBody::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -85,7 +85,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('ExposedPorts', $data) && $data['ExposedPorts'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['ExposedPorts'] as $key => $value) { - $values[$key] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\ContainerConfigExposedPortsItem', 'json', $context); + $values[$key] = $this->denormalizer->denormalize($value, \Docker\API\Model\ContainerConfigExposedPortsItem::class, 'json', $context); } $object->setExposedPorts($values); unset($data['ExposedPorts']); @@ -137,7 +137,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setCmd(null); } if (\array_key_exists('Healthcheck', $data) && $data['Healthcheck'] !== null) { - $object->setHealthcheck($this->denormalizer->denormalize($data['Healthcheck'], 'Docker\\API\\Model\\HealthConfig', 'json', $context)); + $object->setHealthcheck($this->denormalizer->denormalize($data['Healthcheck'], \Docker\API\Model\HealthConfig::class, 'json', $context)); unset($data['Healthcheck']); } elseif (\array_key_exists('Healthcheck', $data) && $data['Healthcheck'] === null) { @@ -160,7 +160,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Volumes', $data) && $data['Volumes'] !== null) { $values_3 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['Volumes'] as $key_1 => $value_3) { - $values_3[$key_1] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\ContainerConfigVolumesItem', 'json', $context); + $values_3[$key_1] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\ContainerConfigVolumesItem::class, 'json', $context); } $object->setVolumes($values_3); unset($data['Volumes']); @@ -248,14 +248,14 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setShell(null); } if (\array_key_exists('HostConfig', $data) && $data['HostConfig'] !== null) { - $object->setHostConfig($this->denormalizer->denormalize($data['HostConfig'], 'Docker\\API\\Model\\HostConfig', 'json', $context)); + $object->setHostConfig($this->denormalizer->denormalize($data['HostConfig'], \Docker\API\Model\HostConfig::class, 'json', $context)); unset($data['HostConfig']); } elseif (\array_key_exists('HostConfig', $data) && $data['HostConfig'] === null) { $object->setHostConfig(null); } if (\array_key_exists('NetworkingConfig', $data) && $data['NetworkingConfig'] !== null) { - $object->setNetworkingConfig($this->denormalizer->denormalize($data['NetworkingConfig'], 'Docker\\API\\Model\\ContainersCreatePostBodyNetworkingConfig', 'json', $context)); + $object->setNetworkingConfig($this->denormalizer->denormalize($data['NetworkingConfig'], \Docker\API\Model\ContainersCreatePostBodyNetworkingConfig::class, 'json', $context)); unset($data['NetworkingConfig']); } elseif (\array_key_exists('NetworkingConfig', $data) && $data['NetworkingConfig'] === null) { @@ -393,7 +393,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersCreatePostBody' => false]; + return [\Docker\API\Model\ContainersCreatePostBody::class => false]; } } } else { @@ -405,11 +405,11 @@ class ContainersCreatePostBodyNormalizer implements DenormalizerInterface, Norma use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersCreatePostBody'; + return $type === \Docker\API\Model\ContainersCreatePostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersCreatePostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersCreatePostBody::class; } /** * @return mixed @@ -471,7 +471,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('ExposedPorts', $data) && $data['ExposedPorts'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['ExposedPorts'] as $key => $value) { - $values[$key] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\ContainerConfigExposedPortsItem', 'json', $context); + $values[$key] = $this->denormalizer->denormalize($value, \Docker\API\Model\ContainerConfigExposedPortsItem::class, 'json', $context); } $object->setExposedPorts($values); unset($data['ExposedPorts']); @@ -523,7 +523,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setCmd(null); } if (\array_key_exists('Healthcheck', $data) && $data['Healthcheck'] !== null) { - $object->setHealthcheck($this->denormalizer->denormalize($data['Healthcheck'], 'Docker\\API\\Model\\HealthConfig', 'json', $context)); + $object->setHealthcheck($this->denormalizer->denormalize($data['Healthcheck'], \Docker\API\Model\HealthConfig::class, 'json', $context)); unset($data['Healthcheck']); } elseif (\array_key_exists('Healthcheck', $data) && $data['Healthcheck'] === null) { @@ -546,7 +546,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Volumes', $data) && $data['Volumes'] !== null) { $values_3 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['Volumes'] as $key_1 => $value_3) { - $values_3[$key_1] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\ContainerConfigVolumesItem', 'json', $context); + $values_3[$key_1] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\ContainerConfigVolumesItem::class, 'json', $context); } $object->setVolumes($values_3); unset($data['Volumes']); @@ -634,14 +634,14 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setShell(null); } if (\array_key_exists('HostConfig', $data) && $data['HostConfig'] !== null) { - $object->setHostConfig($this->denormalizer->denormalize($data['HostConfig'], 'Docker\\API\\Model\\HostConfig', 'json', $context)); + $object->setHostConfig($this->denormalizer->denormalize($data['HostConfig'], \Docker\API\Model\HostConfig::class, 'json', $context)); unset($data['HostConfig']); } elseif (\array_key_exists('HostConfig', $data) && $data['HostConfig'] === null) { $object->setHostConfig(null); } if (\array_key_exists('NetworkingConfig', $data) && $data['NetworkingConfig'] !== null) { - $object->setNetworkingConfig($this->denormalizer->denormalize($data['NetworkingConfig'], 'Docker\\API\\Model\\ContainersCreatePostBodyNetworkingConfig', 'json', $context)); + $object->setNetworkingConfig($this->denormalizer->denormalize($data['NetworkingConfig'], \Docker\API\Model\ContainersCreatePostBodyNetworkingConfig::class, 'json', $context)); unset($data['NetworkingConfig']); } elseif (\array_key_exists('NetworkingConfig', $data) && $data['NetworkingConfig'] === null) { @@ -782,7 +782,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersCreatePostBody' => false]; + return [\Docker\API\Model\ContainersCreatePostBody::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainersCreatePostResponse201Normalizer.php b/src/Normalizer/ContainersCreatePostResponse201Normalizer.php index 921ef281..f21700b4 100644 --- a/src/Normalizer/ContainersCreatePostResponse201Normalizer.php +++ b/src/Normalizer/ContainersCreatePostResponse201Normalizer.php @@ -22,11 +22,11 @@ class ContainersCreatePostResponse201Normalizer implements DenormalizerInterface use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersCreatePostResponse201'; + return $type === \Docker\API\Model\ContainersCreatePostResponse201::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersCreatePostResponse201'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersCreatePostResponse201::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -83,7 +83,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersCreatePostResponse201' => false]; + return [\Docker\API\Model\ContainersCreatePostResponse201::class => false]; } } } else { @@ -95,11 +95,11 @@ class ContainersCreatePostResponse201Normalizer implements DenormalizerInterface use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersCreatePostResponse201'; + return $type === \Docker\API\Model\ContainersCreatePostResponse201::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersCreatePostResponse201'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersCreatePostResponse201::class; } /** * @return mixed @@ -162,7 +162,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersCreatePostResponse201' => false]; + return [\Docker\API\Model\ContainersCreatePostResponse201::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainersIdArchiveGetResponse400Normalizer.php b/src/Normalizer/ContainersIdArchiveGetResponse400Normalizer.php index 8def7acc..1a8d26cc 100644 --- a/src/Normalizer/ContainersIdArchiveGetResponse400Normalizer.php +++ b/src/Normalizer/ContainersIdArchiveGetResponse400Normalizer.php @@ -22,11 +22,11 @@ class ContainersIdArchiveGetResponse400Normalizer implements DenormalizerInterfa use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdArchiveGetResponse400'; + return $type === \Docker\API\Model\ContainersIdArchiveGetResponse400::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdArchiveGetResponse400'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdArchiveGetResponse400::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdArchiveGetResponse400' => false]; + return [\Docker\API\Model\ContainersIdArchiveGetResponse400::class => false]; } } } else { @@ -81,11 +81,11 @@ class ContainersIdArchiveGetResponse400Normalizer implements DenormalizerInterfa use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdArchiveGetResponse400'; + return $type === \Docker\API\Model\ContainersIdArchiveGetResponse400::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdArchiveGetResponse400'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdArchiveGetResponse400::class; } /** * @return mixed @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdArchiveGetResponse400' => false]; + return [\Docker\API\Model\ContainersIdArchiveGetResponse400::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainersIdArchiveHeadJsonResponse400Normalizer.php b/src/Normalizer/ContainersIdArchiveHeadJsonResponse400Normalizer.php index 5ef827e4..1a3037f1 100644 --- a/src/Normalizer/ContainersIdArchiveHeadJsonResponse400Normalizer.php +++ b/src/Normalizer/ContainersIdArchiveHeadJsonResponse400Normalizer.php @@ -22,11 +22,11 @@ class ContainersIdArchiveHeadJsonResponse400Normalizer implements DenormalizerIn use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdArchiveHeadJsonResponse400'; + return $type === \Docker\API\Model\ContainersIdArchiveHeadJsonResponse400::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdArchiveHeadJsonResponse400'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdArchiveHeadJsonResponse400::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdArchiveHeadJsonResponse400' => false]; + return [\Docker\API\Model\ContainersIdArchiveHeadJsonResponse400::class => false]; } } } else { @@ -81,11 +81,11 @@ class ContainersIdArchiveHeadJsonResponse400Normalizer implements DenormalizerIn use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdArchiveHeadJsonResponse400'; + return $type === \Docker\API\Model\ContainersIdArchiveHeadJsonResponse400::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdArchiveHeadJsonResponse400'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdArchiveHeadJsonResponse400::class; } /** * @return mixed @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdArchiveHeadJsonResponse400' => false]; + return [\Docker\API\Model\ContainersIdArchiveHeadJsonResponse400::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainersIdArchiveHeadTextplainResponse400Normalizer.php b/src/Normalizer/ContainersIdArchiveHeadTextplainResponse400Normalizer.php index ad5a60e8..927c30e6 100644 --- a/src/Normalizer/ContainersIdArchiveHeadTextplainResponse400Normalizer.php +++ b/src/Normalizer/ContainersIdArchiveHeadTextplainResponse400Normalizer.php @@ -22,11 +22,11 @@ class ContainersIdArchiveHeadTextplainResponse400Normalizer implements Denormali use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdArchiveHeadTextplainResponse400'; + return $type === \Docker\API\Model\ContainersIdArchiveHeadTextplainResponse400::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdArchiveHeadTextplainResponse400'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdArchiveHeadTextplainResponse400::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdArchiveHeadTextplainResponse400' => false]; + return [\Docker\API\Model\ContainersIdArchiveHeadTextplainResponse400::class => false]; } } } else { @@ -81,11 +81,11 @@ class ContainersIdArchiveHeadTextplainResponse400Normalizer implements Denormali use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdArchiveHeadTextplainResponse400'; + return $type === \Docker\API\Model\ContainersIdArchiveHeadTextplainResponse400::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdArchiveHeadTextplainResponse400'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdArchiveHeadTextplainResponse400::class; } /** * @return mixed @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdArchiveHeadTextplainResponse400' => false]; + return [\Docker\API\Model\ContainersIdArchiveHeadTextplainResponse400::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainersIdChangesGetResponse200ItemNormalizer.php b/src/Normalizer/ContainersIdChangesGetResponse200ItemNormalizer.php index 90b57b0d..58c84b9c 100644 --- a/src/Normalizer/ContainersIdChangesGetResponse200ItemNormalizer.php +++ b/src/Normalizer/ContainersIdChangesGetResponse200ItemNormalizer.php @@ -22,11 +22,11 @@ class ContainersIdChangesGetResponse200ItemNormalizer implements DenormalizerInt use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdChangesGetResponse200Item'; + return $type === \Docker\API\Model\ContainersIdChangesGetResponse200Item::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdChangesGetResponse200Item'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdChangesGetResponse200Item::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -75,7 +75,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdChangesGetResponse200Item' => false]; + return [\Docker\API\Model\ContainersIdChangesGetResponse200Item::class => false]; } } } else { @@ -87,11 +87,11 @@ class ContainersIdChangesGetResponse200ItemNormalizer implements DenormalizerInt use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdChangesGetResponse200Item'; + return $type === \Docker\API\Model\ContainersIdChangesGetResponse200Item::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdChangesGetResponse200Item'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdChangesGetResponse200Item::class; } /** * @return mixed @@ -146,7 +146,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdChangesGetResponse200Item' => false]; + return [\Docker\API\Model\ContainersIdChangesGetResponse200Item::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainersIdExecPostBodyNormalizer.php b/src/Normalizer/ContainersIdExecPostBodyNormalizer.php index 6dc0ac8d..4bd23f52 100644 --- a/src/Normalizer/ContainersIdExecPostBodyNormalizer.php +++ b/src/Normalizer/ContainersIdExecPostBodyNormalizer.php @@ -22,11 +22,11 @@ class ContainersIdExecPostBodyNormalizer implements DenormalizerInterface, Norma use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdExecPostBody'; + return $type === \Docker\API\Model\ContainersIdExecPostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdExecPostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdExecPostBody::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -175,7 +175,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdExecPostBody' => false]; + return [\Docker\API\Model\ContainersIdExecPostBody::class => false]; } } } else { @@ -187,11 +187,11 @@ class ContainersIdExecPostBodyNormalizer implements DenormalizerInterface, Norma use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdExecPostBody'; + return $type === \Docker\API\Model\ContainersIdExecPostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdExecPostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdExecPostBody::class; } /** * @return mixed @@ -346,7 +346,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdExecPostBody' => false]; + return [\Docker\API\Model\ContainersIdExecPostBody::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainersIdJsonGetResponse200NodeNormalizer.php b/src/Normalizer/ContainersIdJsonGetResponse200NodeNormalizer.php index 1081f854..ed8a4bf8 100644 --- a/src/Normalizer/ContainersIdJsonGetResponse200NodeNormalizer.php +++ b/src/Normalizer/ContainersIdJsonGetResponse200NodeNormalizer.php @@ -22,11 +22,11 @@ class ContainersIdJsonGetResponse200NodeNormalizer implements DenormalizerInterf use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdJsonGetResponse200Node'; + return $type === \Docker\API\Model\ContainersIdJsonGetResponse200Node::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdJsonGetResponse200Node'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdJsonGetResponse200Node::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -59,7 +59,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdJsonGetResponse200Node' => false]; + return [\Docker\API\Model\ContainersIdJsonGetResponse200Node::class => false]; } } } else { @@ -71,11 +71,11 @@ class ContainersIdJsonGetResponse200NodeNormalizer implements DenormalizerInterf use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdJsonGetResponse200Node'; + return $type === \Docker\API\Model\ContainersIdJsonGetResponse200Node::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdJsonGetResponse200Node'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdJsonGetResponse200Node::class; } /** * @return mixed @@ -114,7 +114,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdJsonGetResponse200Node' => false]; + return [\Docker\API\Model\ContainersIdJsonGetResponse200Node::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainersIdJsonGetResponse200Normalizer.php b/src/Normalizer/ContainersIdJsonGetResponse200Normalizer.php index 772283f5..5c7874e6 100644 --- a/src/Normalizer/ContainersIdJsonGetResponse200Normalizer.php +++ b/src/Normalizer/ContainersIdJsonGetResponse200Normalizer.php @@ -22,11 +22,11 @@ class ContainersIdJsonGetResponse200Normalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdJsonGetResponse200'; + return $type === \Docker\API\Model\ContainersIdJsonGetResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdJsonGetResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdJsonGetResponse200::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -73,7 +73,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setArgs(null); } if (\array_key_exists('State', $data) && $data['State'] !== null) { - $object->setState($this->denormalizer->denormalize($data['State'], 'Docker\\API\\Model\\ContainersIdJsonGetResponse200State', 'json', $context)); + $object->setState($this->denormalizer->denormalize($data['State'], \Docker\API\Model\ContainersIdJsonGetResponse200State::class, 'json', $context)); unset($data['State']); } elseif (\array_key_exists('State', $data) && $data['State'] === null) { @@ -115,7 +115,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setLogPath(null); } if (\array_key_exists('Node', $data) && $data['Node'] !== null) { - $object->setNode($this->denormalizer->denormalize($data['Node'], 'Docker\\API\\Model\\ContainersIdJsonGetResponse200Node', 'json', $context)); + $object->setNode($this->denormalizer->denormalize($data['Node'], \Docker\API\Model\ContainersIdJsonGetResponse200Node::class, 'json', $context)); unset($data['Node']); } elseif (\array_key_exists('Node', $data) && $data['Node'] === null) { @@ -171,14 +171,14 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setExecIDs(null); } if (\array_key_exists('HostConfig', $data) && $data['HostConfig'] !== null) { - $object->setHostConfig($this->denormalizer->denormalize($data['HostConfig'], 'Docker\\API\\Model\\HostConfig', 'json', $context)); + $object->setHostConfig($this->denormalizer->denormalize($data['HostConfig'], \Docker\API\Model\HostConfig::class, 'json', $context)); unset($data['HostConfig']); } elseif (\array_key_exists('HostConfig', $data) && $data['HostConfig'] === null) { $object->setHostConfig(null); } if (\array_key_exists('GraphDriver', $data) && $data['GraphDriver'] !== null) { - $object->setGraphDriver($this->denormalizer->denormalize($data['GraphDriver'], 'Docker\\API\\Model\\GraphDriverData', 'json', $context)); + $object->setGraphDriver($this->denormalizer->denormalize($data['GraphDriver'], \Docker\API\Model\GraphDriverData::class, 'json', $context)); unset($data['GraphDriver']); } elseif (\array_key_exists('GraphDriver', $data) && $data['GraphDriver'] === null) { @@ -201,7 +201,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Mounts', $data) && $data['Mounts'] !== null) { $values_1 = []; foreach ($data['Mounts'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\MountPoint', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\MountPoint::class, 'json', $context); } $object->setMounts($values_1); unset($data['Mounts']); @@ -210,14 +210,14 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setMounts(null); } if (\array_key_exists('Config', $data) && $data['Config'] !== null) { - $object->setConfig($this->denormalizer->denormalize($data['Config'], 'Docker\\API\\Model\\ContainerConfig', 'json', $context)); + $object->setConfig($this->denormalizer->denormalize($data['Config'], \Docker\API\Model\ContainerConfig::class, 'json', $context)); unset($data['Config']); } elseif (\array_key_exists('Config', $data) && $data['Config'] === null) { $object->setConfig(null); } if (\array_key_exists('NetworkSettings', $data) && $data['NetworkSettings'] !== null) { - $object->setNetworkSettings($this->denormalizer->denormalize($data['NetworkSettings'], 'Docker\\API\\Model\\NetworkSettings', 'json', $context)); + $object->setNetworkSettings($this->denormalizer->denormalize($data['NetworkSettings'], \Docker\API\Model\NetworkSettings::class, 'json', $context)); unset($data['NetworkSettings']); } elseif (\array_key_exists('NetworkSettings', $data) && $data['NetworkSettings'] === null) { @@ -325,7 +325,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdJsonGetResponse200' => false]; + return [\Docker\API\Model\ContainersIdJsonGetResponse200::class => false]; } } } else { @@ -337,11 +337,11 @@ class ContainersIdJsonGetResponse200Normalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdJsonGetResponse200'; + return $type === \Docker\API\Model\ContainersIdJsonGetResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdJsonGetResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdJsonGetResponse200::class; } /** * @return mixed @@ -391,7 +391,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setArgs(null); } if (\array_key_exists('State', $data) && $data['State'] !== null) { - $object->setState($this->denormalizer->denormalize($data['State'], 'Docker\\API\\Model\\ContainersIdJsonGetResponse200State', 'json', $context)); + $object->setState($this->denormalizer->denormalize($data['State'], \Docker\API\Model\ContainersIdJsonGetResponse200State::class, 'json', $context)); unset($data['State']); } elseif (\array_key_exists('State', $data) && $data['State'] === null) { @@ -433,7 +433,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setLogPath(null); } if (\array_key_exists('Node', $data) && $data['Node'] !== null) { - $object->setNode($this->denormalizer->denormalize($data['Node'], 'Docker\\API\\Model\\ContainersIdJsonGetResponse200Node', 'json', $context)); + $object->setNode($this->denormalizer->denormalize($data['Node'], \Docker\API\Model\ContainersIdJsonGetResponse200Node::class, 'json', $context)); unset($data['Node']); } elseif (\array_key_exists('Node', $data) && $data['Node'] === null) { @@ -489,14 +489,14 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setExecIDs(null); } if (\array_key_exists('HostConfig', $data) && $data['HostConfig'] !== null) { - $object->setHostConfig($this->denormalizer->denormalize($data['HostConfig'], 'Docker\\API\\Model\\HostConfig', 'json', $context)); + $object->setHostConfig($this->denormalizer->denormalize($data['HostConfig'], \Docker\API\Model\HostConfig::class, 'json', $context)); unset($data['HostConfig']); } elseif (\array_key_exists('HostConfig', $data) && $data['HostConfig'] === null) { $object->setHostConfig(null); } if (\array_key_exists('GraphDriver', $data) && $data['GraphDriver'] !== null) { - $object->setGraphDriver($this->denormalizer->denormalize($data['GraphDriver'], 'Docker\\API\\Model\\GraphDriverData', 'json', $context)); + $object->setGraphDriver($this->denormalizer->denormalize($data['GraphDriver'], \Docker\API\Model\GraphDriverData::class, 'json', $context)); unset($data['GraphDriver']); } elseif (\array_key_exists('GraphDriver', $data) && $data['GraphDriver'] === null) { @@ -519,7 +519,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Mounts', $data) && $data['Mounts'] !== null) { $values_1 = []; foreach ($data['Mounts'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\MountPoint', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\MountPoint::class, 'json', $context); } $object->setMounts($values_1); unset($data['Mounts']); @@ -528,14 +528,14 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setMounts(null); } if (\array_key_exists('Config', $data) && $data['Config'] !== null) { - $object->setConfig($this->denormalizer->denormalize($data['Config'], 'Docker\\API\\Model\\ContainerConfig', 'json', $context)); + $object->setConfig($this->denormalizer->denormalize($data['Config'], \Docker\API\Model\ContainerConfig::class, 'json', $context)); unset($data['Config']); } elseif (\array_key_exists('Config', $data) && $data['Config'] === null) { $object->setConfig(null); } if (\array_key_exists('NetworkSettings', $data) && $data['NetworkSettings'] !== null) { - $object->setNetworkSettings($this->denormalizer->denormalize($data['NetworkSettings'], 'Docker\\API\\Model\\NetworkSettings', 'json', $context)); + $object->setNetworkSettings($this->denormalizer->denormalize($data['NetworkSettings'], \Docker\API\Model\NetworkSettings::class, 'json', $context)); unset($data['NetworkSettings']); } elseif (\array_key_exists('NetworkSettings', $data) && $data['NetworkSettings'] === null) { @@ -646,7 +646,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdJsonGetResponse200' => false]; + return [\Docker\API\Model\ContainersIdJsonGetResponse200::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainersIdJsonGetResponse200StateNormalizer.php b/src/Normalizer/ContainersIdJsonGetResponse200StateNormalizer.php index 3343efa1..157b4370 100644 --- a/src/Normalizer/ContainersIdJsonGetResponse200StateNormalizer.php +++ b/src/Normalizer/ContainersIdJsonGetResponse200StateNormalizer.php @@ -22,11 +22,11 @@ class ContainersIdJsonGetResponse200StateNormalizer implements DenormalizerInter use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdJsonGetResponse200State'; + return $type === \Docker\API\Model\ContainersIdJsonGetResponse200State::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdJsonGetResponse200State'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdJsonGetResponse200State::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -169,7 +169,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdJsonGetResponse200State' => false]; + return [\Docker\API\Model\ContainersIdJsonGetResponse200State::class => false]; } } } else { @@ -181,11 +181,11 @@ class ContainersIdJsonGetResponse200StateNormalizer implements DenormalizerInter use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdJsonGetResponse200State'; + return $type === \Docker\API\Model\ContainersIdJsonGetResponse200State::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdJsonGetResponse200State'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdJsonGetResponse200State::class; } /** * @return mixed @@ -334,7 +334,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdJsonGetResponse200State' => false]; + return [\Docker\API\Model\ContainersIdJsonGetResponse200State::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainersIdTopGetJsonResponse200Normalizer.php b/src/Normalizer/ContainersIdTopGetJsonResponse200Normalizer.php index fdda57e4..eeb3352d 100644 --- a/src/Normalizer/ContainersIdTopGetJsonResponse200Normalizer.php +++ b/src/Normalizer/ContainersIdTopGetJsonResponse200Normalizer.php @@ -22,11 +22,11 @@ class ContainersIdTopGetJsonResponse200Normalizer implements DenormalizerInterfa use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdTopGetJsonResponse200'; + return $type === \Docker\API\Model\ContainersIdTopGetJsonResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdTopGetJsonResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdTopGetJsonResponse200::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -103,7 +103,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdTopGetJsonResponse200' => false]; + return [\Docker\API\Model\ContainersIdTopGetJsonResponse200::class => false]; } } } else { @@ -115,11 +115,11 @@ class ContainersIdTopGetJsonResponse200Normalizer implements DenormalizerInterfa use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdTopGetJsonResponse200'; + return $type === \Docker\API\Model\ContainersIdTopGetJsonResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdTopGetJsonResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdTopGetJsonResponse200::class; } /** * @return mixed @@ -202,7 +202,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdTopGetJsonResponse200' => false]; + return [\Docker\API\Model\ContainersIdTopGetJsonResponse200::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainersIdTopGetTextplainResponse200Normalizer.php b/src/Normalizer/ContainersIdTopGetTextplainResponse200Normalizer.php index 565cb752..4bbc98c3 100644 --- a/src/Normalizer/ContainersIdTopGetTextplainResponse200Normalizer.php +++ b/src/Normalizer/ContainersIdTopGetTextplainResponse200Normalizer.php @@ -22,11 +22,11 @@ class ContainersIdTopGetTextplainResponse200Normalizer implements DenormalizerIn use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdTopGetTextplainResponse200'; + return $type === \Docker\API\Model\ContainersIdTopGetTextplainResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdTopGetTextplainResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdTopGetTextplainResponse200::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -103,7 +103,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdTopGetTextplainResponse200' => false]; + return [\Docker\API\Model\ContainersIdTopGetTextplainResponse200::class => false]; } } } else { @@ -115,11 +115,11 @@ class ContainersIdTopGetTextplainResponse200Normalizer implements DenormalizerIn use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdTopGetTextplainResponse200'; + return $type === \Docker\API\Model\ContainersIdTopGetTextplainResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdTopGetTextplainResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdTopGetTextplainResponse200::class; } /** * @return mixed @@ -202,7 +202,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdTopGetTextplainResponse200' => false]; + return [\Docker\API\Model\ContainersIdTopGetTextplainResponse200::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainersIdUpdatePostBodyNormalizer.php b/src/Normalizer/ContainersIdUpdatePostBodyNormalizer.php index f9e3ec23..04f7c66e 100644 --- a/src/Normalizer/ContainersIdUpdatePostBodyNormalizer.php +++ b/src/Normalizer/ContainersIdUpdatePostBodyNormalizer.php @@ -22,11 +22,11 @@ class ContainersIdUpdatePostBodyNormalizer implements DenormalizerInterface, Nor use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdUpdatePostBody'; + return $type === \Docker\API\Model\ContainersIdUpdatePostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdUpdatePostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdUpdatePostBody::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -71,7 +71,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('BlkioWeightDevice', $data) && $data['BlkioWeightDevice'] !== null) { $values = []; foreach ($data['BlkioWeightDevice'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\ResourcesBlkioWeightDeviceItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\ResourcesBlkioWeightDeviceItem::class, 'json', $context); } $object->setBlkioWeightDevice($values); unset($data['BlkioWeightDevice']); @@ -82,7 +82,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('BlkioDeviceReadBps', $data) && $data['BlkioDeviceReadBps'] !== null) { $values_1 = []; foreach ($data['BlkioDeviceReadBps'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceReadBps($values_1); unset($data['BlkioDeviceReadBps']); @@ -93,7 +93,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('BlkioDeviceWriteBps', $data) && $data['BlkioDeviceWriteBps'] !== null) { $values_2 = []; foreach ($data['BlkioDeviceWriteBps'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_2[] = $this->denormalizer->denormalize($value_2, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceWriteBps($values_2); unset($data['BlkioDeviceWriteBps']); @@ -104,7 +104,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('BlkioDeviceReadIOps', $data) && $data['BlkioDeviceReadIOps'] !== null) { $values_3 = []; foreach ($data['BlkioDeviceReadIOps'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_3[] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceReadIOps($values_3); unset($data['BlkioDeviceReadIOps']); @@ -115,7 +115,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('BlkioDeviceWriteIOps', $data) && $data['BlkioDeviceWriteIOps'] !== null) { $values_4 = []; foreach ($data['BlkioDeviceWriteIOps'] as $value_4) { - $values_4[] = $this->denormalizer->denormalize($value_4, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_4[] = $this->denormalizer->denormalize($value_4, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceWriteIOps($values_4); unset($data['BlkioDeviceWriteIOps']); @@ -168,7 +168,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Devices', $data) && $data['Devices'] !== null) { $values_5 = []; foreach ($data['Devices'] as $value_5) { - $values_5[] = $this->denormalizer->denormalize($value_5, 'Docker\\API\\Model\\DeviceMapping', 'json', $context); + $values_5[] = $this->denormalizer->denormalize($value_5, \Docker\API\Model\DeviceMapping::class, 'json', $context); } $object->setDevices($values_5); unset($data['Devices']); @@ -246,7 +246,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Ulimits', $data) && $data['Ulimits'] !== null) { $values_7 = []; foreach ($data['Ulimits'] as $value_7) { - $values_7[] = $this->denormalizer->denormalize($value_7, 'Docker\\API\\Model\\ResourcesUlimitsItem', 'json', $context); + $values_7[] = $this->denormalizer->denormalize($value_7, \Docker\API\Model\ResourcesUlimitsItem::class, 'json', $context); } $object->setUlimits($values_7); unset($data['Ulimits']); @@ -283,7 +283,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setIOMaximumBandwidth(null); } if (\array_key_exists('RestartPolicy', $data) && $data['RestartPolicy'] !== null) { - $object->setRestartPolicy($this->denormalizer->denormalize($data['RestartPolicy'], 'Docker\\API\\Model\\RestartPolicy', 'json', $context)); + $object->setRestartPolicy($this->denormalizer->denormalize($data['RestartPolicy'], \Docker\API\Model\RestartPolicy::class, 'json', $context)); unset($data['RestartPolicy']); } elseif (\array_key_exists('RestartPolicy', $data) && $data['RestartPolicy'] === null) { @@ -433,7 +433,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdUpdatePostBody' => false]; + return [\Docker\API\Model\ContainersIdUpdatePostBody::class => false]; } } } else { @@ -445,11 +445,11 @@ class ContainersIdUpdatePostBodyNormalizer implements DenormalizerInterface, Nor use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdUpdatePostBody'; + return $type === \Docker\API\Model\ContainersIdUpdatePostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdUpdatePostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdUpdatePostBody::class; } /** * @return mixed @@ -497,7 +497,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('BlkioWeightDevice', $data) && $data['BlkioWeightDevice'] !== null) { $values = []; foreach ($data['BlkioWeightDevice'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\ResourcesBlkioWeightDeviceItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\ResourcesBlkioWeightDeviceItem::class, 'json', $context); } $object->setBlkioWeightDevice($values); unset($data['BlkioWeightDevice']); @@ -508,7 +508,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('BlkioDeviceReadBps', $data) && $data['BlkioDeviceReadBps'] !== null) { $values_1 = []; foreach ($data['BlkioDeviceReadBps'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceReadBps($values_1); unset($data['BlkioDeviceReadBps']); @@ -519,7 +519,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('BlkioDeviceWriteBps', $data) && $data['BlkioDeviceWriteBps'] !== null) { $values_2 = []; foreach ($data['BlkioDeviceWriteBps'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_2[] = $this->denormalizer->denormalize($value_2, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceWriteBps($values_2); unset($data['BlkioDeviceWriteBps']); @@ -530,7 +530,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('BlkioDeviceReadIOps', $data) && $data['BlkioDeviceReadIOps'] !== null) { $values_3 = []; foreach ($data['BlkioDeviceReadIOps'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_3[] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceReadIOps($values_3); unset($data['BlkioDeviceReadIOps']); @@ -541,7 +541,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('BlkioDeviceWriteIOps', $data) && $data['BlkioDeviceWriteIOps'] !== null) { $values_4 = []; foreach ($data['BlkioDeviceWriteIOps'] as $value_4) { - $values_4[] = $this->denormalizer->denormalize($value_4, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_4[] = $this->denormalizer->denormalize($value_4, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceWriteIOps($values_4); unset($data['BlkioDeviceWriteIOps']); @@ -594,7 +594,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Devices', $data) && $data['Devices'] !== null) { $values_5 = []; foreach ($data['Devices'] as $value_5) { - $values_5[] = $this->denormalizer->denormalize($value_5, 'Docker\\API\\Model\\DeviceMapping', 'json', $context); + $values_5[] = $this->denormalizer->denormalize($value_5, \Docker\API\Model\DeviceMapping::class, 'json', $context); } $object->setDevices($values_5); unset($data['Devices']); @@ -672,7 +672,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Ulimits', $data) && $data['Ulimits'] !== null) { $values_7 = []; foreach ($data['Ulimits'] as $value_7) { - $values_7[] = $this->denormalizer->denormalize($value_7, 'Docker\\API\\Model\\ResourcesUlimitsItem', 'json', $context); + $values_7[] = $this->denormalizer->denormalize($value_7, \Docker\API\Model\ResourcesUlimitsItem::class, 'json', $context); } $object->setUlimits($values_7); unset($data['Ulimits']); @@ -709,7 +709,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setIOMaximumBandwidth(null); } if (\array_key_exists('RestartPolicy', $data) && $data['RestartPolicy'] !== null) { - $object->setRestartPolicy($this->denormalizer->denormalize($data['RestartPolicy'], 'Docker\\API\\Model\\RestartPolicy', 'json', $context)); + $object->setRestartPolicy($this->denormalizer->denormalize($data['RestartPolicy'], \Docker\API\Model\RestartPolicy::class, 'json', $context)); unset($data['RestartPolicy']); } elseif (\array_key_exists('RestartPolicy', $data) && $data['RestartPolicy'] === null) { @@ -862,7 +862,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdUpdatePostBody' => false]; + return [\Docker\API\Model\ContainersIdUpdatePostBody::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainersIdUpdatePostResponse200Normalizer.php b/src/Normalizer/ContainersIdUpdatePostResponse200Normalizer.php index a39d7a3c..85d8b798 100644 --- a/src/Normalizer/ContainersIdUpdatePostResponse200Normalizer.php +++ b/src/Normalizer/ContainersIdUpdatePostResponse200Normalizer.php @@ -22,11 +22,11 @@ class ContainersIdUpdatePostResponse200Normalizer implements DenormalizerInterfa use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdUpdatePostResponse200'; + return $type === \Docker\API\Model\ContainersIdUpdatePostResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdUpdatePostResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdUpdatePostResponse200::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -77,7 +77,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdUpdatePostResponse200' => false]; + return [\Docker\API\Model\ContainersIdUpdatePostResponse200::class => false]; } } } else { @@ -89,11 +89,11 @@ class ContainersIdUpdatePostResponse200Normalizer implements DenormalizerInterfa use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdUpdatePostResponse200'; + return $type === \Docker\API\Model\ContainersIdUpdatePostResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdUpdatePostResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdUpdatePostResponse200::class; } /** * @return mixed @@ -150,7 +150,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdUpdatePostResponse200' => false]; + return [\Docker\API\Model\ContainersIdUpdatePostResponse200::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainersIdWaitPostResponse200ErrorNormalizer.php b/src/Normalizer/ContainersIdWaitPostResponse200ErrorNormalizer.php index 83436b06..74fff5fe 100644 --- a/src/Normalizer/ContainersIdWaitPostResponse200ErrorNormalizer.php +++ b/src/Normalizer/ContainersIdWaitPostResponse200ErrorNormalizer.php @@ -22,11 +22,11 @@ class ContainersIdWaitPostResponse200ErrorNormalizer implements DenormalizerInte use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdWaitPostResponse200Error'; + return $type === \Docker\API\Model\ContainersIdWaitPostResponse200Error::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdWaitPostResponse200Error'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdWaitPostResponse200Error::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdWaitPostResponse200Error' => false]; + return [\Docker\API\Model\ContainersIdWaitPostResponse200Error::class => false]; } } } else { @@ -81,11 +81,11 @@ class ContainersIdWaitPostResponse200ErrorNormalizer implements DenormalizerInte use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdWaitPostResponse200Error'; + return $type === \Docker\API\Model\ContainersIdWaitPostResponse200Error::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdWaitPostResponse200Error'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdWaitPostResponse200Error::class; } /** * @return mixed @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdWaitPostResponse200Error' => false]; + return [\Docker\API\Model\ContainersIdWaitPostResponse200Error::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainersIdWaitPostResponse200Normalizer.php b/src/Normalizer/ContainersIdWaitPostResponse200Normalizer.php index 994f7e55..1313efcb 100644 --- a/src/Normalizer/ContainersIdWaitPostResponse200Normalizer.php +++ b/src/Normalizer/ContainersIdWaitPostResponse200Normalizer.php @@ -22,11 +22,11 @@ class ContainersIdWaitPostResponse200Normalizer implements DenormalizerInterface use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdWaitPostResponse200'; + return $type === \Docker\API\Model\ContainersIdWaitPostResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdWaitPostResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdWaitPostResponse200::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -48,7 +48,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setStatusCode(null); } if (\array_key_exists('Error', $data) && $data['Error'] !== null) { - $object->setError($this->denormalizer->denormalize($data['Error'], 'Docker\\API\\Model\\ContainersIdWaitPostResponse200Error', 'json', $context)); + $object->setError($this->denormalizer->denormalize($data['Error'], \Docker\API\Model\ContainersIdWaitPostResponse200Error::class, 'json', $context)); unset($data['Error']); } elseif (\array_key_exists('Error', $data) && $data['Error'] === null) { @@ -77,7 +77,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdWaitPostResponse200' => false]; + return [\Docker\API\Model\ContainersIdWaitPostResponse200::class => false]; } } } else { @@ -89,11 +89,11 @@ class ContainersIdWaitPostResponse200Normalizer implements DenormalizerInterface use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersIdWaitPostResponse200'; + return $type === \Docker\API\Model\ContainersIdWaitPostResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersIdWaitPostResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersIdWaitPostResponse200::class; } /** * @return mixed @@ -118,7 +118,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setStatusCode(null); } if (\array_key_exists('Error', $data) && $data['Error'] !== null) { - $object->setError($this->denormalizer->denormalize($data['Error'], 'Docker\\API\\Model\\ContainersIdWaitPostResponse200Error', 'json', $context)); + $object->setError($this->denormalizer->denormalize($data['Error'], \Docker\API\Model\ContainersIdWaitPostResponse200Error::class, 'json', $context)); unset($data['Error']); } elseif (\array_key_exists('Error', $data) && $data['Error'] === null) { @@ -150,7 +150,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersIdWaitPostResponse200' => false]; + return [\Docker\API\Model\ContainersIdWaitPostResponse200::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ContainersPrunePostResponse200Normalizer.php b/src/Normalizer/ContainersPrunePostResponse200Normalizer.php index befd2be1..6833dfde 100644 --- a/src/Normalizer/ContainersPrunePostResponse200Normalizer.php +++ b/src/Normalizer/ContainersPrunePostResponse200Normalizer.php @@ -22,11 +22,11 @@ class ContainersPrunePostResponse200Normalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersPrunePostResponse200'; + return $type === \Docker\API\Model\ContainersPrunePostResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersPrunePostResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersPrunePostResponse200::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -87,7 +87,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersPrunePostResponse200' => false]; + return [\Docker\API\Model\ContainersPrunePostResponse200::class => false]; } } } else { @@ -99,11 +99,11 @@ class ContainersPrunePostResponse200Normalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ContainersPrunePostResponse200'; + return $type === \Docker\API\Model\ContainersPrunePostResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ContainersPrunePostResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\ContainersPrunePostResponse200::class; } /** * @return mixed @@ -170,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ContainersPrunePostResponse200' => false]; + return [\Docker\API\Model\ContainersPrunePostResponse200::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/CreateImageInfoNormalizer.php b/src/Normalizer/CreateImageInfoNormalizer.php index 7e473af7..bae97848 100644 --- a/src/Normalizer/CreateImageInfoNormalizer.php +++ b/src/Normalizer/CreateImageInfoNormalizer.php @@ -22,11 +22,11 @@ class CreateImageInfoNormalizer implements DenormalizerInterface, NormalizerInte use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\CreateImageInfo'; + return $type === \Docker\API\Model\CreateImageInfo::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\CreateImageInfo'; + return is_object($data) && get_class($data) === \Docker\API\Model\CreateImageInfo::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setProgress(null); } if (\array_key_exists('progressDetail', $data) && $data['progressDetail'] !== null) { - $object->setProgressDetail($this->denormalizer->denormalize($data['progressDetail'], 'Docker\\API\\Model\\ProgressDetail', 'json', $context)); + $object->setProgressDetail($this->denormalizer->denormalize($data['progressDetail'], \Docker\API\Model\ProgressDetail::class, 'json', $context)); unset($data['progressDetail']); } elseif (\array_key_exists('progressDetail', $data) && $data['progressDetail'] === null) { @@ -109,7 +109,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\CreateImageInfo' => false]; + return [\Docker\API\Model\CreateImageInfo::class => false]; } } } else { @@ -121,11 +121,11 @@ class CreateImageInfoNormalizer implements DenormalizerInterface, NormalizerInte use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\CreateImageInfo'; + return $type === \Docker\API\Model\CreateImageInfo::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\CreateImageInfo'; + return is_object($data) && get_class($data) === \Docker\API\Model\CreateImageInfo::class; } /** * @return mixed @@ -171,7 +171,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setProgress(null); } if (\array_key_exists('progressDetail', $data) && $data['progressDetail'] !== null) { - $object->setProgressDetail($this->denormalizer->denormalize($data['progressDetail'], 'Docker\\API\\Model\\ProgressDetail', 'json', $context)); + $object->setProgressDetail($this->denormalizer->denormalize($data['progressDetail'], \Docker\API\Model\ProgressDetail::class, 'json', $context)); unset($data['progressDetail']); } elseif (\array_key_exists('progressDetail', $data) && $data['progressDetail'] === null) { @@ -214,7 +214,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\CreateImageInfo' => false]; + return [\Docker\API\Model\CreateImageInfo::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/DeviceMappingNormalizer.php b/src/Normalizer/DeviceMappingNormalizer.php index c5489c61..06cdde65 100644 --- a/src/Normalizer/DeviceMappingNormalizer.php +++ b/src/Normalizer/DeviceMappingNormalizer.php @@ -22,11 +22,11 @@ class DeviceMappingNormalizer implements DenormalizerInterface, NormalizerInterf use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\DeviceMapping'; + return $type === \Docker\API\Model\DeviceMapping::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\DeviceMapping'; + return is_object($data) && get_class($data) === \Docker\API\Model\DeviceMapping::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -89,7 +89,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\DeviceMapping' => false]; + return [\Docker\API\Model\DeviceMapping::class => false]; } } } else { @@ -101,11 +101,11 @@ class DeviceMappingNormalizer implements DenormalizerInterface, NormalizerInterf use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\DeviceMapping'; + return $type === \Docker\API\Model\DeviceMapping::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\DeviceMapping'; + return is_object($data) && get_class($data) === \Docker\API\Model\DeviceMapping::class; } /** * @return mixed @@ -174,7 +174,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\DeviceMapping' => false]; + return [\Docker\API\Model\DeviceMapping::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/DistributionNameJsonGetResponse200DescriptorNormalizer.php b/src/Normalizer/DistributionNameJsonGetResponse200DescriptorNormalizer.php index cb88b72b..bdb543ba 100644 --- a/src/Normalizer/DistributionNameJsonGetResponse200DescriptorNormalizer.php +++ b/src/Normalizer/DistributionNameJsonGetResponse200DescriptorNormalizer.php @@ -22,11 +22,11 @@ class DistributionNameJsonGetResponse200DescriptorNormalizer implements Denormal use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\DistributionNameJsonGetResponse200Descriptor'; + return $type === \Docker\API\Model\DistributionNameJsonGetResponse200Descriptor::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\DistributionNameJsonGetResponse200Descriptor'; + return is_object($data) && get_class($data) === \Docker\API\Model\DistributionNameJsonGetResponse200Descriptor::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -107,7 +107,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\DistributionNameJsonGetResponse200Descriptor' => false]; + return [\Docker\API\Model\DistributionNameJsonGetResponse200Descriptor::class => false]; } } } else { @@ -119,11 +119,11 @@ class DistributionNameJsonGetResponse200DescriptorNormalizer implements Denormal use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\DistributionNameJsonGetResponse200Descriptor'; + return $type === \Docker\API\Model\DistributionNameJsonGetResponse200Descriptor::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\DistributionNameJsonGetResponse200Descriptor'; + return is_object($data) && get_class($data) === \Docker\API\Model\DistributionNameJsonGetResponse200Descriptor::class; } /** * @return mixed @@ -210,7 +210,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\DistributionNameJsonGetResponse200Descriptor' => false]; + return [\Docker\API\Model\DistributionNameJsonGetResponse200Descriptor::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/DistributionNameJsonGetResponse200Normalizer.php b/src/Normalizer/DistributionNameJsonGetResponse200Normalizer.php index c851e353..a596ec5b 100644 --- a/src/Normalizer/DistributionNameJsonGetResponse200Normalizer.php +++ b/src/Normalizer/DistributionNameJsonGetResponse200Normalizer.php @@ -22,11 +22,11 @@ class DistributionNameJsonGetResponse200Normalizer implements DenormalizerInterf use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\DistributionNameJsonGetResponse200'; + return $type === \Docker\API\Model\DistributionNameJsonGetResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\DistributionNameJsonGetResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\DistributionNameJsonGetResponse200::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -41,7 +41,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar return $object; } if (\array_key_exists('Descriptor', $data) && $data['Descriptor'] !== null) { - $object->setDescriptor($this->denormalizer->denormalize($data['Descriptor'], 'Docker\\API\\Model\\DistributionNameJsonGetResponse200Descriptor', 'json', $context)); + $object->setDescriptor($this->denormalizer->denormalize($data['Descriptor'], \Docker\API\Model\DistributionNameJsonGetResponse200Descriptor::class, 'json', $context)); unset($data['Descriptor']); } elseif (\array_key_exists('Descriptor', $data) && $data['Descriptor'] === null) { @@ -50,7 +50,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Platforms', $data) && $data['Platforms'] !== null) { $values = []; foreach ($data['Platforms'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\DistributionNameJsonGetResponse200PlatformsItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\DistributionNameJsonGetResponse200PlatformsItem::class, 'json', $context); } $object->setPlatforms($values); unset($data['Platforms']); @@ -83,7 +83,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\DistributionNameJsonGetResponse200' => false]; + return [\Docker\API\Model\DistributionNameJsonGetResponse200::class => false]; } } } else { @@ -95,11 +95,11 @@ class DistributionNameJsonGetResponse200Normalizer implements DenormalizerInterf use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\DistributionNameJsonGetResponse200'; + return $type === \Docker\API\Model\DistributionNameJsonGetResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\DistributionNameJsonGetResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\DistributionNameJsonGetResponse200::class; } /** * @return mixed @@ -117,7 +117,7 @@ public function denormalize($data, $type, $format = null, array $context = []) return $object; } if (\array_key_exists('Descriptor', $data) && $data['Descriptor'] !== null) { - $object->setDescriptor($this->denormalizer->denormalize($data['Descriptor'], 'Docker\\API\\Model\\DistributionNameJsonGetResponse200Descriptor', 'json', $context)); + $object->setDescriptor($this->denormalizer->denormalize($data['Descriptor'], \Docker\API\Model\DistributionNameJsonGetResponse200Descriptor::class, 'json', $context)); unset($data['Descriptor']); } elseif (\array_key_exists('Descriptor', $data) && $data['Descriptor'] === null) { @@ -126,7 +126,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Platforms', $data) && $data['Platforms'] !== null) { $values = []; foreach ($data['Platforms'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\DistributionNameJsonGetResponse200PlatformsItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\DistributionNameJsonGetResponse200PlatformsItem::class, 'json', $context); } $object->setPlatforms($values); unset($data['Platforms']); @@ -162,7 +162,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\DistributionNameJsonGetResponse200' => false]; + return [\Docker\API\Model\DistributionNameJsonGetResponse200::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/DistributionNameJsonGetResponse200PlatformsItemNormalizer.php b/src/Normalizer/DistributionNameJsonGetResponse200PlatformsItemNormalizer.php index 74f34cca..3fb05e9e 100644 --- a/src/Normalizer/DistributionNameJsonGetResponse200PlatformsItemNormalizer.php +++ b/src/Normalizer/DistributionNameJsonGetResponse200PlatformsItemNormalizer.php @@ -22,11 +22,11 @@ class DistributionNameJsonGetResponse200PlatformsItemNormalizer implements Denor use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\DistributionNameJsonGetResponse200PlatformsItem'; + return $type === \Docker\API\Model\DistributionNameJsonGetResponse200PlatformsItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\DistributionNameJsonGetResponse200PlatformsItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\DistributionNameJsonGetResponse200PlatformsItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -135,7 +135,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\DistributionNameJsonGetResponse200PlatformsItem' => false]; + return [\Docker\API\Model\DistributionNameJsonGetResponse200PlatformsItem::class => false]; } } } else { @@ -147,11 +147,11 @@ class DistributionNameJsonGetResponse200PlatformsItemNormalizer implements Denor use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\DistributionNameJsonGetResponse200PlatformsItem'; + return $type === \Docker\API\Model\DistributionNameJsonGetResponse200PlatformsItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\DistributionNameJsonGetResponse200PlatformsItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\DistributionNameJsonGetResponse200PlatformsItem::class; } /** * @return mixed @@ -266,7 +266,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\DistributionNameJsonGetResponse200PlatformsItem' => false]; + return [\Docker\API\Model\DistributionNameJsonGetResponse200PlatformsItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/DriverNormalizer.php b/src/Normalizer/DriverNormalizer.php index 36b5a9ff..898f1725 100644 --- a/src/Normalizer/DriverNormalizer.php +++ b/src/Normalizer/DriverNormalizer.php @@ -22,11 +22,11 @@ class DriverNormalizer implements DenormalizerInterface, NormalizerInterface, De use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Driver'; + return $type === \Docker\API\Model\Driver::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Driver'; + return is_object($data) && get_class($data) === \Docker\API\Model\Driver::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -85,7 +85,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Driver' => false]; + return [\Docker\API\Model\Driver::class => false]; } } } else { @@ -97,11 +97,11 @@ class DriverNormalizer implements DenormalizerInterface, NormalizerInterface, De use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Driver'; + return $type === \Docker\API\Model\Driver::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Driver'; + return is_object($data) && get_class($data) === \Docker\API\Model\Driver::class; } /** * @return mixed @@ -166,7 +166,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Driver' => false]; + return [\Docker\API\Model\Driver::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/EndpointIPAMConfigNormalizer.php b/src/Normalizer/EndpointIPAMConfigNormalizer.php index 9a65826d..aa513b0f 100644 --- a/src/Normalizer/EndpointIPAMConfigNormalizer.php +++ b/src/Normalizer/EndpointIPAMConfigNormalizer.php @@ -22,11 +22,11 @@ class EndpointIPAMConfigNormalizer implements DenormalizerInterface, NormalizerI use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\EndpointIPAMConfig'; + return $type === \Docker\API\Model\EndpointIPAMConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\EndpointIPAMConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\EndpointIPAMConfig::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -97,7 +97,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\EndpointIPAMConfig' => false]; + return [\Docker\API\Model\EndpointIPAMConfig::class => false]; } } } else { @@ -109,11 +109,11 @@ class EndpointIPAMConfigNormalizer implements DenormalizerInterface, NormalizerI use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\EndpointIPAMConfig'; + return $type === \Docker\API\Model\EndpointIPAMConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\EndpointIPAMConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\EndpointIPAMConfig::class; } /** * @return mixed @@ -190,7 +190,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\EndpointIPAMConfig' => false]; + return [\Docker\API\Model\EndpointIPAMConfig::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/EndpointPortConfigNormalizer.php b/src/Normalizer/EndpointPortConfigNormalizer.php index 3826df89..93cd9223 100644 --- a/src/Normalizer/EndpointPortConfigNormalizer.php +++ b/src/Normalizer/EndpointPortConfigNormalizer.php @@ -22,11 +22,11 @@ class EndpointPortConfigNormalizer implements DenormalizerInterface, NormalizerI use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\EndpointPortConfig'; + return $type === \Docker\API\Model\EndpointPortConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\EndpointPortConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\EndpointPortConfig::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -109,7 +109,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\EndpointPortConfig' => false]; + return [\Docker\API\Model\EndpointPortConfig::class => false]; } } } else { @@ -121,11 +121,11 @@ class EndpointPortConfigNormalizer implements DenormalizerInterface, NormalizerI use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\EndpointPortConfig'; + return $type === \Docker\API\Model\EndpointPortConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\EndpointPortConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\EndpointPortConfig::class; } /** * @return mixed @@ -214,7 +214,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\EndpointPortConfig' => false]; + return [\Docker\API\Model\EndpointPortConfig::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/EndpointSettingsNormalizer.php b/src/Normalizer/EndpointSettingsNormalizer.php index b16f9641..6adcf14a 100644 --- a/src/Normalizer/EndpointSettingsNormalizer.php +++ b/src/Normalizer/EndpointSettingsNormalizer.php @@ -22,11 +22,11 @@ class EndpointSettingsNormalizer implements DenormalizerInterface, NormalizerInt use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\EndpointSettings'; + return $type === \Docker\API\Model\EndpointSettings::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\EndpointSettings'; + return is_object($data) && get_class($data) === \Docker\API\Model\EndpointSettings::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -41,7 +41,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar return $object; } if (\array_key_exists('IPAMConfig', $data) && $data['IPAMConfig'] !== null) { - $object->setIPAMConfig($this->denormalizer->denormalize($data['IPAMConfig'], 'Docker\\API\\Model\\EndpointIPAMConfig', 'json', $context)); + $object->setIPAMConfig($this->denormalizer->denormalize($data['IPAMConfig'], \Docker\API\Model\EndpointIPAMConfig::class, 'json', $context)); unset($data['IPAMConfig']); } elseif (\array_key_exists('IPAMConfig', $data) && $data['IPAMConfig'] === null) { @@ -213,7 +213,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\EndpointSettings' => false]; + return [\Docker\API\Model\EndpointSettings::class => false]; } } } else { @@ -225,11 +225,11 @@ class EndpointSettingsNormalizer implements DenormalizerInterface, NormalizerInt use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\EndpointSettings'; + return $type === \Docker\API\Model\EndpointSettings::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\EndpointSettings'; + return is_object($data) && get_class($data) === \Docker\API\Model\EndpointSettings::class; } /** * @return mixed @@ -247,7 +247,7 @@ public function denormalize($data, $type, $format = null, array $context = []) return $object; } if (\array_key_exists('IPAMConfig', $data) && $data['IPAMConfig'] !== null) { - $object->setIPAMConfig($this->denormalizer->denormalize($data['IPAMConfig'], 'Docker\\API\\Model\\EndpointIPAMConfig', 'json', $context)); + $object->setIPAMConfig($this->denormalizer->denormalize($data['IPAMConfig'], \Docker\API\Model\EndpointIPAMConfig::class, 'json', $context)); unset($data['IPAMConfig']); } elseif (\array_key_exists('IPAMConfig', $data) && $data['IPAMConfig'] === null) { @@ -422,7 +422,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\EndpointSettings' => false]; + return [\Docker\API\Model\EndpointSettings::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/EndpointSpecNormalizer.php b/src/Normalizer/EndpointSpecNormalizer.php index 69e1cdfb..ba341b92 100644 --- a/src/Normalizer/EndpointSpecNormalizer.php +++ b/src/Normalizer/EndpointSpecNormalizer.php @@ -22,11 +22,11 @@ class EndpointSpecNormalizer implements DenormalizerInterface, NormalizerInterfa use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\EndpointSpec'; + return $type === \Docker\API\Model\EndpointSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\EndpointSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\EndpointSpec::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -50,7 +50,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Ports', $data) && $data['Ports'] !== null) { $values = []; foreach ($data['Ports'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\EndpointPortConfig', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\EndpointPortConfig::class, 'json', $context); } $object->setPorts($values); unset($data['Ports']); @@ -87,7 +87,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\EndpointSpec' => false]; + return [\Docker\API\Model\EndpointSpec::class => false]; } } } else { @@ -99,11 +99,11 @@ class EndpointSpecNormalizer implements DenormalizerInterface, NormalizerInterfa use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\EndpointSpec'; + return $type === \Docker\API\Model\EndpointSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\EndpointSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\EndpointSpec::class; } /** * @return mixed @@ -130,7 +130,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Ports', $data) && $data['Ports'] !== null) { $values = []; foreach ($data['Ports'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\EndpointPortConfig', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\EndpointPortConfig::class, 'json', $context); } $object->setPorts($values); unset($data['Ports']); @@ -170,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\EndpointSpec' => false]; + return [\Docker\API\Model\EndpointSpec::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/EngineDescriptionNormalizer.php b/src/Normalizer/EngineDescriptionNormalizer.php index 92c0cebf..69dd03b7 100644 --- a/src/Normalizer/EngineDescriptionNormalizer.php +++ b/src/Normalizer/EngineDescriptionNormalizer.php @@ -22,11 +22,11 @@ class EngineDescriptionNormalizer implements DenormalizerInterface, NormalizerIn use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\EngineDescription'; + return $type === \Docker\API\Model\EngineDescription::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\EngineDescription'; + return is_object($data) && get_class($data) === \Docker\API\Model\EngineDescription::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -61,7 +61,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Plugins', $data) && $data['Plugins'] !== null) { $values_1 = []; foreach ($data['Plugins'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\EngineDescriptionPluginsItem', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\EngineDescriptionPluginsItem::class, 'json', $context); } $object->setPlugins($values_1); unset($data['Plugins']); @@ -105,7 +105,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\EngineDescription' => false]; + return [\Docker\API\Model\EngineDescription::class => false]; } } } else { @@ -117,11 +117,11 @@ class EngineDescriptionNormalizer implements DenormalizerInterface, NormalizerIn use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\EngineDescription'; + return $type === \Docker\API\Model\EngineDescription::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\EngineDescription'; + return is_object($data) && get_class($data) === \Docker\API\Model\EngineDescription::class; } /** * @return mixed @@ -159,7 +159,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Plugins', $data) && $data['Plugins'] !== null) { $values_1 = []; foreach ($data['Plugins'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\EngineDescriptionPluginsItem', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\EngineDescriptionPluginsItem::class, 'json', $context); } $object->setPlugins($values_1); unset($data['Plugins']); @@ -206,7 +206,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\EngineDescription' => false]; + return [\Docker\API\Model\EngineDescription::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/EngineDescriptionPluginsItemNormalizer.php b/src/Normalizer/EngineDescriptionPluginsItemNormalizer.php index 56f01c53..aef20b8b 100644 --- a/src/Normalizer/EngineDescriptionPluginsItemNormalizer.php +++ b/src/Normalizer/EngineDescriptionPluginsItemNormalizer.php @@ -22,11 +22,11 @@ class EngineDescriptionPluginsItemNormalizer implements DenormalizerInterface, N use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\EngineDescriptionPluginsItem'; + return $type === \Docker\API\Model\EngineDescriptionPluginsItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\EngineDescriptionPluginsItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\EngineDescriptionPluginsItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\EngineDescriptionPluginsItem' => false]; + return [\Docker\API\Model\EngineDescriptionPluginsItem::class => false]; } } } else { @@ -91,11 +91,11 @@ class EngineDescriptionPluginsItemNormalizer implements DenormalizerInterface, N use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\EngineDescriptionPluginsItem'; + return $type === \Docker\API\Model\EngineDescriptionPluginsItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\EngineDescriptionPluginsItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\EngineDescriptionPluginsItem::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\EngineDescriptionPluginsItem' => false]; + return [\Docker\API\Model\EngineDescriptionPluginsItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ErrorDetailNormalizer.php b/src/Normalizer/ErrorDetailNormalizer.php index 40e5dcdd..c8fdca2e 100644 --- a/src/Normalizer/ErrorDetailNormalizer.php +++ b/src/Normalizer/ErrorDetailNormalizer.php @@ -22,11 +22,11 @@ class ErrorDetailNormalizer implements DenormalizerInterface, NormalizerInterfac use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ErrorDetail'; + return $type === \Docker\API\Model\ErrorDetail::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ErrorDetail'; + return is_object($data) && get_class($data) === \Docker\API\Model\ErrorDetail::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ErrorDetail' => false]; + return [\Docker\API\Model\ErrorDetail::class => false]; } } } else { @@ -91,11 +91,11 @@ class ErrorDetailNormalizer implements DenormalizerInterface, NormalizerInterfac use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ErrorDetail'; + return $type === \Docker\API\Model\ErrorDetail::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ErrorDetail'; + return is_object($data) && get_class($data) === \Docker\API\Model\ErrorDetail::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ErrorDetail' => false]; + return [\Docker\API\Model\ErrorDetail::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ErrorResponseNormalizer.php b/src/Normalizer/ErrorResponseNormalizer.php index 3be02c34..d54ea2aa 100644 --- a/src/Normalizer/ErrorResponseNormalizer.php +++ b/src/Normalizer/ErrorResponseNormalizer.php @@ -22,11 +22,11 @@ class ErrorResponseNormalizer implements DenormalizerInterface, NormalizerInterf use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ErrorResponse'; + return $type === \Docker\API\Model\ErrorResponse::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ErrorResponse'; + return is_object($data) && get_class($data) === \Docker\API\Model\ErrorResponse::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -67,7 +67,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ErrorResponse' => false]; + return [\Docker\API\Model\ErrorResponse::class => false]; } } } else { @@ -79,11 +79,11 @@ class ErrorResponseNormalizer implements DenormalizerInterface, NormalizerInterf use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ErrorResponse'; + return $type === \Docker\API\Model\ErrorResponse::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ErrorResponse'; + return is_object($data) && get_class($data) === \Docker\API\Model\ErrorResponse::class; } /** * @return mixed @@ -130,7 +130,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ErrorResponse' => false]; + return [\Docker\API\Model\ErrorResponse::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/EventsGetResponse200ActorNormalizer.php b/src/Normalizer/EventsGetResponse200ActorNormalizer.php index 60943a77..43e4acaf 100644 --- a/src/Normalizer/EventsGetResponse200ActorNormalizer.php +++ b/src/Normalizer/EventsGetResponse200ActorNormalizer.php @@ -22,11 +22,11 @@ class EventsGetResponse200ActorNormalizer implements DenormalizerInterface, Norm use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\EventsGetResponse200Actor'; + return $type === \Docker\API\Model\EventsGetResponse200Actor::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\EventsGetResponse200Actor'; + return is_object($data) && get_class($data) === \Docker\API\Model\EventsGetResponse200Actor::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -87,7 +87,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\EventsGetResponse200Actor' => false]; + return [\Docker\API\Model\EventsGetResponse200Actor::class => false]; } } } else { @@ -99,11 +99,11 @@ class EventsGetResponse200ActorNormalizer implements DenormalizerInterface, Norm use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\EventsGetResponse200Actor'; + return $type === \Docker\API\Model\EventsGetResponse200Actor::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\EventsGetResponse200Actor'; + return is_object($data) && get_class($data) === \Docker\API\Model\EventsGetResponse200Actor::class; } /** * @return mixed @@ -170,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\EventsGetResponse200Actor' => false]; + return [\Docker\API\Model\EventsGetResponse200Actor::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/EventsGetResponse200Normalizer.php b/src/Normalizer/EventsGetResponse200Normalizer.php index 41178966..bd58bbb3 100644 --- a/src/Normalizer/EventsGetResponse200Normalizer.php +++ b/src/Normalizer/EventsGetResponse200Normalizer.php @@ -22,11 +22,11 @@ class EventsGetResponse200Normalizer implements DenormalizerInterface, Normalize use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\EventsGetResponse200'; + return $type === \Docker\API\Model\EventsGetResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\EventsGetResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\EventsGetResponse200::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setAction(null); } if (\array_key_exists('Actor', $data) && $data['Actor'] !== null) { - $object->setActor($this->denormalizer->denormalize($data['Actor'], 'Docker\\API\\Model\\EventsGetResponse200Actor', 'json', $context)); + $object->setActor($this->denormalizer->denormalize($data['Actor'], \Docker\API\Model\EventsGetResponse200Actor::class, 'json', $context)); unset($data['Actor']); } elseif (\array_key_exists('Actor', $data) && $data['Actor'] === null) { @@ -109,7 +109,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\EventsGetResponse200' => false]; + return [\Docker\API\Model\EventsGetResponse200::class => false]; } } } else { @@ -121,11 +121,11 @@ class EventsGetResponse200Normalizer implements DenormalizerInterface, Normalize use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\EventsGetResponse200'; + return $type === \Docker\API\Model\EventsGetResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\EventsGetResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\EventsGetResponse200::class; } /** * @return mixed @@ -157,7 +157,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setAction(null); } if (\array_key_exists('Actor', $data) && $data['Actor'] !== null) { - $object->setActor($this->denormalizer->denormalize($data['Actor'], 'Docker\\API\\Model\\EventsGetResponse200Actor', 'json', $context)); + $object->setActor($this->denormalizer->denormalize($data['Actor'], \Docker\API\Model\EventsGetResponse200Actor::class, 'json', $context)); unset($data['Actor']); } elseif (\array_key_exists('Actor', $data) && $data['Actor'] === null) { @@ -214,7 +214,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\EventsGetResponse200' => false]; + return [\Docker\API\Model\EventsGetResponse200::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ExecIdJsonGetResponse200Normalizer.php b/src/Normalizer/ExecIdJsonGetResponse200Normalizer.php index cb521727..c0bd27ff 100644 --- a/src/Normalizer/ExecIdJsonGetResponse200Normalizer.php +++ b/src/Normalizer/ExecIdJsonGetResponse200Normalizer.php @@ -22,11 +22,11 @@ class ExecIdJsonGetResponse200Normalizer implements DenormalizerInterface, Norma use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ExecIdJsonGetResponse200'; + return $type === \Docker\API\Model\ExecIdJsonGetResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ExecIdJsonGetResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\ExecIdJsonGetResponse200::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -76,7 +76,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setExitCode(null); } if (\array_key_exists('ProcessConfig', $data) && $data['ProcessConfig'] !== null) { - $object->setProcessConfig($this->denormalizer->denormalize($data['ProcessConfig'], 'Docker\\API\\Model\\ProcessConfig', 'json', $context)); + $object->setProcessConfig($this->denormalizer->denormalize($data['ProcessConfig'], \Docker\API\Model\ProcessConfig::class, 'json', $context)); unset($data['ProcessConfig']); } elseif (\array_key_exists('ProcessConfig', $data) && $data['ProcessConfig'] === null) { @@ -169,7 +169,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ExecIdJsonGetResponse200' => false]; + return [\Docker\API\Model\ExecIdJsonGetResponse200::class => false]; } } } else { @@ -181,11 +181,11 @@ class ExecIdJsonGetResponse200Normalizer implements DenormalizerInterface, Norma use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ExecIdJsonGetResponse200'; + return $type === \Docker\API\Model\ExecIdJsonGetResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ExecIdJsonGetResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\ExecIdJsonGetResponse200::class; } /** * @return mixed @@ -238,7 +238,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setExitCode(null); } if (\array_key_exists('ProcessConfig', $data) && $data['ProcessConfig'] !== null) { - $object->setProcessConfig($this->denormalizer->denormalize($data['ProcessConfig'], 'Docker\\API\\Model\\ProcessConfig', 'json', $context)); + $object->setProcessConfig($this->denormalizer->denormalize($data['ProcessConfig'], \Docker\API\Model\ProcessConfig::class, 'json', $context)); unset($data['ProcessConfig']); } elseif (\array_key_exists('ProcessConfig', $data) && $data['ProcessConfig'] === null) { @@ -334,7 +334,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ExecIdJsonGetResponse200' => false]; + return [\Docker\API\Model\ExecIdJsonGetResponse200::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ExecIdStartPostBodyNormalizer.php b/src/Normalizer/ExecIdStartPostBodyNormalizer.php index 201890e1..5be873fc 100644 --- a/src/Normalizer/ExecIdStartPostBodyNormalizer.php +++ b/src/Normalizer/ExecIdStartPostBodyNormalizer.php @@ -22,11 +22,11 @@ class ExecIdStartPostBodyNormalizer implements DenormalizerInterface, Normalizer use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ExecIdStartPostBody'; + return $type === \Docker\API\Model\ExecIdStartPostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ExecIdStartPostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\ExecIdStartPostBody::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ExecIdStartPostBody' => false]; + return [\Docker\API\Model\ExecIdStartPostBody::class => false]; } } } else { @@ -91,11 +91,11 @@ class ExecIdStartPostBodyNormalizer implements DenormalizerInterface, Normalizer use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ExecIdStartPostBody'; + return $type === \Docker\API\Model\ExecIdStartPostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ExecIdStartPostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\ExecIdStartPostBody::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ExecIdStartPostBody' => false]; + return [\Docker\API\Model\ExecIdStartPostBody::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/GenericResourcesItemDiscreteResourceSpecNormalizer.php b/src/Normalizer/GenericResourcesItemDiscreteResourceSpecNormalizer.php index 4d3d210a..cb8536ed 100644 --- a/src/Normalizer/GenericResourcesItemDiscreteResourceSpecNormalizer.php +++ b/src/Normalizer/GenericResourcesItemDiscreteResourceSpecNormalizer.php @@ -22,11 +22,11 @@ class GenericResourcesItemDiscreteResourceSpecNormalizer implements Denormalizer use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\GenericResourcesItemDiscreteResourceSpec'; + return $type === \Docker\API\Model\GenericResourcesItemDiscreteResourceSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\GenericResourcesItemDiscreteResourceSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\GenericResourcesItemDiscreteResourceSpec::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\GenericResourcesItemDiscreteResourceSpec' => false]; + return [\Docker\API\Model\GenericResourcesItemDiscreteResourceSpec::class => false]; } } } else { @@ -91,11 +91,11 @@ class GenericResourcesItemDiscreteResourceSpecNormalizer implements Denormalizer use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\GenericResourcesItemDiscreteResourceSpec'; + return $type === \Docker\API\Model\GenericResourcesItemDiscreteResourceSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\GenericResourcesItemDiscreteResourceSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\GenericResourcesItemDiscreteResourceSpec::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\GenericResourcesItemDiscreteResourceSpec' => false]; + return [\Docker\API\Model\GenericResourcesItemDiscreteResourceSpec::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/GenericResourcesItemNamedResourceSpecNormalizer.php b/src/Normalizer/GenericResourcesItemNamedResourceSpecNormalizer.php index 09e79cda..35e4cbc6 100644 --- a/src/Normalizer/GenericResourcesItemNamedResourceSpecNormalizer.php +++ b/src/Normalizer/GenericResourcesItemNamedResourceSpecNormalizer.php @@ -22,11 +22,11 @@ class GenericResourcesItemNamedResourceSpecNormalizer implements DenormalizerInt use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\GenericResourcesItemNamedResourceSpec'; + return $type === \Docker\API\Model\GenericResourcesItemNamedResourceSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\GenericResourcesItemNamedResourceSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\GenericResourcesItemNamedResourceSpec::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\GenericResourcesItemNamedResourceSpec' => false]; + return [\Docker\API\Model\GenericResourcesItemNamedResourceSpec::class => false]; } } } else { @@ -91,11 +91,11 @@ class GenericResourcesItemNamedResourceSpecNormalizer implements DenormalizerInt use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\GenericResourcesItemNamedResourceSpec'; + return $type === \Docker\API\Model\GenericResourcesItemNamedResourceSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\GenericResourcesItemNamedResourceSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\GenericResourcesItemNamedResourceSpec::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\GenericResourcesItemNamedResourceSpec' => false]; + return [\Docker\API\Model\GenericResourcesItemNamedResourceSpec::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/GenericResourcesItemNormalizer.php b/src/Normalizer/GenericResourcesItemNormalizer.php index a94a2e26..ea637a7b 100644 --- a/src/Normalizer/GenericResourcesItemNormalizer.php +++ b/src/Normalizer/GenericResourcesItemNormalizer.php @@ -22,11 +22,11 @@ class GenericResourcesItemNormalizer implements DenormalizerInterface, Normalize use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\GenericResourcesItem'; + return $type === \Docker\API\Model\GenericResourcesItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\GenericResourcesItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\GenericResourcesItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -41,14 +41,14 @@ public function denormalize(mixed $data, string $type, string $format = null, ar return $object; } if (\array_key_exists('NamedResourceSpec', $data) && $data['NamedResourceSpec'] !== null) { - $object->setNamedResourceSpec($this->denormalizer->denormalize($data['NamedResourceSpec'], 'Docker\\API\\Model\\GenericResourcesItemNamedResourceSpec', 'json', $context)); + $object->setNamedResourceSpec($this->denormalizer->denormalize($data['NamedResourceSpec'], \Docker\API\Model\GenericResourcesItemNamedResourceSpec::class, 'json', $context)); unset($data['NamedResourceSpec']); } elseif (\array_key_exists('NamedResourceSpec', $data) && $data['NamedResourceSpec'] === null) { $object->setNamedResourceSpec(null); } if (\array_key_exists('DiscreteResourceSpec', $data) && $data['DiscreteResourceSpec'] !== null) { - $object->setDiscreteResourceSpec($this->denormalizer->denormalize($data['DiscreteResourceSpec'], 'Docker\\API\\Model\\GenericResourcesItemDiscreteResourceSpec', 'json', $context)); + $object->setDiscreteResourceSpec($this->denormalizer->denormalize($data['DiscreteResourceSpec'], \Docker\API\Model\GenericResourcesItemDiscreteResourceSpec::class, 'json', $context)); unset($data['DiscreteResourceSpec']); } elseif (\array_key_exists('DiscreteResourceSpec', $data) && $data['DiscreteResourceSpec'] === null) { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\GenericResourcesItem' => false]; + return [\Docker\API\Model\GenericResourcesItem::class => false]; } } } else { @@ -91,11 +91,11 @@ class GenericResourcesItemNormalizer implements DenormalizerInterface, Normalize use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\GenericResourcesItem'; + return $type === \Docker\API\Model\GenericResourcesItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\GenericResourcesItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\GenericResourcesItem::class; } /** * @return mixed @@ -113,14 +113,14 @@ public function denormalize($data, $type, $format = null, array $context = []) return $object; } if (\array_key_exists('NamedResourceSpec', $data) && $data['NamedResourceSpec'] !== null) { - $object->setNamedResourceSpec($this->denormalizer->denormalize($data['NamedResourceSpec'], 'Docker\\API\\Model\\GenericResourcesItemNamedResourceSpec', 'json', $context)); + $object->setNamedResourceSpec($this->denormalizer->denormalize($data['NamedResourceSpec'], \Docker\API\Model\GenericResourcesItemNamedResourceSpec::class, 'json', $context)); unset($data['NamedResourceSpec']); } elseif (\array_key_exists('NamedResourceSpec', $data) && $data['NamedResourceSpec'] === null) { $object->setNamedResourceSpec(null); } if (\array_key_exists('DiscreteResourceSpec', $data) && $data['DiscreteResourceSpec'] !== null) { - $object->setDiscreteResourceSpec($this->denormalizer->denormalize($data['DiscreteResourceSpec'], 'Docker\\API\\Model\\GenericResourcesItemDiscreteResourceSpec', 'json', $context)); + $object->setDiscreteResourceSpec($this->denormalizer->denormalize($data['DiscreteResourceSpec'], \Docker\API\Model\GenericResourcesItemDiscreteResourceSpec::class, 'json', $context)); unset($data['DiscreteResourceSpec']); } elseif (\array_key_exists('DiscreteResourceSpec', $data) && $data['DiscreteResourceSpec'] === null) { @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\GenericResourcesItem' => false]; + return [\Docker\API\Model\GenericResourcesItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/GraphDriverDataNormalizer.php b/src/Normalizer/GraphDriverDataNormalizer.php index 4568b562..a2232528 100644 --- a/src/Normalizer/GraphDriverDataNormalizer.php +++ b/src/Normalizer/GraphDriverDataNormalizer.php @@ -22,11 +22,11 @@ class GraphDriverDataNormalizer implements DenormalizerInterface, NormalizerInte use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\GraphDriverData'; + return $type === \Docker\API\Model\GraphDriverData::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\GraphDriverData'; + return is_object($data) && get_class($data) === \Docker\API\Model\GraphDriverData::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -83,7 +83,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\GraphDriverData' => false]; + return [\Docker\API\Model\GraphDriverData::class => false]; } } } else { @@ -95,11 +95,11 @@ class GraphDriverDataNormalizer implements DenormalizerInterface, NormalizerInte use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\GraphDriverData'; + return $type === \Docker\API\Model\GraphDriverData::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\GraphDriverData'; + return is_object($data) && get_class($data) === \Docker\API\Model\GraphDriverData::class; } /** * @return mixed @@ -162,7 +162,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\GraphDriverData' => false]; + return [\Docker\API\Model\GraphDriverData::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/HealthConfigNormalizer.php b/src/Normalizer/HealthConfigNormalizer.php index c2b6972c..7bcdb1d7 100644 --- a/src/Normalizer/HealthConfigNormalizer.php +++ b/src/Normalizer/HealthConfigNormalizer.php @@ -22,11 +22,11 @@ class HealthConfigNormalizer implements DenormalizerInterface, NormalizerInterfa use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\HealthConfig'; + return $type === \Docker\API\Model\HealthConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\HealthConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\HealthConfig::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -117,7 +117,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\HealthConfig' => false]; + return [\Docker\API\Model\HealthConfig::class => false]; } } } else { @@ -129,11 +129,11 @@ class HealthConfigNormalizer implements DenormalizerInterface, NormalizerInterfa use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\HealthConfig'; + return $type === \Docker\API\Model\HealthConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\HealthConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\HealthConfig::class; } /** * @return mixed @@ -230,7 +230,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\HealthConfig' => false]; + return [\Docker\API\Model\HealthConfig::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/HostConfigLogConfigNormalizer.php b/src/Normalizer/HostConfigLogConfigNormalizer.php index 0ae6cdf8..e4f8f38e 100644 --- a/src/Normalizer/HostConfigLogConfigNormalizer.php +++ b/src/Normalizer/HostConfigLogConfigNormalizer.php @@ -22,11 +22,11 @@ class HostConfigLogConfigNormalizer implements DenormalizerInterface, Normalizer use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\HostConfigLogConfig'; + return $type === \Docker\API\Model\HostConfigLogConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\HostConfigLogConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\HostConfigLogConfig::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -87,7 +87,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\HostConfigLogConfig' => false]; + return [\Docker\API\Model\HostConfigLogConfig::class => false]; } } } else { @@ -99,11 +99,11 @@ class HostConfigLogConfigNormalizer implements DenormalizerInterface, Normalizer use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\HostConfigLogConfig'; + return $type === \Docker\API\Model\HostConfigLogConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\HostConfigLogConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\HostConfigLogConfig::class; } /** * @return mixed @@ -170,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\HostConfigLogConfig' => false]; + return [\Docker\API\Model\HostConfigLogConfig::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/HostConfigNormalizer.php b/src/Normalizer/HostConfigNormalizer.php index f87f1023..349b880b 100644 --- a/src/Normalizer/HostConfigNormalizer.php +++ b/src/Normalizer/HostConfigNormalizer.php @@ -22,11 +22,11 @@ class HostConfigNormalizer implements DenormalizerInterface, NormalizerInterface use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\HostConfig'; + return $type === \Docker\API\Model\HostConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\HostConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\HostConfig::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -71,7 +71,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('BlkioWeightDevice', $data) && $data['BlkioWeightDevice'] !== null) { $values = []; foreach ($data['BlkioWeightDevice'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\ResourcesBlkioWeightDeviceItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\ResourcesBlkioWeightDeviceItem::class, 'json', $context); } $object->setBlkioWeightDevice($values); unset($data['BlkioWeightDevice']); @@ -82,7 +82,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('BlkioDeviceReadBps', $data) && $data['BlkioDeviceReadBps'] !== null) { $values_1 = []; foreach ($data['BlkioDeviceReadBps'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceReadBps($values_1); unset($data['BlkioDeviceReadBps']); @@ -93,7 +93,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('BlkioDeviceWriteBps', $data) && $data['BlkioDeviceWriteBps'] !== null) { $values_2 = []; foreach ($data['BlkioDeviceWriteBps'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_2[] = $this->denormalizer->denormalize($value_2, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceWriteBps($values_2); unset($data['BlkioDeviceWriteBps']); @@ -104,7 +104,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('BlkioDeviceReadIOps', $data) && $data['BlkioDeviceReadIOps'] !== null) { $values_3 = []; foreach ($data['BlkioDeviceReadIOps'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_3[] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceReadIOps($values_3); unset($data['BlkioDeviceReadIOps']); @@ -115,7 +115,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('BlkioDeviceWriteIOps', $data) && $data['BlkioDeviceWriteIOps'] !== null) { $values_4 = []; foreach ($data['BlkioDeviceWriteIOps'] as $value_4) { - $values_4[] = $this->denormalizer->denormalize($value_4, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_4[] = $this->denormalizer->denormalize($value_4, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceWriteIOps($values_4); unset($data['BlkioDeviceWriteIOps']); @@ -168,7 +168,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Devices', $data) && $data['Devices'] !== null) { $values_5 = []; foreach ($data['Devices'] as $value_5) { - $values_5[] = $this->denormalizer->denormalize($value_5, 'Docker\\API\\Model\\DeviceMapping', 'json', $context); + $values_5[] = $this->denormalizer->denormalize($value_5, \Docker\API\Model\DeviceMapping::class, 'json', $context); } $object->setDevices($values_5); unset($data['Devices']); @@ -246,7 +246,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Ulimits', $data) && $data['Ulimits'] !== null) { $values_7 = []; foreach ($data['Ulimits'] as $value_7) { - $values_7[] = $this->denormalizer->denormalize($value_7, 'Docker\\API\\Model\\ResourcesUlimitsItem', 'json', $context); + $values_7[] = $this->denormalizer->denormalize($value_7, \Docker\API\Model\ResourcesUlimitsItem::class, 'json', $context); } $object->setUlimits($values_7); unset($data['Ulimits']); @@ -301,7 +301,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setContainerIDFile(null); } if (\array_key_exists('LogConfig', $data) && $data['LogConfig'] !== null) { - $object->setLogConfig($this->denormalizer->denormalize($data['LogConfig'], 'Docker\\API\\Model\\HostConfigLogConfig', 'json', $context)); + $object->setLogConfig($this->denormalizer->denormalize($data['LogConfig'], \Docker\API\Model\HostConfigLogConfig::class, 'json', $context)); unset($data['LogConfig']); } elseif (\array_key_exists('LogConfig', $data) && $data['LogConfig'] === null) { @@ -319,7 +319,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar foreach ($data['PortBindings'] as $key => $value_9) { $values_10 = []; foreach ($value_9 as $value_10) { - $values_10[] = $this->denormalizer->denormalize($value_10, 'Docker\\API\\Model\\PortBinding', 'json', $context); + $values_10[] = $this->denormalizer->denormalize($value_10, \Docker\API\Model\PortBinding::class, 'json', $context); } $values_9[$key] = $values_10; } @@ -330,7 +330,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setPortBindings(null); } if (\array_key_exists('RestartPolicy', $data) && $data['RestartPolicy'] !== null) { - $object->setRestartPolicy($this->denormalizer->denormalize($data['RestartPolicy'], 'Docker\\API\\Model\\RestartPolicy', 'json', $context)); + $object->setRestartPolicy($this->denormalizer->denormalize($data['RestartPolicy'], \Docker\API\Model\RestartPolicy::class, 'json', $context)); unset($data['RestartPolicy']); } elseif (\array_key_exists('RestartPolicy', $data) && $data['RestartPolicy'] === null) { @@ -364,7 +364,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Mounts', $data) && $data['Mounts'] !== null) { $values_12 = []; foreach ($data['Mounts'] as $value_12) { - $values_12[] = $this->denormalizer->denormalize($value_12, 'Docker\\API\\Model\\Mount', 'json', $context); + $values_12[] = $this->denormalizer->denormalize($value_12, \Docker\API\Model\Mount::class, 'json', $context); } $object->setMounts($values_12); unset($data['Mounts']); @@ -917,7 +917,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\HostConfig' => false]; + return [\Docker\API\Model\HostConfig::class => false]; } } } else { @@ -929,11 +929,11 @@ class HostConfigNormalizer implements DenormalizerInterface, NormalizerInterface use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\HostConfig'; + return $type === \Docker\API\Model\HostConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\HostConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\HostConfig::class; } /** * @return mixed @@ -981,7 +981,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('BlkioWeightDevice', $data) && $data['BlkioWeightDevice'] !== null) { $values = []; foreach ($data['BlkioWeightDevice'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\ResourcesBlkioWeightDeviceItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\ResourcesBlkioWeightDeviceItem::class, 'json', $context); } $object->setBlkioWeightDevice($values); unset($data['BlkioWeightDevice']); @@ -992,7 +992,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('BlkioDeviceReadBps', $data) && $data['BlkioDeviceReadBps'] !== null) { $values_1 = []; foreach ($data['BlkioDeviceReadBps'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceReadBps($values_1); unset($data['BlkioDeviceReadBps']); @@ -1003,7 +1003,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('BlkioDeviceWriteBps', $data) && $data['BlkioDeviceWriteBps'] !== null) { $values_2 = []; foreach ($data['BlkioDeviceWriteBps'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_2[] = $this->denormalizer->denormalize($value_2, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceWriteBps($values_2); unset($data['BlkioDeviceWriteBps']); @@ -1014,7 +1014,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('BlkioDeviceReadIOps', $data) && $data['BlkioDeviceReadIOps'] !== null) { $values_3 = []; foreach ($data['BlkioDeviceReadIOps'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_3[] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceReadIOps($values_3); unset($data['BlkioDeviceReadIOps']); @@ -1025,7 +1025,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('BlkioDeviceWriteIOps', $data) && $data['BlkioDeviceWriteIOps'] !== null) { $values_4 = []; foreach ($data['BlkioDeviceWriteIOps'] as $value_4) { - $values_4[] = $this->denormalizer->denormalize($value_4, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_4[] = $this->denormalizer->denormalize($value_4, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceWriteIOps($values_4); unset($data['BlkioDeviceWriteIOps']); @@ -1078,7 +1078,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Devices', $data) && $data['Devices'] !== null) { $values_5 = []; foreach ($data['Devices'] as $value_5) { - $values_5[] = $this->denormalizer->denormalize($value_5, 'Docker\\API\\Model\\DeviceMapping', 'json', $context); + $values_5[] = $this->denormalizer->denormalize($value_5, \Docker\API\Model\DeviceMapping::class, 'json', $context); } $object->setDevices($values_5); unset($data['Devices']); @@ -1156,7 +1156,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Ulimits', $data) && $data['Ulimits'] !== null) { $values_7 = []; foreach ($data['Ulimits'] as $value_7) { - $values_7[] = $this->denormalizer->denormalize($value_7, 'Docker\\API\\Model\\ResourcesUlimitsItem', 'json', $context); + $values_7[] = $this->denormalizer->denormalize($value_7, \Docker\API\Model\ResourcesUlimitsItem::class, 'json', $context); } $object->setUlimits($values_7); unset($data['Ulimits']); @@ -1211,7 +1211,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setContainerIDFile(null); } if (\array_key_exists('LogConfig', $data) && $data['LogConfig'] !== null) { - $object->setLogConfig($this->denormalizer->denormalize($data['LogConfig'], 'Docker\\API\\Model\\HostConfigLogConfig', 'json', $context)); + $object->setLogConfig($this->denormalizer->denormalize($data['LogConfig'], \Docker\API\Model\HostConfigLogConfig::class, 'json', $context)); unset($data['LogConfig']); } elseif (\array_key_exists('LogConfig', $data) && $data['LogConfig'] === null) { @@ -1229,7 +1229,7 @@ public function denormalize($data, $type, $format = null, array $context = []) foreach ($data['PortBindings'] as $key => $value_9) { $values_10 = []; foreach ($value_9 as $value_10) { - $values_10[] = $this->denormalizer->denormalize($value_10, 'Docker\\API\\Model\\PortBinding', 'json', $context); + $values_10[] = $this->denormalizer->denormalize($value_10, \Docker\API\Model\PortBinding::class, 'json', $context); } $values_9[$key] = $values_10; } @@ -1240,7 +1240,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setPortBindings(null); } if (\array_key_exists('RestartPolicy', $data) && $data['RestartPolicy'] !== null) { - $object->setRestartPolicy($this->denormalizer->denormalize($data['RestartPolicy'], 'Docker\\API\\Model\\RestartPolicy', 'json', $context)); + $object->setRestartPolicy($this->denormalizer->denormalize($data['RestartPolicy'], \Docker\API\Model\RestartPolicy::class, 'json', $context)); unset($data['RestartPolicy']); } elseif (\array_key_exists('RestartPolicy', $data) && $data['RestartPolicy'] === null) { @@ -1274,7 +1274,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Mounts', $data) && $data['Mounts'] !== null) { $values_12 = []; foreach ($data['Mounts'] as $value_12) { - $values_12[] = $this->denormalizer->denormalize($value_12, 'Docker\\API\\Model\\Mount', 'json', $context); + $values_12[] = $this->denormalizer->denormalize($value_12, \Docker\API\Model\Mount::class, 'json', $context); } $object->setMounts($values_12); unset($data['Mounts']); @@ -1830,7 +1830,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\HostConfig' => false]; + return [\Docker\API\Model\HostConfig::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/IPAMNormalizer.php b/src/Normalizer/IPAMNormalizer.php index 12aeb7df..cdb66581 100644 --- a/src/Normalizer/IPAMNormalizer.php +++ b/src/Normalizer/IPAMNormalizer.php @@ -22,11 +22,11 @@ class IPAMNormalizer implements DenormalizerInterface, NormalizerInterface, Deno use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\IPAM'; + return $type === \Docker\API\Model\IPAM::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\IPAM'; + return is_object($data) && get_class($data) === \Docker\API\Model\IPAM::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -121,7 +121,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\IPAM' => false]; + return [\Docker\API\Model\IPAM::class => false]; } } } else { @@ -133,11 +133,11 @@ class IPAMNormalizer implements DenormalizerInterface, NormalizerInterface, Deno use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\IPAM'; + return $type === \Docker\API\Model\IPAM::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\IPAM'; + return is_object($data) && get_class($data) === \Docker\API\Model\IPAM::class; } /** * @return mixed @@ -238,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\IPAM' => false]; + return [\Docker\API\Model\IPAM::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/IdResponseNormalizer.php b/src/Normalizer/IdResponseNormalizer.php index 41b79fdf..718794fb 100644 --- a/src/Normalizer/IdResponseNormalizer.php +++ b/src/Normalizer/IdResponseNormalizer.php @@ -22,11 +22,11 @@ class IdResponseNormalizer implements DenormalizerInterface, NormalizerInterface use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\IdResponse'; + return $type === \Docker\API\Model\IdResponse::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\IdResponse'; + return is_object($data) && get_class($data) === \Docker\API\Model\IdResponse::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -67,7 +67,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\IdResponse' => false]; + return [\Docker\API\Model\IdResponse::class => false]; } } } else { @@ -79,11 +79,11 @@ class IdResponseNormalizer implements DenormalizerInterface, NormalizerInterface use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\IdResponse'; + return $type === \Docker\API\Model\IdResponse::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\IdResponse'; + return is_object($data) && get_class($data) === \Docker\API\Model\IdResponse::class; } /** * @return mixed @@ -130,7 +130,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\IdResponse' => false]; + return [\Docker\API\Model\IdResponse::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ImageDeleteResponseItemNormalizer.php b/src/Normalizer/ImageDeleteResponseItemNormalizer.php index a13d86c1..d379545f 100644 --- a/src/Normalizer/ImageDeleteResponseItemNormalizer.php +++ b/src/Normalizer/ImageDeleteResponseItemNormalizer.php @@ -22,11 +22,11 @@ class ImageDeleteResponseItemNormalizer implements DenormalizerInterface, Normal use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ImageDeleteResponseItem'; + return $type === \Docker\API\Model\ImageDeleteResponseItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ImageDeleteResponseItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\ImageDeleteResponseItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ImageDeleteResponseItem' => false]; + return [\Docker\API\Model\ImageDeleteResponseItem::class => false]; } } } else { @@ -91,11 +91,11 @@ class ImageDeleteResponseItemNormalizer implements DenormalizerInterface, Normal use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ImageDeleteResponseItem'; + return $type === \Docker\API\Model\ImageDeleteResponseItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ImageDeleteResponseItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\ImageDeleteResponseItem::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ImageDeleteResponseItem' => false]; + return [\Docker\API\Model\ImageDeleteResponseItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ImageIDNormalizer.php b/src/Normalizer/ImageIDNormalizer.php index 92365a94..15f62aca 100644 --- a/src/Normalizer/ImageIDNormalizer.php +++ b/src/Normalizer/ImageIDNormalizer.php @@ -22,11 +22,11 @@ class ImageIDNormalizer implements DenormalizerInterface, NormalizerInterface, D use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ImageID'; + return $type === \Docker\API\Model\ImageID::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ImageID'; + return is_object($data) && get_class($data) === \Docker\API\Model\ImageID::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ImageID' => false]; + return [\Docker\API\Model\ImageID::class => false]; } } } else { @@ -81,11 +81,11 @@ class ImageIDNormalizer implements DenormalizerInterface, NormalizerInterface, D use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ImageID'; + return $type === \Docker\API\Model\ImageID::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ImageID'; + return is_object($data) && get_class($data) === \Docker\API\Model\ImageID::class; } /** * @return mixed @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ImageID' => false]; + return [\Docker\API\Model\ImageID::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ImageMetadataNormalizer.php b/src/Normalizer/ImageMetadataNormalizer.php index c84cf02f..2d300e56 100644 --- a/src/Normalizer/ImageMetadataNormalizer.php +++ b/src/Normalizer/ImageMetadataNormalizer.php @@ -22,11 +22,11 @@ class ImageMetadataNormalizer implements DenormalizerInterface, NormalizerInterf use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ImageMetadata'; + return $type === \Docker\API\Model\ImageMetadata::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ImageMetadata'; + return is_object($data) && get_class($data) === \Docker\API\Model\ImageMetadata::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ImageMetadata' => false]; + return [\Docker\API\Model\ImageMetadata::class => false]; } } } else { @@ -81,11 +81,11 @@ class ImageMetadataNormalizer implements DenormalizerInterface, NormalizerInterf use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ImageMetadata'; + return $type === \Docker\API\Model\ImageMetadata::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ImageMetadata'; + return is_object($data) && get_class($data) === \Docker\API\Model\ImageMetadata::class; } /** * @return mixed @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ImageMetadata' => false]; + return [\Docker\API\Model\ImageMetadata::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ImageNormalizer.php b/src/Normalizer/ImageNormalizer.php index 291bca13..71792c0a 100644 --- a/src/Normalizer/ImageNormalizer.php +++ b/src/Normalizer/ImageNormalizer.php @@ -22,11 +22,11 @@ class ImageNormalizer implements DenormalizerInterface, NormalizerInterface, Den use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Image'; + return $type === \Docker\API\Model\Image::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Image'; + return is_object($data) && get_class($data) === \Docker\API\Model\Image::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -98,7 +98,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setContainer(null); } if (\array_key_exists('ContainerConfig', $data) && $data['ContainerConfig'] !== null) { - $object->setContainerConfig($this->denormalizer->denormalize($data['ContainerConfig'], 'Docker\\API\\Model\\ContainerConfig', 'json', $context)); + $object->setContainerConfig($this->denormalizer->denormalize($data['ContainerConfig'], \Docker\API\Model\ContainerConfig::class, 'json', $context)); unset($data['ContainerConfig']); } elseif (\array_key_exists('ContainerConfig', $data) && $data['ContainerConfig'] === null) { @@ -119,7 +119,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setAuthor(null); } if (\array_key_exists('Config', $data) && $data['Config'] !== null) { - $object->setConfig($this->denormalizer->denormalize($data['Config'], 'Docker\\API\\Model\\ContainerConfig', 'json', $context)); + $object->setConfig($this->denormalizer->denormalize($data['Config'], \Docker\API\Model\ContainerConfig::class, 'json', $context)); unset($data['Config']); } elseif (\array_key_exists('Config', $data) && $data['Config'] === null) { @@ -161,21 +161,21 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setVirtualSize(null); } if (\array_key_exists('GraphDriver', $data) && $data['GraphDriver'] !== null) { - $object->setGraphDriver($this->denormalizer->denormalize($data['GraphDriver'], 'Docker\\API\\Model\\GraphDriverData', 'json', $context)); + $object->setGraphDriver($this->denormalizer->denormalize($data['GraphDriver'], \Docker\API\Model\GraphDriverData::class, 'json', $context)); unset($data['GraphDriver']); } elseif (\array_key_exists('GraphDriver', $data) && $data['GraphDriver'] === null) { $object->setGraphDriver(null); } if (\array_key_exists('RootFS', $data) && $data['RootFS'] !== null) { - $object->setRootFS($this->denormalizer->denormalize($data['RootFS'], 'Docker\\API\\Model\\ImageRootFS', 'json', $context)); + $object->setRootFS($this->denormalizer->denormalize($data['RootFS'], \Docker\API\Model\ImageRootFS::class, 'json', $context)); unset($data['RootFS']); } elseif (\array_key_exists('RootFS', $data) && $data['RootFS'] === null) { $object->setRootFS(null); } if (\array_key_exists('Metadata', $data) && $data['Metadata'] !== null) { - $object->setMetadata($this->denormalizer->denormalize($data['Metadata'], 'Docker\\API\\Model\\ImageMetadata', 'json', $context)); + $object->setMetadata($this->denormalizer->denormalize($data['Metadata'], \Docker\API\Model\ImageMetadata::class, 'json', $context)); unset($data['Metadata']); } elseif (\array_key_exists('Metadata', $data) && $data['Metadata'] === null) { @@ -239,7 +239,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Image' => false]; + return [\Docker\API\Model\Image::class => false]; } } } else { @@ -251,11 +251,11 @@ class ImageNormalizer implements DenormalizerInterface, NormalizerInterface, Den use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Image'; + return $type === \Docker\API\Model\Image::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Image'; + return is_object($data) && get_class($data) === \Docker\API\Model\Image::class; } /** * @return mixed @@ -330,7 +330,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setContainer(null); } if (\array_key_exists('ContainerConfig', $data) && $data['ContainerConfig'] !== null) { - $object->setContainerConfig($this->denormalizer->denormalize($data['ContainerConfig'], 'Docker\\API\\Model\\ContainerConfig', 'json', $context)); + $object->setContainerConfig($this->denormalizer->denormalize($data['ContainerConfig'], \Docker\API\Model\ContainerConfig::class, 'json', $context)); unset($data['ContainerConfig']); } elseif (\array_key_exists('ContainerConfig', $data) && $data['ContainerConfig'] === null) { @@ -351,7 +351,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setAuthor(null); } if (\array_key_exists('Config', $data) && $data['Config'] !== null) { - $object->setConfig($this->denormalizer->denormalize($data['Config'], 'Docker\\API\\Model\\ContainerConfig', 'json', $context)); + $object->setConfig($this->denormalizer->denormalize($data['Config'], \Docker\API\Model\ContainerConfig::class, 'json', $context)); unset($data['Config']); } elseif (\array_key_exists('Config', $data) && $data['Config'] === null) { @@ -393,21 +393,21 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setVirtualSize(null); } if (\array_key_exists('GraphDriver', $data) && $data['GraphDriver'] !== null) { - $object->setGraphDriver($this->denormalizer->denormalize($data['GraphDriver'], 'Docker\\API\\Model\\GraphDriverData', 'json', $context)); + $object->setGraphDriver($this->denormalizer->denormalize($data['GraphDriver'], \Docker\API\Model\GraphDriverData::class, 'json', $context)); unset($data['GraphDriver']); } elseif (\array_key_exists('GraphDriver', $data) && $data['GraphDriver'] === null) { $object->setGraphDriver(null); } if (\array_key_exists('RootFS', $data) && $data['RootFS'] !== null) { - $object->setRootFS($this->denormalizer->denormalize($data['RootFS'], 'Docker\\API\\Model\\ImageRootFS', 'json', $context)); + $object->setRootFS($this->denormalizer->denormalize($data['RootFS'], \Docker\API\Model\ImageRootFS::class, 'json', $context)); unset($data['RootFS']); } elseif (\array_key_exists('RootFS', $data) && $data['RootFS'] === null) { $object->setRootFS(null); } if (\array_key_exists('Metadata', $data) && $data['Metadata'] !== null) { - $object->setMetadata($this->denormalizer->denormalize($data['Metadata'], 'Docker\\API\\Model\\ImageMetadata', 'json', $context)); + $object->setMetadata($this->denormalizer->denormalize($data['Metadata'], \Docker\API\Model\ImageMetadata::class, 'json', $context)); unset($data['Metadata']); } elseif (\array_key_exists('Metadata', $data) && $data['Metadata'] === null) { @@ -474,7 +474,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Image' => false]; + return [\Docker\API\Model\Image::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ImageRootFSNormalizer.php b/src/Normalizer/ImageRootFSNormalizer.php index 0ae5eee7..ae52e10d 100644 --- a/src/Normalizer/ImageRootFSNormalizer.php +++ b/src/Normalizer/ImageRootFSNormalizer.php @@ -22,11 +22,11 @@ class ImageRootFSNormalizer implements DenormalizerInterface, NormalizerInterfac use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ImageRootFS'; + return $type === \Docker\API\Model\ImageRootFS::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ImageRootFS'; + return is_object($data) && get_class($data) === \Docker\API\Model\ImageRootFS::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -95,7 +95,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ImageRootFS' => false]; + return [\Docker\API\Model\ImageRootFS::class => false]; } } } else { @@ -107,11 +107,11 @@ class ImageRootFSNormalizer implements DenormalizerInterface, NormalizerInterfac use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ImageRootFS'; + return $type === \Docker\API\Model\ImageRootFS::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ImageRootFS'; + return is_object($data) && get_class($data) === \Docker\API\Model\ImageRootFS::class; } /** * @return mixed @@ -186,7 +186,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ImageRootFS' => false]; + return [\Docker\API\Model\ImageRootFS::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ImageSummaryNormalizer.php b/src/Normalizer/ImageSummaryNormalizer.php index ddede9a4..3e24e2f7 100644 --- a/src/Normalizer/ImageSummaryNormalizer.php +++ b/src/Normalizer/ImageSummaryNormalizer.php @@ -22,11 +22,11 @@ class ImageSummaryNormalizer implements DenormalizerInterface, NormalizerInterfa use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ImageSummary'; + return $type === \Docker\API\Model\ImageSummary::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ImageSummary'; + return is_object($data) && get_class($data) === \Docker\API\Model\ImageSummary::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -163,7 +163,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ImageSummary' => false]; + return [\Docker\API\Model\ImageSummary::class => false]; } } } else { @@ -175,11 +175,11 @@ class ImageSummaryNormalizer implements DenormalizerInterface, NormalizerInterfa use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ImageSummary'; + return $type === \Docker\API\Model\ImageSummary::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ImageSummary'; + return is_object($data) && get_class($data) === \Docker\API\Model\ImageSummary::class; } /** * @return mixed @@ -322,7 +322,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ImageSummary' => false]; + return [\Docker\API\Model\ImageSummary::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ImagesNameHistoryGetResponse200ItemNormalizer.php b/src/Normalizer/ImagesNameHistoryGetResponse200ItemNormalizer.php index 7e83ad3d..d4410ebb 100644 --- a/src/Normalizer/ImagesNameHistoryGetResponse200ItemNormalizer.php +++ b/src/Normalizer/ImagesNameHistoryGetResponse200ItemNormalizer.php @@ -22,11 +22,11 @@ class ImagesNameHistoryGetResponse200ItemNormalizer implements DenormalizerInter use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ImagesNameHistoryGetResponse200Item'; + return $type === \Docker\API\Model\ImagesNameHistoryGetResponse200Item::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ImagesNameHistoryGetResponse200Item'; + return is_object($data) && get_class($data) === \Docker\API\Model\ImagesNameHistoryGetResponse200Item::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -115,7 +115,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ImagesNameHistoryGetResponse200Item' => false]; + return [\Docker\API\Model\ImagesNameHistoryGetResponse200Item::class => false]; } } } else { @@ -127,11 +127,11 @@ class ImagesNameHistoryGetResponse200ItemNormalizer implements DenormalizerInter use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ImagesNameHistoryGetResponse200Item'; + return $type === \Docker\API\Model\ImagesNameHistoryGetResponse200Item::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ImagesNameHistoryGetResponse200Item'; + return is_object($data) && get_class($data) === \Docker\API\Model\ImagesNameHistoryGetResponse200Item::class; } /** * @return mixed @@ -226,7 +226,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ImagesNameHistoryGetResponse200Item' => false]; + return [\Docker\API\Model\ImagesNameHistoryGetResponse200Item::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ImagesPrunePostResponse200Normalizer.php b/src/Normalizer/ImagesPrunePostResponse200Normalizer.php index c21546d2..eaa37f00 100644 --- a/src/Normalizer/ImagesPrunePostResponse200Normalizer.php +++ b/src/Normalizer/ImagesPrunePostResponse200Normalizer.php @@ -22,11 +22,11 @@ class ImagesPrunePostResponse200Normalizer implements DenormalizerInterface, Nor use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ImagesPrunePostResponse200'; + return $type === \Docker\API\Model\ImagesPrunePostResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ImagesPrunePostResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\ImagesPrunePostResponse200::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -43,7 +43,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('ImagesDeleted', $data) && $data['ImagesDeleted'] !== null) { $values = []; foreach ($data['ImagesDeleted'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\ImageDeleteResponseItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\ImageDeleteResponseItem::class, 'json', $context); } $object->setImagesDeleted($values); unset($data['ImagesDeleted']); @@ -87,7 +87,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ImagesPrunePostResponse200' => false]; + return [\Docker\API\Model\ImagesPrunePostResponse200::class => false]; } } } else { @@ -99,11 +99,11 @@ class ImagesPrunePostResponse200Normalizer implements DenormalizerInterface, Nor use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ImagesPrunePostResponse200'; + return $type === \Docker\API\Model\ImagesPrunePostResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ImagesPrunePostResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\ImagesPrunePostResponse200::class; } /** * @return mixed @@ -123,7 +123,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('ImagesDeleted', $data) && $data['ImagesDeleted'] !== null) { $values = []; foreach ($data['ImagesDeleted'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\ImageDeleteResponseItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\ImageDeleteResponseItem::class, 'json', $context); } $object->setImagesDeleted($values); unset($data['ImagesDeleted']); @@ -170,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ImagesPrunePostResponse200' => false]; + return [\Docker\API\Model\ImagesPrunePostResponse200::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ImagesSearchGetResponse200ItemNormalizer.php b/src/Normalizer/ImagesSearchGetResponse200ItemNormalizer.php index 0eec17fd..8bf6cc7e 100644 --- a/src/Normalizer/ImagesSearchGetResponse200ItemNormalizer.php +++ b/src/Normalizer/ImagesSearchGetResponse200ItemNormalizer.php @@ -22,11 +22,11 @@ class ImagesSearchGetResponse200ItemNormalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ImagesSearchGetResponse200Item'; + return $type === \Docker\API\Model\ImagesSearchGetResponse200Item::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ImagesSearchGetResponse200Item'; + return is_object($data) && get_class($data) === \Docker\API\Model\ImagesSearchGetResponse200Item::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -109,7 +109,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ImagesSearchGetResponse200Item' => false]; + return [\Docker\API\Model\ImagesSearchGetResponse200Item::class => false]; } } } else { @@ -121,11 +121,11 @@ class ImagesSearchGetResponse200ItemNormalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ImagesSearchGetResponse200Item'; + return $type === \Docker\API\Model\ImagesSearchGetResponse200Item::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ImagesSearchGetResponse200Item'; + return is_object($data) && get_class($data) === \Docker\API\Model\ImagesSearchGetResponse200Item::class; } /** * @return mixed @@ -214,7 +214,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ImagesSearchGetResponse200Item' => false]; + return [\Docker\API\Model\ImagesSearchGetResponse200Item::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/IndexInfoNormalizer.php b/src/Normalizer/IndexInfoNormalizer.php index 8ed737b4..3b879bf8 100644 --- a/src/Normalizer/IndexInfoNormalizer.php +++ b/src/Normalizer/IndexInfoNormalizer.php @@ -22,11 +22,11 @@ class IndexInfoNormalizer implements DenormalizerInterface, NormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\IndexInfo'; + return $type === \Docker\API\Model\IndexInfo::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\IndexInfo'; + return is_object($data) && get_class($data) === \Docker\API\Model\IndexInfo::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -107,7 +107,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\IndexInfo' => false]; + return [\Docker\API\Model\IndexInfo::class => false]; } } } else { @@ -119,11 +119,11 @@ class IndexInfoNormalizer implements DenormalizerInterface, NormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\IndexInfo'; + return $type === \Docker\API\Model\IndexInfo::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\IndexInfo'; + return is_object($data) && get_class($data) === \Docker\API\Model\IndexInfo::class; } /** * @return mixed @@ -210,7 +210,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\IndexInfo' => false]; + return [\Docker\API\Model\IndexInfo::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/JaneObjectNormalizer.php b/src/Normalizer/JaneObjectNormalizer.php index ce14715c..85870027 100644 --- a/src/Normalizer/JaneObjectNormalizer.php +++ b/src/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,400 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = array('Docker\\API\\Model\\Port' => 'Docker\\API\\Normalizer\\PortNormalizer', 'Docker\\API\\Model\\MountPoint' => 'Docker\\API\\Normalizer\\MountPointNormalizer', 'Docker\\API\\Model\\DeviceMapping' => 'Docker\\API\\Normalizer\\DeviceMappingNormalizer', 'Docker\\API\\Model\\ThrottleDevice' => 'Docker\\API\\Normalizer\\ThrottleDeviceNormalizer', 'Docker\\API\\Model\\Mount' => 'Docker\\API\\Normalizer\\MountNormalizer', 'Docker\\API\\Model\\MountBindOptions' => 'Docker\\API\\Normalizer\\MountBindOptionsNormalizer', 'Docker\\API\\Model\\MountVolumeOptions' => 'Docker\\API\\Normalizer\\MountVolumeOptionsNormalizer', 'Docker\\API\\Model\\MountVolumeOptionsDriverConfig' => 'Docker\\API\\Normalizer\\MountVolumeOptionsDriverConfigNormalizer', 'Docker\\API\\Model\\MountTmpfsOptions' => 'Docker\\API\\Normalizer\\MountTmpfsOptionsNormalizer', 'Docker\\API\\Model\\RestartPolicy' => 'Docker\\API\\Normalizer\\RestartPolicyNormalizer', 'Docker\\API\\Model\\Resources' => 'Docker\\API\\Normalizer\\ResourcesNormalizer', 'Docker\\API\\Model\\ResourcesBlkioWeightDeviceItem' => 'Docker\\API\\Normalizer\\ResourcesBlkioWeightDeviceItemNormalizer', 'Docker\\API\\Model\\ResourcesUlimitsItem' => 'Docker\\API\\Normalizer\\ResourcesUlimitsItemNormalizer', 'Docker\\API\\Model\\ResourceObject' => 'Docker\\API\\Normalizer\\ResourceObjectNormalizer', 'Docker\\API\\Model\\GenericResourcesItem' => 'Docker\\API\\Normalizer\\GenericResourcesItemNormalizer', 'Docker\\API\\Model\\GenericResourcesItemNamedResourceSpec' => 'Docker\\API\\Normalizer\\GenericResourcesItemNamedResourceSpecNormalizer', 'Docker\\API\\Model\\GenericResourcesItemDiscreteResourceSpec' => 'Docker\\API\\Normalizer\\GenericResourcesItemDiscreteResourceSpecNormalizer', 'Docker\\API\\Model\\HealthConfig' => 'Docker\\API\\Normalizer\\HealthConfigNormalizer', 'Docker\\API\\Model\\HostConfig' => 'Docker\\API\\Normalizer\\HostConfigNormalizer', 'Docker\\API\\Model\\HostConfigLogConfig' => 'Docker\\API\\Normalizer\\HostConfigLogConfigNormalizer', 'Docker\\API\\Model\\ContainerConfig' => 'Docker\\API\\Normalizer\\ContainerConfigNormalizer', 'Docker\\API\\Model\\ContainerConfigExposedPortsItem' => 'Docker\\API\\Normalizer\\ContainerConfigExposedPortsItemNormalizer', 'Docker\\API\\Model\\ContainerConfigVolumesItem' => 'Docker\\API\\Normalizer\\ContainerConfigVolumesItemNormalizer', 'Docker\\API\\Model\\NetworkSettings' => 'Docker\\API\\Normalizer\\NetworkSettingsNormalizer', 'Docker\\API\\Model\\Address' => 'Docker\\API\\Normalizer\\AddressNormalizer', 'Docker\\API\\Model\\PortBinding' => 'Docker\\API\\Normalizer\\PortBindingNormalizer', 'Docker\\API\\Model\\GraphDriverData' => 'Docker\\API\\Normalizer\\GraphDriverDataNormalizer', 'Docker\\API\\Model\\Image' => 'Docker\\API\\Normalizer\\ImageNormalizer', 'Docker\\API\\Model\\ImageRootFS' => 'Docker\\API\\Normalizer\\ImageRootFSNormalizer', 'Docker\\API\\Model\\ImageMetadata' => 'Docker\\API\\Normalizer\\ImageMetadataNormalizer', 'Docker\\API\\Model\\ImageSummary' => 'Docker\\API\\Normalizer\\ImageSummaryNormalizer', 'Docker\\API\\Model\\AuthConfig' => 'Docker\\API\\Normalizer\\AuthConfigNormalizer', 'Docker\\API\\Model\\ProcessConfig' => 'Docker\\API\\Normalizer\\ProcessConfigNormalizer', 'Docker\\API\\Model\\Volume' => 'Docker\\API\\Normalizer\\VolumeNormalizer', 'Docker\\API\\Model\\VolumeStatusItem' => 'Docker\\API\\Normalizer\\VolumeStatusItemNormalizer', 'Docker\\API\\Model\\VolumeUsageData' => 'Docker\\API\\Normalizer\\VolumeUsageDataNormalizer', 'Docker\\API\\Model\\Network' => 'Docker\\API\\Normalizer\\NetworkNormalizer', 'Docker\\API\\Model\\IPAM' => 'Docker\\API\\Normalizer\\IPAMNormalizer', 'Docker\\API\\Model\\NetworkContainer' => 'Docker\\API\\Normalizer\\NetworkContainerNormalizer', 'Docker\\API\\Model\\BuildInfo' => 'Docker\\API\\Normalizer\\BuildInfoNormalizer', 'Docker\\API\\Model\\ImageID' => 'Docker\\API\\Normalizer\\ImageIDNormalizer', 'Docker\\API\\Model\\CreateImageInfo' => 'Docker\\API\\Normalizer\\CreateImageInfoNormalizer', 'Docker\\API\\Model\\PushImageInfo' => 'Docker\\API\\Normalizer\\PushImageInfoNormalizer', 'Docker\\API\\Model\\ErrorDetail' => 'Docker\\API\\Normalizer\\ErrorDetailNormalizer', 'Docker\\API\\Model\\ProgressDetail' => 'Docker\\API\\Normalizer\\ProgressDetailNormalizer', 'Docker\\API\\Model\\ErrorResponse' => 'Docker\\API\\Normalizer\\ErrorResponseNormalizer', 'Docker\\API\\Model\\IdResponse' => 'Docker\\API\\Normalizer\\IdResponseNormalizer', 'Docker\\API\\Model\\EndpointSettings' => 'Docker\\API\\Normalizer\\EndpointSettingsNormalizer', 'Docker\\API\\Model\\EndpointIPAMConfig' => 'Docker\\API\\Normalizer\\EndpointIPAMConfigNormalizer', 'Docker\\API\\Model\\PluginMount' => 'Docker\\API\\Normalizer\\PluginMountNormalizer', 'Docker\\API\\Model\\PluginDevice' => 'Docker\\API\\Normalizer\\PluginDeviceNormalizer', 'Docker\\API\\Model\\PluginEnv' => 'Docker\\API\\Normalizer\\PluginEnvNormalizer', 'Docker\\API\\Model\\PluginInterfaceType' => 'Docker\\API\\Normalizer\\PluginInterfaceTypeNormalizer', 'Docker\\API\\Model\\Plugin' => 'Docker\\API\\Normalizer\\PluginNormalizer', 'Docker\\API\\Model\\PluginSettings' => 'Docker\\API\\Normalizer\\PluginSettingsNormalizer', 'Docker\\API\\Model\\PluginConfig' => 'Docker\\API\\Normalizer\\PluginConfigNormalizer', 'Docker\\API\\Model\\PluginConfigInterface' => 'Docker\\API\\Normalizer\\PluginConfigInterfaceNormalizer', 'Docker\\API\\Model\\PluginConfigUser' => 'Docker\\API\\Normalizer\\PluginConfigUserNormalizer', 'Docker\\API\\Model\\PluginConfigNetwork' => 'Docker\\API\\Normalizer\\PluginConfigNetworkNormalizer', 'Docker\\API\\Model\\PluginConfigLinux' => 'Docker\\API\\Normalizer\\PluginConfigLinuxNormalizer', 'Docker\\API\\Model\\PluginConfigArgs' => 'Docker\\API\\Normalizer\\PluginConfigArgsNormalizer', 'Docker\\API\\Model\\PluginConfigRootfs' => 'Docker\\API\\Normalizer\\PluginConfigRootfsNormalizer', 'Docker\\API\\Model\\ObjectVersion' => 'Docker\\API\\Normalizer\\ObjectVersionNormalizer', 'Docker\\API\\Model\\NodeSpec' => 'Docker\\API\\Normalizer\\NodeSpecNormalizer', 'Docker\\API\\Model\\Node' => 'Docker\\API\\Normalizer\\NodeNormalizer', 'Docker\\API\\Model\\NodeDescription' => 'Docker\\API\\Normalizer\\NodeDescriptionNormalizer', 'Docker\\API\\Model\\Platform' => 'Docker\\API\\Normalizer\\PlatformNormalizer', 'Docker\\API\\Model\\EngineDescription' => 'Docker\\API\\Normalizer\\EngineDescriptionNormalizer', 'Docker\\API\\Model\\EngineDescriptionPluginsItem' => 'Docker\\API\\Normalizer\\EngineDescriptionPluginsItemNormalizer', 'Docker\\API\\Model\\TLSInfo' => 'Docker\\API\\Normalizer\\TLSInfoNormalizer', 'Docker\\API\\Model\\NodeStatus' => 'Docker\\API\\Normalizer\\NodeStatusNormalizer', 'Docker\\API\\Model\\ManagerStatus' => 'Docker\\API\\Normalizer\\ManagerStatusNormalizer', 'Docker\\API\\Model\\SwarmSpec' => 'Docker\\API\\Normalizer\\SwarmSpecNormalizer', 'Docker\\API\\Model\\SwarmSpecOrchestration' => 'Docker\\API\\Normalizer\\SwarmSpecOrchestrationNormalizer', 'Docker\\API\\Model\\SwarmSpecRaft' => 'Docker\\API\\Normalizer\\SwarmSpecRaftNormalizer', 'Docker\\API\\Model\\SwarmSpecDispatcher' => 'Docker\\API\\Normalizer\\SwarmSpecDispatcherNormalizer', 'Docker\\API\\Model\\SwarmSpecCAConfig' => 'Docker\\API\\Normalizer\\SwarmSpecCAConfigNormalizer', 'Docker\\API\\Model\\SwarmSpecCAConfigExternalCAsItem' => 'Docker\\API\\Normalizer\\SwarmSpecCAConfigExternalCAsItemNormalizer', 'Docker\\API\\Model\\SwarmSpecEncryptionConfig' => 'Docker\\API\\Normalizer\\SwarmSpecEncryptionConfigNormalizer', 'Docker\\API\\Model\\SwarmSpecTaskDefaults' => 'Docker\\API\\Normalizer\\SwarmSpecTaskDefaultsNormalizer', 'Docker\\API\\Model\\SwarmSpecTaskDefaultsLogDriver' => 'Docker\\API\\Normalizer\\SwarmSpecTaskDefaultsLogDriverNormalizer', 'Docker\\API\\Model\\ClusterInfo' => 'Docker\\API\\Normalizer\\ClusterInfoNormalizer', 'Docker\\API\\Model\\JoinTokens' => 'Docker\\API\\Normalizer\\JoinTokensNormalizer', 'Docker\\API\\Model\\Swarm' => 'Docker\\API\\Normalizer\\SwarmNormalizer', 'Docker\\API\\Model\\TaskSpec' => 'Docker\\API\\Normalizer\\TaskSpecNormalizer', 'Docker\\API\\Model\\TaskSpecPluginSpec' => 'Docker\\API\\Normalizer\\TaskSpecPluginSpecNormalizer', 'Docker\\API\\Model\\TaskSpecPluginSpecPluginPrivilegeItem' => 'Docker\\API\\Normalizer\\TaskSpecPluginSpecPluginPrivilegeItemNormalizer', 'Docker\\API\\Model\\TaskSpecContainerSpec' => 'Docker\\API\\Normalizer\\TaskSpecContainerSpecNormalizer', 'Docker\\API\\Model\\TaskSpecContainerSpecPrivileges' => 'Docker\\API\\Normalizer\\TaskSpecContainerSpecPrivilegesNormalizer', 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesCredentialSpec' => 'Docker\\API\\Normalizer\\TaskSpecContainerSpecPrivilegesCredentialSpecNormalizer', 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesSELinuxContext' => 'Docker\\API\\Normalizer\\TaskSpecContainerSpecPrivilegesSELinuxContextNormalizer', 'Docker\\API\\Model\\TaskSpecContainerSpecDNSConfig' => 'Docker\\API\\Normalizer\\TaskSpecContainerSpecDNSConfigNormalizer', 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItem' => 'Docker\\API\\Normalizer\\TaskSpecContainerSpecSecretsItemNormalizer', 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItemFile' => 'Docker\\API\\Normalizer\\TaskSpecContainerSpecSecretsItemFileNormalizer', 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItem' => 'Docker\\API\\Normalizer\\TaskSpecContainerSpecConfigsItemNormalizer', 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItemFile' => 'Docker\\API\\Normalizer\\TaskSpecContainerSpecConfigsItemFileNormalizer', 'Docker\\API\\Model\\TaskSpecResources' => 'Docker\\API\\Normalizer\\TaskSpecResourcesNormalizer', 'Docker\\API\\Model\\TaskSpecRestartPolicy' => 'Docker\\API\\Normalizer\\TaskSpecRestartPolicyNormalizer', 'Docker\\API\\Model\\TaskSpecPlacement' => 'Docker\\API\\Normalizer\\TaskSpecPlacementNormalizer', 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItem' => 'Docker\\API\\Normalizer\\TaskSpecPlacementPreferencesItemNormalizer', 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItemSpread' => 'Docker\\API\\Normalizer\\TaskSpecPlacementPreferencesItemSpreadNormalizer', 'Docker\\API\\Model\\TaskSpecNetworksItem' => 'Docker\\API\\Normalizer\\TaskSpecNetworksItemNormalizer', 'Docker\\API\\Model\\TaskSpecLogDriver' => 'Docker\\API\\Normalizer\\TaskSpecLogDriverNormalizer', 'Docker\\API\\Model\\Task' => 'Docker\\API\\Normalizer\\TaskNormalizer', 'Docker\\API\\Model\\TaskStatus' => 'Docker\\API\\Normalizer\\TaskStatusNormalizer', 'Docker\\API\\Model\\TaskStatusContainerStatus' => 'Docker\\API\\Normalizer\\TaskStatusContainerStatusNormalizer', 'Docker\\API\\Model\\ServiceSpec' => 'Docker\\API\\Normalizer\\ServiceSpecNormalizer', 'Docker\\API\\Model\\ServiceSpecMode' => 'Docker\\API\\Normalizer\\ServiceSpecModeNormalizer', 'Docker\\API\\Model\\ServiceSpecModeReplicated' => 'Docker\\API\\Normalizer\\ServiceSpecModeReplicatedNormalizer', 'Docker\\API\\Model\\ServiceSpecModeGlobal' => 'Docker\\API\\Normalizer\\ServiceSpecModeGlobalNormalizer', 'Docker\\API\\Model\\ServiceSpecUpdateConfig' => 'Docker\\API\\Normalizer\\ServiceSpecUpdateConfigNormalizer', 'Docker\\API\\Model\\ServiceSpecRollbackConfig' => 'Docker\\API\\Normalizer\\ServiceSpecRollbackConfigNormalizer', 'Docker\\API\\Model\\ServiceSpecNetworksItem' => 'Docker\\API\\Normalizer\\ServiceSpecNetworksItemNormalizer', 'Docker\\API\\Model\\EndpointPortConfig' => 'Docker\\API\\Normalizer\\EndpointPortConfigNormalizer', 'Docker\\API\\Model\\EndpointSpec' => 'Docker\\API\\Normalizer\\EndpointSpecNormalizer', 'Docker\\API\\Model\\Service' => 'Docker\\API\\Normalizer\\ServiceNormalizer', 'Docker\\API\\Model\\ServiceEndpoint' => 'Docker\\API\\Normalizer\\ServiceEndpointNormalizer', 'Docker\\API\\Model\\ServiceEndpointVirtualIPsItem' => 'Docker\\API\\Normalizer\\ServiceEndpointVirtualIPsItemNormalizer', 'Docker\\API\\Model\\ServiceUpdateStatus' => 'Docker\\API\\Normalizer\\ServiceUpdateStatusNormalizer', 'Docker\\API\\Model\\ImageDeleteResponseItem' => 'Docker\\API\\Normalizer\\ImageDeleteResponseItemNormalizer', 'Docker\\API\\Model\\ServiceUpdateResponse' => 'Docker\\API\\Normalizer\\ServiceUpdateResponseNormalizer', 'Docker\\API\\Model\\ContainerSummaryItem' => 'Docker\\API\\Normalizer\\ContainerSummaryItemNormalizer', 'Docker\\API\\Model\\ContainerSummaryItemHostConfig' => 'Docker\\API\\Normalizer\\ContainerSummaryItemHostConfigNormalizer', 'Docker\\API\\Model\\ContainerSummaryItemNetworkSettings' => 'Docker\\API\\Normalizer\\ContainerSummaryItemNetworkSettingsNormalizer', 'Docker\\API\\Model\\Driver' => 'Docker\\API\\Normalizer\\DriverNormalizer', 'Docker\\API\\Model\\SecretSpec' => 'Docker\\API\\Normalizer\\SecretSpecNormalizer', 'Docker\\API\\Model\\Secret' => 'Docker\\API\\Normalizer\\SecretNormalizer', 'Docker\\API\\Model\\ConfigSpec' => 'Docker\\API\\Normalizer\\ConfigSpecNormalizer', 'Docker\\API\\Model\\Config' => 'Docker\\API\\Normalizer\\ConfigNormalizer', 'Docker\\API\\Model\\SystemInfo' => 'Docker\\API\\Normalizer\\SystemInfoNormalizer', 'Docker\\API\\Model\\PluginsInfo' => 'Docker\\API\\Normalizer\\PluginsInfoNormalizer', 'Docker\\API\\Model\\RegistryServiceConfig' => 'Docker\\API\\Normalizer\\RegistryServiceConfigNormalizer', 'Docker\\API\\Model\\IndexInfo' => 'Docker\\API\\Normalizer\\IndexInfoNormalizer', 'Docker\\API\\Model\\Runtime' => 'Docker\\API\\Normalizer\\RuntimeNormalizer', 'Docker\\API\\Model\\Commit' => 'Docker\\API\\Normalizer\\CommitNormalizer', 'Docker\\API\\Model\\SwarmInfo' => 'Docker\\API\\Normalizer\\SwarmInfoNormalizer', 'Docker\\API\\Model\\PeerNode' => 'Docker\\API\\Normalizer\\PeerNodeNormalizer', 'Docker\\API\\Model\\ContainersCreatePostBody' => 'Docker\\API\\Normalizer\\ContainersCreatePostBodyNormalizer', 'Docker\\API\\Model\\ContainersCreatePostBodyNetworkingConfig' => 'Docker\\API\\Normalizer\\ContainersCreatePostBodyNetworkingConfigNormalizer', 'Docker\\API\\Model\\ContainersCreatePostResponse201' => 'Docker\\API\\Normalizer\\ContainersCreatePostResponse201Normalizer', 'Docker\\API\\Model\\ContainersIdJsonGetResponse200' => 'Docker\\API\\Normalizer\\ContainersIdJsonGetResponse200Normalizer', 'Docker\\API\\Model\\ContainersIdJsonGetResponse200State' => 'Docker\\API\\Normalizer\\ContainersIdJsonGetResponse200StateNormalizer', 'Docker\\API\\Model\\ContainersIdJsonGetResponse200Node' => 'Docker\\API\\Normalizer\\ContainersIdJsonGetResponse200NodeNormalizer', 'Docker\\API\\Model\\ContainersIdTopGetJsonResponse200' => 'Docker\\API\\Normalizer\\ContainersIdTopGetJsonResponse200Normalizer', 'Docker\\API\\Model\\ContainersIdTopGetTextplainResponse200' => 'Docker\\API\\Normalizer\\ContainersIdTopGetTextplainResponse200Normalizer', 'Docker\\API\\Model\\ContainersIdChangesGetResponse200Item' => 'Docker\\API\\Normalizer\\ContainersIdChangesGetResponse200ItemNormalizer', 'Docker\\API\\Model\\ContainersIdUpdatePostBody' => 'Docker\\API\\Normalizer\\ContainersIdUpdatePostBodyNormalizer', 'Docker\\API\\Model\\ContainersIdUpdatePostResponse200' => 'Docker\\API\\Normalizer\\ContainersIdUpdatePostResponse200Normalizer', 'Docker\\API\\Model\\ContainersIdWaitPostResponse200' => 'Docker\\API\\Normalizer\\ContainersIdWaitPostResponse200Normalizer', 'Docker\\API\\Model\\ContainersIdWaitPostResponse200Error' => 'Docker\\API\\Normalizer\\ContainersIdWaitPostResponse200ErrorNormalizer', 'Docker\\API\\Model\\ContainersIdArchiveGetResponse400' => 'Docker\\API\\Normalizer\\ContainersIdArchiveGetResponse400Normalizer', 'Docker\\API\\Model\\ContainersIdArchiveHeadJsonResponse400' => 'Docker\\API\\Normalizer\\ContainersIdArchiveHeadJsonResponse400Normalizer', 'Docker\\API\\Model\\ContainersIdArchiveHeadTextplainResponse400' => 'Docker\\API\\Normalizer\\ContainersIdArchiveHeadTextplainResponse400Normalizer', 'Docker\\API\\Model\\ContainersPrunePostResponse200' => 'Docker\\API\\Normalizer\\ContainersPrunePostResponse200Normalizer', 'Docker\\API\\Model\\BuildPrunePostResponse200' => 'Docker\\API\\Normalizer\\BuildPrunePostResponse200Normalizer', 'Docker\\API\\Model\\ImagesNameHistoryGetResponse200Item' => 'Docker\\API\\Normalizer\\ImagesNameHistoryGetResponse200ItemNormalizer', 'Docker\\API\\Model\\ImagesSearchGetResponse200Item' => 'Docker\\API\\Normalizer\\ImagesSearchGetResponse200ItemNormalizer', 'Docker\\API\\Model\\ImagesPrunePostResponse200' => 'Docker\\API\\Normalizer\\ImagesPrunePostResponse200Normalizer', 'Docker\\API\\Model\\AuthPostResponse200' => 'Docker\\API\\Normalizer\\AuthPostResponse200Normalizer', 'Docker\\API\\Model\\VersionGetResponse200' => 'Docker\\API\\Normalizer\\VersionGetResponse200Normalizer', 'Docker\\API\\Model\\VersionGetResponse200Platform' => 'Docker\\API\\Normalizer\\VersionGetResponse200PlatformNormalizer', 'Docker\\API\\Model\\VersionGetResponse200ComponentsItem' => 'Docker\\API\\Normalizer\\VersionGetResponse200ComponentsItemNormalizer', 'Docker\\API\\Model\\VersionGetResponse200ComponentsItemDetails' => 'Docker\\API\\Normalizer\\VersionGetResponse200ComponentsItemDetailsNormalizer', 'Docker\\API\\Model\\EventsGetResponse200' => 'Docker\\API\\Normalizer\\EventsGetResponse200Normalizer', 'Docker\\API\\Model\\EventsGetResponse200Actor' => 'Docker\\API\\Normalizer\\EventsGetResponse200ActorNormalizer', 'Docker\\API\\Model\\SystemDfGetJsonResponse200' => 'Docker\\API\\Normalizer\\SystemDfGetJsonResponse200Normalizer', 'Docker\\API\\Model\\SystemDfGetTextplainResponse200' => 'Docker\\API\\Normalizer\\SystemDfGetTextplainResponse200Normalizer', 'Docker\\API\\Model\\ContainersIdExecPostBody' => 'Docker\\API\\Normalizer\\ContainersIdExecPostBodyNormalizer', 'Docker\\API\\Model\\ExecIdStartPostBody' => 'Docker\\API\\Normalizer\\ExecIdStartPostBodyNormalizer', 'Docker\\API\\Model\\ExecIdJsonGetResponse200' => 'Docker\\API\\Normalizer\\ExecIdJsonGetResponse200Normalizer', 'Docker\\API\\Model\\VolumesGetResponse200' => 'Docker\\API\\Normalizer\\VolumesGetResponse200Normalizer', 'Docker\\API\\Model\\VolumesCreatePostBody' => 'Docker\\API\\Normalizer\\VolumesCreatePostBodyNormalizer', 'Docker\\API\\Model\\VolumesPrunePostResponse200' => 'Docker\\API\\Normalizer\\VolumesPrunePostResponse200Normalizer', 'Docker\\API\\Model\\NetworksCreatePostBody' => 'Docker\\API\\Normalizer\\NetworksCreatePostBodyNormalizer', 'Docker\\API\\Model\\NetworksCreatePostResponse201' => 'Docker\\API\\Normalizer\\NetworksCreatePostResponse201Normalizer', 'Docker\\API\\Model\\NetworksIdConnectPostBody' => 'Docker\\API\\Normalizer\\NetworksIdConnectPostBodyNormalizer', 'Docker\\API\\Model\\NetworksIdDisconnectPostBody' => 'Docker\\API\\Normalizer\\NetworksIdDisconnectPostBodyNormalizer', 'Docker\\API\\Model\\NetworksPrunePostResponse200' => 'Docker\\API\\Normalizer\\NetworksPrunePostResponse200Normalizer', 'Docker\\API\\Model\\PluginsPrivilegesGetJsonResponse200Item' => 'Docker\\API\\Normalizer\\PluginsPrivilegesGetJsonResponse200ItemNormalizer', 'Docker\\API\\Model\\PluginsPrivilegesGetTextplainResponse200Item' => 'Docker\\API\\Normalizer\\PluginsPrivilegesGetTextplainResponse200ItemNormalizer', 'Docker\\API\\Model\\PluginsPullPostBodyItem' => 'Docker\\API\\Normalizer\\PluginsPullPostBodyItemNormalizer', 'Docker\\API\\Model\\PluginsNameUpgradePostBodyItem' => 'Docker\\API\\Normalizer\\PluginsNameUpgradePostBodyItemNormalizer', 'Docker\\API\\Model\\SwarmInitPostBody' => 'Docker\\API\\Normalizer\\SwarmInitPostBodyNormalizer', 'Docker\\API\\Model\\SwarmJoinPostBody' => 'Docker\\API\\Normalizer\\SwarmJoinPostBodyNormalizer', 'Docker\\API\\Model\\SwarmUnlockkeyGetJsonResponse200' => 'Docker\\API\\Normalizer\\SwarmUnlockkeyGetJsonResponse200Normalizer', 'Docker\\API\\Model\\SwarmUnlockkeyGetTextplainResponse200' => 'Docker\\API\\Normalizer\\SwarmUnlockkeyGetTextplainResponse200Normalizer', 'Docker\\API\\Model\\SwarmUnlockPostBody' => 'Docker\\API\\Normalizer\\SwarmUnlockPostBodyNormalizer', 'Docker\\API\\Model\\ServicesCreatePostBody' => 'Docker\\API\\Normalizer\\ServicesCreatePostBodyNormalizer', 'Docker\\API\\Model\\ServicesCreatePostResponse201' => 'Docker\\API\\Normalizer\\ServicesCreatePostResponse201Normalizer', 'Docker\\API\\Model\\ServicesIdUpdatePostBody' => 'Docker\\API\\Normalizer\\ServicesIdUpdatePostBodyNormalizer', 'Docker\\API\\Model\\SecretsCreatePostBody' => 'Docker\\API\\Normalizer\\SecretsCreatePostBodyNormalizer', 'Docker\\API\\Model\\ConfigsCreatePostBody' => 'Docker\\API\\Normalizer\\ConfigsCreatePostBodyNormalizer', 'Docker\\API\\Model\\DistributionNameJsonGetResponse200' => 'Docker\\API\\Normalizer\\DistributionNameJsonGetResponse200Normalizer', 'Docker\\API\\Model\\DistributionNameJsonGetResponse200Descriptor' => 'Docker\\API\\Normalizer\\DistributionNameJsonGetResponse200DescriptorNormalizer', 'Docker\\API\\Model\\DistributionNameJsonGetResponse200PlatformsItem' => 'Docker\\API\\Normalizer\\DistributionNameJsonGetResponse200PlatformsItemNormalizer', '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => '\\Docker\\API\\Runtime\\Normalizer\\ReferenceNormalizer'), $normalizersCache = []; + protected $normalizers = [ + + \Docker\API\Model\Port::class => \Docker\API\Normalizer\PortNormalizer::class, + + \Docker\API\Model\MountPoint::class => \Docker\API\Normalizer\MountPointNormalizer::class, + + \Docker\API\Model\DeviceMapping::class => \Docker\API\Normalizer\DeviceMappingNormalizer::class, + + \Docker\API\Model\ThrottleDevice::class => \Docker\API\Normalizer\ThrottleDeviceNormalizer::class, + + \Docker\API\Model\Mount::class => \Docker\API\Normalizer\MountNormalizer::class, + + \Docker\API\Model\MountBindOptions::class => \Docker\API\Normalizer\MountBindOptionsNormalizer::class, + + \Docker\API\Model\MountVolumeOptions::class => \Docker\API\Normalizer\MountVolumeOptionsNormalizer::class, + + \Docker\API\Model\MountVolumeOptionsDriverConfig::class => \Docker\API\Normalizer\MountVolumeOptionsDriverConfigNormalizer::class, + + \Docker\API\Model\MountTmpfsOptions::class => \Docker\API\Normalizer\MountTmpfsOptionsNormalizer::class, + + \Docker\API\Model\RestartPolicy::class => \Docker\API\Normalizer\RestartPolicyNormalizer::class, + + \Docker\API\Model\Resources::class => \Docker\API\Normalizer\ResourcesNormalizer::class, + + \Docker\API\Model\ResourcesBlkioWeightDeviceItem::class => \Docker\API\Normalizer\ResourcesBlkioWeightDeviceItemNormalizer::class, + + \Docker\API\Model\ResourcesUlimitsItem::class => \Docker\API\Normalizer\ResourcesUlimitsItemNormalizer::class, + + \Docker\API\Model\ResourceObject::class => \Docker\API\Normalizer\ResourceObjectNormalizer::class, + + \Docker\API\Model\GenericResourcesItem::class => \Docker\API\Normalizer\GenericResourcesItemNormalizer::class, + + \Docker\API\Model\GenericResourcesItemNamedResourceSpec::class => \Docker\API\Normalizer\GenericResourcesItemNamedResourceSpecNormalizer::class, + + \Docker\API\Model\GenericResourcesItemDiscreteResourceSpec::class => \Docker\API\Normalizer\GenericResourcesItemDiscreteResourceSpecNormalizer::class, + + \Docker\API\Model\HealthConfig::class => \Docker\API\Normalizer\HealthConfigNormalizer::class, + + \Docker\API\Model\HostConfig::class => \Docker\API\Normalizer\HostConfigNormalizer::class, + + \Docker\API\Model\HostConfigLogConfig::class => \Docker\API\Normalizer\HostConfigLogConfigNormalizer::class, + + \Docker\API\Model\ContainerConfig::class => \Docker\API\Normalizer\ContainerConfigNormalizer::class, + + \Docker\API\Model\ContainerConfigExposedPortsItem::class => \Docker\API\Normalizer\ContainerConfigExposedPortsItemNormalizer::class, + + \Docker\API\Model\ContainerConfigVolumesItem::class => \Docker\API\Normalizer\ContainerConfigVolumesItemNormalizer::class, + + \Docker\API\Model\NetworkSettings::class => \Docker\API\Normalizer\NetworkSettingsNormalizer::class, + + \Docker\API\Model\Address::class => \Docker\API\Normalizer\AddressNormalizer::class, + + \Docker\API\Model\PortBinding::class => \Docker\API\Normalizer\PortBindingNormalizer::class, + + \Docker\API\Model\GraphDriverData::class => \Docker\API\Normalizer\GraphDriverDataNormalizer::class, + + \Docker\API\Model\Image::class => \Docker\API\Normalizer\ImageNormalizer::class, + + \Docker\API\Model\ImageRootFS::class => \Docker\API\Normalizer\ImageRootFSNormalizer::class, + + \Docker\API\Model\ImageMetadata::class => \Docker\API\Normalizer\ImageMetadataNormalizer::class, + + \Docker\API\Model\ImageSummary::class => \Docker\API\Normalizer\ImageSummaryNormalizer::class, + + \Docker\API\Model\AuthConfig::class => \Docker\API\Normalizer\AuthConfigNormalizer::class, + + \Docker\API\Model\ProcessConfig::class => \Docker\API\Normalizer\ProcessConfigNormalizer::class, + + \Docker\API\Model\Volume::class => \Docker\API\Normalizer\VolumeNormalizer::class, + + \Docker\API\Model\VolumeStatusItem::class => \Docker\API\Normalizer\VolumeStatusItemNormalizer::class, + + \Docker\API\Model\VolumeUsageData::class => \Docker\API\Normalizer\VolumeUsageDataNormalizer::class, + + \Docker\API\Model\Network::class => \Docker\API\Normalizer\NetworkNormalizer::class, + + \Docker\API\Model\IPAM::class => \Docker\API\Normalizer\IPAMNormalizer::class, + + \Docker\API\Model\NetworkContainer::class => \Docker\API\Normalizer\NetworkContainerNormalizer::class, + + \Docker\API\Model\BuildInfo::class => \Docker\API\Normalizer\BuildInfoNormalizer::class, + + \Docker\API\Model\ImageID::class => \Docker\API\Normalizer\ImageIDNormalizer::class, + + \Docker\API\Model\CreateImageInfo::class => \Docker\API\Normalizer\CreateImageInfoNormalizer::class, + + \Docker\API\Model\PushImageInfo::class => \Docker\API\Normalizer\PushImageInfoNormalizer::class, + + \Docker\API\Model\ErrorDetail::class => \Docker\API\Normalizer\ErrorDetailNormalizer::class, + + \Docker\API\Model\ProgressDetail::class => \Docker\API\Normalizer\ProgressDetailNormalizer::class, + + \Docker\API\Model\ErrorResponse::class => \Docker\API\Normalizer\ErrorResponseNormalizer::class, + + \Docker\API\Model\IdResponse::class => \Docker\API\Normalizer\IdResponseNormalizer::class, + + \Docker\API\Model\EndpointSettings::class => \Docker\API\Normalizer\EndpointSettingsNormalizer::class, + + \Docker\API\Model\EndpointIPAMConfig::class => \Docker\API\Normalizer\EndpointIPAMConfigNormalizer::class, + + \Docker\API\Model\PluginMount::class => \Docker\API\Normalizer\PluginMountNormalizer::class, + + \Docker\API\Model\PluginDevice::class => \Docker\API\Normalizer\PluginDeviceNormalizer::class, + + \Docker\API\Model\PluginEnv::class => \Docker\API\Normalizer\PluginEnvNormalizer::class, + + \Docker\API\Model\PluginInterfaceType::class => \Docker\API\Normalizer\PluginInterfaceTypeNormalizer::class, + + \Docker\API\Model\Plugin::class => \Docker\API\Normalizer\PluginNormalizer::class, + + \Docker\API\Model\PluginSettings::class => \Docker\API\Normalizer\PluginSettingsNormalizer::class, + + \Docker\API\Model\PluginConfig::class => \Docker\API\Normalizer\PluginConfigNormalizer::class, + + \Docker\API\Model\PluginConfigInterface::class => \Docker\API\Normalizer\PluginConfigInterfaceNormalizer::class, + + \Docker\API\Model\PluginConfigUser::class => \Docker\API\Normalizer\PluginConfigUserNormalizer::class, + + \Docker\API\Model\PluginConfigNetwork::class => \Docker\API\Normalizer\PluginConfigNetworkNormalizer::class, + + \Docker\API\Model\PluginConfigLinux::class => \Docker\API\Normalizer\PluginConfigLinuxNormalizer::class, + + \Docker\API\Model\PluginConfigArgs::class => \Docker\API\Normalizer\PluginConfigArgsNormalizer::class, + + \Docker\API\Model\PluginConfigRootfs::class => \Docker\API\Normalizer\PluginConfigRootfsNormalizer::class, + + \Docker\API\Model\ObjectVersion::class => \Docker\API\Normalizer\ObjectVersionNormalizer::class, + + \Docker\API\Model\NodeSpec::class => \Docker\API\Normalizer\NodeSpecNormalizer::class, + + \Docker\API\Model\Node::class => \Docker\API\Normalizer\NodeNormalizer::class, + + \Docker\API\Model\NodeDescription::class => \Docker\API\Normalizer\NodeDescriptionNormalizer::class, + + \Docker\API\Model\Platform::class => \Docker\API\Normalizer\PlatformNormalizer::class, + + \Docker\API\Model\EngineDescription::class => \Docker\API\Normalizer\EngineDescriptionNormalizer::class, + + \Docker\API\Model\EngineDescriptionPluginsItem::class => \Docker\API\Normalizer\EngineDescriptionPluginsItemNormalizer::class, + + \Docker\API\Model\TLSInfo::class => \Docker\API\Normalizer\TLSInfoNormalizer::class, + + \Docker\API\Model\NodeStatus::class => \Docker\API\Normalizer\NodeStatusNormalizer::class, + + \Docker\API\Model\ManagerStatus::class => \Docker\API\Normalizer\ManagerStatusNormalizer::class, + + \Docker\API\Model\SwarmSpec::class => \Docker\API\Normalizer\SwarmSpecNormalizer::class, + + \Docker\API\Model\SwarmSpecOrchestration::class => \Docker\API\Normalizer\SwarmSpecOrchestrationNormalizer::class, + + \Docker\API\Model\SwarmSpecRaft::class => \Docker\API\Normalizer\SwarmSpecRaftNormalizer::class, + + \Docker\API\Model\SwarmSpecDispatcher::class => \Docker\API\Normalizer\SwarmSpecDispatcherNormalizer::class, + + \Docker\API\Model\SwarmSpecCAConfig::class => \Docker\API\Normalizer\SwarmSpecCAConfigNormalizer::class, + + \Docker\API\Model\SwarmSpecCAConfigExternalCAsItem::class => \Docker\API\Normalizer\SwarmSpecCAConfigExternalCAsItemNormalizer::class, + + \Docker\API\Model\SwarmSpecEncryptionConfig::class => \Docker\API\Normalizer\SwarmSpecEncryptionConfigNormalizer::class, + + \Docker\API\Model\SwarmSpecTaskDefaults::class => \Docker\API\Normalizer\SwarmSpecTaskDefaultsNormalizer::class, + + \Docker\API\Model\SwarmSpecTaskDefaultsLogDriver::class => \Docker\API\Normalizer\SwarmSpecTaskDefaultsLogDriverNormalizer::class, + + \Docker\API\Model\ClusterInfo::class => \Docker\API\Normalizer\ClusterInfoNormalizer::class, + + \Docker\API\Model\JoinTokens::class => \Docker\API\Normalizer\JoinTokensNormalizer::class, + + \Docker\API\Model\Swarm::class => \Docker\API\Normalizer\SwarmNormalizer::class, + + \Docker\API\Model\TaskSpec::class => \Docker\API\Normalizer\TaskSpecNormalizer::class, + + \Docker\API\Model\TaskSpecPluginSpec::class => \Docker\API\Normalizer\TaskSpecPluginSpecNormalizer::class, + + \Docker\API\Model\TaskSpecPluginSpecPluginPrivilegeItem::class => \Docker\API\Normalizer\TaskSpecPluginSpecPluginPrivilegeItemNormalizer::class, + + \Docker\API\Model\TaskSpecContainerSpec::class => \Docker\API\Normalizer\TaskSpecContainerSpecNormalizer::class, + + \Docker\API\Model\TaskSpecContainerSpecPrivileges::class => \Docker\API\Normalizer\TaskSpecContainerSpecPrivilegesNormalizer::class, + + \Docker\API\Model\TaskSpecContainerSpecPrivilegesCredentialSpec::class => \Docker\API\Normalizer\TaskSpecContainerSpecPrivilegesCredentialSpecNormalizer::class, + + \Docker\API\Model\TaskSpecContainerSpecPrivilegesSELinuxContext::class => \Docker\API\Normalizer\TaskSpecContainerSpecPrivilegesSELinuxContextNormalizer::class, + + \Docker\API\Model\TaskSpecContainerSpecDNSConfig::class => \Docker\API\Normalizer\TaskSpecContainerSpecDNSConfigNormalizer::class, + + \Docker\API\Model\TaskSpecContainerSpecSecretsItem::class => \Docker\API\Normalizer\TaskSpecContainerSpecSecretsItemNormalizer::class, + + \Docker\API\Model\TaskSpecContainerSpecSecretsItemFile::class => \Docker\API\Normalizer\TaskSpecContainerSpecSecretsItemFileNormalizer::class, + + \Docker\API\Model\TaskSpecContainerSpecConfigsItem::class => \Docker\API\Normalizer\TaskSpecContainerSpecConfigsItemNormalizer::class, + + \Docker\API\Model\TaskSpecContainerSpecConfigsItemFile::class => \Docker\API\Normalizer\TaskSpecContainerSpecConfigsItemFileNormalizer::class, + + \Docker\API\Model\TaskSpecResources::class => \Docker\API\Normalizer\TaskSpecResourcesNormalizer::class, + + \Docker\API\Model\TaskSpecRestartPolicy::class => \Docker\API\Normalizer\TaskSpecRestartPolicyNormalizer::class, + + \Docker\API\Model\TaskSpecPlacement::class => \Docker\API\Normalizer\TaskSpecPlacementNormalizer::class, + + \Docker\API\Model\TaskSpecPlacementPreferencesItem::class => \Docker\API\Normalizer\TaskSpecPlacementPreferencesItemNormalizer::class, + + \Docker\API\Model\TaskSpecPlacementPreferencesItemSpread::class => \Docker\API\Normalizer\TaskSpecPlacementPreferencesItemSpreadNormalizer::class, + + \Docker\API\Model\TaskSpecNetworksItem::class => \Docker\API\Normalizer\TaskSpecNetworksItemNormalizer::class, + + \Docker\API\Model\TaskSpecLogDriver::class => \Docker\API\Normalizer\TaskSpecLogDriverNormalizer::class, + + \Docker\API\Model\Task::class => \Docker\API\Normalizer\TaskNormalizer::class, + + \Docker\API\Model\TaskStatus::class => \Docker\API\Normalizer\TaskStatusNormalizer::class, + + \Docker\API\Model\TaskStatusContainerStatus::class => \Docker\API\Normalizer\TaskStatusContainerStatusNormalizer::class, + + \Docker\API\Model\ServiceSpec::class => \Docker\API\Normalizer\ServiceSpecNormalizer::class, + + \Docker\API\Model\ServiceSpecMode::class => \Docker\API\Normalizer\ServiceSpecModeNormalizer::class, + + \Docker\API\Model\ServiceSpecModeReplicated::class => \Docker\API\Normalizer\ServiceSpecModeReplicatedNormalizer::class, + + \Docker\API\Model\ServiceSpecModeGlobal::class => \Docker\API\Normalizer\ServiceSpecModeGlobalNormalizer::class, + + \Docker\API\Model\ServiceSpecUpdateConfig::class => \Docker\API\Normalizer\ServiceSpecUpdateConfigNormalizer::class, + + \Docker\API\Model\ServiceSpecRollbackConfig::class => \Docker\API\Normalizer\ServiceSpecRollbackConfigNormalizer::class, + + \Docker\API\Model\ServiceSpecNetworksItem::class => \Docker\API\Normalizer\ServiceSpecNetworksItemNormalizer::class, + + \Docker\API\Model\EndpointPortConfig::class => \Docker\API\Normalizer\EndpointPortConfigNormalizer::class, + + \Docker\API\Model\EndpointSpec::class => \Docker\API\Normalizer\EndpointSpecNormalizer::class, + + \Docker\API\Model\Service::class => \Docker\API\Normalizer\ServiceNormalizer::class, + + \Docker\API\Model\ServiceEndpoint::class => \Docker\API\Normalizer\ServiceEndpointNormalizer::class, + + \Docker\API\Model\ServiceEndpointVirtualIPsItem::class => \Docker\API\Normalizer\ServiceEndpointVirtualIPsItemNormalizer::class, + + \Docker\API\Model\ServiceUpdateStatus::class => \Docker\API\Normalizer\ServiceUpdateStatusNormalizer::class, + + \Docker\API\Model\ImageDeleteResponseItem::class => \Docker\API\Normalizer\ImageDeleteResponseItemNormalizer::class, + + \Docker\API\Model\ServiceUpdateResponse::class => \Docker\API\Normalizer\ServiceUpdateResponseNormalizer::class, + + \Docker\API\Model\ContainerSummaryItem::class => \Docker\API\Normalizer\ContainerSummaryItemNormalizer::class, + + \Docker\API\Model\ContainerSummaryItemHostConfig::class => \Docker\API\Normalizer\ContainerSummaryItemHostConfigNormalizer::class, + + \Docker\API\Model\ContainerSummaryItemNetworkSettings::class => \Docker\API\Normalizer\ContainerSummaryItemNetworkSettingsNormalizer::class, + + \Docker\API\Model\Driver::class => \Docker\API\Normalizer\DriverNormalizer::class, + + \Docker\API\Model\SecretSpec::class => \Docker\API\Normalizer\SecretSpecNormalizer::class, + + \Docker\API\Model\Secret::class => \Docker\API\Normalizer\SecretNormalizer::class, + + \Docker\API\Model\ConfigSpec::class => \Docker\API\Normalizer\ConfigSpecNormalizer::class, + + \Docker\API\Model\Config::class => \Docker\API\Normalizer\ConfigNormalizer::class, + + \Docker\API\Model\SystemInfo::class => \Docker\API\Normalizer\SystemInfoNormalizer::class, + + \Docker\API\Model\PluginsInfo::class => \Docker\API\Normalizer\PluginsInfoNormalizer::class, + + \Docker\API\Model\RegistryServiceConfig::class => \Docker\API\Normalizer\RegistryServiceConfigNormalizer::class, + + \Docker\API\Model\IndexInfo::class => \Docker\API\Normalizer\IndexInfoNormalizer::class, + + \Docker\API\Model\Runtime::class => \Docker\API\Normalizer\RuntimeNormalizer::class, + + \Docker\API\Model\Commit::class => \Docker\API\Normalizer\CommitNormalizer::class, + + \Docker\API\Model\SwarmInfo::class => \Docker\API\Normalizer\SwarmInfoNormalizer::class, + + \Docker\API\Model\PeerNode::class => \Docker\API\Normalizer\PeerNodeNormalizer::class, + + \Docker\API\Model\ContainersCreatePostBody::class => \Docker\API\Normalizer\ContainersCreatePostBodyNormalizer::class, + + \Docker\API\Model\ContainersCreatePostBodyNetworkingConfig::class => \Docker\API\Normalizer\ContainersCreatePostBodyNetworkingConfigNormalizer::class, + + \Docker\API\Model\ContainersCreatePostResponse201::class => \Docker\API\Normalizer\ContainersCreatePostResponse201Normalizer::class, + + \Docker\API\Model\ContainersIdJsonGetResponse200::class => \Docker\API\Normalizer\ContainersIdJsonGetResponse200Normalizer::class, + + \Docker\API\Model\ContainersIdJsonGetResponse200State::class => \Docker\API\Normalizer\ContainersIdJsonGetResponse200StateNormalizer::class, + + \Docker\API\Model\ContainersIdJsonGetResponse200Node::class => \Docker\API\Normalizer\ContainersIdJsonGetResponse200NodeNormalizer::class, + + \Docker\API\Model\ContainersIdTopGetJsonResponse200::class => \Docker\API\Normalizer\ContainersIdTopGetJsonResponse200Normalizer::class, + + \Docker\API\Model\ContainersIdTopGetTextplainResponse200::class => \Docker\API\Normalizer\ContainersIdTopGetTextplainResponse200Normalizer::class, + + \Docker\API\Model\ContainersIdChangesGetResponse200Item::class => \Docker\API\Normalizer\ContainersIdChangesGetResponse200ItemNormalizer::class, + + \Docker\API\Model\ContainersIdUpdatePostBody::class => \Docker\API\Normalizer\ContainersIdUpdatePostBodyNormalizer::class, + + \Docker\API\Model\ContainersIdUpdatePostResponse200::class => \Docker\API\Normalizer\ContainersIdUpdatePostResponse200Normalizer::class, + + \Docker\API\Model\ContainersIdWaitPostResponse200::class => \Docker\API\Normalizer\ContainersIdWaitPostResponse200Normalizer::class, + + \Docker\API\Model\ContainersIdWaitPostResponse200Error::class => \Docker\API\Normalizer\ContainersIdWaitPostResponse200ErrorNormalizer::class, + + \Docker\API\Model\ContainersIdArchiveGetResponse400::class => \Docker\API\Normalizer\ContainersIdArchiveGetResponse400Normalizer::class, + + \Docker\API\Model\ContainersIdArchiveHeadJsonResponse400::class => \Docker\API\Normalizer\ContainersIdArchiveHeadJsonResponse400Normalizer::class, + + \Docker\API\Model\ContainersIdArchiveHeadTextplainResponse400::class => \Docker\API\Normalizer\ContainersIdArchiveHeadTextplainResponse400Normalizer::class, + + \Docker\API\Model\ContainersPrunePostResponse200::class => \Docker\API\Normalizer\ContainersPrunePostResponse200Normalizer::class, + + \Docker\API\Model\BuildPrunePostResponse200::class => \Docker\API\Normalizer\BuildPrunePostResponse200Normalizer::class, + + \Docker\API\Model\ImagesNameHistoryGetResponse200Item::class => \Docker\API\Normalizer\ImagesNameHistoryGetResponse200ItemNormalizer::class, + + \Docker\API\Model\ImagesSearchGetResponse200Item::class => \Docker\API\Normalizer\ImagesSearchGetResponse200ItemNormalizer::class, + + \Docker\API\Model\ImagesPrunePostResponse200::class => \Docker\API\Normalizer\ImagesPrunePostResponse200Normalizer::class, + + \Docker\API\Model\AuthPostResponse200::class => \Docker\API\Normalizer\AuthPostResponse200Normalizer::class, + + \Docker\API\Model\VersionGetResponse200::class => \Docker\API\Normalizer\VersionGetResponse200Normalizer::class, + + \Docker\API\Model\VersionGetResponse200Platform::class => \Docker\API\Normalizer\VersionGetResponse200PlatformNormalizer::class, + + \Docker\API\Model\VersionGetResponse200ComponentsItem::class => \Docker\API\Normalizer\VersionGetResponse200ComponentsItemNormalizer::class, + + \Docker\API\Model\VersionGetResponse200ComponentsItemDetails::class => \Docker\API\Normalizer\VersionGetResponse200ComponentsItemDetailsNormalizer::class, + + \Docker\API\Model\EventsGetResponse200::class => \Docker\API\Normalizer\EventsGetResponse200Normalizer::class, + + \Docker\API\Model\EventsGetResponse200Actor::class => \Docker\API\Normalizer\EventsGetResponse200ActorNormalizer::class, + + \Docker\API\Model\SystemDfGetJsonResponse200::class => \Docker\API\Normalizer\SystemDfGetJsonResponse200Normalizer::class, + + \Docker\API\Model\SystemDfGetTextplainResponse200::class => \Docker\API\Normalizer\SystemDfGetTextplainResponse200Normalizer::class, + + \Docker\API\Model\ContainersIdExecPostBody::class => \Docker\API\Normalizer\ContainersIdExecPostBodyNormalizer::class, + + \Docker\API\Model\ExecIdStartPostBody::class => \Docker\API\Normalizer\ExecIdStartPostBodyNormalizer::class, + + \Docker\API\Model\ExecIdJsonGetResponse200::class => \Docker\API\Normalizer\ExecIdJsonGetResponse200Normalizer::class, + + \Docker\API\Model\VolumesGetResponse200::class => \Docker\API\Normalizer\VolumesGetResponse200Normalizer::class, + + \Docker\API\Model\VolumesCreatePostBody::class => \Docker\API\Normalizer\VolumesCreatePostBodyNormalizer::class, + + \Docker\API\Model\VolumesPrunePostResponse200::class => \Docker\API\Normalizer\VolumesPrunePostResponse200Normalizer::class, + + \Docker\API\Model\NetworksCreatePostBody::class => \Docker\API\Normalizer\NetworksCreatePostBodyNormalizer::class, + + \Docker\API\Model\NetworksCreatePostResponse201::class => \Docker\API\Normalizer\NetworksCreatePostResponse201Normalizer::class, + + \Docker\API\Model\NetworksIdConnectPostBody::class => \Docker\API\Normalizer\NetworksIdConnectPostBodyNormalizer::class, + + \Docker\API\Model\NetworksIdDisconnectPostBody::class => \Docker\API\Normalizer\NetworksIdDisconnectPostBodyNormalizer::class, + + \Docker\API\Model\NetworksPrunePostResponse200::class => \Docker\API\Normalizer\NetworksPrunePostResponse200Normalizer::class, + + \Docker\API\Model\PluginsPrivilegesGetJsonResponse200Item::class => \Docker\API\Normalizer\PluginsPrivilegesGetJsonResponse200ItemNormalizer::class, + + \Docker\API\Model\PluginsPrivilegesGetTextplainResponse200Item::class => \Docker\API\Normalizer\PluginsPrivilegesGetTextplainResponse200ItemNormalizer::class, + + \Docker\API\Model\PluginsPullPostBodyItem::class => \Docker\API\Normalizer\PluginsPullPostBodyItemNormalizer::class, + + \Docker\API\Model\PluginsNameUpgradePostBodyItem::class => \Docker\API\Normalizer\PluginsNameUpgradePostBodyItemNormalizer::class, + + \Docker\API\Model\SwarmInitPostBody::class => \Docker\API\Normalizer\SwarmInitPostBodyNormalizer::class, + + \Docker\API\Model\SwarmJoinPostBody::class => \Docker\API\Normalizer\SwarmJoinPostBodyNormalizer::class, + + \Docker\API\Model\SwarmUnlockkeyGetJsonResponse200::class => \Docker\API\Normalizer\SwarmUnlockkeyGetJsonResponse200Normalizer::class, + + \Docker\API\Model\SwarmUnlockkeyGetTextplainResponse200::class => \Docker\API\Normalizer\SwarmUnlockkeyGetTextplainResponse200Normalizer::class, + + \Docker\API\Model\SwarmUnlockPostBody::class => \Docker\API\Normalizer\SwarmUnlockPostBodyNormalizer::class, + + \Docker\API\Model\ServicesCreatePostBody::class => \Docker\API\Normalizer\ServicesCreatePostBodyNormalizer::class, + + \Docker\API\Model\ServicesCreatePostResponse201::class => \Docker\API\Normalizer\ServicesCreatePostResponse201Normalizer::class, + + \Docker\API\Model\ServicesIdUpdatePostBody::class => \Docker\API\Normalizer\ServicesIdUpdatePostBodyNormalizer::class, + + \Docker\API\Model\SecretsCreatePostBody::class => \Docker\API\Normalizer\SecretsCreatePostBodyNormalizer::class, + + \Docker\API\Model\ConfigsCreatePostBody::class => \Docker\API\Normalizer\ConfigsCreatePostBodyNormalizer::class, + + \Docker\API\Model\DistributionNameJsonGetResponse200::class => \Docker\API\Normalizer\DistributionNameJsonGetResponse200Normalizer::class, + + \Docker\API\Model\DistributionNameJsonGetResponse200Descriptor::class => \Docker\API\Normalizer\DistributionNameJsonGetResponse200DescriptorNormalizer::class, + + \Docker\API\Model\DistributionNameJsonGetResponse200PlatformsItem::class => \Docker\API\Normalizer\DistributionNameJsonGetResponse200PlatformsItemNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Docker\API\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []) : bool { return array_key_exists($type, $this->normalizers); @@ -53,7 +446,205 @@ private function initNormalizer(string $normalizerClass) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Port' => false, 'Docker\\API\\Model\\MountPoint' => false, 'Docker\\API\\Model\\DeviceMapping' => false, 'Docker\\API\\Model\\ThrottleDevice' => false, 'Docker\\API\\Model\\Mount' => false, 'Docker\\API\\Model\\MountBindOptions' => false, 'Docker\\API\\Model\\MountVolumeOptions' => false, 'Docker\\API\\Model\\MountVolumeOptionsDriverConfig' => false, 'Docker\\API\\Model\\MountTmpfsOptions' => false, 'Docker\\API\\Model\\RestartPolicy' => false, 'Docker\\API\\Model\\Resources' => false, 'Docker\\API\\Model\\ResourcesBlkioWeightDeviceItem' => false, 'Docker\\API\\Model\\ResourcesUlimitsItem' => false, 'Docker\\API\\Model\\ResourceObject' => false, 'Docker\\API\\Model\\GenericResourcesItem' => false, 'Docker\\API\\Model\\GenericResourcesItemNamedResourceSpec' => false, 'Docker\\API\\Model\\GenericResourcesItemDiscreteResourceSpec' => false, 'Docker\\API\\Model\\HealthConfig' => false, 'Docker\\API\\Model\\HostConfig' => false, 'Docker\\API\\Model\\HostConfigLogConfig' => false, 'Docker\\API\\Model\\ContainerConfig' => false, 'Docker\\API\\Model\\ContainerConfigExposedPortsItem' => false, 'Docker\\API\\Model\\ContainerConfigVolumesItem' => false, 'Docker\\API\\Model\\NetworkSettings' => false, 'Docker\\API\\Model\\Address' => false, 'Docker\\API\\Model\\PortBinding' => false, 'Docker\\API\\Model\\GraphDriverData' => false, 'Docker\\API\\Model\\Image' => false, 'Docker\\API\\Model\\ImageRootFS' => false, 'Docker\\API\\Model\\ImageMetadata' => false, 'Docker\\API\\Model\\ImageSummary' => false, 'Docker\\API\\Model\\AuthConfig' => false, 'Docker\\API\\Model\\ProcessConfig' => false, 'Docker\\API\\Model\\Volume' => false, 'Docker\\API\\Model\\VolumeStatusItem' => false, 'Docker\\API\\Model\\VolumeUsageData' => false, 'Docker\\API\\Model\\Network' => false, 'Docker\\API\\Model\\IPAM' => false, 'Docker\\API\\Model\\NetworkContainer' => false, 'Docker\\API\\Model\\BuildInfo' => false, 'Docker\\API\\Model\\ImageID' => false, 'Docker\\API\\Model\\CreateImageInfo' => false, 'Docker\\API\\Model\\PushImageInfo' => false, 'Docker\\API\\Model\\ErrorDetail' => false, 'Docker\\API\\Model\\ProgressDetail' => false, 'Docker\\API\\Model\\ErrorResponse' => false, 'Docker\\API\\Model\\IdResponse' => false, 'Docker\\API\\Model\\EndpointSettings' => false, 'Docker\\API\\Model\\EndpointIPAMConfig' => false, 'Docker\\API\\Model\\PluginMount' => false, 'Docker\\API\\Model\\PluginDevice' => false, 'Docker\\API\\Model\\PluginEnv' => false, 'Docker\\API\\Model\\PluginInterfaceType' => false, 'Docker\\API\\Model\\Plugin' => false, 'Docker\\API\\Model\\PluginSettings' => false, 'Docker\\API\\Model\\PluginConfig' => false, 'Docker\\API\\Model\\PluginConfigInterface' => false, 'Docker\\API\\Model\\PluginConfigUser' => false, 'Docker\\API\\Model\\PluginConfigNetwork' => false, 'Docker\\API\\Model\\PluginConfigLinux' => false, 'Docker\\API\\Model\\PluginConfigArgs' => false, 'Docker\\API\\Model\\PluginConfigRootfs' => false, 'Docker\\API\\Model\\ObjectVersion' => false, 'Docker\\API\\Model\\NodeSpec' => false, 'Docker\\API\\Model\\Node' => false, 'Docker\\API\\Model\\NodeDescription' => false, 'Docker\\API\\Model\\Platform' => false, 'Docker\\API\\Model\\EngineDescription' => false, 'Docker\\API\\Model\\EngineDescriptionPluginsItem' => false, 'Docker\\API\\Model\\TLSInfo' => false, 'Docker\\API\\Model\\NodeStatus' => false, 'Docker\\API\\Model\\ManagerStatus' => false, 'Docker\\API\\Model\\SwarmSpec' => false, 'Docker\\API\\Model\\SwarmSpecOrchestration' => false, 'Docker\\API\\Model\\SwarmSpecRaft' => false, 'Docker\\API\\Model\\SwarmSpecDispatcher' => false, 'Docker\\API\\Model\\SwarmSpecCAConfig' => false, 'Docker\\API\\Model\\SwarmSpecCAConfigExternalCAsItem' => false, 'Docker\\API\\Model\\SwarmSpecEncryptionConfig' => false, 'Docker\\API\\Model\\SwarmSpecTaskDefaults' => false, 'Docker\\API\\Model\\SwarmSpecTaskDefaultsLogDriver' => false, 'Docker\\API\\Model\\ClusterInfo' => false, 'Docker\\API\\Model\\JoinTokens' => false, 'Docker\\API\\Model\\Swarm' => false, 'Docker\\API\\Model\\TaskSpec' => false, 'Docker\\API\\Model\\TaskSpecPluginSpec' => false, 'Docker\\API\\Model\\TaskSpecPluginSpecPluginPrivilegeItem' => false, 'Docker\\API\\Model\\TaskSpecContainerSpec' => false, 'Docker\\API\\Model\\TaskSpecContainerSpecPrivileges' => false, 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesCredentialSpec' => false, 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesSELinuxContext' => false, 'Docker\\API\\Model\\TaskSpecContainerSpecDNSConfig' => false, 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItem' => false, 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItemFile' => false, 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItem' => false, 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItemFile' => false, 'Docker\\API\\Model\\TaskSpecResources' => false, 'Docker\\API\\Model\\TaskSpecRestartPolicy' => false, 'Docker\\API\\Model\\TaskSpecPlacement' => false, 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItem' => false, 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItemSpread' => false, 'Docker\\API\\Model\\TaskSpecNetworksItem' => false, 'Docker\\API\\Model\\TaskSpecLogDriver' => false, 'Docker\\API\\Model\\Task' => false, 'Docker\\API\\Model\\TaskStatus' => false, 'Docker\\API\\Model\\TaskStatusContainerStatus' => false, 'Docker\\API\\Model\\ServiceSpec' => false, 'Docker\\API\\Model\\ServiceSpecMode' => false, 'Docker\\API\\Model\\ServiceSpecModeReplicated' => false, 'Docker\\API\\Model\\ServiceSpecModeGlobal' => false, 'Docker\\API\\Model\\ServiceSpecUpdateConfig' => false, 'Docker\\API\\Model\\ServiceSpecRollbackConfig' => false, 'Docker\\API\\Model\\ServiceSpecNetworksItem' => false, 'Docker\\API\\Model\\EndpointPortConfig' => false, 'Docker\\API\\Model\\EndpointSpec' => false, 'Docker\\API\\Model\\Service' => false, 'Docker\\API\\Model\\ServiceEndpoint' => false, 'Docker\\API\\Model\\ServiceEndpointVirtualIPsItem' => false, 'Docker\\API\\Model\\ServiceUpdateStatus' => false, 'Docker\\API\\Model\\ImageDeleteResponseItem' => false, 'Docker\\API\\Model\\ServiceUpdateResponse' => false, 'Docker\\API\\Model\\ContainerSummaryItem' => false, 'Docker\\API\\Model\\ContainerSummaryItemHostConfig' => false, 'Docker\\API\\Model\\ContainerSummaryItemNetworkSettings' => false, 'Docker\\API\\Model\\Driver' => false, 'Docker\\API\\Model\\SecretSpec' => false, 'Docker\\API\\Model\\Secret' => false, 'Docker\\API\\Model\\ConfigSpec' => false, 'Docker\\API\\Model\\Config' => false, 'Docker\\API\\Model\\SystemInfo' => false, 'Docker\\API\\Model\\PluginsInfo' => false, 'Docker\\API\\Model\\RegistryServiceConfig' => false, 'Docker\\API\\Model\\IndexInfo' => false, 'Docker\\API\\Model\\Runtime' => false, 'Docker\\API\\Model\\Commit' => false, 'Docker\\API\\Model\\SwarmInfo' => false, 'Docker\\API\\Model\\PeerNode' => false, 'Docker\\API\\Model\\ContainersCreatePostBody' => false, 'Docker\\API\\Model\\ContainersCreatePostBodyNetworkingConfig' => false, 'Docker\\API\\Model\\ContainersCreatePostResponse201' => false, 'Docker\\API\\Model\\ContainersIdJsonGetResponse200' => false, 'Docker\\API\\Model\\ContainersIdJsonGetResponse200State' => false, 'Docker\\API\\Model\\ContainersIdJsonGetResponse200Node' => false, 'Docker\\API\\Model\\ContainersIdTopGetJsonResponse200' => false, 'Docker\\API\\Model\\ContainersIdTopGetTextplainResponse200' => false, 'Docker\\API\\Model\\ContainersIdChangesGetResponse200Item' => false, 'Docker\\API\\Model\\ContainersIdUpdatePostBody' => false, 'Docker\\API\\Model\\ContainersIdUpdatePostResponse200' => false, 'Docker\\API\\Model\\ContainersIdWaitPostResponse200' => false, 'Docker\\API\\Model\\ContainersIdWaitPostResponse200Error' => false, 'Docker\\API\\Model\\ContainersIdArchiveGetResponse400' => false, 'Docker\\API\\Model\\ContainersIdArchiveHeadJsonResponse400' => false, 'Docker\\API\\Model\\ContainersIdArchiveHeadTextplainResponse400' => false, 'Docker\\API\\Model\\ContainersPrunePostResponse200' => false, 'Docker\\API\\Model\\BuildPrunePostResponse200' => false, 'Docker\\API\\Model\\ImagesNameHistoryGetResponse200Item' => false, 'Docker\\API\\Model\\ImagesSearchGetResponse200Item' => false, 'Docker\\API\\Model\\ImagesPrunePostResponse200' => false, 'Docker\\API\\Model\\AuthPostResponse200' => false, 'Docker\\API\\Model\\VersionGetResponse200' => false, 'Docker\\API\\Model\\VersionGetResponse200Platform' => false, 'Docker\\API\\Model\\VersionGetResponse200ComponentsItem' => false, 'Docker\\API\\Model\\VersionGetResponse200ComponentsItemDetails' => false, 'Docker\\API\\Model\\EventsGetResponse200' => false, 'Docker\\API\\Model\\EventsGetResponse200Actor' => false, 'Docker\\API\\Model\\SystemDfGetJsonResponse200' => false, 'Docker\\API\\Model\\SystemDfGetTextplainResponse200' => false, 'Docker\\API\\Model\\ContainersIdExecPostBody' => false, 'Docker\\API\\Model\\ExecIdStartPostBody' => false, 'Docker\\API\\Model\\ExecIdJsonGetResponse200' => false, 'Docker\\API\\Model\\VolumesGetResponse200' => false, 'Docker\\API\\Model\\VolumesCreatePostBody' => false, 'Docker\\API\\Model\\VolumesPrunePostResponse200' => false, 'Docker\\API\\Model\\NetworksCreatePostBody' => false, 'Docker\\API\\Model\\NetworksCreatePostResponse201' => false, 'Docker\\API\\Model\\NetworksIdConnectPostBody' => false, 'Docker\\API\\Model\\NetworksIdDisconnectPostBody' => false, 'Docker\\API\\Model\\NetworksPrunePostResponse200' => false, 'Docker\\API\\Model\\PluginsPrivilegesGetJsonResponse200Item' => false, 'Docker\\API\\Model\\PluginsPrivilegesGetTextplainResponse200Item' => false, 'Docker\\API\\Model\\PluginsPullPostBodyItem' => false, 'Docker\\API\\Model\\PluginsNameUpgradePostBodyItem' => false, 'Docker\\API\\Model\\SwarmInitPostBody' => false, 'Docker\\API\\Model\\SwarmJoinPostBody' => false, 'Docker\\API\\Model\\SwarmUnlockkeyGetJsonResponse200' => false, 'Docker\\API\\Model\\SwarmUnlockkeyGetTextplainResponse200' => false, 'Docker\\API\\Model\\SwarmUnlockPostBody' => false, 'Docker\\API\\Model\\ServicesCreatePostBody' => false, 'Docker\\API\\Model\\ServicesCreatePostResponse201' => false, 'Docker\\API\\Model\\ServicesIdUpdatePostBody' => false, 'Docker\\API\\Model\\SecretsCreatePostBody' => false, 'Docker\\API\\Model\\ConfigsCreatePostBody' => false, 'Docker\\API\\Model\\DistributionNameJsonGetResponse200' => false, 'Docker\\API\\Model\\DistributionNameJsonGetResponse200Descriptor' => false, 'Docker\\API\\Model\\DistributionNameJsonGetResponse200PlatformsItem' => false, '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => false]; + return [ + + \Docker\API\Model\Port::class => false, + \Docker\API\Model\MountPoint::class => false, + \Docker\API\Model\DeviceMapping::class => false, + \Docker\API\Model\ThrottleDevice::class => false, + \Docker\API\Model\Mount::class => false, + \Docker\API\Model\MountBindOptions::class => false, + \Docker\API\Model\MountVolumeOptions::class => false, + \Docker\API\Model\MountVolumeOptionsDriverConfig::class => false, + \Docker\API\Model\MountTmpfsOptions::class => false, + \Docker\API\Model\RestartPolicy::class => false, + \Docker\API\Model\Resources::class => false, + \Docker\API\Model\ResourcesBlkioWeightDeviceItem::class => false, + \Docker\API\Model\ResourcesUlimitsItem::class => false, + \Docker\API\Model\ResourceObject::class => false, + \Docker\API\Model\GenericResourcesItem::class => false, + \Docker\API\Model\GenericResourcesItemNamedResourceSpec::class => false, + \Docker\API\Model\GenericResourcesItemDiscreteResourceSpec::class => false, + \Docker\API\Model\HealthConfig::class => false, + \Docker\API\Model\HostConfig::class => false, + \Docker\API\Model\HostConfigLogConfig::class => false, + \Docker\API\Model\ContainerConfig::class => false, + \Docker\API\Model\ContainerConfigExposedPortsItem::class => false, + \Docker\API\Model\ContainerConfigVolumesItem::class => false, + \Docker\API\Model\NetworkSettings::class => false, + \Docker\API\Model\Address::class => false, + \Docker\API\Model\PortBinding::class => false, + \Docker\API\Model\GraphDriverData::class => false, + \Docker\API\Model\Image::class => false, + \Docker\API\Model\ImageRootFS::class => false, + \Docker\API\Model\ImageMetadata::class => false, + \Docker\API\Model\ImageSummary::class => false, + \Docker\API\Model\AuthConfig::class => false, + \Docker\API\Model\ProcessConfig::class => false, + \Docker\API\Model\Volume::class => false, + \Docker\API\Model\VolumeStatusItem::class => false, + \Docker\API\Model\VolumeUsageData::class => false, + \Docker\API\Model\Network::class => false, + \Docker\API\Model\IPAM::class => false, + \Docker\API\Model\NetworkContainer::class => false, + \Docker\API\Model\BuildInfo::class => false, + \Docker\API\Model\ImageID::class => false, + \Docker\API\Model\CreateImageInfo::class => false, + \Docker\API\Model\PushImageInfo::class => false, + \Docker\API\Model\ErrorDetail::class => false, + \Docker\API\Model\ProgressDetail::class => false, + \Docker\API\Model\ErrorResponse::class => false, + \Docker\API\Model\IdResponse::class => false, + \Docker\API\Model\EndpointSettings::class => false, + \Docker\API\Model\EndpointIPAMConfig::class => false, + \Docker\API\Model\PluginMount::class => false, + \Docker\API\Model\PluginDevice::class => false, + \Docker\API\Model\PluginEnv::class => false, + \Docker\API\Model\PluginInterfaceType::class => false, + \Docker\API\Model\Plugin::class => false, + \Docker\API\Model\PluginSettings::class => false, + \Docker\API\Model\PluginConfig::class => false, + \Docker\API\Model\PluginConfigInterface::class => false, + \Docker\API\Model\PluginConfigUser::class => false, + \Docker\API\Model\PluginConfigNetwork::class => false, + \Docker\API\Model\PluginConfigLinux::class => false, + \Docker\API\Model\PluginConfigArgs::class => false, + \Docker\API\Model\PluginConfigRootfs::class => false, + \Docker\API\Model\ObjectVersion::class => false, + \Docker\API\Model\NodeSpec::class => false, + \Docker\API\Model\Node::class => false, + \Docker\API\Model\NodeDescription::class => false, + \Docker\API\Model\Platform::class => false, + \Docker\API\Model\EngineDescription::class => false, + \Docker\API\Model\EngineDescriptionPluginsItem::class => false, + \Docker\API\Model\TLSInfo::class => false, + \Docker\API\Model\NodeStatus::class => false, + \Docker\API\Model\ManagerStatus::class => false, + \Docker\API\Model\SwarmSpec::class => false, + \Docker\API\Model\SwarmSpecOrchestration::class => false, + \Docker\API\Model\SwarmSpecRaft::class => false, + \Docker\API\Model\SwarmSpecDispatcher::class => false, + \Docker\API\Model\SwarmSpecCAConfig::class => false, + \Docker\API\Model\SwarmSpecCAConfigExternalCAsItem::class => false, + \Docker\API\Model\SwarmSpecEncryptionConfig::class => false, + \Docker\API\Model\SwarmSpecTaskDefaults::class => false, + \Docker\API\Model\SwarmSpecTaskDefaultsLogDriver::class => false, + \Docker\API\Model\ClusterInfo::class => false, + \Docker\API\Model\JoinTokens::class => false, + \Docker\API\Model\Swarm::class => false, + \Docker\API\Model\TaskSpec::class => false, + \Docker\API\Model\TaskSpecPluginSpec::class => false, + \Docker\API\Model\TaskSpecPluginSpecPluginPrivilegeItem::class => false, + \Docker\API\Model\TaskSpecContainerSpec::class => false, + \Docker\API\Model\TaskSpecContainerSpecPrivileges::class => false, + \Docker\API\Model\TaskSpecContainerSpecPrivilegesCredentialSpec::class => false, + \Docker\API\Model\TaskSpecContainerSpecPrivilegesSELinuxContext::class => false, + \Docker\API\Model\TaskSpecContainerSpecDNSConfig::class => false, + \Docker\API\Model\TaskSpecContainerSpecSecretsItem::class => false, + \Docker\API\Model\TaskSpecContainerSpecSecretsItemFile::class => false, + \Docker\API\Model\TaskSpecContainerSpecConfigsItem::class => false, + \Docker\API\Model\TaskSpecContainerSpecConfigsItemFile::class => false, + \Docker\API\Model\TaskSpecResources::class => false, + \Docker\API\Model\TaskSpecRestartPolicy::class => false, + \Docker\API\Model\TaskSpecPlacement::class => false, + \Docker\API\Model\TaskSpecPlacementPreferencesItem::class => false, + \Docker\API\Model\TaskSpecPlacementPreferencesItemSpread::class => false, + \Docker\API\Model\TaskSpecNetworksItem::class => false, + \Docker\API\Model\TaskSpecLogDriver::class => false, + \Docker\API\Model\Task::class => false, + \Docker\API\Model\TaskStatus::class => false, + \Docker\API\Model\TaskStatusContainerStatus::class => false, + \Docker\API\Model\ServiceSpec::class => false, + \Docker\API\Model\ServiceSpecMode::class => false, + \Docker\API\Model\ServiceSpecModeReplicated::class => false, + \Docker\API\Model\ServiceSpecModeGlobal::class => false, + \Docker\API\Model\ServiceSpecUpdateConfig::class => false, + \Docker\API\Model\ServiceSpecRollbackConfig::class => false, + \Docker\API\Model\ServiceSpecNetworksItem::class => false, + \Docker\API\Model\EndpointPortConfig::class => false, + \Docker\API\Model\EndpointSpec::class => false, + \Docker\API\Model\Service::class => false, + \Docker\API\Model\ServiceEndpoint::class => false, + \Docker\API\Model\ServiceEndpointVirtualIPsItem::class => false, + \Docker\API\Model\ServiceUpdateStatus::class => false, + \Docker\API\Model\ImageDeleteResponseItem::class => false, + \Docker\API\Model\ServiceUpdateResponse::class => false, + \Docker\API\Model\ContainerSummaryItem::class => false, + \Docker\API\Model\ContainerSummaryItemHostConfig::class => false, + \Docker\API\Model\ContainerSummaryItemNetworkSettings::class => false, + \Docker\API\Model\Driver::class => false, + \Docker\API\Model\SecretSpec::class => false, + \Docker\API\Model\Secret::class => false, + \Docker\API\Model\ConfigSpec::class => false, + \Docker\API\Model\Config::class => false, + \Docker\API\Model\SystemInfo::class => false, + \Docker\API\Model\PluginsInfo::class => false, + \Docker\API\Model\RegistryServiceConfig::class => false, + \Docker\API\Model\IndexInfo::class => false, + \Docker\API\Model\Runtime::class => false, + \Docker\API\Model\Commit::class => false, + \Docker\API\Model\SwarmInfo::class => false, + \Docker\API\Model\PeerNode::class => false, + \Docker\API\Model\ContainersCreatePostBody::class => false, + \Docker\API\Model\ContainersCreatePostBodyNetworkingConfig::class => false, + \Docker\API\Model\ContainersCreatePostResponse201::class => false, + \Docker\API\Model\ContainersIdJsonGetResponse200::class => false, + \Docker\API\Model\ContainersIdJsonGetResponse200State::class => false, + \Docker\API\Model\ContainersIdJsonGetResponse200Node::class => false, + \Docker\API\Model\ContainersIdTopGetJsonResponse200::class => false, + \Docker\API\Model\ContainersIdTopGetTextplainResponse200::class => false, + \Docker\API\Model\ContainersIdChangesGetResponse200Item::class => false, + \Docker\API\Model\ContainersIdUpdatePostBody::class => false, + \Docker\API\Model\ContainersIdUpdatePostResponse200::class => false, + \Docker\API\Model\ContainersIdWaitPostResponse200::class => false, + \Docker\API\Model\ContainersIdWaitPostResponse200Error::class => false, + \Docker\API\Model\ContainersIdArchiveGetResponse400::class => false, + \Docker\API\Model\ContainersIdArchiveHeadJsonResponse400::class => false, + \Docker\API\Model\ContainersIdArchiveHeadTextplainResponse400::class => false, + \Docker\API\Model\ContainersPrunePostResponse200::class => false, + \Docker\API\Model\BuildPrunePostResponse200::class => false, + \Docker\API\Model\ImagesNameHistoryGetResponse200Item::class => false, + \Docker\API\Model\ImagesSearchGetResponse200Item::class => false, + \Docker\API\Model\ImagesPrunePostResponse200::class => false, + \Docker\API\Model\AuthPostResponse200::class => false, + \Docker\API\Model\VersionGetResponse200::class => false, + \Docker\API\Model\VersionGetResponse200Platform::class => false, + \Docker\API\Model\VersionGetResponse200ComponentsItem::class => false, + \Docker\API\Model\VersionGetResponse200ComponentsItemDetails::class => false, + \Docker\API\Model\EventsGetResponse200::class => false, + \Docker\API\Model\EventsGetResponse200Actor::class => false, + \Docker\API\Model\SystemDfGetJsonResponse200::class => false, + \Docker\API\Model\SystemDfGetTextplainResponse200::class => false, + \Docker\API\Model\ContainersIdExecPostBody::class => false, + \Docker\API\Model\ExecIdStartPostBody::class => false, + \Docker\API\Model\ExecIdJsonGetResponse200::class => false, + \Docker\API\Model\VolumesGetResponse200::class => false, + \Docker\API\Model\VolumesCreatePostBody::class => false, + \Docker\API\Model\VolumesPrunePostResponse200::class => false, + \Docker\API\Model\NetworksCreatePostBody::class => false, + \Docker\API\Model\NetworksCreatePostResponse201::class => false, + \Docker\API\Model\NetworksIdConnectPostBody::class => false, + \Docker\API\Model\NetworksIdDisconnectPostBody::class => false, + \Docker\API\Model\NetworksPrunePostResponse200::class => false, + \Docker\API\Model\PluginsPrivilegesGetJsonResponse200Item::class => false, + \Docker\API\Model\PluginsPrivilegesGetTextplainResponse200Item::class => false, + \Docker\API\Model\PluginsPullPostBodyItem::class => false, + \Docker\API\Model\PluginsNameUpgradePostBodyItem::class => false, + \Docker\API\Model\SwarmInitPostBody::class => false, + \Docker\API\Model\SwarmJoinPostBody::class => false, + \Docker\API\Model\SwarmUnlockkeyGetJsonResponse200::class => false, + \Docker\API\Model\SwarmUnlockkeyGetTextplainResponse200::class => false, + \Docker\API\Model\SwarmUnlockPostBody::class => false, + \Docker\API\Model\ServicesCreatePostBody::class => false, + \Docker\API\Model\ServicesCreatePostResponse201::class => false, + \Docker\API\Model\ServicesIdUpdatePostBody::class => false, + \Docker\API\Model\SecretsCreatePostBody::class => false, + \Docker\API\Model\ConfigsCreatePostBody::class => false, + \Docker\API\Model\DistributionNameJsonGetResponse200::class => false, + \Docker\API\Model\DistributionNameJsonGetResponse200Descriptor::class => false, + \Docker\API\Model\DistributionNameJsonGetResponse200PlatformsItem::class => false, + \Jane\Component\JsonSchemaRuntime\Reference::class => false, + ]; } } } else { @@ -63,7 +654,400 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = array('Docker\\API\\Model\\Port' => 'Docker\\API\\Normalizer\\PortNormalizer', 'Docker\\API\\Model\\MountPoint' => 'Docker\\API\\Normalizer\\MountPointNormalizer', 'Docker\\API\\Model\\DeviceMapping' => 'Docker\\API\\Normalizer\\DeviceMappingNormalizer', 'Docker\\API\\Model\\ThrottleDevice' => 'Docker\\API\\Normalizer\\ThrottleDeviceNormalizer', 'Docker\\API\\Model\\Mount' => 'Docker\\API\\Normalizer\\MountNormalizer', 'Docker\\API\\Model\\MountBindOptions' => 'Docker\\API\\Normalizer\\MountBindOptionsNormalizer', 'Docker\\API\\Model\\MountVolumeOptions' => 'Docker\\API\\Normalizer\\MountVolumeOptionsNormalizer', 'Docker\\API\\Model\\MountVolumeOptionsDriverConfig' => 'Docker\\API\\Normalizer\\MountVolumeOptionsDriverConfigNormalizer', 'Docker\\API\\Model\\MountTmpfsOptions' => 'Docker\\API\\Normalizer\\MountTmpfsOptionsNormalizer', 'Docker\\API\\Model\\RestartPolicy' => 'Docker\\API\\Normalizer\\RestartPolicyNormalizer', 'Docker\\API\\Model\\Resources' => 'Docker\\API\\Normalizer\\ResourcesNormalizer', 'Docker\\API\\Model\\ResourcesBlkioWeightDeviceItem' => 'Docker\\API\\Normalizer\\ResourcesBlkioWeightDeviceItemNormalizer', 'Docker\\API\\Model\\ResourcesUlimitsItem' => 'Docker\\API\\Normalizer\\ResourcesUlimitsItemNormalizer', 'Docker\\API\\Model\\ResourceObject' => 'Docker\\API\\Normalizer\\ResourceObjectNormalizer', 'Docker\\API\\Model\\GenericResourcesItem' => 'Docker\\API\\Normalizer\\GenericResourcesItemNormalizer', 'Docker\\API\\Model\\GenericResourcesItemNamedResourceSpec' => 'Docker\\API\\Normalizer\\GenericResourcesItemNamedResourceSpecNormalizer', 'Docker\\API\\Model\\GenericResourcesItemDiscreteResourceSpec' => 'Docker\\API\\Normalizer\\GenericResourcesItemDiscreteResourceSpecNormalizer', 'Docker\\API\\Model\\HealthConfig' => 'Docker\\API\\Normalizer\\HealthConfigNormalizer', 'Docker\\API\\Model\\HostConfig' => 'Docker\\API\\Normalizer\\HostConfigNormalizer', 'Docker\\API\\Model\\HostConfigLogConfig' => 'Docker\\API\\Normalizer\\HostConfigLogConfigNormalizer', 'Docker\\API\\Model\\ContainerConfig' => 'Docker\\API\\Normalizer\\ContainerConfigNormalizer', 'Docker\\API\\Model\\ContainerConfigExposedPortsItem' => 'Docker\\API\\Normalizer\\ContainerConfigExposedPortsItemNormalizer', 'Docker\\API\\Model\\ContainerConfigVolumesItem' => 'Docker\\API\\Normalizer\\ContainerConfigVolumesItemNormalizer', 'Docker\\API\\Model\\NetworkSettings' => 'Docker\\API\\Normalizer\\NetworkSettingsNormalizer', 'Docker\\API\\Model\\Address' => 'Docker\\API\\Normalizer\\AddressNormalizer', 'Docker\\API\\Model\\PortBinding' => 'Docker\\API\\Normalizer\\PortBindingNormalizer', 'Docker\\API\\Model\\GraphDriverData' => 'Docker\\API\\Normalizer\\GraphDriverDataNormalizer', 'Docker\\API\\Model\\Image' => 'Docker\\API\\Normalizer\\ImageNormalizer', 'Docker\\API\\Model\\ImageRootFS' => 'Docker\\API\\Normalizer\\ImageRootFSNormalizer', 'Docker\\API\\Model\\ImageMetadata' => 'Docker\\API\\Normalizer\\ImageMetadataNormalizer', 'Docker\\API\\Model\\ImageSummary' => 'Docker\\API\\Normalizer\\ImageSummaryNormalizer', 'Docker\\API\\Model\\AuthConfig' => 'Docker\\API\\Normalizer\\AuthConfigNormalizer', 'Docker\\API\\Model\\ProcessConfig' => 'Docker\\API\\Normalizer\\ProcessConfigNormalizer', 'Docker\\API\\Model\\Volume' => 'Docker\\API\\Normalizer\\VolumeNormalizer', 'Docker\\API\\Model\\VolumeStatusItem' => 'Docker\\API\\Normalizer\\VolumeStatusItemNormalizer', 'Docker\\API\\Model\\VolumeUsageData' => 'Docker\\API\\Normalizer\\VolumeUsageDataNormalizer', 'Docker\\API\\Model\\Network' => 'Docker\\API\\Normalizer\\NetworkNormalizer', 'Docker\\API\\Model\\IPAM' => 'Docker\\API\\Normalizer\\IPAMNormalizer', 'Docker\\API\\Model\\NetworkContainer' => 'Docker\\API\\Normalizer\\NetworkContainerNormalizer', 'Docker\\API\\Model\\BuildInfo' => 'Docker\\API\\Normalizer\\BuildInfoNormalizer', 'Docker\\API\\Model\\ImageID' => 'Docker\\API\\Normalizer\\ImageIDNormalizer', 'Docker\\API\\Model\\CreateImageInfo' => 'Docker\\API\\Normalizer\\CreateImageInfoNormalizer', 'Docker\\API\\Model\\PushImageInfo' => 'Docker\\API\\Normalizer\\PushImageInfoNormalizer', 'Docker\\API\\Model\\ErrorDetail' => 'Docker\\API\\Normalizer\\ErrorDetailNormalizer', 'Docker\\API\\Model\\ProgressDetail' => 'Docker\\API\\Normalizer\\ProgressDetailNormalizer', 'Docker\\API\\Model\\ErrorResponse' => 'Docker\\API\\Normalizer\\ErrorResponseNormalizer', 'Docker\\API\\Model\\IdResponse' => 'Docker\\API\\Normalizer\\IdResponseNormalizer', 'Docker\\API\\Model\\EndpointSettings' => 'Docker\\API\\Normalizer\\EndpointSettingsNormalizer', 'Docker\\API\\Model\\EndpointIPAMConfig' => 'Docker\\API\\Normalizer\\EndpointIPAMConfigNormalizer', 'Docker\\API\\Model\\PluginMount' => 'Docker\\API\\Normalizer\\PluginMountNormalizer', 'Docker\\API\\Model\\PluginDevice' => 'Docker\\API\\Normalizer\\PluginDeviceNormalizer', 'Docker\\API\\Model\\PluginEnv' => 'Docker\\API\\Normalizer\\PluginEnvNormalizer', 'Docker\\API\\Model\\PluginInterfaceType' => 'Docker\\API\\Normalizer\\PluginInterfaceTypeNormalizer', 'Docker\\API\\Model\\Plugin' => 'Docker\\API\\Normalizer\\PluginNormalizer', 'Docker\\API\\Model\\PluginSettings' => 'Docker\\API\\Normalizer\\PluginSettingsNormalizer', 'Docker\\API\\Model\\PluginConfig' => 'Docker\\API\\Normalizer\\PluginConfigNormalizer', 'Docker\\API\\Model\\PluginConfigInterface' => 'Docker\\API\\Normalizer\\PluginConfigInterfaceNormalizer', 'Docker\\API\\Model\\PluginConfigUser' => 'Docker\\API\\Normalizer\\PluginConfigUserNormalizer', 'Docker\\API\\Model\\PluginConfigNetwork' => 'Docker\\API\\Normalizer\\PluginConfigNetworkNormalizer', 'Docker\\API\\Model\\PluginConfigLinux' => 'Docker\\API\\Normalizer\\PluginConfigLinuxNormalizer', 'Docker\\API\\Model\\PluginConfigArgs' => 'Docker\\API\\Normalizer\\PluginConfigArgsNormalizer', 'Docker\\API\\Model\\PluginConfigRootfs' => 'Docker\\API\\Normalizer\\PluginConfigRootfsNormalizer', 'Docker\\API\\Model\\ObjectVersion' => 'Docker\\API\\Normalizer\\ObjectVersionNormalizer', 'Docker\\API\\Model\\NodeSpec' => 'Docker\\API\\Normalizer\\NodeSpecNormalizer', 'Docker\\API\\Model\\Node' => 'Docker\\API\\Normalizer\\NodeNormalizer', 'Docker\\API\\Model\\NodeDescription' => 'Docker\\API\\Normalizer\\NodeDescriptionNormalizer', 'Docker\\API\\Model\\Platform' => 'Docker\\API\\Normalizer\\PlatformNormalizer', 'Docker\\API\\Model\\EngineDescription' => 'Docker\\API\\Normalizer\\EngineDescriptionNormalizer', 'Docker\\API\\Model\\EngineDescriptionPluginsItem' => 'Docker\\API\\Normalizer\\EngineDescriptionPluginsItemNormalizer', 'Docker\\API\\Model\\TLSInfo' => 'Docker\\API\\Normalizer\\TLSInfoNormalizer', 'Docker\\API\\Model\\NodeStatus' => 'Docker\\API\\Normalizer\\NodeStatusNormalizer', 'Docker\\API\\Model\\ManagerStatus' => 'Docker\\API\\Normalizer\\ManagerStatusNormalizer', 'Docker\\API\\Model\\SwarmSpec' => 'Docker\\API\\Normalizer\\SwarmSpecNormalizer', 'Docker\\API\\Model\\SwarmSpecOrchestration' => 'Docker\\API\\Normalizer\\SwarmSpecOrchestrationNormalizer', 'Docker\\API\\Model\\SwarmSpecRaft' => 'Docker\\API\\Normalizer\\SwarmSpecRaftNormalizer', 'Docker\\API\\Model\\SwarmSpecDispatcher' => 'Docker\\API\\Normalizer\\SwarmSpecDispatcherNormalizer', 'Docker\\API\\Model\\SwarmSpecCAConfig' => 'Docker\\API\\Normalizer\\SwarmSpecCAConfigNormalizer', 'Docker\\API\\Model\\SwarmSpecCAConfigExternalCAsItem' => 'Docker\\API\\Normalizer\\SwarmSpecCAConfigExternalCAsItemNormalizer', 'Docker\\API\\Model\\SwarmSpecEncryptionConfig' => 'Docker\\API\\Normalizer\\SwarmSpecEncryptionConfigNormalizer', 'Docker\\API\\Model\\SwarmSpecTaskDefaults' => 'Docker\\API\\Normalizer\\SwarmSpecTaskDefaultsNormalizer', 'Docker\\API\\Model\\SwarmSpecTaskDefaultsLogDriver' => 'Docker\\API\\Normalizer\\SwarmSpecTaskDefaultsLogDriverNormalizer', 'Docker\\API\\Model\\ClusterInfo' => 'Docker\\API\\Normalizer\\ClusterInfoNormalizer', 'Docker\\API\\Model\\JoinTokens' => 'Docker\\API\\Normalizer\\JoinTokensNormalizer', 'Docker\\API\\Model\\Swarm' => 'Docker\\API\\Normalizer\\SwarmNormalizer', 'Docker\\API\\Model\\TaskSpec' => 'Docker\\API\\Normalizer\\TaskSpecNormalizer', 'Docker\\API\\Model\\TaskSpecPluginSpec' => 'Docker\\API\\Normalizer\\TaskSpecPluginSpecNormalizer', 'Docker\\API\\Model\\TaskSpecPluginSpecPluginPrivilegeItem' => 'Docker\\API\\Normalizer\\TaskSpecPluginSpecPluginPrivilegeItemNormalizer', 'Docker\\API\\Model\\TaskSpecContainerSpec' => 'Docker\\API\\Normalizer\\TaskSpecContainerSpecNormalizer', 'Docker\\API\\Model\\TaskSpecContainerSpecPrivileges' => 'Docker\\API\\Normalizer\\TaskSpecContainerSpecPrivilegesNormalizer', 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesCredentialSpec' => 'Docker\\API\\Normalizer\\TaskSpecContainerSpecPrivilegesCredentialSpecNormalizer', 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesSELinuxContext' => 'Docker\\API\\Normalizer\\TaskSpecContainerSpecPrivilegesSELinuxContextNormalizer', 'Docker\\API\\Model\\TaskSpecContainerSpecDNSConfig' => 'Docker\\API\\Normalizer\\TaskSpecContainerSpecDNSConfigNormalizer', 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItem' => 'Docker\\API\\Normalizer\\TaskSpecContainerSpecSecretsItemNormalizer', 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItemFile' => 'Docker\\API\\Normalizer\\TaskSpecContainerSpecSecretsItemFileNormalizer', 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItem' => 'Docker\\API\\Normalizer\\TaskSpecContainerSpecConfigsItemNormalizer', 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItemFile' => 'Docker\\API\\Normalizer\\TaskSpecContainerSpecConfigsItemFileNormalizer', 'Docker\\API\\Model\\TaskSpecResources' => 'Docker\\API\\Normalizer\\TaskSpecResourcesNormalizer', 'Docker\\API\\Model\\TaskSpecRestartPolicy' => 'Docker\\API\\Normalizer\\TaskSpecRestartPolicyNormalizer', 'Docker\\API\\Model\\TaskSpecPlacement' => 'Docker\\API\\Normalizer\\TaskSpecPlacementNormalizer', 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItem' => 'Docker\\API\\Normalizer\\TaskSpecPlacementPreferencesItemNormalizer', 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItemSpread' => 'Docker\\API\\Normalizer\\TaskSpecPlacementPreferencesItemSpreadNormalizer', 'Docker\\API\\Model\\TaskSpecNetworksItem' => 'Docker\\API\\Normalizer\\TaskSpecNetworksItemNormalizer', 'Docker\\API\\Model\\TaskSpecLogDriver' => 'Docker\\API\\Normalizer\\TaskSpecLogDriverNormalizer', 'Docker\\API\\Model\\Task' => 'Docker\\API\\Normalizer\\TaskNormalizer', 'Docker\\API\\Model\\TaskStatus' => 'Docker\\API\\Normalizer\\TaskStatusNormalizer', 'Docker\\API\\Model\\TaskStatusContainerStatus' => 'Docker\\API\\Normalizer\\TaskStatusContainerStatusNormalizer', 'Docker\\API\\Model\\ServiceSpec' => 'Docker\\API\\Normalizer\\ServiceSpecNormalizer', 'Docker\\API\\Model\\ServiceSpecMode' => 'Docker\\API\\Normalizer\\ServiceSpecModeNormalizer', 'Docker\\API\\Model\\ServiceSpecModeReplicated' => 'Docker\\API\\Normalizer\\ServiceSpecModeReplicatedNormalizer', 'Docker\\API\\Model\\ServiceSpecModeGlobal' => 'Docker\\API\\Normalizer\\ServiceSpecModeGlobalNormalizer', 'Docker\\API\\Model\\ServiceSpecUpdateConfig' => 'Docker\\API\\Normalizer\\ServiceSpecUpdateConfigNormalizer', 'Docker\\API\\Model\\ServiceSpecRollbackConfig' => 'Docker\\API\\Normalizer\\ServiceSpecRollbackConfigNormalizer', 'Docker\\API\\Model\\ServiceSpecNetworksItem' => 'Docker\\API\\Normalizer\\ServiceSpecNetworksItemNormalizer', 'Docker\\API\\Model\\EndpointPortConfig' => 'Docker\\API\\Normalizer\\EndpointPortConfigNormalizer', 'Docker\\API\\Model\\EndpointSpec' => 'Docker\\API\\Normalizer\\EndpointSpecNormalizer', 'Docker\\API\\Model\\Service' => 'Docker\\API\\Normalizer\\ServiceNormalizer', 'Docker\\API\\Model\\ServiceEndpoint' => 'Docker\\API\\Normalizer\\ServiceEndpointNormalizer', 'Docker\\API\\Model\\ServiceEndpointVirtualIPsItem' => 'Docker\\API\\Normalizer\\ServiceEndpointVirtualIPsItemNormalizer', 'Docker\\API\\Model\\ServiceUpdateStatus' => 'Docker\\API\\Normalizer\\ServiceUpdateStatusNormalizer', 'Docker\\API\\Model\\ImageDeleteResponseItem' => 'Docker\\API\\Normalizer\\ImageDeleteResponseItemNormalizer', 'Docker\\API\\Model\\ServiceUpdateResponse' => 'Docker\\API\\Normalizer\\ServiceUpdateResponseNormalizer', 'Docker\\API\\Model\\ContainerSummaryItem' => 'Docker\\API\\Normalizer\\ContainerSummaryItemNormalizer', 'Docker\\API\\Model\\ContainerSummaryItemHostConfig' => 'Docker\\API\\Normalizer\\ContainerSummaryItemHostConfigNormalizer', 'Docker\\API\\Model\\ContainerSummaryItemNetworkSettings' => 'Docker\\API\\Normalizer\\ContainerSummaryItemNetworkSettingsNormalizer', 'Docker\\API\\Model\\Driver' => 'Docker\\API\\Normalizer\\DriverNormalizer', 'Docker\\API\\Model\\SecretSpec' => 'Docker\\API\\Normalizer\\SecretSpecNormalizer', 'Docker\\API\\Model\\Secret' => 'Docker\\API\\Normalizer\\SecretNormalizer', 'Docker\\API\\Model\\ConfigSpec' => 'Docker\\API\\Normalizer\\ConfigSpecNormalizer', 'Docker\\API\\Model\\Config' => 'Docker\\API\\Normalizer\\ConfigNormalizer', 'Docker\\API\\Model\\SystemInfo' => 'Docker\\API\\Normalizer\\SystemInfoNormalizer', 'Docker\\API\\Model\\PluginsInfo' => 'Docker\\API\\Normalizer\\PluginsInfoNormalizer', 'Docker\\API\\Model\\RegistryServiceConfig' => 'Docker\\API\\Normalizer\\RegistryServiceConfigNormalizer', 'Docker\\API\\Model\\IndexInfo' => 'Docker\\API\\Normalizer\\IndexInfoNormalizer', 'Docker\\API\\Model\\Runtime' => 'Docker\\API\\Normalizer\\RuntimeNormalizer', 'Docker\\API\\Model\\Commit' => 'Docker\\API\\Normalizer\\CommitNormalizer', 'Docker\\API\\Model\\SwarmInfo' => 'Docker\\API\\Normalizer\\SwarmInfoNormalizer', 'Docker\\API\\Model\\PeerNode' => 'Docker\\API\\Normalizer\\PeerNodeNormalizer', 'Docker\\API\\Model\\ContainersCreatePostBody' => 'Docker\\API\\Normalizer\\ContainersCreatePostBodyNormalizer', 'Docker\\API\\Model\\ContainersCreatePostBodyNetworkingConfig' => 'Docker\\API\\Normalizer\\ContainersCreatePostBodyNetworkingConfigNormalizer', 'Docker\\API\\Model\\ContainersCreatePostResponse201' => 'Docker\\API\\Normalizer\\ContainersCreatePostResponse201Normalizer', 'Docker\\API\\Model\\ContainersIdJsonGetResponse200' => 'Docker\\API\\Normalizer\\ContainersIdJsonGetResponse200Normalizer', 'Docker\\API\\Model\\ContainersIdJsonGetResponse200State' => 'Docker\\API\\Normalizer\\ContainersIdJsonGetResponse200StateNormalizer', 'Docker\\API\\Model\\ContainersIdJsonGetResponse200Node' => 'Docker\\API\\Normalizer\\ContainersIdJsonGetResponse200NodeNormalizer', 'Docker\\API\\Model\\ContainersIdTopGetJsonResponse200' => 'Docker\\API\\Normalizer\\ContainersIdTopGetJsonResponse200Normalizer', 'Docker\\API\\Model\\ContainersIdTopGetTextplainResponse200' => 'Docker\\API\\Normalizer\\ContainersIdTopGetTextplainResponse200Normalizer', 'Docker\\API\\Model\\ContainersIdChangesGetResponse200Item' => 'Docker\\API\\Normalizer\\ContainersIdChangesGetResponse200ItemNormalizer', 'Docker\\API\\Model\\ContainersIdUpdatePostBody' => 'Docker\\API\\Normalizer\\ContainersIdUpdatePostBodyNormalizer', 'Docker\\API\\Model\\ContainersIdUpdatePostResponse200' => 'Docker\\API\\Normalizer\\ContainersIdUpdatePostResponse200Normalizer', 'Docker\\API\\Model\\ContainersIdWaitPostResponse200' => 'Docker\\API\\Normalizer\\ContainersIdWaitPostResponse200Normalizer', 'Docker\\API\\Model\\ContainersIdWaitPostResponse200Error' => 'Docker\\API\\Normalizer\\ContainersIdWaitPostResponse200ErrorNormalizer', 'Docker\\API\\Model\\ContainersIdArchiveGetResponse400' => 'Docker\\API\\Normalizer\\ContainersIdArchiveGetResponse400Normalizer', 'Docker\\API\\Model\\ContainersIdArchiveHeadJsonResponse400' => 'Docker\\API\\Normalizer\\ContainersIdArchiveHeadJsonResponse400Normalizer', 'Docker\\API\\Model\\ContainersIdArchiveHeadTextplainResponse400' => 'Docker\\API\\Normalizer\\ContainersIdArchiveHeadTextplainResponse400Normalizer', 'Docker\\API\\Model\\ContainersPrunePostResponse200' => 'Docker\\API\\Normalizer\\ContainersPrunePostResponse200Normalizer', 'Docker\\API\\Model\\BuildPrunePostResponse200' => 'Docker\\API\\Normalizer\\BuildPrunePostResponse200Normalizer', 'Docker\\API\\Model\\ImagesNameHistoryGetResponse200Item' => 'Docker\\API\\Normalizer\\ImagesNameHistoryGetResponse200ItemNormalizer', 'Docker\\API\\Model\\ImagesSearchGetResponse200Item' => 'Docker\\API\\Normalizer\\ImagesSearchGetResponse200ItemNormalizer', 'Docker\\API\\Model\\ImagesPrunePostResponse200' => 'Docker\\API\\Normalizer\\ImagesPrunePostResponse200Normalizer', 'Docker\\API\\Model\\AuthPostResponse200' => 'Docker\\API\\Normalizer\\AuthPostResponse200Normalizer', 'Docker\\API\\Model\\VersionGetResponse200' => 'Docker\\API\\Normalizer\\VersionGetResponse200Normalizer', 'Docker\\API\\Model\\VersionGetResponse200Platform' => 'Docker\\API\\Normalizer\\VersionGetResponse200PlatformNormalizer', 'Docker\\API\\Model\\VersionGetResponse200ComponentsItem' => 'Docker\\API\\Normalizer\\VersionGetResponse200ComponentsItemNormalizer', 'Docker\\API\\Model\\VersionGetResponse200ComponentsItemDetails' => 'Docker\\API\\Normalizer\\VersionGetResponse200ComponentsItemDetailsNormalizer', 'Docker\\API\\Model\\EventsGetResponse200' => 'Docker\\API\\Normalizer\\EventsGetResponse200Normalizer', 'Docker\\API\\Model\\EventsGetResponse200Actor' => 'Docker\\API\\Normalizer\\EventsGetResponse200ActorNormalizer', 'Docker\\API\\Model\\SystemDfGetJsonResponse200' => 'Docker\\API\\Normalizer\\SystemDfGetJsonResponse200Normalizer', 'Docker\\API\\Model\\SystemDfGetTextplainResponse200' => 'Docker\\API\\Normalizer\\SystemDfGetTextplainResponse200Normalizer', 'Docker\\API\\Model\\ContainersIdExecPostBody' => 'Docker\\API\\Normalizer\\ContainersIdExecPostBodyNormalizer', 'Docker\\API\\Model\\ExecIdStartPostBody' => 'Docker\\API\\Normalizer\\ExecIdStartPostBodyNormalizer', 'Docker\\API\\Model\\ExecIdJsonGetResponse200' => 'Docker\\API\\Normalizer\\ExecIdJsonGetResponse200Normalizer', 'Docker\\API\\Model\\VolumesGetResponse200' => 'Docker\\API\\Normalizer\\VolumesGetResponse200Normalizer', 'Docker\\API\\Model\\VolumesCreatePostBody' => 'Docker\\API\\Normalizer\\VolumesCreatePostBodyNormalizer', 'Docker\\API\\Model\\VolumesPrunePostResponse200' => 'Docker\\API\\Normalizer\\VolumesPrunePostResponse200Normalizer', 'Docker\\API\\Model\\NetworksCreatePostBody' => 'Docker\\API\\Normalizer\\NetworksCreatePostBodyNormalizer', 'Docker\\API\\Model\\NetworksCreatePostResponse201' => 'Docker\\API\\Normalizer\\NetworksCreatePostResponse201Normalizer', 'Docker\\API\\Model\\NetworksIdConnectPostBody' => 'Docker\\API\\Normalizer\\NetworksIdConnectPostBodyNormalizer', 'Docker\\API\\Model\\NetworksIdDisconnectPostBody' => 'Docker\\API\\Normalizer\\NetworksIdDisconnectPostBodyNormalizer', 'Docker\\API\\Model\\NetworksPrunePostResponse200' => 'Docker\\API\\Normalizer\\NetworksPrunePostResponse200Normalizer', 'Docker\\API\\Model\\PluginsPrivilegesGetJsonResponse200Item' => 'Docker\\API\\Normalizer\\PluginsPrivilegesGetJsonResponse200ItemNormalizer', 'Docker\\API\\Model\\PluginsPrivilegesGetTextplainResponse200Item' => 'Docker\\API\\Normalizer\\PluginsPrivilegesGetTextplainResponse200ItemNormalizer', 'Docker\\API\\Model\\PluginsPullPostBodyItem' => 'Docker\\API\\Normalizer\\PluginsPullPostBodyItemNormalizer', 'Docker\\API\\Model\\PluginsNameUpgradePostBodyItem' => 'Docker\\API\\Normalizer\\PluginsNameUpgradePostBodyItemNormalizer', 'Docker\\API\\Model\\SwarmInitPostBody' => 'Docker\\API\\Normalizer\\SwarmInitPostBodyNormalizer', 'Docker\\API\\Model\\SwarmJoinPostBody' => 'Docker\\API\\Normalizer\\SwarmJoinPostBodyNormalizer', 'Docker\\API\\Model\\SwarmUnlockkeyGetJsonResponse200' => 'Docker\\API\\Normalizer\\SwarmUnlockkeyGetJsonResponse200Normalizer', 'Docker\\API\\Model\\SwarmUnlockkeyGetTextplainResponse200' => 'Docker\\API\\Normalizer\\SwarmUnlockkeyGetTextplainResponse200Normalizer', 'Docker\\API\\Model\\SwarmUnlockPostBody' => 'Docker\\API\\Normalizer\\SwarmUnlockPostBodyNormalizer', 'Docker\\API\\Model\\ServicesCreatePostBody' => 'Docker\\API\\Normalizer\\ServicesCreatePostBodyNormalizer', 'Docker\\API\\Model\\ServicesCreatePostResponse201' => 'Docker\\API\\Normalizer\\ServicesCreatePostResponse201Normalizer', 'Docker\\API\\Model\\ServicesIdUpdatePostBody' => 'Docker\\API\\Normalizer\\ServicesIdUpdatePostBodyNormalizer', 'Docker\\API\\Model\\SecretsCreatePostBody' => 'Docker\\API\\Normalizer\\SecretsCreatePostBodyNormalizer', 'Docker\\API\\Model\\ConfigsCreatePostBody' => 'Docker\\API\\Normalizer\\ConfigsCreatePostBodyNormalizer', 'Docker\\API\\Model\\DistributionNameJsonGetResponse200' => 'Docker\\API\\Normalizer\\DistributionNameJsonGetResponse200Normalizer', 'Docker\\API\\Model\\DistributionNameJsonGetResponse200Descriptor' => 'Docker\\API\\Normalizer\\DistributionNameJsonGetResponse200DescriptorNormalizer', 'Docker\\API\\Model\\DistributionNameJsonGetResponse200PlatformsItem' => 'Docker\\API\\Normalizer\\DistributionNameJsonGetResponse200PlatformsItemNormalizer', '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => '\\Docker\\API\\Runtime\\Normalizer\\ReferenceNormalizer'), $normalizersCache = []; + protected $normalizers = [ + + \Docker\API\Model\Port::class => \Docker\API\Normalizer\PortNormalizer::class, + + \Docker\API\Model\MountPoint::class => \Docker\API\Normalizer\MountPointNormalizer::class, + + \Docker\API\Model\DeviceMapping::class => \Docker\API\Normalizer\DeviceMappingNormalizer::class, + + \Docker\API\Model\ThrottleDevice::class => \Docker\API\Normalizer\ThrottleDeviceNormalizer::class, + + \Docker\API\Model\Mount::class => \Docker\API\Normalizer\MountNormalizer::class, + + \Docker\API\Model\MountBindOptions::class => \Docker\API\Normalizer\MountBindOptionsNormalizer::class, + + \Docker\API\Model\MountVolumeOptions::class => \Docker\API\Normalizer\MountVolumeOptionsNormalizer::class, + + \Docker\API\Model\MountVolumeOptionsDriverConfig::class => \Docker\API\Normalizer\MountVolumeOptionsDriverConfigNormalizer::class, + + \Docker\API\Model\MountTmpfsOptions::class => \Docker\API\Normalizer\MountTmpfsOptionsNormalizer::class, + + \Docker\API\Model\RestartPolicy::class => \Docker\API\Normalizer\RestartPolicyNormalizer::class, + + \Docker\API\Model\Resources::class => \Docker\API\Normalizer\ResourcesNormalizer::class, + + \Docker\API\Model\ResourcesBlkioWeightDeviceItem::class => \Docker\API\Normalizer\ResourcesBlkioWeightDeviceItemNormalizer::class, + + \Docker\API\Model\ResourcesUlimitsItem::class => \Docker\API\Normalizer\ResourcesUlimitsItemNormalizer::class, + + \Docker\API\Model\ResourceObject::class => \Docker\API\Normalizer\ResourceObjectNormalizer::class, + + \Docker\API\Model\GenericResourcesItem::class => \Docker\API\Normalizer\GenericResourcesItemNormalizer::class, + + \Docker\API\Model\GenericResourcesItemNamedResourceSpec::class => \Docker\API\Normalizer\GenericResourcesItemNamedResourceSpecNormalizer::class, + + \Docker\API\Model\GenericResourcesItemDiscreteResourceSpec::class => \Docker\API\Normalizer\GenericResourcesItemDiscreteResourceSpecNormalizer::class, + + \Docker\API\Model\HealthConfig::class => \Docker\API\Normalizer\HealthConfigNormalizer::class, + + \Docker\API\Model\HostConfig::class => \Docker\API\Normalizer\HostConfigNormalizer::class, + + \Docker\API\Model\HostConfigLogConfig::class => \Docker\API\Normalizer\HostConfigLogConfigNormalizer::class, + + \Docker\API\Model\ContainerConfig::class => \Docker\API\Normalizer\ContainerConfigNormalizer::class, + + \Docker\API\Model\ContainerConfigExposedPortsItem::class => \Docker\API\Normalizer\ContainerConfigExposedPortsItemNormalizer::class, + + \Docker\API\Model\ContainerConfigVolumesItem::class => \Docker\API\Normalizer\ContainerConfigVolumesItemNormalizer::class, + + \Docker\API\Model\NetworkSettings::class => \Docker\API\Normalizer\NetworkSettingsNormalizer::class, + + \Docker\API\Model\Address::class => \Docker\API\Normalizer\AddressNormalizer::class, + + \Docker\API\Model\PortBinding::class => \Docker\API\Normalizer\PortBindingNormalizer::class, + + \Docker\API\Model\GraphDriverData::class => \Docker\API\Normalizer\GraphDriverDataNormalizer::class, + + \Docker\API\Model\Image::class => \Docker\API\Normalizer\ImageNormalizer::class, + + \Docker\API\Model\ImageRootFS::class => \Docker\API\Normalizer\ImageRootFSNormalizer::class, + + \Docker\API\Model\ImageMetadata::class => \Docker\API\Normalizer\ImageMetadataNormalizer::class, + + \Docker\API\Model\ImageSummary::class => \Docker\API\Normalizer\ImageSummaryNormalizer::class, + + \Docker\API\Model\AuthConfig::class => \Docker\API\Normalizer\AuthConfigNormalizer::class, + + \Docker\API\Model\ProcessConfig::class => \Docker\API\Normalizer\ProcessConfigNormalizer::class, + + \Docker\API\Model\Volume::class => \Docker\API\Normalizer\VolumeNormalizer::class, + + \Docker\API\Model\VolumeStatusItem::class => \Docker\API\Normalizer\VolumeStatusItemNormalizer::class, + + \Docker\API\Model\VolumeUsageData::class => \Docker\API\Normalizer\VolumeUsageDataNormalizer::class, + + \Docker\API\Model\Network::class => \Docker\API\Normalizer\NetworkNormalizer::class, + + \Docker\API\Model\IPAM::class => \Docker\API\Normalizer\IPAMNormalizer::class, + + \Docker\API\Model\NetworkContainer::class => \Docker\API\Normalizer\NetworkContainerNormalizer::class, + + \Docker\API\Model\BuildInfo::class => \Docker\API\Normalizer\BuildInfoNormalizer::class, + + \Docker\API\Model\ImageID::class => \Docker\API\Normalizer\ImageIDNormalizer::class, + + \Docker\API\Model\CreateImageInfo::class => \Docker\API\Normalizer\CreateImageInfoNormalizer::class, + + \Docker\API\Model\PushImageInfo::class => \Docker\API\Normalizer\PushImageInfoNormalizer::class, + + \Docker\API\Model\ErrorDetail::class => \Docker\API\Normalizer\ErrorDetailNormalizer::class, + + \Docker\API\Model\ProgressDetail::class => \Docker\API\Normalizer\ProgressDetailNormalizer::class, + + \Docker\API\Model\ErrorResponse::class => \Docker\API\Normalizer\ErrorResponseNormalizer::class, + + \Docker\API\Model\IdResponse::class => \Docker\API\Normalizer\IdResponseNormalizer::class, + + \Docker\API\Model\EndpointSettings::class => \Docker\API\Normalizer\EndpointSettingsNormalizer::class, + + \Docker\API\Model\EndpointIPAMConfig::class => \Docker\API\Normalizer\EndpointIPAMConfigNormalizer::class, + + \Docker\API\Model\PluginMount::class => \Docker\API\Normalizer\PluginMountNormalizer::class, + + \Docker\API\Model\PluginDevice::class => \Docker\API\Normalizer\PluginDeviceNormalizer::class, + + \Docker\API\Model\PluginEnv::class => \Docker\API\Normalizer\PluginEnvNormalizer::class, + + \Docker\API\Model\PluginInterfaceType::class => \Docker\API\Normalizer\PluginInterfaceTypeNormalizer::class, + + \Docker\API\Model\Plugin::class => \Docker\API\Normalizer\PluginNormalizer::class, + + \Docker\API\Model\PluginSettings::class => \Docker\API\Normalizer\PluginSettingsNormalizer::class, + + \Docker\API\Model\PluginConfig::class => \Docker\API\Normalizer\PluginConfigNormalizer::class, + + \Docker\API\Model\PluginConfigInterface::class => \Docker\API\Normalizer\PluginConfigInterfaceNormalizer::class, + + \Docker\API\Model\PluginConfigUser::class => \Docker\API\Normalizer\PluginConfigUserNormalizer::class, + + \Docker\API\Model\PluginConfigNetwork::class => \Docker\API\Normalizer\PluginConfigNetworkNormalizer::class, + + \Docker\API\Model\PluginConfigLinux::class => \Docker\API\Normalizer\PluginConfigLinuxNormalizer::class, + + \Docker\API\Model\PluginConfigArgs::class => \Docker\API\Normalizer\PluginConfigArgsNormalizer::class, + + \Docker\API\Model\PluginConfigRootfs::class => \Docker\API\Normalizer\PluginConfigRootfsNormalizer::class, + + \Docker\API\Model\ObjectVersion::class => \Docker\API\Normalizer\ObjectVersionNormalizer::class, + + \Docker\API\Model\NodeSpec::class => \Docker\API\Normalizer\NodeSpecNormalizer::class, + + \Docker\API\Model\Node::class => \Docker\API\Normalizer\NodeNormalizer::class, + + \Docker\API\Model\NodeDescription::class => \Docker\API\Normalizer\NodeDescriptionNormalizer::class, + + \Docker\API\Model\Platform::class => \Docker\API\Normalizer\PlatformNormalizer::class, + + \Docker\API\Model\EngineDescription::class => \Docker\API\Normalizer\EngineDescriptionNormalizer::class, + + \Docker\API\Model\EngineDescriptionPluginsItem::class => \Docker\API\Normalizer\EngineDescriptionPluginsItemNormalizer::class, + + \Docker\API\Model\TLSInfo::class => \Docker\API\Normalizer\TLSInfoNormalizer::class, + + \Docker\API\Model\NodeStatus::class => \Docker\API\Normalizer\NodeStatusNormalizer::class, + + \Docker\API\Model\ManagerStatus::class => \Docker\API\Normalizer\ManagerStatusNormalizer::class, + + \Docker\API\Model\SwarmSpec::class => \Docker\API\Normalizer\SwarmSpecNormalizer::class, + + \Docker\API\Model\SwarmSpecOrchestration::class => \Docker\API\Normalizer\SwarmSpecOrchestrationNormalizer::class, + + \Docker\API\Model\SwarmSpecRaft::class => \Docker\API\Normalizer\SwarmSpecRaftNormalizer::class, + + \Docker\API\Model\SwarmSpecDispatcher::class => \Docker\API\Normalizer\SwarmSpecDispatcherNormalizer::class, + + \Docker\API\Model\SwarmSpecCAConfig::class => \Docker\API\Normalizer\SwarmSpecCAConfigNormalizer::class, + + \Docker\API\Model\SwarmSpecCAConfigExternalCAsItem::class => \Docker\API\Normalizer\SwarmSpecCAConfigExternalCAsItemNormalizer::class, + + \Docker\API\Model\SwarmSpecEncryptionConfig::class => \Docker\API\Normalizer\SwarmSpecEncryptionConfigNormalizer::class, + + \Docker\API\Model\SwarmSpecTaskDefaults::class => \Docker\API\Normalizer\SwarmSpecTaskDefaultsNormalizer::class, + + \Docker\API\Model\SwarmSpecTaskDefaultsLogDriver::class => \Docker\API\Normalizer\SwarmSpecTaskDefaultsLogDriverNormalizer::class, + + \Docker\API\Model\ClusterInfo::class => \Docker\API\Normalizer\ClusterInfoNormalizer::class, + + \Docker\API\Model\JoinTokens::class => \Docker\API\Normalizer\JoinTokensNormalizer::class, + + \Docker\API\Model\Swarm::class => \Docker\API\Normalizer\SwarmNormalizer::class, + + \Docker\API\Model\TaskSpec::class => \Docker\API\Normalizer\TaskSpecNormalizer::class, + + \Docker\API\Model\TaskSpecPluginSpec::class => \Docker\API\Normalizer\TaskSpecPluginSpecNormalizer::class, + + \Docker\API\Model\TaskSpecPluginSpecPluginPrivilegeItem::class => \Docker\API\Normalizer\TaskSpecPluginSpecPluginPrivilegeItemNormalizer::class, + + \Docker\API\Model\TaskSpecContainerSpec::class => \Docker\API\Normalizer\TaskSpecContainerSpecNormalizer::class, + + \Docker\API\Model\TaskSpecContainerSpecPrivileges::class => \Docker\API\Normalizer\TaskSpecContainerSpecPrivilegesNormalizer::class, + + \Docker\API\Model\TaskSpecContainerSpecPrivilegesCredentialSpec::class => \Docker\API\Normalizer\TaskSpecContainerSpecPrivilegesCredentialSpecNormalizer::class, + + \Docker\API\Model\TaskSpecContainerSpecPrivilegesSELinuxContext::class => \Docker\API\Normalizer\TaskSpecContainerSpecPrivilegesSELinuxContextNormalizer::class, + + \Docker\API\Model\TaskSpecContainerSpecDNSConfig::class => \Docker\API\Normalizer\TaskSpecContainerSpecDNSConfigNormalizer::class, + + \Docker\API\Model\TaskSpecContainerSpecSecretsItem::class => \Docker\API\Normalizer\TaskSpecContainerSpecSecretsItemNormalizer::class, + + \Docker\API\Model\TaskSpecContainerSpecSecretsItemFile::class => \Docker\API\Normalizer\TaskSpecContainerSpecSecretsItemFileNormalizer::class, + + \Docker\API\Model\TaskSpecContainerSpecConfigsItem::class => \Docker\API\Normalizer\TaskSpecContainerSpecConfigsItemNormalizer::class, + + \Docker\API\Model\TaskSpecContainerSpecConfigsItemFile::class => \Docker\API\Normalizer\TaskSpecContainerSpecConfigsItemFileNormalizer::class, + + \Docker\API\Model\TaskSpecResources::class => \Docker\API\Normalizer\TaskSpecResourcesNormalizer::class, + + \Docker\API\Model\TaskSpecRestartPolicy::class => \Docker\API\Normalizer\TaskSpecRestartPolicyNormalizer::class, + + \Docker\API\Model\TaskSpecPlacement::class => \Docker\API\Normalizer\TaskSpecPlacementNormalizer::class, + + \Docker\API\Model\TaskSpecPlacementPreferencesItem::class => \Docker\API\Normalizer\TaskSpecPlacementPreferencesItemNormalizer::class, + + \Docker\API\Model\TaskSpecPlacementPreferencesItemSpread::class => \Docker\API\Normalizer\TaskSpecPlacementPreferencesItemSpreadNormalizer::class, + + \Docker\API\Model\TaskSpecNetworksItem::class => \Docker\API\Normalizer\TaskSpecNetworksItemNormalizer::class, + + \Docker\API\Model\TaskSpecLogDriver::class => \Docker\API\Normalizer\TaskSpecLogDriverNormalizer::class, + + \Docker\API\Model\Task::class => \Docker\API\Normalizer\TaskNormalizer::class, + + \Docker\API\Model\TaskStatus::class => \Docker\API\Normalizer\TaskStatusNormalizer::class, + + \Docker\API\Model\TaskStatusContainerStatus::class => \Docker\API\Normalizer\TaskStatusContainerStatusNormalizer::class, + + \Docker\API\Model\ServiceSpec::class => \Docker\API\Normalizer\ServiceSpecNormalizer::class, + + \Docker\API\Model\ServiceSpecMode::class => \Docker\API\Normalizer\ServiceSpecModeNormalizer::class, + + \Docker\API\Model\ServiceSpecModeReplicated::class => \Docker\API\Normalizer\ServiceSpecModeReplicatedNormalizer::class, + + \Docker\API\Model\ServiceSpecModeGlobal::class => \Docker\API\Normalizer\ServiceSpecModeGlobalNormalizer::class, + + \Docker\API\Model\ServiceSpecUpdateConfig::class => \Docker\API\Normalizer\ServiceSpecUpdateConfigNormalizer::class, + + \Docker\API\Model\ServiceSpecRollbackConfig::class => \Docker\API\Normalizer\ServiceSpecRollbackConfigNormalizer::class, + + \Docker\API\Model\ServiceSpecNetworksItem::class => \Docker\API\Normalizer\ServiceSpecNetworksItemNormalizer::class, + + \Docker\API\Model\EndpointPortConfig::class => \Docker\API\Normalizer\EndpointPortConfigNormalizer::class, + + \Docker\API\Model\EndpointSpec::class => \Docker\API\Normalizer\EndpointSpecNormalizer::class, + + \Docker\API\Model\Service::class => \Docker\API\Normalizer\ServiceNormalizer::class, + + \Docker\API\Model\ServiceEndpoint::class => \Docker\API\Normalizer\ServiceEndpointNormalizer::class, + + \Docker\API\Model\ServiceEndpointVirtualIPsItem::class => \Docker\API\Normalizer\ServiceEndpointVirtualIPsItemNormalizer::class, + + \Docker\API\Model\ServiceUpdateStatus::class => \Docker\API\Normalizer\ServiceUpdateStatusNormalizer::class, + + \Docker\API\Model\ImageDeleteResponseItem::class => \Docker\API\Normalizer\ImageDeleteResponseItemNormalizer::class, + + \Docker\API\Model\ServiceUpdateResponse::class => \Docker\API\Normalizer\ServiceUpdateResponseNormalizer::class, + + \Docker\API\Model\ContainerSummaryItem::class => \Docker\API\Normalizer\ContainerSummaryItemNormalizer::class, + + \Docker\API\Model\ContainerSummaryItemHostConfig::class => \Docker\API\Normalizer\ContainerSummaryItemHostConfigNormalizer::class, + + \Docker\API\Model\ContainerSummaryItemNetworkSettings::class => \Docker\API\Normalizer\ContainerSummaryItemNetworkSettingsNormalizer::class, + + \Docker\API\Model\Driver::class => \Docker\API\Normalizer\DriverNormalizer::class, + + \Docker\API\Model\SecretSpec::class => \Docker\API\Normalizer\SecretSpecNormalizer::class, + + \Docker\API\Model\Secret::class => \Docker\API\Normalizer\SecretNormalizer::class, + + \Docker\API\Model\ConfigSpec::class => \Docker\API\Normalizer\ConfigSpecNormalizer::class, + + \Docker\API\Model\Config::class => \Docker\API\Normalizer\ConfigNormalizer::class, + + \Docker\API\Model\SystemInfo::class => \Docker\API\Normalizer\SystemInfoNormalizer::class, + + \Docker\API\Model\PluginsInfo::class => \Docker\API\Normalizer\PluginsInfoNormalizer::class, + + \Docker\API\Model\RegistryServiceConfig::class => \Docker\API\Normalizer\RegistryServiceConfigNormalizer::class, + + \Docker\API\Model\IndexInfo::class => \Docker\API\Normalizer\IndexInfoNormalizer::class, + + \Docker\API\Model\Runtime::class => \Docker\API\Normalizer\RuntimeNormalizer::class, + + \Docker\API\Model\Commit::class => \Docker\API\Normalizer\CommitNormalizer::class, + + \Docker\API\Model\SwarmInfo::class => \Docker\API\Normalizer\SwarmInfoNormalizer::class, + + \Docker\API\Model\PeerNode::class => \Docker\API\Normalizer\PeerNodeNormalizer::class, + + \Docker\API\Model\ContainersCreatePostBody::class => \Docker\API\Normalizer\ContainersCreatePostBodyNormalizer::class, + + \Docker\API\Model\ContainersCreatePostBodyNetworkingConfig::class => \Docker\API\Normalizer\ContainersCreatePostBodyNetworkingConfigNormalizer::class, + + \Docker\API\Model\ContainersCreatePostResponse201::class => \Docker\API\Normalizer\ContainersCreatePostResponse201Normalizer::class, + + \Docker\API\Model\ContainersIdJsonGetResponse200::class => \Docker\API\Normalizer\ContainersIdJsonGetResponse200Normalizer::class, + + \Docker\API\Model\ContainersIdJsonGetResponse200State::class => \Docker\API\Normalizer\ContainersIdJsonGetResponse200StateNormalizer::class, + + \Docker\API\Model\ContainersIdJsonGetResponse200Node::class => \Docker\API\Normalizer\ContainersIdJsonGetResponse200NodeNormalizer::class, + + \Docker\API\Model\ContainersIdTopGetJsonResponse200::class => \Docker\API\Normalizer\ContainersIdTopGetJsonResponse200Normalizer::class, + + \Docker\API\Model\ContainersIdTopGetTextplainResponse200::class => \Docker\API\Normalizer\ContainersIdTopGetTextplainResponse200Normalizer::class, + + \Docker\API\Model\ContainersIdChangesGetResponse200Item::class => \Docker\API\Normalizer\ContainersIdChangesGetResponse200ItemNormalizer::class, + + \Docker\API\Model\ContainersIdUpdatePostBody::class => \Docker\API\Normalizer\ContainersIdUpdatePostBodyNormalizer::class, + + \Docker\API\Model\ContainersIdUpdatePostResponse200::class => \Docker\API\Normalizer\ContainersIdUpdatePostResponse200Normalizer::class, + + \Docker\API\Model\ContainersIdWaitPostResponse200::class => \Docker\API\Normalizer\ContainersIdWaitPostResponse200Normalizer::class, + + \Docker\API\Model\ContainersIdWaitPostResponse200Error::class => \Docker\API\Normalizer\ContainersIdWaitPostResponse200ErrorNormalizer::class, + + \Docker\API\Model\ContainersIdArchiveGetResponse400::class => \Docker\API\Normalizer\ContainersIdArchiveGetResponse400Normalizer::class, + + \Docker\API\Model\ContainersIdArchiveHeadJsonResponse400::class => \Docker\API\Normalizer\ContainersIdArchiveHeadJsonResponse400Normalizer::class, + + \Docker\API\Model\ContainersIdArchiveHeadTextplainResponse400::class => \Docker\API\Normalizer\ContainersIdArchiveHeadTextplainResponse400Normalizer::class, + + \Docker\API\Model\ContainersPrunePostResponse200::class => \Docker\API\Normalizer\ContainersPrunePostResponse200Normalizer::class, + + \Docker\API\Model\BuildPrunePostResponse200::class => \Docker\API\Normalizer\BuildPrunePostResponse200Normalizer::class, + + \Docker\API\Model\ImagesNameHistoryGetResponse200Item::class => \Docker\API\Normalizer\ImagesNameHistoryGetResponse200ItemNormalizer::class, + + \Docker\API\Model\ImagesSearchGetResponse200Item::class => \Docker\API\Normalizer\ImagesSearchGetResponse200ItemNormalizer::class, + + \Docker\API\Model\ImagesPrunePostResponse200::class => \Docker\API\Normalizer\ImagesPrunePostResponse200Normalizer::class, + + \Docker\API\Model\AuthPostResponse200::class => \Docker\API\Normalizer\AuthPostResponse200Normalizer::class, + + \Docker\API\Model\VersionGetResponse200::class => \Docker\API\Normalizer\VersionGetResponse200Normalizer::class, + + \Docker\API\Model\VersionGetResponse200Platform::class => \Docker\API\Normalizer\VersionGetResponse200PlatformNormalizer::class, + + \Docker\API\Model\VersionGetResponse200ComponentsItem::class => \Docker\API\Normalizer\VersionGetResponse200ComponentsItemNormalizer::class, + + \Docker\API\Model\VersionGetResponse200ComponentsItemDetails::class => \Docker\API\Normalizer\VersionGetResponse200ComponentsItemDetailsNormalizer::class, + + \Docker\API\Model\EventsGetResponse200::class => \Docker\API\Normalizer\EventsGetResponse200Normalizer::class, + + \Docker\API\Model\EventsGetResponse200Actor::class => \Docker\API\Normalizer\EventsGetResponse200ActorNormalizer::class, + + \Docker\API\Model\SystemDfGetJsonResponse200::class => \Docker\API\Normalizer\SystemDfGetJsonResponse200Normalizer::class, + + \Docker\API\Model\SystemDfGetTextplainResponse200::class => \Docker\API\Normalizer\SystemDfGetTextplainResponse200Normalizer::class, + + \Docker\API\Model\ContainersIdExecPostBody::class => \Docker\API\Normalizer\ContainersIdExecPostBodyNormalizer::class, + + \Docker\API\Model\ExecIdStartPostBody::class => \Docker\API\Normalizer\ExecIdStartPostBodyNormalizer::class, + + \Docker\API\Model\ExecIdJsonGetResponse200::class => \Docker\API\Normalizer\ExecIdJsonGetResponse200Normalizer::class, + + \Docker\API\Model\VolumesGetResponse200::class => \Docker\API\Normalizer\VolumesGetResponse200Normalizer::class, + + \Docker\API\Model\VolumesCreatePostBody::class => \Docker\API\Normalizer\VolumesCreatePostBodyNormalizer::class, + + \Docker\API\Model\VolumesPrunePostResponse200::class => \Docker\API\Normalizer\VolumesPrunePostResponse200Normalizer::class, + + \Docker\API\Model\NetworksCreatePostBody::class => \Docker\API\Normalizer\NetworksCreatePostBodyNormalizer::class, + + \Docker\API\Model\NetworksCreatePostResponse201::class => \Docker\API\Normalizer\NetworksCreatePostResponse201Normalizer::class, + + \Docker\API\Model\NetworksIdConnectPostBody::class => \Docker\API\Normalizer\NetworksIdConnectPostBodyNormalizer::class, + + \Docker\API\Model\NetworksIdDisconnectPostBody::class => \Docker\API\Normalizer\NetworksIdDisconnectPostBodyNormalizer::class, + + \Docker\API\Model\NetworksPrunePostResponse200::class => \Docker\API\Normalizer\NetworksPrunePostResponse200Normalizer::class, + + \Docker\API\Model\PluginsPrivilegesGetJsonResponse200Item::class => \Docker\API\Normalizer\PluginsPrivilegesGetJsonResponse200ItemNormalizer::class, + + \Docker\API\Model\PluginsPrivilegesGetTextplainResponse200Item::class => \Docker\API\Normalizer\PluginsPrivilegesGetTextplainResponse200ItemNormalizer::class, + + \Docker\API\Model\PluginsPullPostBodyItem::class => \Docker\API\Normalizer\PluginsPullPostBodyItemNormalizer::class, + + \Docker\API\Model\PluginsNameUpgradePostBodyItem::class => \Docker\API\Normalizer\PluginsNameUpgradePostBodyItemNormalizer::class, + + \Docker\API\Model\SwarmInitPostBody::class => \Docker\API\Normalizer\SwarmInitPostBodyNormalizer::class, + + \Docker\API\Model\SwarmJoinPostBody::class => \Docker\API\Normalizer\SwarmJoinPostBodyNormalizer::class, + + \Docker\API\Model\SwarmUnlockkeyGetJsonResponse200::class => \Docker\API\Normalizer\SwarmUnlockkeyGetJsonResponse200Normalizer::class, + + \Docker\API\Model\SwarmUnlockkeyGetTextplainResponse200::class => \Docker\API\Normalizer\SwarmUnlockkeyGetTextplainResponse200Normalizer::class, + + \Docker\API\Model\SwarmUnlockPostBody::class => \Docker\API\Normalizer\SwarmUnlockPostBodyNormalizer::class, + + \Docker\API\Model\ServicesCreatePostBody::class => \Docker\API\Normalizer\ServicesCreatePostBodyNormalizer::class, + + \Docker\API\Model\ServicesCreatePostResponse201::class => \Docker\API\Normalizer\ServicesCreatePostResponse201Normalizer::class, + + \Docker\API\Model\ServicesIdUpdatePostBody::class => \Docker\API\Normalizer\ServicesIdUpdatePostBodyNormalizer::class, + + \Docker\API\Model\SecretsCreatePostBody::class => \Docker\API\Normalizer\SecretsCreatePostBodyNormalizer::class, + + \Docker\API\Model\ConfigsCreatePostBody::class => \Docker\API\Normalizer\ConfigsCreatePostBodyNormalizer::class, + + \Docker\API\Model\DistributionNameJsonGetResponse200::class => \Docker\API\Normalizer\DistributionNameJsonGetResponse200Normalizer::class, + + \Docker\API\Model\DistributionNameJsonGetResponse200Descriptor::class => \Docker\API\Normalizer\DistributionNameJsonGetResponse200DescriptorNormalizer::class, + + \Docker\API\Model\DistributionNameJsonGetResponse200PlatformsItem::class => \Docker\API\Normalizer\DistributionNameJsonGetResponse200PlatformsItemNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Docker\API\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []) : bool { return array_key_exists($type, $this->normalizers); @@ -104,7 +1088,205 @@ private function initNormalizer(string $normalizerClass) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Port' => false, 'Docker\\API\\Model\\MountPoint' => false, 'Docker\\API\\Model\\DeviceMapping' => false, 'Docker\\API\\Model\\ThrottleDevice' => false, 'Docker\\API\\Model\\Mount' => false, 'Docker\\API\\Model\\MountBindOptions' => false, 'Docker\\API\\Model\\MountVolumeOptions' => false, 'Docker\\API\\Model\\MountVolumeOptionsDriverConfig' => false, 'Docker\\API\\Model\\MountTmpfsOptions' => false, 'Docker\\API\\Model\\RestartPolicy' => false, 'Docker\\API\\Model\\Resources' => false, 'Docker\\API\\Model\\ResourcesBlkioWeightDeviceItem' => false, 'Docker\\API\\Model\\ResourcesUlimitsItem' => false, 'Docker\\API\\Model\\ResourceObject' => false, 'Docker\\API\\Model\\GenericResourcesItem' => false, 'Docker\\API\\Model\\GenericResourcesItemNamedResourceSpec' => false, 'Docker\\API\\Model\\GenericResourcesItemDiscreteResourceSpec' => false, 'Docker\\API\\Model\\HealthConfig' => false, 'Docker\\API\\Model\\HostConfig' => false, 'Docker\\API\\Model\\HostConfigLogConfig' => false, 'Docker\\API\\Model\\ContainerConfig' => false, 'Docker\\API\\Model\\ContainerConfigExposedPortsItem' => false, 'Docker\\API\\Model\\ContainerConfigVolumesItem' => false, 'Docker\\API\\Model\\NetworkSettings' => false, 'Docker\\API\\Model\\Address' => false, 'Docker\\API\\Model\\PortBinding' => false, 'Docker\\API\\Model\\GraphDriverData' => false, 'Docker\\API\\Model\\Image' => false, 'Docker\\API\\Model\\ImageRootFS' => false, 'Docker\\API\\Model\\ImageMetadata' => false, 'Docker\\API\\Model\\ImageSummary' => false, 'Docker\\API\\Model\\AuthConfig' => false, 'Docker\\API\\Model\\ProcessConfig' => false, 'Docker\\API\\Model\\Volume' => false, 'Docker\\API\\Model\\VolumeStatusItem' => false, 'Docker\\API\\Model\\VolumeUsageData' => false, 'Docker\\API\\Model\\Network' => false, 'Docker\\API\\Model\\IPAM' => false, 'Docker\\API\\Model\\NetworkContainer' => false, 'Docker\\API\\Model\\BuildInfo' => false, 'Docker\\API\\Model\\ImageID' => false, 'Docker\\API\\Model\\CreateImageInfo' => false, 'Docker\\API\\Model\\PushImageInfo' => false, 'Docker\\API\\Model\\ErrorDetail' => false, 'Docker\\API\\Model\\ProgressDetail' => false, 'Docker\\API\\Model\\ErrorResponse' => false, 'Docker\\API\\Model\\IdResponse' => false, 'Docker\\API\\Model\\EndpointSettings' => false, 'Docker\\API\\Model\\EndpointIPAMConfig' => false, 'Docker\\API\\Model\\PluginMount' => false, 'Docker\\API\\Model\\PluginDevice' => false, 'Docker\\API\\Model\\PluginEnv' => false, 'Docker\\API\\Model\\PluginInterfaceType' => false, 'Docker\\API\\Model\\Plugin' => false, 'Docker\\API\\Model\\PluginSettings' => false, 'Docker\\API\\Model\\PluginConfig' => false, 'Docker\\API\\Model\\PluginConfigInterface' => false, 'Docker\\API\\Model\\PluginConfigUser' => false, 'Docker\\API\\Model\\PluginConfigNetwork' => false, 'Docker\\API\\Model\\PluginConfigLinux' => false, 'Docker\\API\\Model\\PluginConfigArgs' => false, 'Docker\\API\\Model\\PluginConfigRootfs' => false, 'Docker\\API\\Model\\ObjectVersion' => false, 'Docker\\API\\Model\\NodeSpec' => false, 'Docker\\API\\Model\\Node' => false, 'Docker\\API\\Model\\NodeDescription' => false, 'Docker\\API\\Model\\Platform' => false, 'Docker\\API\\Model\\EngineDescription' => false, 'Docker\\API\\Model\\EngineDescriptionPluginsItem' => false, 'Docker\\API\\Model\\TLSInfo' => false, 'Docker\\API\\Model\\NodeStatus' => false, 'Docker\\API\\Model\\ManagerStatus' => false, 'Docker\\API\\Model\\SwarmSpec' => false, 'Docker\\API\\Model\\SwarmSpecOrchestration' => false, 'Docker\\API\\Model\\SwarmSpecRaft' => false, 'Docker\\API\\Model\\SwarmSpecDispatcher' => false, 'Docker\\API\\Model\\SwarmSpecCAConfig' => false, 'Docker\\API\\Model\\SwarmSpecCAConfigExternalCAsItem' => false, 'Docker\\API\\Model\\SwarmSpecEncryptionConfig' => false, 'Docker\\API\\Model\\SwarmSpecTaskDefaults' => false, 'Docker\\API\\Model\\SwarmSpecTaskDefaultsLogDriver' => false, 'Docker\\API\\Model\\ClusterInfo' => false, 'Docker\\API\\Model\\JoinTokens' => false, 'Docker\\API\\Model\\Swarm' => false, 'Docker\\API\\Model\\TaskSpec' => false, 'Docker\\API\\Model\\TaskSpecPluginSpec' => false, 'Docker\\API\\Model\\TaskSpecPluginSpecPluginPrivilegeItem' => false, 'Docker\\API\\Model\\TaskSpecContainerSpec' => false, 'Docker\\API\\Model\\TaskSpecContainerSpecPrivileges' => false, 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesCredentialSpec' => false, 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesSELinuxContext' => false, 'Docker\\API\\Model\\TaskSpecContainerSpecDNSConfig' => false, 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItem' => false, 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItemFile' => false, 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItem' => false, 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItemFile' => false, 'Docker\\API\\Model\\TaskSpecResources' => false, 'Docker\\API\\Model\\TaskSpecRestartPolicy' => false, 'Docker\\API\\Model\\TaskSpecPlacement' => false, 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItem' => false, 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItemSpread' => false, 'Docker\\API\\Model\\TaskSpecNetworksItem' => false, 'Docker\\API\\Model\\TaskSpecLogDriver' => false, 'Docker\\API\\Model\\Task' => false, 'Docker\\API\\Model\\TaskStatus' => false, 'Docker\\API\\Model\\TaskStatusContainerStatus' => false, 'Docker\\API\\Model\\ServiceSpec' => false, 'Docker\\API\\Model\\ServiceSpecMode' => false, 'Docker\\API\\Model\\ServiceSpecModeReplicated' => false, 'Docker\\API\\Model\\ServiceSpecModeGlobal' => false, 'Docker\\API\\Model\\ServiceSpecUpdateConfig' => false, 'Docker\\API\\Model\\ServiceSpecRollbackConfig' => false, 'Docker\\API\\Model\\ServiceSpecNetworksItem' => false, 'Docker\\API\\Model\\EndpointPortConfig' => false, 'Docker\\API\\Model\\EndpointSpec' => false, 'Docker\\API\\Model\\Service' => false, 'Docker\\API\\Model\\ServiceEndpoint' => false, 'Docker\\API\\Model\\ServiceEndpointVirtualIPsItem' => false, 'Docker\\API\\Model\\ServiceUpdateStatus' => false, 'Docker\\API\\Model\\ImageDeleteResponseItem' => false, 'Docker\\API\\Model\\ServiceUpdateResponse' => false, 'Docker\\API\\Model\\ContainerSummaryItem' => false, 'Docker\\API\\Model\\ContainerSummaryItemHostConfig' => false, 'Docker\\API\\Model\\ContainerSummaryItemNetworkSettings' => false, 'Docker\\API\\Model\\Driver' => false, 'Docker\\API\\Model\\SecretSpec' => false, 'Docker\\API\\Model\\Secret' => false, 'Docker\\API\\Model\\ConfigSpec' => false, 'Docker\\API\\Model\\Config' => false, 'Docker\\API\\Model\\SystemInfo' => false, 'Docker\\API\\Model\\PluginsInfo' => false, 'Docker\\API\\Model\\RegistryServiceConfig' => false, 'Docker\\API\\Model\\IndexInfo' => false, 'Docker\\API\\Model\\Runtime' => false, 'Docker\\API\\Model\\Commit' => false, 'Docker\\API\\Model\\SwarmInfo' => false, 'Docker\\API\\Model\\PeerNode' => false, 'Docker\\API\\Model\\ContainersCreatePostBody' => false, 'Docker\\API\\Model\\ContainersCreatePostBodyNetworkingConfig' => false, 'Docker\\API\\Model\\ContainersCreatePostResponse201' => false, 'Docker\\API\\Model\\ContainersIdJsonGetResponse200' => false, 'Docker\\API\\Model\\ContainersIdJsonGetResponse200State' => false, 'Docker\\API\\Model\\ContainersIdJsonGetResponse200Node' => false, 'Docker\\API\\Model\\ContainersIdTopGetJsonResponse200' => false, 'Docker\\API\\Model\\ContainersIdTopGetTextplainResponse200' => false, 'Docker\\API\\Model\\ContainersIdChangesGetResponse200Item' => false, 'Docker\\API\\Model\\ContainersIdUpdatePostBody' => false, 'Docker\\API\\Model\\ContainersIdUpdatePostResponse200' => false, 'Docker\\API\\Model\\ContainersIdWaitPostResponse200' => false, 'Docker\\API\\Model\\ContainersIdWaitPostResponse200Error' => false, 'Docker\\API\\Model\\ContainersIdArchiveGetResponse400' => false, 'Docker\\API\\Model\\ContainersIdArchiveHeadJsonResponse400' => false, 'Docker\\API\\Model\\ContainersIdArchiveHeadTextplainResponse400' => false, 'Docker\\API\\Model\\ContainersPrunePostResponse200' => false, 'Docker\\API\\Model\\BuildPrunePostResponse200' => false, 'Docker\\API\\Model\\ImagesNameHistoryGetResponse200Item' => false, 'Docker\\API\\Model\\ImagesSearchGetResponse200Item' => false, 'Docker\\API\\Model\\ImagesPrunePostResponse200' => false, 'Docker\\API\\Model\\AuthPostResponse200' => false, 'Docker\\API\\Model\\VersionGetResponse200' => false, 'Docker\\API\\Model\\VersionGetResponse200Platform' => false, 'Docker\\API\\Model\\VersionGetResponse200ComponentsItem' => false, 'Docker\\API\\Model\\VersionGetResponse200ComponentsItemDetails' => false, 'Docker\\API\\Model\\EventsGetResponse200' => false, 'Docker\\API\\Model\\EventsGetResponse200Actor' => false, 'Docker\\API\\Model\\SystemDfGetJsonResponse200' => false, 'Docker\\API\\Model\\SystemDfGetTextplainResponse200' => false, 'Docker\\API\\Model\\ContainersIdExecPostBody' => false, 'Docker\\API\\Model\\ExecIdStartPostBody' => false, 'Docker\\API\\Model\\ExecIdJsonGetResponse200' => false, 'Docker\\API\\Model\\VolumesGetResponse200' => false, 'Docker\\API\\Model\\VolumesCreatePostBody' => false, 'Docker\\API\\Model\\VolumesPrunePostResponse200' => false, 'Docker\\API\\Model\\NetworksCreatePostBody' => false, 'Docker\\API\\Model\\NetworksCreatePostResponse201' => false, 'Docker\\API\\Model\\NetworksIdConnectPostBody' => false, 'Docker\\API\\Model\\NetworksIdDisconnectPostBody' => false, 'Docker\\API\\Model\\NetworksPrunePostResponse200' => false, 'Docker\\API\\Model\\PluginsPrivilegesGetJsonResponse200Item' => false, 'Docker\\API\\Model\\PluginsPrivilegesGetTextplainResponse200Item' => false, 'Docker\\API\\Model\\PluginsPullPostBodyItem' => false, 'Docker\\API\\Model\\PluginsNameUpgradePostBodyItem' => false, 'Docker\\API\\Model\\SwarmInitPostBody' => false, 'Docker\\API\\Model\\SwarmJoinPostBody' => false, 'Docker\\API\\Model\\SwarmUnlockkeyGetJsonResponse200' => false, 'Docker\\API\\Model\\SwarmUnlockkeyGetTextplainResponse200' => false, 'Docker\\API\\Model\\SwarmUnlockPostBody' => false, 'Docker\\API\\Model\\ServicesCreatePostBody' => false, 'Docker\\API\\Model\\ServicesCreatePostResponse201' => false, 'Docker\\API\\Model\\ServicesIdUpdatePostBody' => false, 'Docker\\API\\Model\\SecretsCreatePostBody' => false, 'Docker\\API\\Model\\ConfigsCreatePostBody' => false, 'Docker\\API\\Model\\DistributionNameJsonGetResponse200' => false, 'Docker\\API\\Model\\DistributionNameJsonGetResponse200Descriptor' => false, 'Docker\\API\\Model\\DistributionNameJsonGetResponse200PlatformsItem' => false, '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => false]; + return [ + + \Docker\API\Model\Port::class => false, + \Docker\API\Model\MountPoint::class => false, + \Docker\API\Model\DeviceMapping::class => false, + \Docker\API\Model\ThrottleDevice::class => false, + \Docker\API\Model\Mount::class => false, + \Docker\API\Model\MountBindOptions::class => false, + \Docker\API\Model\MountVolumeOptions::class => false, + \Docker\API\Model\MountVolumeOptionsDriverConfig::class => false, + \Docker\API\Model\MountTmpfsOptions::class => false, + \Docker\API\Model\RestartPolicy::class => false, + \Docker\API\Model\Resources::class => false, + \Docker\API\Model\ResourcesBlkioWeightDeviceItem::class => false, + \Docker\API\Model\ResourcesUlimitsItem::class => false, + \Docker\API\Model\ResourceObject::class => false, + \Docker\API\Model\GenericResourcesItem::class => false, + \Docker\API\Model\GenericResourcesItemNamedResourceSpec::class => false, + \Docker\API\Model\GenericResourcesItemDiscreteResourceSpec::class => false, + \Docker\API\Model\HealthConfig::class => false, + \Docker\API\Model\HostConfig::class => false, + \Docker\API\Model\HostConfigLogConfig::class => false, + \Docker\API\Model\ContainerConfig::class => false, + \Docker\API\Model\ContainerConfigExposedPortsItem::class => false, + \Docker\API\Model\ContainerConfigVolumesItem::class => false, + \Docker\API\Model\NetworkSettings::class => false, + \Docker\API\Model\Address::class => false, + \Docker\API\Model\PortBinding::class => false, + \Docker\API\Model\GraphDriverData::class => false, + \Docker\API\Model\Image::class => false, + \Docker\API\Model\ImageRootFS::class => false, + \Docker\API\Model\ImageMetadata::class => false, + \Docker\API\Model\ImageSummary::class => false, + \Docker\API\Model\AuthConfig::class => false, + \Docker\API\Model\ProcessConfig::class => false, + \Docker\API\Model\Volume::class => false, + \Docker\API\Model\VolumeStatusItem::class => false, + \Docker\API\Model\VolumeUsageData::class => false, + \Docker\API\Model\Network::class => false, + \Docker\API\Model\IPAM::class => false, + \Docker\API\Model\NetworkContainer::class => false, + \Docker\API\Model\BuildInfo::class => false, + \Docker\API\Model\ImageID::class => false, + \Docker\API\Model\CreateImageInfo::class => false, + \Docker\API\Model\PushImageInfo::class => false, + \Docker\API\Model\ErrorDetail::class => false, + \Docker\API\Model\ProgressDetail::class => false, + \Docker\API\Model\ErrorResponse::class => false, + \Docker\API\Model\IdResponse::class => false, + \Docker\API\Model\EndpointSettings::class => false, + \Docker\API\Model\EndpointIPAMConfig::class => false, + \Docker\API\Model\PluginMount::class => false, + \Docker\API\Model\PluginDevice::class => false, + \Docker\API\Model\PluginEnv::class => false, + \Docker\API\Model\PluginInterfaceType::class => false, + \Docker\API\Model\Plugin::class => false, + \Docker\API\Model\PluginSettings::class => false, + \Docker\API\Model\PluginConfig::class => false, + \Docker\API\Model\PluginConfigInterface::class => false, + \Docker\API\Model\PluginConfigUser::class => false, + \Docker\API\Model\PluginConfigNetwork::class => false, + \Docker\API\Model\PluginConfigLinux::class => false, + \Docker\API\Model\PluginConfigArgs::class => false, + \Docker\API\Model\PluginConfigRootfs::class => false, + \Docker\API\Model\ObjectVersion::class => false, + \Docker\API\Model\NodeSpec::class => false, + \Docker\API\Model\Node::class => false, + \Docker\API\Model\NodeDescription::class => false, + \Docker\API\Model\Platform::class => false, + \Docker\API\Model\EngineDescription::class => false, + \Docker\API\Model\EngineDescriptionPluginsItem::class => false, + \Docker\API\Model\TLSInfo::class => false, + \Docker\API\Model\NodeStatus::class => false, + \Docker\API\Model\ManagerStatus::class => false, + \Docker\API\Model\SwarmSpec::class => false, + \Docker\API\Model\SwarmSpecOrchestration::class => false, + \Docker\API\Model\SwarmSpecRaft::class => false, + \Docker\API\Model\SwarmSpecDispatcher::class => false, + \Docker\API\Model\SwarmSpecCAConfig::class => false, + \Docker\API\Model\SwarmSpecCAConfigExternalCAsItem::class => false, + \Docker\API\Model\SwarmSpecEncryptionConfig::class => false, + \Docker\API\Model\SwarmSpecTaskDefaults::class => false, + \Docker\API\Model\SwarmSpecTaskDefaultsLogDriver::class => false, + \Docker\API\Model\ClusterInfo::class => false, + \Docker\API\Model\JoinTokens::class => false, + \Docker\API\Model\Swarm::class => false, + \Docker\API\Model\TaskSpec::class => false, + \Docker\API\Model\TaskSpecPluginSpec::class => false, + \Docker\API\Model\TaskSpecPluginSpecPluginPrivilegeItem::class => false, + \Docker\API\Model\TaskSpecContainerSpec::class => false, + \Docker\API\Model\TaskSpecContainerSpecPrivileges::class => false, + \Docker\API\Model\TaskSpecContainerSpecPrivilegesCredentialSpec::class => false, + \Docker\API\Model\TaskSpecContainerSpecPrivilegesSELinuxContext::class => false, + \Docker\API\Model\TaskSpecContainerSpecDNSConfig::class => false, + \Docker\API\Model\TaskSpecContainerSpecSecretsItem::class => false, + \Docker\API\Model\TaskSpecContainerSpecSecretsItemFile::class => false, + \Docker\API\Model\TaskSpecContainerSpecConfigsItem::class => false, + \Docker\API\Model\TaskSpecContainerSpecConfigsItemFile::class => false, + \Docker\API\Model\TaskSpecResources::class => false, + \Docker\API\Model\TaskSpecRestartPolicy::class => false, + \Docker\API\Model\TaskSpecPlacement::class => false, + \Docker\API\Model\TaskSpecPlacementPreferencesItem::class => false, + \Docker\API\Model\TaskSpecPlacementPreferencesItemSpread::class => false, + \Docker\API\Model\TaskSpecNetworksItem::class => false, + \Docker\API\Model\TaskSpecLogDriver::class => false, + \Docker\API\Model\Task::class => false, + \Docker\API\Model\TaskStatus::class => false, + \Docker\API\Model\TaskStatusContainerStatus::class => false, + \Docker\API\Model\ServiceSpec::class => false, + \Docker\API\Model\ServiceSpecMode::class => false, + \Docker\API\Model\ServiceSpecModeReplicated::class => false, + \Docker\API\Model\ServiceSpecModeGlobal::class => false, + \Docker\API\Model\ServiceSpecUpdateConfig::class => false, + \Docker\API\Model\ServiceSpecRollbackConfig::class => false, + \Docker\API\Model\ServiceSpecNetworksItem::class => false, + \Docker\API\Model\EndpointPortConfig::class => false, + \Docker\API\Model\EndpointSpec::class => false, + \Docker\API\Model\Service::class => false, + \Docker\API\Model\ServiceEndpoint::class => false, + \Docker\API\Model\ServiceEndpointVirtualIPsItem::class => false, + \Docker\API\Model\ServiceUpdateStatus::class => false, + \Docker\API\Model\ImageDeleteResponseItem::class => false, + \Docker\API\Model\ServiceUpdateResponse::class => false, + \Docker\API\Model\ContainerSummaryItem::class => false, + \Docker\API\Model\ContainerSummaryItemHostConfig::class => false, + \Docker\API\Model\ContainerSummaryItemNetworkSettings::class => false, + \Docker\API\Model\Driver::class => false, + \Docker\API\Model\SecretSpec::class => false, + \Docker\API\Model\Secret::class => false, + \Docker\API\Model\ConfigSpec::class => false, + \Docker\API\Model\Config::class => false, + \Docker\API\Model\SystemInfo::class => false, + \Docker\API\Model\PluginsInfo::class => false, + \Docker\API\Model\RegistryServiceConfig::class => false, + \Docker\API\Model\IndexInfo::class => false, + \Docker\API\Model\Runtime::class => false, + \Docker\API\Model\Commit::class => false, + \Docker\API\Model\SwarmInfo::class => false, + \Docker\API\Model\PeerNode::class => false, + \Docker\API\Model\ContainersCreatePostBody::class => false, + \Docker\API\Model\ContainersCreatePostBodyNetworkingConfig::class => false, + \Docker\API\Model\ContainersCreatePostResponse201::class => false, + \Docker\API\Model\ContainersIdJsonGetResponse200::class => false, + \Docker\API\Model\ContainersIdJsonGetResponse200State::class => false, + \Docker\API\Model\ContainersIdJsonGetResponse200Node::class => false, + \Docker\API\Model\ContainersIdTopGetJsonResponse200::class => false, + \Docker\API\Model\ContainersIdTopGetTextplainResponse200::class => false, + \Docker\API\Model\ContainersIdChangesGetResponse200Item::class => false, + \Docker\API\Model\ContainersIdUpdatePostBody::class => false, + \Docker\API\Model\ContainersIdUpdatePostResponse200::class => false, + \Docker\API\Model\ContainersIdWaitPostResponse200::class => false, + \Docker\API\Model\ContainersIdWaitPostResponse200Error::class => false, + \Docker\API\Model\ContainersIdArchiveGetResponse400::class => false, + \Docker\API\Model\ContainersIdArchiveHeadJsonResponse400::class => false, + \Docker\API\Model\ContainersIdArchiveHeadTextplainResponse400::class => false, + \Docker\API\Model\ContainersPrunePostResponse200::class => false, + \Docker\API\Model\BuildPrunePostResponse200::class => false, + \Docker\API\Model\ImagesNameHistoryGetResponse200Item::class => false, + \Docker\API\Model\ImagesSearchGetResponse200Item::class => false, + \Docker\API\Model\ImagesPrunePostResponse200::class => false, + \Docker\API\Model\AuthPostResponse200::class => false, + \Docker\API\Model\VersionGetResponse200::class => false, + \Docker\API\Model\VersionGetResponse200Platform::class => false, + \Docker\API\Model\VersionGetResponse200ComponentsItem::class => false, + \Docker\API\Model\VersionGetResponse200ComponentsItemDetails::class => false, + \Docker\API\Model\EventsGetResponse200::class => false, + \Docker\API\Model\EventsGetResponse200Actor::class => false, + \Docker\API\Model\SystemDfGetJsonResponse200::class => false, + \Docker\API\Model\SystemDfGetTextplainResponse200::class => false, + \Docker\API\Model\ContainersIdExecPostBody::class => false, + \Docker\API\Model\ExecIdStartPostBody::class => false, + \Docker\API\Model\ExecIdJsonGetResponse200::class => false, + \Docker\API\Model\VolumesGetResponse200::class => false, + \Docker\API\Model\VolumesCreatePostBody::class => false, + \Docker\API\Model\VolumesPrunePostResponse200::class => false, + \Docker\API\Model\NetworksCreatePostBody::class => false, + \Docker\API\Model\NetworksCreatePostResponse201::class => false, + \Docker\API\Model\NetworksIdConnectPostBody::class => false, + \Docker\API\Model\NetworksIdDisconnectPostBody::class => false, + \Docker\API\Model\NetworksPrunePostResponse200::class => false, + \Docker\API\Model\PluginsPrivilegesGetJsonResponse200Item::class => false, + \Docker\API\Model\PluginsPrivilegesGetTextplainResponse200Item::class => false, + \Docker\API\Model\PluginsPullPostBodyItem::class => false, + \Docker\API\Model\PluginsNameUpgradePostBodyItem::class => false, + \Docker\API\Model\SwarmInitPostBody::class => false, + \Docker\API\Model\SwarmJoinPostBody::class => false, + \Docker\API\Model\SwarmUnlockkeyGetJsonResponse200::class => false, + \Docker\API\Model\SwarmUnlockkeyGetTextplainResponse200::class => false, + \Docker\API\Model\SwarmUnlockPostBody::class => false, + \Docker\API\Model\ServicesCreatePostBody::class => false, + \Docker\API\Model\ServicesCreatePostResponse201::class => false, + \Docker\API\Model\ServicesIdUpdatePostBody::class => false, + \Docker\API\Model\SecretsCreatePostBody::class => false, + \Docker\API\Model\ConfigsCreatePostBody::class => false, + \Docker\API\Model\DistributionNameJsonGetResponse200::class => false, + \Docker\API\Model\DistributionNameJsonGetResponse200Descriptor::class => false, + \Docker\API\Model\DistributionNameJsonGetResponse200PlatformsItem::class => false, + \Jane\Component\JsonSchemaRuntime\Reference::class => false, + ]; } } } \ No newline at end of file diff --git a/src/Normalizer/JoinTokensNormalizer.php b/src/Normalizer/JoinTokensNormalizer.php index 4632c210..18cd9ded 100644 --- a/src/Normalizer/JoinTokensNormalizer.php +++ b/src/Normalizer/JoinTokensNormalizer.php @@ -22,11 +22,11 @@ class JoinTokensNormalizer implements DenormalizerInterface, NormalizerInterface use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\JoinTokens'; + return $type === \Docker\API\Model\JoinTokens::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\JoinTokens'; + return is_object($data) && get_class($data) === \Docker\API\Model\JoinTokens::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\JoinTokens' => false]; + return [\Docker\API\Model\JoinTokens::class => false]; } } } else { @@ -91,11 +91,11 @@ class JoinTokensNormalizer implements DenormalizerInterface, NormalizerInterface use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\JoinTokens'; + return $type === \Docker\API\Model\JoinTokens::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\JoinTokens'; + return is_object($data) && get_class($data) === \Docker\API\Model\JoinTokens::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\JoinTokens' => false]; + return [\Docker\API\Model\JoinTokens::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ManagerStatusNormalizer.php b/src/Normalizer/ManagerStatusNormalizer.php index 8ce46081..86b157a1 100644 --- a/src/Normalizer/ManagerStatusNormalizer.php +++ b/src/Normalizer/ManagerStatusNormalizer.php @@ -22,11 +22,11 @@ class ManagerStatusNormalizer implements DenormalizerInterface, NormalizerInterf use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ManagerStatus'; + return $type === \Docker\API\Model\ManagerStatus::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ManagerStatus'; + return is_object($data) && get_class($data) === \Docker\API\Model\ManagerStatus::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -89,7 +89,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ManagerStatus' => false]; + return [\Docker\API\Model\ManagerStatus::class => false]; } } } else { @@ -101,11 +101,11 @@ class ManagerStatusNormalizer implements DenormalizerInterface, NormalizerInterf use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ManagerStatus'; + return $type === \Docker\API\Model\ManagerStatus::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ManagerStatus'; + return is_object($data) && get_class($data) === \Docker\API\Model\ManagerStatus::class; } /** * @return mixed @@ -174,7 +174,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ManagerStatus' => false]; + return [\Docker\API\Model\ManagerStatus::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/MountBindOptionsNormalizer.php b/src/Normalizer/MountBindOptionsNormalizer.php index c755e3d7..a12bf42d 100644 --- a/src/Normalizer/MountBindOptionsNormalizer.php +++ b/src/Normalizer/MountBindOptionsNormalizer.php @@ -22,11 +22,11 @@ class MountBindOptionsNormalizer implements DenormalizerInterface, NormalizerInt use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\MountBindOptions'; + return $type === \Docker\API\Model\MountBindOptions::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\MountBindOptions'; + return is_object($data) && get_class($data) === \Docker\API\Model\MountBindOptions::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\MountBindOptions' => false]; + return [\Docker\API\Model\MountBindOptions::class => false]; } } } else { @@ -81,11 +81,11 @@ class MountBindOptionsNormalizer implements DenormalizerInterface, NormalizerInt use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\MountBindOptions'; + return $type === \Docker\API\Model\MountBindOptions::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\MountBindOptions'; + return is_object($data) && get_class($data) === \Docker\API\Model\MountBindOptions::class; } /** * @return mixed @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\MountBindOptions' => false]; + return [\Docker\API\Model\MountBindOptions::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/MountNormalizer.php b/src/Normalizer/MountNormalizer.php index 0f800498..bbc3e2d2 100644 --- a/src/Normalizer/MountNormalizer.php +++ b/src/Normalizer/MountNormalizer.php @@ -22,11 +22,11 @@ class MountNormalizer implements DenormalizerInterface, NormalizerInterface, Den use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Mount'; + return $type === \Docker\API\Model\Mount::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Mount'; + return is_object($data) && get_class($data) === \Docker\API\Model\Mount::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -76,21 +76,21 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setConsistency(null); } if (\array_key_exists('BindOptions', $data) && $data['BindOptions'] !== null) { - $object->setBindOptions($this->denormalizer->denormalize($data['BindOptions'], 'Docker\\API\\Model\\MountBindOptions', 'json', $context)); + $object->setBindOptions($this->denormalizer->denormalize($data['BindOptions'], \Docker\API\Model\MountBindOptions::class, 'json', $context)); unset($data['BindOptions']); } elseif (\array_key_exists('BindOptions', $data) && $data['BindOptions'] === null) { $object->setBindOptions(null); } if (\array_key_exists('VolumeOptions', $data) && $data['VolumeOptions'] !== null) { - $object->setVolumeOptions($this->denormalizer->denormalize($data['VolumeOptions'], 'Docker\\API\\Model\\MountVolumeOptions', 'json', $context)); + $object->setVolumeOptions($this->denormalizer->denormalize($data['VolumeOptions'], \Docker\API\Model\MountVolumeOptions::class, 'json', $context)); unset($data['VolumeOptions']); } elseif (\array_key_exists('VolumeOptions', $data) && $data['VolumeOptions'] === null) { $object->setVolumeOptions(null); } if (\array_key_exists('TmpfsOptions', $data) && $data['TmpfsOptions'] !== null) { - $object->setTmpfsOptions($this->denormalizer->denormalize($data['TmpfsOptions'], 'Docker\\API\\Model\\MountTmpfsOptions', 'json', $context)); + $object->setTmpfsOptions($this->denormalizer->denormalize($data['TmpfsOptions'], \Docker\API\Model\MountTmpfsOptions::class, 'json', $context)); unset($data['TmpfsOptions']); } elseif (\array_key_exists('TmpfsOptions', $data) && $data['TmpfsOptions'] === null) { @@ -139,7 +139,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Mount' => false]; + return [\Docker\API\Model\Mount::class => false]; } } } else { @@ -151,11 +151,11 @@ class MountNormalizer implements DenormalizerInterface, NormalizerInterface, Den use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Mount'; + return $type === \Docker\API\Model\Mount::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Mount'; + return is_object($data) && get_class($data) === \Docker\API\Model\Mount::class; } /** * @return mixed @@ -208,21 +208,21 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setConsistency(null); } if (\array_key_exists('BindOptions', $data) && $data['BindOptions'] !== null) { - $object->setBindOptions($this->denormalizer->denormalize($data['BindOptions'], 'Docker\\API\\Model\\MountBindOptions', 'json', $context)); + $object->setBindOptions($this->denormalizer->denormalize($data['BindOptions'], \Docker\API\Model\MountBindOptions::class, 'json', $context)); unset($data['BindOptions']); } elseif (\array_key_exists('BindOptions', $data) && $data['BindOptions'] === null) { $object->setBindOptions(null); } if (\array_key_exists('VolumeOptions', $data) && $data['VolumeOptions'] !== null) { - $object->setVolumeOptions($this->denormalizer->denormalize($data['VolumeOptions'], 'Docker\\API\\Model\\MountVolumeOptions', 'json', $context)); + $object->setVolumeOptions($this->denormalizer->denormalize($data['VolumeOptions'], \Docker\API\Model\MountVolumeOptions::class, 'json', $context)); unset($data['VolumeOptions']); } elseif (\array_key_exists('VolumeOptions', $data) && $data['VolumeOptions'] === null) { $object->setVolumeOptions(null); } if (\array_key_exists('TmpfsOptions', $data) && $data['TmpfsOptions'] !== null) { - $object->setTmpfsOptions($this->denormalizer->denormalize($data['TmpfsOptions'], 'Docker\\API\\Model\\MountTmpfsOptions', 'json', $context)); + $object->setTmpfsOptions($this->denormalizer->denormalize($data['TmpfsOptions'], \Docker\API\Model\MountTmpfsOptions::class, 'json', $context)); unset($data['TmpfsOptions']); } elseif (\array_key_exists('TmpfsOptions', $data) && $data['TmpfsOptions'] === null) { @@ -274,7 +274,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Mount' => false]; + return [\Docker\API\Model\Mount::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/MountPointNormalizer.php b/src/Normalizer/MountPointNormalizer.php index ff8ed37d..c058dc53 100644 --- a/src/Normalizer/MountPointNormalizer.php +++ b/src/Normalizer/MountPointNormalizer.php @@ -22,11 +22,11 @@ class MountPointNormalizer implements DenormalizerInterface, NormalizerInterface use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\MountPoint'; + return $type === \Docker\API\Model\MountPoint::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\MountPoint'; + return is_object($data) && get_class($data) === \Docker\API\Model\MountPoint::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -139,7 +139,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\MountPoint' => false]; + return [\Docker\API\Model\MountPoint::class => false]; } } } else { @@ -151,11 +151,11 @@ class MountPointNormalizer implements DenormalizerInterface, NormalizerInterface use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\MountPoint'; + return $type === \Docker\API\Model\MountPoint::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\MountPoint'; + return is_object($data) && get_class($data) === \Docker\API\Model\MountPoint::class; } /** * @return mixed @@ -274,7 +274,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\MountPoint' => false]; + return [\Docker\API\Model\MountPoint::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/MountTmpfsOptionsNormalizer.php b/src/Normalizer/MountTmpfsOptionsNormalizer.php index bd498637..92868e2d 100644 --- a/src/Normalizer/MountTmpfsOptionsNormalizer.php +++ b/src/Normalizer/MountTmpfsOptionsNormalizer.php @@ -22,11 +22,11 @@ class MountTmpfsOptionsNormalizer implements DenormalizerInterface, NormalizerIn use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\MountTmpfsOptions'; + return $type === \Docker\API\Model\MountTmpfsOptions::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\MountTmpfsOptions'; + return is_object($data) && get_class($data) === \Docker\API\Model\MountTmpfsOptions::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\MountTmpfsOptions' => false]; + return [\Docker\API\Model\MountTmpfsOptions::class => false]; } } } else { @@ -91,11 +91,11 @@ class MountTmpfsOptionsNormalizer implements DenormalizerInterface, NormalizerIn use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\MountTmpfsOptions'; + return $type === \Docker\API\Model\MountTmpfsOptions::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\MountTmpfsOptions'; + return is_object($data) && get_class($data) === \Docker\API\Model\MountTmpfsOptions::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\MountTmpfsOptions' => false]; + return [\Docker\API\Model\MountTmpfsOptions::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/MountVolumeOptionsDriverConfigNormalizer.php b/src/Normalizer/MountVolumeOptionsDriverConfigNormalizer.php index 9bb0c621..a66b1231 100644 --- a/src/Normalizer/MountVolumeOptionsDriverConfigNormalizer.php +++ b/src/Normalizer/MountVolumeOptionsDriverConfigNormalizer.php @@ -22,11 +22,11 @@ class MountVolumeOptionsDriverConfigNormalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\MountVolumeOptionsDriverConfig'; + return $type === \Docker\API\Model\MountVolumeOptionsDriverConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\MountVolumeOptionsDriverConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\MountVolumeOptionsDriverConfig::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -87,7 +87,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\MountVolumeOptionsDriverConfig' => false]; + return [\Docker\API\Model\MountVolumeOptionsDriverConfig::class => false]; } } } else { @@ -99,11 +99,11 @@ class MountVolumeOptionsDriverConfigNormalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\MountVolumeOptionsDriverConfig'; + return $type === \Docker\API\Model\MountVolumeOptionsDriverConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\MountVolumeOptionsDriverConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\MountVolumeOptionsDriverConfig::class; } /** * @return mixed @@ -170,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\MountVolumeOptionsDriverConfig' => false]; + return [\Docker\API\Model\MountVolumeOptionsDriverConfig::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/MountVolumeOptionsNormalizer.php b/src/Normalizer/MountVolumeOptionsNormalizer.php index ff31557a..afd91583 100644 --- a/src/Normalizer/MountVolumeOptionsNormalizer.php +++ b/src/Normalizer/MountVolumeOptionsNormalizer.php @@ -22,11 +22,11 @@ class MountVolumeOptionsNormalizer implements DenormalizerInterface, NormalizerI use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\MountVolumeOptions'; + return $type === \Docker\API\Model\MountVolumeOptions::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\MountVolumeOptions'; + return is_object($data) && get_class($data) === \Docker\API\Model\MountVolumeOptions::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -59,7 +59,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setLabels(null); } if (\array_key_exists('DriverConfig', $data) && $data['DriverConfig'] !== null) { - $object->setDriverConfig($this->denormalizer->denormalize($data['DriverConfig'], 'Docker\\API\\Model\\MountVolumeOptionsDriverConfig', 'json', $context)); + $object->setDriverConfig($this->denormalizer->denormalize($data['DriverConfig'], \Docker\API\Model\MountVolumeOptionsDriverConfig::class, 'json', $context)); unset($data['DriverConfig']); } elseif (\array_key_exists('DriverConfig', $data) && $data['DriverConfig'] === null) { @@ -97,7 +97,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\MountVolumeOptions' => false]; + return [\Docker\API\Model\MountVolumeOptions::class => false]; } } } else { @@ -109,11 +109,11 @@ class MountVolumeOptionsNormalizer implements DenormalizerInterface, NormalizerI use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\MountVolumeOptions'; + return $type === \Docker\API\Model\MountVolumeOptions::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\MountVolumeOptions'; + return is_object($data) && get_class($data) === \Docker\API\Model\MountVolumeOptions::class; } /** * @return mixed @@ -149,7 +149,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setLabels(null); } if (\array_key_exists('DriverConfig', $data) && $data['DriverConfig'] !== null) { - $object->setDriverConfig($this->denormalizer->denormalize($data['DriverConfig'], 'Docker\\API\\Model\\MountVolumeOptionsDriverConfig', 'json', $context)); + $object->setDriverConfig($this->denormalizer->denormalize($data['DriverConfig'], \Docker\API\Model\MountVolumeOptionsDriverConfig::class, 'json', $context)); unset($data['DriverConfig']); } elseif (\array_key_exists('DriverConfig', $data) && $data['DriverConfig'] === null) { @@ -190,7 +190,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\MountVolumeOptions' => false]; + return [\Docker\API\Model\MountVolumeOptions::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/NetworkContainerNormalizer.php b/src/Normalizer/NetworkContainerNormalizer.php index 20f79aab..2d04d654 100644 --- a/src/Normalizer/NetworkContainerNormalizer.php +++ b/src/Normalizer/NetworkContainerNormalizer.php @@ -22,11 +22,11 @@ class NetworkContainerNormalizer implements DenormalizerInterface, NormalizerInt use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\NetworkContainer'; + return $type === \Docker\API\Model\NetworkContainer::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\NetworkContainer'; + return is_object($data) && get_class($data) === \Docker\API\Model\NetworkContainer::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -109,7 +109,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\NetworkContainer' => false]; + return [\Docker\API\Model\NetworkContainer::class => false]; } } } else { @@ -121,11 +121,11 @@ class NetworkContainerNormalizer implements DenormalizerInterface, NormalizerInt use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\NetworkContainer'; + return $type === \Docker\API\Model\NetworkContainer::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\NetworkContainer'; + return is_object($data) && get_class($data) === \Docker\API\Model\NetworkContainer::class; } /** * @return mixed @@ -214,7 +214,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\NetworkContainer' => false]; + return [\Docker\API\Model\NetworkContainer::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/NetworkNormalizer.php b/src/Normalizer/NetworkNormalizer.php index 26b66881..f61838e1 100644 --- a/src/Normalizer/NetworkNormalizer.php +++ b/src/Normalizer/NetworkNormalizer.php @@ -22,11 +22,11 @@ class NetworkNormalizer implements DenormalizerInterface, NormalizerInterface, D use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Network'; + return $type === \Docker\API\Model\Network::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Network'; + return is_object($data) && get_class($data) === \Docker\API\Model\Network::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -83,7 +83,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setEnableIPv6(null); } if (\array_key_exists('IPAM', $data) && $data['IPAM'] !== null) { - $object->setIPAM($this->denormalizer->denormalize($data['IPAM'], 'Docker\\API\\Model\\IPAM', 'json', $context)); + $object->setIPAM($this->denormalizer->denormalize($data['IPAM'], \Docker\API\Model\IPAM::class, 'json', $context)); unset($data['IPAM']); } elseif (\array_key_exists('IPAM', $data) && $data['IPAM'] === null) { @@ -113,7 +113,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Containers', $data) && $data['Containers'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['Containers'] as $key => $value) { - $values[$key] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\NetworkContainer', 'json', $context); + $values[$key] = $this->denormalizer->denormalize($value, \Docker\API\Model\NetworkContainer::class, 'json', $context); } $object->setContainers($values); unset($data['Containers']); @@ -213,7 +213,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Network' => false]; + return [\Docker\API\Model\Network::class => false]; } } } else { @@ -225,11 +225,11 @@ class NetworkNormalizer implements DenormalizerInterface, NormalizerInterface, D use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Network'; + return $type === \Docker\API\Model\Network::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Network'; + return is_object($data) && get_class($data) === \Docker\API\Model\Network::class; } /** * @return mixed @@ -289,7 +289,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setEnableIPv6(null); } if (\array_key_exists('IPAM', $data) && $data['IPAM'] !== null) { - $object->setIPAM($this->denormalizer->denormalize($data['IPAM'], 'Docker\\API\\Model\\IPAM', 'json', $context)); + $object->setIPAM($this->denormalizer->denormalize($data['IPAM'], \Docker\API\Model\IPAM::class, 'json', $context)); unset($data['IPAM']); } elseif (\array_key_exists('IPAM', $data) && $data['IPAM'] === null) { @@ -319,7 +319,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Containers', $data) && $data['Containers'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['Containers'] as $key => $value) { - $values[$key] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\NetworkContainer', 'json', $context); + $values[$key] = $this->denormalizer->denormalize($value, \Docker\API\Model\NetworkContainer::class, 'json', $context); } $object->setContainers($values); unset($data['Containers']); @@ -422,7 +422,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Network' => false]; + return [\Docker\API\Model\Network::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/NetworkSettingsNormalizer.php b/src/Normalizer/NetworkSettingsNormalizer.php index 61cd121e..8e83147e 100644 --- a/src/Normalizer/NetworkSettingsNormalizer.php +++ b/src/Normalizer/NetworkSettingsNormalizer.php @@ -22,11 +22,11 @@ class NetworkSettingsNormalizer implements DenormalizerInterface, NormalizerInte use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\NetworkSettings'; + return $type === \Docker\API\Model\NetworkSettings::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\NetworkSettings'; + return is_object($data) && get_class($data) === \Docker\API\Model\NetworkSettings::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -80,7 +80,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar foreach ($data['Ports'] as $key => $value) { $values_1 = []; foreach ($value as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\PortBinding', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\PortBinding::class, 'json', $context); } $values[$key] = $values_1; } @@ -100,7 +100,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('SecondaryIPAddresses', $data) && $data['SecondaryIPAddresses'] !== null) { $values_2 = []; foreach ($data['SecondaryIPAddresses'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, 'Docker\\API\\Model\\Address', 'json', $context); + $values_2[] = $this->denormalizer->denormalize($value_2, \Docker\API\Model\Address::class, 'json', $context); } $object->setSecondaryIPAddresses($values_2); unset($data['SecondaryIPAddresses']); @@ -111,7 +111,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('SecondaryIPv6Addresses', $data) && $data['SecondaryIPv6Addresses'] !== null) { $values_3 = []; foreach ($data['SecondaryIPv6Addresses'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\Address', 'json', $context); + $values_3[] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\Address::class, 'json', $context); } $object->setSecondaryIPv6Addresses($values_3); unset($data['SecondaryIPv6Addresses']); @@ -178,7 +178,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Networks', $data) && $data['Networks'] !== null) { $values_4 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['Networks'] as $key_1 => $value_4) { - $values_4[$key_1] = $this->denormalizer->denormalize($value_4, 'Docker\\API\\Model\\EndpointSettings', 'json', $context); + $values_4[$key_1] = $this->denormalizer->denormalize($value_4, \Docker\API\Model\EndpointSettings::class, 'json', $context); } $object->setNetworks($values_4); unset($data['Networks']); @@ -279,7 +279,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\NetworkSettings' => false]; + return [\Docker\API\Model\NetworkSettings::class => false]; } } } else { @@ -291,11 +291,11 @@ class NetworkSettingsNormalizer implements DenormalizerInterface, NormalizerInte use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\NetworkSettings'; + return $type === \Docker\API\Model\NetworkSettings::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\NetworkSettings'; + return is_object($data) && get_class($data) === \Docker\API\Model\NetworkSettings::class; } /** * @return mixed @@ -352,7 +352,7 @@ public function denormalize($data, $type, $format = null, array $context = []) foreach ($data['Ports'] as $key => $value) { $values_1 = []; foreach ($value as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\PortBinding', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\PortBinding::class, 'json', $context); } $values[$key] = $values_1; } @@ -372,7 +372,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('SecondaryIPAddresses', $data) && $data['SecondaryIPAddresses'] !== null) { $values_2 = []; foreach ($data['SecondaryIPAddresses'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, 'Docker\\API\\Model\\Address', 'json', $context); + $values_2[] = $this->denormalizer->denormalize($value_2, \Docker\API\Model\Address::class, 'json', $context); } $object->setSecondaryIPAddresses($values_2); unset($data['SecondaryIPAddresses']); @@ -383,7 +383,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('SecondaryIPv6Addresses', $data) && $data['SecondaryIPv6Addresses'] !== null) { $values_3 = []; foreach ($data['SecondaryIPv6Addresses'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\Address', 'json', $context); + $values_3[] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\Address::class, 'json', $context); } $object->setSecondaryIPv6Addresses($values_3); unset($data['SecondaryIPv6Addresses']); @@ -450,7 +450,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Networks', $data) && $data['Networks'] !== null) { $values_4 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['Networks'] as $key_1 => $value_4) { - $values_4[$key_1] = $this->denormalizer->denormalize($value_4, 'Docker\\API\\Model\\EndpointSettings', 'json', $context); + $values_4[$key_1] = $this->denormalizer->denormalize($value_4, \Docker\API\Model\EndpointSettings::class, 'json', $context); } $object->setNetworks($values_4); unset($data['Networks']); @@ -554,7 +554,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\NetworkSettings' => false]; + return [\Docker\API\Model\NetworkSettings::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/NetworksCreatePostBodyNormalizer.php b/src/Normalizer/NetworksCreatePostBodyNormalizer.php index 290f6086..3c776bf3 100644 --- a/src/Normalizer/NetworksCreatePostBodyNormalizer.php +++ b/src/Normalizer/NetworksCreatePostBodyNormalizer.php @@ -22,11 +22,11 @@ class NetworksCreatePostBodyNormalizer implements DenormalizerInterface, Normali use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\NetworksCreatePostBody'; + return $type === \Docker\API\Model\NetworksCreatePostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\NetworksCreatePostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\NetworksCreatePostBody::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -83,7 +83,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setIngress(null); } if (\array_key_exists('IPAM', $data) && $data['IPAM'] !== null) { - $object->setIPAM($this->denormalizer->denormalize($data['IPAM'], 'Docker\\API\\Model\\IPAM', 'json', $context)); + $object->setIPAM($this->denormalizer->denormalize($data['IPAM'], \Docker\API\Model\IPAM::class, 'json', $context)); unset($data['IPAM']); } elseif (\array_key_exists('IPAM', $data) && $data['IPAM'] === null) { @@ -173,7 +173,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\NetworksCreatePostBody' => false]; + return [\Docker\API\Model\NetworksCreatePostBody::class => false]; } } } else { @@ -185,11 +185,11 @@ class NetworksCreatePostBodyNormalizer implements DenormalizerInterface, Normali use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\NetworksCreatePostBody'; + return $type === \Docker\API\Model\NetworksCreatePostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\NetworksCreatePostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\NetworksCreatePostBody::class; } /** * @return mixed @@ -249,7 +249,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setIngress(null); } if (\array_key_exists('IPAM', $data) && $data['IPAM'] !== null) { - $object->setIPAM($this->denormalizer->denormalize($data['IPAM'], 'Docker\\API\\Model\\IPAM', 'json', $context)); + $object->setIPAM($this->denormalizer->denormalize($data['IPAM'], \Docker\API\Model\IPAM::class, 'json', $context)); unset($data['IPAM']); } elseif (\array_key_exists('IPAM', $data) && $data['IPAM'] === null) { @@ -342,7 +342,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\NetworksCreatePostBody' => false]; + return [\Docker\API\Model\NetworksCreatePostBody::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/NetworksCreatePostResponse201Normalizer.php b/src/Normalizer/NetworksCreatePostResponse201Normalizer.php index 924bdf4a..2102f4e1 100644 --- a/src/Normalizer/NetworksCreatePostResponse201Normalizer.php +++ b/src/Normalizer/NetworksCreatePostResponse201Normalizer.php @@ -22,11 +22,11 @@ class NetworksCreatePostResponse201Normalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\NetworksCreatePostResponse201'; + return $type === \Docker\API\Model\NetworksCreatePostResponse201::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\NetworksCreatePostResponse201'; + return is_object($data) && get_class($data) === \Docker\API\Model\NetworksCreatePostResponse201::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\NetworksCreatePostResponse201' => false]; + return [\Docker\API\Model\NetworksCreatePostResponse201::class => false]; } } } else { @@ -91,11 +91,11 @@ class NetworksCreatePostResponse201Normalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\NetworksCreatePostResponse201'; + return $type === \Docker\API\Model\NetworksCreatePostResponse201::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\NetworksCreatePostResponse201'; + return is_object($data) && get_class($data) === \Docker\API\Model\NetworksCreatePostResponse201::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\NetworksCreatePostResponse201' => false]; + return [\Docker\API\Model\NetworksCreatePostResponse201::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/NetworksIdConnectPostBodyNormalizer.php b/src/Normalizer/NetworksIdConnectPostBodyNormalizer.php index 8877a4aa..57448d63 100644 --- a/src/Normalizer/NetworksIdConnectPostBodyNormalizer.php +++ b/src/Normalizer/NetworksIdConnectPostBodyNormalizer.php @@ -22,11 +22,11 @@ class NetworksIdConnectPostBodyNormalizer implements DenormalizerInterface, Norm use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\NetworksIdConnectPostBody'; + return $type === \Docker\API\Model\NetworksIdConnectPostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\NetworksIdConnectPostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\NetworksIdConnectPostBody::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -48,7 +48,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setContainer(null); } if (\array_key_exists('EndpointConfig', $data) && $data['EndpointConfig'] !== null) { - $object->setEndpointConfig($this->denormalizer->denormalize($data['EndpointConfig'], 'Docker\\API\\Model\\EndpointSettings', 'json', $context)); + $object->setEndpointConfig($this->denormalizer->denormalize($data['EndpointConfig'], \Docker\API\Model\EndpointSettings::class, 'json', $context)); unset($data['EndpointConfig']); } elseif (\array_key_exists('EndpointConfig', $data) && $data['EndpointConfig'] === null) { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\NetworksIdConnectPostBody' => false]; + return [\Docker\API\Model\NetworksIdConnectPostBody::class => false]; } } } else { @@ -91,11 +91,11 @@ class NetworksIdConnectPostBodyNormalizer implements DenormalizerInterface, Norm use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\NetworksIdConnectPostBody'; + return $type === \Docker\API\Model\NetworksIdConnectPostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\NetworksIdConnectPostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\NetworksIdConnectPostBody::class; } /** * @return mixed @@ -120,7 +120,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setContainer(null); } if (\array_key_exists('EndpointConfig', $data) && $data['EndpointConfig'] !== null) { - $object->setEndpointConfig($this->denormalizer->denormalize($data['EndpointConfig'], 'Docker\\API\\Model\\EndpointSettings', 'json', $context)); + $object->setEndpointConfig($this->denormalizer->denormalize($data['EndpointConfig'], \Docker\API\Model\EndpointSettings::class, 'json', $context)); unset($data['EndpointConfig']); } elseif (\array_key_exists('EndpointConfig', $data) && $data['EndpointConfig'] === null) { @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\NetworksIdConnectPostBody' => false]; + return [\Docker\API\Model\NetworksIdConnectPostBody::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/NetworksIdDisconnectPostBodyNormalizer.php b/src/Normalizer/NetworksIdDisconnectPostBodyNormalizer.php index 56f82a01..bfe9ad94 100644 --- a/src/Normalizer/NetworksIdDisconnectPostBodyNormalizer.php +++ b/src/Normalizer/NetworksIdDisconnectPostBodyNormalizer.php @@ -22,11 +22,11 @@ class NetworksIdDisconnectPostBodyNormalizer implements DenormalizerInterface, N use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\NetworksIdDisconnectPostBody'; + return $type === \Docker\API\Model\NetworksIdDisconnectPostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\NetworksIdDisconnectPostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\NetworksIdDisconnectPostBody::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\NetworksIdDisconnectPostBody' => false]; + return [\Docker\API\Model\NetworksIdDisconnectPostBody::class => false]; } } } else { @@ -91,11 +91,11 @@ class NetworksIdDisconnectPostBodyNormalizer implements DenormalizerInterface, N use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\NetworksIdDisconnectPostBody'; + return $type === \Docker\API\Model\NetworksIdDisconnectPostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\NetworksIdDisconnectPostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\NetworksIdDisconnectPostBody::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\NetworksIdDisconnectPostBody' => false]; + return [\Docker\API\Model\NetworksIdDisconnectPostBody::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/NetworksPrunePostResponse200Normalizer.php b/src/Normalizer/NetworksPrunePostResponse200Normalizer.php index df134b33..4b365824 100644 --- a/src/Normalizer/NetworksPrunePostResponse200Normalizer.php +++ b/src/Normalizer/NetworksPrunePostResponse200Normalizer.php @@ -22,11 +22,11 @@ class NetworksPrunePostResponse200Normalizer implements DenormalizerInterface, N use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\NetworksPrunePostResponse200'; + return $type === \Docker\API\Model\NetworksPrunePostResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\NetworksPrunePostResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\NetworksPrunePostResponse200::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -77,7 +77,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\NetworksPrunePostResponse200' => false]; + return [\Docker\API\Model\NetworksPrunePostResponse200::class => false]; } } } else { @@ -89,11 +89,11 @@ class NetworksPrunePostResponse200Normalizer implements DenormalizerInterface, N use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\NetworksPrunePostResponse200'; + return $type === \Docker\API\Model\NetworksPrunePostResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\NetworksPrunePostResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\NetworksPrunePostResponse200::class; } /** * @return mixed @@ -150,7 +150,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\NetworksPrunePostResponse200' => false]; + return [\Docker\API\Model\NetworksPrunePostResponse200::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/NodeDescriptionNormalizer.php b/src/Normalizer/NodeDescriptionNormalizer.php index 30c8f0e8..724daba7 100644 --- a/src/Normalizer/NodeDescriptionNormalizer.php +++ b/src/Normalizer/NodeDescriptionNormalizer.php @@ -22,11 +22,11 @@ class NodeDescriptionNormalizer implements DenormalizerInterface, NormalizerInte use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\NodeDescription'; + return $type === \Docker\API\Model\NodeDescription::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\NodeDescription'; + return is_object($data) && get_class($data) === \Docker\API\Model\NodeDescription::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -48,28 +48,28 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setHostname(null); } if (\array_key_exists('Platform', $data) && $data['Platform'] !== null) { - $object->setPlatform($this->denormalizer->denormalize($data['Platform'], 'Docker\\API\\Model\\Platform', 'json', $context)); + $object->setPlatform($this->denormalizer->denormalize($data['Platform'], \Docker\API\Model\Platform::class, 'json', $context)); unset($data['Platform']); } elseif (\array_key_exists('Platform', $data) && $data['Platform'] === null) { $object->setPlatform(null); } if (\array_key_exists('Resources', $data) && $data['Resources'] !== null) { - $object->setResources($this->denormalizer->denormalize($data['Resources'], 'Docker\\API\\Model\\ResourceObject', 'json', $context)); + $object->setResources($this->denormalizer->denormalize($data['Resources'], \Docker\API\Model\ResourceObject::class, 'json', $context)); unset($data['Resources']); } elseif (\array_key_exists('Resources', $data) && $data['Resources'] === null) { $object->setResources(null); } if (\array_key_exists('Engine', $data) && $data['Engine'] !== null) { - $object->setEngine($this->denormalizer->denormalize($data['Engine'], 'Docker\\API\\Model\\EngineDescription', 'json', $context)); + $object->setEngine($this->denormalizer->denormalize($data['Engine'], \Docker\API\Model\EngineDescription::class, 'json', $context)); unset($data['Engine']); } elseif (\array_key_exists('Engine', $data) && $data['Engine'] === null) { $object->setEngine(null); } if (\array_key_exists('TLSInfo', $data) && $data['TLSInfo'] !== null) { - $object->setTLSInfo($this->denormalizer->denormalize($data['TLSInfo'], 'Docker\\API\\Model\\TLSInfo', 'json', $context)); + $object->setTLSInfo($this->denormalizer->denormalize($data['TLSInfo'], \Docker\API\Model\TLSInfo::class, 'json', $context)); unset($data['TLSInfo']); } elseif (\array_key_exists('TLSInfo', $data) && $data['TLSInfo'] === null) { @@ -109,7 +109,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\NodeDescription' => false]; + return [\Docker\API\Model\NodeDescription::class => false]; } } } else { @@ -121,11 +121,11 @@ class NodeDescriptionNormalizer implements DenormalizerInterface, NormalizerInte use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\NodeDescription'; + return $type === \Docker\API\Model\NodeDescription::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\NodeDescription'; + return is_object($data) && get_class($data) === \Docker\API\Model\NodeDescription::class; } /** * @return mixed @@ -150,28 +150,28 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setHostname(null); } if (\array_key_exists('Platform', $data) && $data['Platform'] !== null) { - $object->setPlatform($this->denormalizer->denormalize($data['Platform'], 'Docker\\API\\Model\\Platform', 'json', $context)); + $object->setPlatform($this->denormalizer->denormalize($data['Platform'], \Docker\API\Model\Platform::class, 'json', $context)); unset($data['Platform']); } elseif (\array_key_exists('Platform', $data) && $data['Platform'] === null) { $object->setPlatform(null); } if (\array_key_exists('Resources', $data) && $data['Resources'] !== null) { - $object->setResources($this->denormalizer->denormalize($data['Resources'], 'Docker\\API\\Model\\ResourceObject', 'json', $context)); + $object->setResources($this->denormalizer->denormalize($data['Resources'], \Docker\API\Model\ResourceObject::class, 'json', $context)); unset($data['Resources']); } elseif (\array_key_exists('Resources', $data) && $data['Resources'] === null) { $object->setResources(null); } if (\array_key_exists('Engine', $data) && $data['Engine'] !== null) { - $object->setEngine($this->denormalizer->denormalize($data['Engine'], 'Docker\\API\\Model\\EngineDescription', 'json', $context)); + $object->setEngine($this->denormalizer->denormalize($data['Engine'], \Docker\API\Model\EngineDescription::class, 'json', $context)); unset($data['Engine']); } elseif (\array_key_exists('Engine', $data) && $data['Engine'] === null) { $object->setEngine(null); } if (\array_key_exists('TLSInfo', $data) && $data['TLSInfo'] !== null) { - $object->setTLSInfo($this->denormalizer->denormalize($data['TLSInfo'], 'Docker\\API\\Model\\TLSInfo', 'json', $context)); + $object->setTLSInfo($this->denormalizer->denormalize($data['TLSInfo'], \Docker\API\Model\TLSInfo::class, 'json', $context)); unset($data['TLSInfo']); } elseif (\array_key_exists('TLSInfo', $data) && $data['TLSInfo'] === null) { @@ -214,7 +214,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\NodeDescription' => false]; + return [\Docker\API\Model\NodeDescription::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/NodeNormalizer.php b/src/Normalizer/NodeNormalizer.php index 867527e9..f39de983 100644 --- a/src/Normalizer/NodeNormalizer.php +++ b/src/Normalizer/NodeNormalizer.php @@ -22,11 +22,11 @@ class NodeNormalizer implements DenormalizerInterface, NormalizerInterface, Deno use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Node'; + return $type === \Docker\API\Model\Node::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Node'; + return is_object($data) && get_class($data) === \Docker\API\Model\Node::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -48,7 +48,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setID(null); } if (\array_key_exists('Version', $data) && $data['Version'] !== null) { - $object->setVersion($this->denormalizer->denormalize($data['Version'], 'Docker\\API\\Model\\ObjectVersion', 'json', $context)); + $object->setVersion($this->denormalizer->denormalize($data['Version'], \Docker\API\Model\ObjectVersion::class, 'json', $context)); unset($data['Version']); } elseif (\array_key_exists('Version', $data) && $data['Version'] === null) { @@ -69,28 +69,28 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setUpdatedAt(null); } if (\array_key_exists('Spec', $data) && $data['Spec'] !== null) { - $object->setSpec($this->denormalizer->denormalize($data['Spec'], 'Docker\\API\\Model\\NodeSpec', 'json', $context)); + $object->setSpec($this->denormalizer->denormalize($data['Spec'], \Docker\API\Model\NodeSpec::class, 'json', $context)); unset($data['Spec']); } elseif (\array_key_exists('Spec', $data) && $data['Spec'] === null) { $object->setSpec(null); } if (\array_key_exists('Description', $data) && $data['Description'] !== null) { - $object->setDescription($this->denormalizer->denormalize($data['Description'], 'Docker\\API\\Model\\NodeDescription', 'json', $context)); + $object->setDescription($this->denormalizer->denormalize($data['Description'], \Docker\API\Model\NodeDescription::class, 'json', $context)); unset($data['Description']); } elseif (\array_key_exists('Description', $data) && $data['Description'] === null) { $object->setDescription(null); } if (\array_key_exists('Status', $data) && $data['Status'] !== null) { - $object->setStatus($this->denormalizer->denormalize($data['Status'], 'Docker\\API\\Model\\NodeStatus', 'json', $context)); + $object->setStatus($this->denormalizer->denormalize($data['Status'], \Docker\API\Model\NodeStatus::class, 'json', $context)); unset($data['Status']); } elseif (\array_key_exists('Status', $data) && $data['Status'] === null) { $object->setStatus(null); } if (\array_key_exists('ManagerStatus', $data) && $data['ManagerStatus'] !== null) { - $object->setManagerStatus($this->denormalizer->denormalize($data['ManagerStatus'], 'Docker\\API\\Model\\ManagerStatus', 'json', $context)); + $object->setManagerStatus($this->denormalizer->denormalize($data['ManagerStatus'], \Docker\API\Model\ManagerStatus::class, 'json', $context)); unset($data['ManagerStatus']); } elseif (\array_key_exists('ManagerStatus', $data) && $data['ManagerStatus'] === null) { @@ -139,7 +139,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Node' => false]; + return [\Docker\API\Model\Node::class => false]; } } } else { @@ -151,11 +151,11 @@ class NodeNormalizer implements DenormalizerInterface, NormalizerInterface, Deno use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Node'; + return $type === \Docker\API\Model\Node::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Node'; + return is_object($data) && get_class($data) === \Docker\API\Model\Node::class; } /** * @return mixed @@ -180,7 +180,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setID(null); } if (\array_key_exists('Version', $data) && $data['Version'] !== null) { - $object->setVersion($this->denormalizer->denormalize($data['Version'], 'Docker\\API\\Model\\ObjectVersion', 'json', $context)); + $object->setVersion($this->denormalizer->denormalize($data['Version'], \Docker\API\Model\ObjectVersion::class, 'json', $context)); unset($data['Version']); } elseif (\array_key_exists('Version', $data) && $data['Version'] === null) { @@ -201,28 +201,28 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setUpdatedAt(null); } if (\array_key_exists('Spec', $data) && $data['Spec'] !== null) { - $object->setSpec($this->denormalizer->denormalize($data['Spec'], 'Docker\\API\\Model\\NodeSpec', 'json', $context)); + $object->setSpec($this->denormalizer->denormalize($data['Spec'], \Docker\API\Model\NodeSpec::class, 'json', $context)); unset($data['Spec']); } elseif (\array_key_exists('Spec', $data) && $data['Spec'] === null) { $object->setSpec(null); } if (\array_key_exists('Description', $data) && $data['Description'] !== null) { - $object->setDescription($this->denormalizer->denormalize($data['Description'], 'Docker\\API\\Model\\NodeDescription', 'json', $context)); + $object->setDescription($this->denormalizer->denormalize($data['Description'], \Docker\API\Model\NodeDescription::class, 'json', $context)); unset($data['Description']); } elseif (\array_key_exists('Description', $data) && $data['Description'] === null) { $object->setDescription(null); } if (\array_key_exists('Status', $data) && $data['Status'] !== null) { - $object->setStatus($this->denormalizer->denormalize($data['Status'], 'Docker\\API\\Model\\NodeStatus', 'json', $context)); + $object->setStatus($this->denormalizer->denormalize($data['Status'], \Docker\API\Model\NodeStatus::class, 'json', $context)); unset($data['Status']); } elseif (\array_key_exists('Status', $data) && $data['Status'] === null) { $object->setStatus(null); } if (\array_key_exists('ManagerStatus', $data) && $data['ManagerStatus'] !== null) { - $object->setManagerStatus($this->denormalizer->denormalize($data['ManagerStatus'], 'Docker\\API\\Model\\ManagerStatus', 'json', $context)); + $object->setManagerStatus($this->denormalizer->denormalize($data['ManagerStatus'], \Docker\API\Model\ManagerStatus::class, 'json', $context)); unset($data['ManagerStatus']); } elseif (\array_key_exists('ManagerStatus', $data) && $data['ManagerStatus'] === null) { @@ -274,7 +274,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Node' => false]; + return [\Docker\API\Model\Node::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/NodeSpecNormalizer.php b/src/Normalizer/NodeSpecNormalizer.php index 77bbdf06..5d321db5 100644 --- a/src/Normalizer/NodeSpecNormalizer.php +++ b/src/Normalizer/NodeSpecNormalizer.php @@ -22,11 +22,11 @@ class NodeSpecNormalizer implements DenormalizerInterface, NormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\NodeSpec'; + return $type === \Docker\API\Model\NodeSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\NodeSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\NodeSpec::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -107,7 +107,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\NodeSpec' => false]; + return [\Docker\API\Model\NodeSpec::class => false]; } } } else { @@ -119,11 +119,11 @@ class NodeSpecNormalizer implements DenormalizerInterface, NormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\NodeSpec'; + return $type === \Docker\API\Model\NodeSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\NodeSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\NodeSpec::class; } /** * @return mixed @@ -210,7 +210,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\NodeSpec' => false]; + return [\Docker\API\Model\NodeSpec::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/NodeStatusNormalizer.php b/src/Normalizer/NodeStatusNormalizer.php index 568b25ea..23114b22 100644 --- a/src/Normalizer/NodeStatusNormalizer.php +++ b/src/Normalizer/NodeStatusNormalizer.php @@ -22,11 +22,11 @@ class NodeStatusNormalizer implements DenormalizerInterface, NormalizerInterface use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\NodeStatus'; + return $type === \Docker\API\Model\NodeStatus::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\NodeStatus'; + return is_object($data) && get_class($data) === \Docker\API\Model\NodeStatus::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -89,7 +89,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\NodeStatus' => false]; + return [\Docker\API\Model\NodeStatus::class => false]; } } } else { @@ -101,11 +101,11 @@ class NodeStatusNormalizer implements DenormalizerInterface, NormalizerInterface use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\NodeStatus'; + return $type === \Docker\API\Model\NodeStatus::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\NodeStatus'; + return is_object($data) && get_class($data) === \Docker\API\Model\NodeStatus::class; } /** * @return mixed @@ -174,7 +174,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\NodeStatus' => false]; + return [\Docker\API\Model\NodeStatus::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ObjectVersionNormalizer.php b/src/Normalizer/ObjectVersionNormalizer.php index 182eb256..49051930 100644 --- a/src/Normalizer/ObjectVersionNormalizer.php +++ b/src/Normalizer/ObjectVersionNormalizer.php @@ -22,11 +22,11 @@ class ObjectVersionNormalizer implements DenormalizerInterface, NormalizerInterf use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ObjectVersion'; + return $type === \Docker\API\Model\ObjectVersion::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ObjectVersion'; + return is_object($data) && get_class($data) === \Docker\API\Model\ObjectVersion::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ObjectVersion' => false]; + return [\Docker\API\Model\ObjectVersion::class => false]; } } } else { @@ -81,11 +81,11 @@ class ObjectVersionNormalizer implements DenormalizerInterface, NormalizerInterf use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ObjectVersion'; + return $type === \Docker\API\Model\ObjectVersion::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ObjectVersion'; + return is_object($data) && get_class($data) === \Docker\API\Model\ObjectVersion::class; } /** * @return mixed @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ObjectVersion' => false]; + return [\Docker\API\Model\ObjectVersion::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PeerNodeNormalizer.php b/src/Normalizer/PeerNodeNormalizer.php index 05cdc4cd..4998b9fa 100644 --- a/src/Normalizer/PeerNodeNormalizer.php +++ b/src/Normalizer/PeerNodeNormalizer.php @@ -22,11 +22,11 @@ class PeerNodeNormalizer implements DenormalizerInterface, NormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PeerNode'; + return $type === \Docker\API\Model\PeerNode::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PeerNode'; + return is_object($data) && get_class($data) === \Docker\API\Model\PeerNode::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PeerNode' => false]; + return [\Docker\API\Model\PeerNode::class => false]; } } } else { @@ -91,11 +91,11 @@ class PeerNodeNormalizer implements DenormalizerInterface, NormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PeerNode'; + return $type === \Docker\API\Model\PeerNode::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PeerNode'; + return is_object($data) && get_class($data) === \Docker\API\Model\PeerNode::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PeerNode' => false]; + return [\Docker\API\Model\PeerNode::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PlatformNormalizer.php b/src/Normalizer/PlatformNormalizer.php index d2ce3967..291e13ad 100644 --- a/src/Normalizer/PlatformNormalizer.php +++ b/src/Normalizer/PlatformNormalizer.php @@ -22,11 +22,11 @@ class PlatformNormalizer implements DenormalizerInterface, NormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Platform'; + return $type === \Docker\API\Model\Platform::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Platform'; + return is_object($data) && get_class($data) === \Docker\API\Model\Platform::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Platform' => false]; + return [\Docker\API\Model\Platform::class => false]; } } } else { @@ -91,11 +91,11 @@ class PlatformNormalizer implements DenormalizerInterface, NormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Platform'; + return $type === \Docker\API\Model\Platform::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Platform'; + return is_object($data) && get_class($data) === \Docker\API\Model\Platform::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Platform' => false]; + return [\Docker\API\Model\Platform::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PluginConfigArgsNormalizer.php b/src/Normalizer/PluginConfigArgsNormalizer.php index 6afff739..2055bacc 100644 --- a/src/Normalizer/PluginConfigArgsNormalizer.php +++ b/src/Normalizer/PluginConfigArgsNormalizer.php @@ -22,11 +22,11 @@ class PluginConfigArgsNormalizer implements DenormalizerInterface, NormalizerInt use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginConfigArgs'; + return $type === \Docker\API\Model\PluginConfigArgs::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginConfigArgs'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginConfigArgs::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -107,7 +107,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginConfigArgs' => false]; + return [\Docker\API\Model\PluginConfigArgs::class => false]; } } } else { @@ -119,11 +119,11 @@ class PluginConfigArgsNormalizer implements DenormalizerInterface, NormalizerInt use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginConfigArgs'; + return $type === \Docker\API\Model\PluginConfigArgs::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginConfigArgs'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginConfigArgs::class; } /** * @return mixed @@ -210,7 +210,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginConfigArgs' => false]; + return [\Docker\API\Model\PluginConfigArgs::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PluginConfigInterfaceNormalizer.php b/src/Normalizer/PluginConfigInterfaceNormalizer.php index 364acb21..f1cbf733 100644 --- a/src/Normalizer/PluginConfigInterfaceNormalizer.php +++ b/src/Normalizer/PluginConfigInterfaceNormalizer.php @@ -22,11 +22,11 @@ class PluginConfigInterfaceNormalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginConfigInterface'; + return $type === \Docker\API\Model\PluginConfigInterface::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginConfigInterface'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginConfigInterface::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -43,7 +43,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Types', $data) && $data['Types'] !== null) { $values = []; foreach ($data['Types'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\PluginInterfaceType', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\PluginInterfaceType::class, 'json', $context); } $object->setTypes($values); unset($data['Types']); @@ -83,7 +83,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginConfigInterface' => false]; + return [\Docker\API\Model\PluginConfigInterface::class => false]; } } } else { @@ -95,11 +95,11 @@ class PluginConfigInterfaceNormalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginConfigInterface'; + return $type === \Docker\API\Model\PluginConfigInterface::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginConfigInterface'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginConfigInterface::class; } /** * @return mixed @@ -119,7 +119,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Types', $data) && $data['Types'] !== null) { $values = []; foreach ($data['Types'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\PluginInterfaceType', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\PluginInterfaceType::class, 'json', $context); } $object->setTypes($values); unset($data['Types']); @@ -162,7 +162,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginConfigInterface' => false]; + return [\Docker\API\Model\PluginConfigInterface::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PluginConfigLinuxNormalizer.php b/src/Normalizer/PluginConfigLinuxNormalizer.php index 6515b950..3785894e 100644 --- a/src/Normalizer/PluginConfigLinuxNormalizer.php +++ b/src/Normalizer/PluginConfigLinuxNormalizer.php @@ -22,11 +22,11 @@ class PluginConfigLinuxNormalizer implements DenormalizerInterface, NormalizerIn use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginConfigLinux'; + return $type === \Docker\API\Model\PluginConfigLinux::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginConfigLinux'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginConfigLinux::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -61,7 +61,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Devices', $data) && $data['Devices'] !== null) { $values_1 = []; foreach ($data['Devices'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\PluginDevice', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\PluginDevice::class, 'json', $context); } $object->setDevices($values_1); unset($data['Devices']); @@ -99,7 +99,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginConfigLinux' => false]; + return [\Docker\API\Model\PluginConfigLinux::class => false]; } } } else { @@ -111,11 +111,11 @@ class PluginConfigLinuxNormalizer implements DenormalizerInterface, NormalizerIn use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginConfigLinux'; + return $type === \Docker\API\Model\PluginConfigLinux::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginConfigLinux'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginConfigLinux::class; } /** * @return mixed @@ -153,7 +153,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Devices', $data) && $data['Devices'] !== null) { $values_1 = []; foreach ($data['Devices'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\PluginDevice', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\PluginDevice::class, 'json', $context); } $object->setDevices($values_1); unset($data['Devices']); @@ -194,7 +194,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginConfigLinux' => false]; + return [\Docker\API\Model\PluginConfigLinux::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PluginConfigNetworkNormalizer.php b/src/Normalizer/PluginConfigNetworkNormalizer.php index f6950dc1..1db22e70 100644 --- a/src/Normalizer/PluginConfigNetworkNormalizer.php +++ b/src/Normalizer/PluginConfigNetworkNormalizer.php @@ -22,11 +22,11 @@ class PluginConfigNetworkNormalizer implements DenormalizerInterface, Normalizer use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginConfigNetwork'; + return $type === \Docker\API\Model\PluginConfigNetwork::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginConfigNetwork'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginConfigNetwork::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -67,7 +67,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginConfigNetwork' => false]; + return [\Docker\API\Model\PluginConfigNetwork::class => false]; } } } else { @@ -79,11 +79,11 @@ class PluginConfigNetworkNormalizer implements DenormalizerInterface, Normalizer use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginConfigNetwork'; + return $type === \Docker\API\Model\PluginConfigNetwork::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginConfigNetwork'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginConfigNetwork::class; } /** * @return mixed @@ -130,7 +130,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginConfigNetwork' => false]; + return [\Docker\API\Model\PluginConfigNetwork::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PluginConfigNormalizer.php b/src/Normalizer/PluginConfigNormalizer.php index 4874be26..a3aae25a 100644 --- a/src/Normalizer/PluginConfigNormalizer.php +++ b/src/Normalizer/PluginConfigNormalizer.php @@ -22,11 +22,11 @@ class PluginConfigNormalizer implements DenormalizerInterface, NormalizerInterfa use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginConfig'; + return $type === \Docker\API\Model\PluginConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginConfig::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -62,7 +62,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setDocumentation(null); } if (\array_key_exists('Interface', $data) && $data['Interface'] !== null) { - $object->setInterface($this->denormalizer->denormalize($data['Interface'], 'Docker\\API\\Model\\PluginConfigInterface', 'json', $context)); + $object->setInterface($this->denormalizer->denormalize($data['Interface'], \Docker\API\Model\PluginConfigInterface::class, 'json', $context)); unset($data['Interface']); } elseif (\array_key_exists('Interface', $data) && $data['Interface'] === null) { @@ -87,21 +87,21 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setWorkDir(null); } if (\array_key_exists('User', $data) && $data['User'] !== null) { - $object->setUser($this->denormalizer->denormalize($data['User'], 'Docker\\API\\Model\\PluginConfigUser', 'json', $context)); + $object->setUser($this->denormalizer->denormalize($data['User'], \Docker\API\Model\PluginConfigUser::class, 'json', $context)); unset($data['User']); } elseif (\array_key_exists('User', $data) && $data['User'] === null) { $object->setUser(null); } if (\array_key_exists('Network', $data) && $data['Network'] !== null) { - $object->setNetwork($this->denormalizer->denormalize($data['Network'], 'Docker\\API\\Model\\PluginConfigNetwork', 'json', $context)); + $object->setNetwork($this->denormalizer->denormalize($data['Network'], \Docker\API\Model\PluginConfigNetwork::class, 'json', $context)); unset($data['Network']); } elseif (\array_key_exists('Network', $data) && $data['Network'] === null) { $object->setNetwork(null); } if (\array_key_exists('Linux', $data) && $data['Linux'] !== null) { - $object->setLinux($this->denormalizer->denormalize($data['Linux'], 'Docker\\API\\Model\\PluginConfigLinux', 'json', $context)); + $object->setLinux($this->denormalizer->denormalize($data['Linux'], \Docker\API\Model\PluginConfigLinux::class, 'json', $context)); unset($data['Linux']); } elseif (\array_key_exists('Linux', $data) && $data['Linux'] === null) { @@ -131,7 +131,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Mounts', $data) && $data['Mounts'] !== null) { $values_1 = []; foreach ($data['Mounts'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\PluginMount', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\PluginMount::class, 'json', $context); } $object->setMounts($values_1); unset($data['Mounts']); @@ -142,7 +142,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Env', $data) && $data['Env'] !== null) { $values_2 = []; foreach ($data['Env'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, 'Docker\\API\\Model\\PluginEnv', 'json', $context); + $values_2[] = $this->denormalizer->denormalize($value_2, \Docker\API\Model\PluginEnv::class, 'json', $context); } $object->setEnv($values_2); unset($data['Env']); @@ -151,14 +151,14 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setEnv(null); } if (\array_key_exists('Args', $data) && $data['Args'] !== null) { - $object->setArgs($this->denormalizer->denormalize($data['Args'], 'Docker\\API\\Model\\PluginConfigArgs', 'json', $context)); + $object->setArgs($this->denormalizer->denormalize($data['Args'], \Docker\API\Model\PluginConfigArgs::class, 'json', $context)); unset($data['Args']); } elseif (\array_key_exists('Args', $data) && $data['Args'] === null) { $object->setArgs(null); } if (\array_key_exists('rootfs', $data) && $data['rootfs'] !== null) { - $object->setRootfs($this->denormalizer->denormalize($data['rootfs'], 'Docker\\API\\Model\\PluginConfigRootfs', 'json', $context)); + $object->setRootfs($this->denormalizer->denormalize($data['rootfs'], \Docker\API\Model\PluginConfigRootfs::class, 'json', $context)); unset($data['rootfs']); } elseif (\array_key_exists('rootfs', $data) && $data['rootfs'] === null) { @@ -217,7 +217,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginConfig' => false]; + return [\Docker\API\Model\PluginConfig::class => false]; } } } else { @@ -229,11 +229,11 @@ class PluginConfigNormalizer implements DenormalizerInterface, NormalizerInterfa use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginConfig'; + return $type === \Docker\API\Model\PluginConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginConfig::class; } /** * @return mixed @@ -272,7 +272,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setDocumentation(null); } if (\array_key_exists('Interface', $data) && $data['Interface'] !== null) { - $object->setInterface($this->denormalizer->denormalize($data['Interface'], 'Docker\\API\\Model\\PluginConfigInterface', 'json', $context)); + $object->setInterface($this->denormalizer->denormalize($data['Interface'], \Docker\API\Model\PluginConfigInterface::class, 'json', $context)); unset($data['Interface']); } elseif (\array_key_exists('Interface', $data) && $data['Interface'] === null) { @@ -297,21 +297,21 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setWorkDir(null); } if (\array_key_exists('User', $data) && $data['User'] !== null) { - $object->setUser($this->denormalizer->denormalize($data['User'], 'Docker\\API\\Model\\PluginConfigUser', 'json', $context)); + $object->setUser($this->denormalizer->denormalize($data['User'], \Docker\API\Model\PluginConfigUser::class, 'json', $context)); unset($data['User']); } elseif (\array_key_exists('User', $data) && $data['User'] === null) { $object->setUser(null); } if (\array_key_exists('Network', $data) && $data['Network'] !== null) { - $object->setNetwork($this->denormalizer->denormalize($data['Network'], 'Docker\\API\\Model\\PluginConfigNetwork', 'json', $context)); + $object->setNetwork($this->denormalizer->denormalize($data['Network'], \Docker\API\Model\PluginConfigNetwork::class, 'json', $context)); unset($data['Network']); } elseif (\array_key_exists('Network', $data) && $data['Network'] === null) { $object->setNetwork(null); } if (\array_key_exists('Linux', $data) && $data['Linux'] !== null) { - $object->setLinux($this->denormalizer->denormalize($data['Linux'], 'Docker\\API\\Model\\PluginConfigLinux', 'json', $context)); + $object->setLinux($this->denormalizer->denormalize($data['Linux'], \Docker\API\Model\PluginConfigLinux::class, 'json', $context)); unset($data['Linux']); } elseif (\array_key_exists('Linux', $data) && $data['Linux'] === null) { @@ -341,7 +341,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Mounts', $data) && $data['Mounts'] !== null) { $values_1 = []; foreach ($data['Mounts'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\PluginMount', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\PluginMount::class, 'json', $context); } $object->setMounts($values_1); unset($data['Mounts']); @@ -352,7 +352,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Env', $data) && $data['Env'] !== null) { $values_2 = []; foreach ($data['Env'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, 'Docker\\API\\Model\\PluginEnv', 'json', $context); + $values_2[] = $this->denormalizer->denormalize($value_2, \Docker\API\Model\PluginEnv::class, 'json', $context); } $object->setEnv($values_2); unset($data['Env']); @@ -361,14 +361,14 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setEnv(null); } if (\array_key_exists('Args', $data) && $data['Args'] !== null) { - $object->setArgs($this->denormalizer->denormalize($data['Args'], 'Docker\\API\\Model\\PluginConfigArgs', 'json', $context)); + $object->setArgs($this->denormalizer->denormalize($data['Args'], \Docker\API\Model\PluginConfigArgs::class, 'json', $context)); unset($data['Args']); } elseif (\array_key_exists('Args', $data) && $data['Args'] === null) { $object->setArgs(null); } if (\array_key_exists('rootfs', $data) && $data['rootfs'] !== null) { - $object->setRootfs($this->denormalizer->denormalize($data['rootfs'], 'Docker\\API\\Model\\PluginConfigRootfs', 'json', $context)); + $object->setRootfs($this->denormalizer->denormalize($data['rootfs'], \Docker\API\Model\PluginConfigRootfs::class, 'json', $context)); unset($data['rootfs']); } elseif (\array_key_exists('rootfs', $data) && $data['rootfs'] === null) { @@ -430,7 +430,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginConfig' => false]; + return [\Docker\API\Model\PluginConfig::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PluginConfigRootfsNormalizer.php b/src/Normalizer/PluginConfigRootfsNormalizer.php index dd462d18..25083f6c 100644 --- a/src/Normalizer/PluginConfigRootfsNormalizer.php +++ b/src/Normalizer/PluginConfigRootfsNormalizer.php @@ -22,11 +22,11 @@ class PluginConfigRootfsNormalizer implements DenormalizerInterface, NormalizerI use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginConfigRootfs'; + return $type === \Docker\API\Model\PluginConfigRootfs::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginConfigRootfs'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginConfigRootfs::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -87,7 +87,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginConfigRootfs' => false]; + return [\Docker\API\Model\PluginConfigRootfs::class => false]; } } } else { @@ -99,11 +99,11 @@ class PluginConfigRootfsNormalizer implements DenormalizerInterface, NormalizerI use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginConfigRootfs'; + return $type === \Docker\API\Model\PluginConfigRootfs::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginConfigRootfs'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginConfigRootfs::class; } /** * @return mixed @@ -170,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginConfigRootfs' => false]; + return [\Docker\API\Model\PluginConfigRootfs::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PluginConfigUserNormalizer.php b/src/Normalizer/PluginConfigUserNormalizer.php index d9776c69..fb86bbfb 100644 --- a/src/Normalizer/PluginConfigUserNormalizer.php +++ b/src/Normalizer/PluginConfigUserNormalizer.php @@ -22,11 +22,11 @@ class PluginConfigUserNormalizer implements DenormalizerInterface, NormalizerInt use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginConfigUser'; + return $type === \Docker\API\Model\PluginConfigUser::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginConfigUser'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginConfigUser::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginConfigUser' => false]; + return [\Docker\API\Model\PluginConfigUser::class => false]; } } } else { @@ -91,11 +91,11 @@ class PluginConfigUserNormalizer implements DenormalizerInterface, NormalizerInt use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginConfigUser'; + return $type === \Docker\API\Model\PluginConfigUser::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginConfigUser'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginConfigUser::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginConfigUser' => false]; + return [\Docker\API\Model\PluginConfigUser::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PluginDeviceNormalizer.php b/src/Normalizer/PluginDeviceNormalizer.php index 74185391..e27c1e0f 100644 --- a/src/Normalizer/PluginDeviceNormalizer.php +++ b/src/Normalizer/PluginDeviceNormalizer.php @@ -22,11 +22,11 @@ class PluginDeviceNormalizer implements DenormalizerInterface, NormalizerInterfa use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginDevice'; + return $type === \Docker\API\Model\PluginDevice::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginDevice'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginDevice::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -99,7 +99,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginDevice' => false]; + return [\Docker\API\Model\PluginDevice::class => false]; } } } else { @@ -111,11 +111,11 @@ class PluginDeviceNormalizer implements DenormalizerInterface, NormalizerInterfa use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginDevice'; + return $type === \Docker\API\Model\PluginDevice::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginDevice'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginDevice::class; } /** * @return mixed @@ -194,7 +194,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginDevice' => false]; + return [\Docker\API\Model\PluginDevice::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PluginEnvNormalizer.php b/src/Normalizer/PluginEnvNormalizer.php index 2352e907..e1bcbbbf 100644 --- a/src/Normalizer/PluginEnvNormalizer.php +++ b/src/Normalizer/PluginEnvNormalizer.php @@ -22,11 +22,11 @@ class PluginEnvNormalizer implements DenormalizerInterface, NormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginEnv'; + return $type === \Docker\API\Model\PluginEnv::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginEnv'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginEnv::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -99,7 +99,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginEnv' => false]; + return [\Docker\API\Model\PluginEnv::class => false]; } } } else { @@ -111,11 +111,11 @@ class PluginEnvNormalizer implements DenormalizerInterface, NormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginEnv'; + return $type === \Docker\API\Model\PluginEnv::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginEnv'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginEnv::class; } /** * @return mixed @@ -194,7 +194,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginEnv' => false]; + return [\Docker\API\Model\PluginEnv::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PluginInterfaceTypeNormalizer.php b/src/Normalizer/PluginInterfaceTypeNormalizer.php index 95746e00..921fb5e7 100644 --- a/src/Normalizer/PluginInterfaceTypeNormalizer.php +++ b/src/Normalizer/PluginInterfaceTypeNormalizer.php @@ -22,11 +22,11 @@ class PluginInterfaceTypeNormalizer implements DenormalizerInterface, Normalizer use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginInterfaceType'; + return $type === \Docker\API\Model\PluginInterfaceType::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginInterfaceType'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginInterfaceType::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -83,7 +83,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginInterfaceType' => false]; + return [\Docker\API\Model\PluginInterfaceType::class => false]; } } } else { @@ -95,11 +95,11 @@ class PluginInterfaceTypeNormalizer implements DenormalizerInterface, Normalizer use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginInterfaceType'; + return $type === \Docker\API\Model\PluginInterfaceType::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginInterfaceType'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginInterfaceType::class; } /** * @return mixed @@ -162,7 +162,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginInterfaceType' => false]; + return [\Docker\API\Model\PluginInterfaceType::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PluginMountNormalizer.php b/src/Normalizer/PluginMountNormalizer.php index 8672595b..695e5fe9 100644 --- a/src/Normalizer/PluginMountNormalizer.php +++ b/src/Normalizer/PluginMountNormalizer.php @@ -22,11 +22,11 @@ class PluginMountNormalizer implements DenormalizerInterface, NormalizerInterfac use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginMount'; + return $type === \Docker\API\Model\PluginMount::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginMount'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginMount::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -131,7 +131,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginMount' => false]; + return [\Docker\API\Model\PluginMount::class => false]; } } } else { @@ -143,11 +143,11 @@ class PluginMountNormalizer implements DenormalizerInterface, NormalizerInterfac use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginMount'; + return $type === \Docker\API\Model\PluginMount::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginMount'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginMount::class; } /** * @return mixed @@ -258,7 +258,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginMount' => false]; + return [\Docker\API\Model\PluginMount::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PluginNormalizer.php b/src/Normalizer/PluginNormalizer.php index ef3b52a9..e4339887 100644 --- a/src/Normalizer/PluginNormalizer.php +++ b/src/Normalizer/PluginNormalizer.php @@ -22,11 +22,11 @@ class PluginNormalizer implements DenormalizerInterface, NormalizerInterface, De use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Plugin'; + return $type === \Docker\API\Model\Plugin::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Plugin'; + return is_object($data) && get_class($data) === \Docker\API\Model\Plugin::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -62,7 +62,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setEnabled(null); } if (\array_key_exists('Settings', $data) && $data['Settings'] !== null) { - $object->setSettings($this->denormalizer->denormalize($data['Settings'], 'Docker\\API\\Model\\PluginSettings', 'json', $context)); + $object->setSettings($this->denormalizer->denormalize($data['Settings'], \Docker\API\Model\PluginSettings::class, 'json', $context)); unset($data['Settings']); } elseif (\array_key_exists('Settings', $data) && $data['Settings'] === null) { @@ -76,7 +76,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setPluginReference(null); } if (\array_key_exists('Config', $data) && $data['Config'] !== null) { - $object->setConfig($this->denormalizer->denormalize($data['Config'], 'Docker\\API\\Model\\PluginConfig', 'json', $context)); + $object->setConfig($this->denormalizer->denormalize($data['Config'], \Docker\API\Model\PluginConfig::class, 'json', $context)); unset($data['Config']); } elseif (\array_key_exists('Config', $data) && $data['Config'] === null) { @@ -111,7 +111,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Plugin' => false]; + return [\Docker\API\Model\Plugin::class => false]; } } } else { @@ -123,11 +123,11 @@ class PluginNormalizer implements DenormalizerInterface, NormalizerInterface, De use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Plugin'; + return $type === \Docker\API\Model\Plugin::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Plugin'; + return is_object($data) && get_class($data) === \Docker\API\Model\Plugin::class; } /** * @return mixed @@ -166,7 +166,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setEnabled(null); } if (\array_key_exists('Settings', $data) && $data['Settings'] !== null) { - $object->setSettings($this->denormalizer->denormalize($data['Settings'], 'Docker\\API\\Model\\PluginSettings', 'json', $context)); + $object->setSettings($this->denormalizer->denormalize($data['Settings'], \Docker\API\Model\PluginSettings::class, 'json', $context)); unset($data['Settings']); } elseif (\array_key_exists('Settings', $data) && $data['Settings'] === null) { @@ -180,7 +180,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setPluginReference(null); } if (\array_key_exists('Config', $data) && $data['Config'] !== null) { - $object->setConfig($this->denormalizer->denormalize($data['Config'], 'Docker\\API\\Model\\PluginConfig', 'json', $context)); + $object->setConfig($this->denormalizer->denormalize($data['Config'], \Docker\API\Model\PluginConfig::class, 'json', $context)); unset($data['Config']); } elseif (\array_key_exists('Config', $data) && $data['Config'] === null) { @@ -218,7 +218,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Plugin' => false]; + return [\Docker\API\Model\Plugin::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PluginSettingsNormalizer.php b/src/Normalizer/PluginSettingsNormalizer.php index 16950af8..37b11caf 100644 --- a/src/Normalizer/PluginSettingsNormalizer.php +++ b/src/Normalizer/PluginSettingsNormalizer.php @@ -22,11 +22,11 @@ class PluginSettingsNormalizer implements DenormalizerInterface, NormalizerInter use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginSettings'; + return $type === \Docker\API\Model\PluginSettings::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginSettings'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginSettings::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -43,7 +43,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Mounts', $data) && $data['Mounts'] !== null) { $values = []; foreach ($data['Mounts'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\PluginMount', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\PluginMount::class, 'json', $context); } $object->setMounts($values); unset($data['Mounts']); @@ -76,7 +76,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Devices', $data) && $data['Devices'] !== null) { $values_3 = []; foreach ($data['Devices'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\PluginDevice', 'json', $context); + $values_3[] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\PluginDevice::class, 'json', $context); } $object->setDevices($values_3); unset($data['Devices']); @@ -123,7 +123,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginSettings' => false]; + return [\Docker\API\Model\PluginSettings::class => false]; } } } else { @@ -135,11 +135,11 @@ class PluginSettingsNormalizer implements DenormalizerInterface, NormalizerInter use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginSettings'; + return $type === \Docker\API\Model\PluginSettings::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginSettings'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginSettings::class; } /** * @return mixed @@ -159,7 +159,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Mounts', $data) && $data['Mounts'] !== null) { $values = []; foreach ($data['Mounts'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\PluginMount', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\PluginMount::class, 'json', $context); } $object->setMounts($values); unset($data['Mounts']); @@ -192,7 +192,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Devices', $data) && $data['Devices'] !== null) { $values_3 = []; foreach ($data['Devices'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\PluginDevice', 'json', $context); + $values_3[] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\PluginDevice::class, 'json', $context); } $object->setDevices($values_3); unset($data['Devices']); @@ -242,7 +242,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginSettings' => false]; + return [\Docker\API\Model\PluginSettings::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PluginsInfoNormalizer.php b/src/Normalizer/PluginsInfoNormalizer.php index 8a5e9942..0980822b 100644 --- a/src/Normalizer/PluginsInfoNormalizer.php +++ b/src/Normalizer/PluginsInfoNormalizer.php @@ -22,11 +22,11 @@ class PluginsInfoNormalizer implements DenormalizerInterface, NormalizerInterfac use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginsInfo'; + return $type === \Docker\API\Model\PluginsInfo::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginsInfo'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginsInfo::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -131,7 +131,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginsInfo' => false]; + return [\Docker\API\Model\PluginsInfo::class => false]; } } } else { @@ -143,11 +143,11 @@ class PluginsInfoNormalizer implements DenormalizerInterface, NormalizerInterfac use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginsInfo'; + return $type === \Docker\API\Model\PluginsInfo::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginsInfo'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginsInfo::class; } /** * @return mixed @@ -258,7 +258,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginsInfo' => false]; + return [\Docker\API\Model\PluginsInfo::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PluginsNameUpgradePostBodyItemNormalizer.php b/src/Normalizer/PluginsNameUpgradePostBodyItemNormalizer.php index 28031ce4..89850000 100644 --- a/src/Normalizer/PluginsNameUpgradePostBodyItemNormalizer.php +++ b/src/Normalizer/PluginsNameUpgradePostBodyItemNormalizer.php @@ -22,11 +22,11 @@ class PluginsNameUpgradePostBodyItemNormalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginsNameUpgradePostBodyItem'; + return $type === \Docker\API\Model\PluginsNameUpgradePostBodyItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginsNameUpgradePostBodyItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginsNameUpgradePostBodyItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -97,7 +97,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginsNameUpgradePostBodyItem' => false]; + return [\Docker\API\Model\PluginsNameUpgradePostBodyItem::class => false]; } } } else { @@ -109,11 +109,11 @@ class PluginsNameUpgradePostBodyItemNormalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginsNameUpgradePostBodyItem'; + return $type === \Docker\API\Model\PluginsNameUpgradePostBodyItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginsNameUpgradePostBodyItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginsNameUpgradePostBodyItem::class; } /** * @return mixed @@ -190,7 +190,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginsNameUpgradePostBodyItem' => false]; + return [\Docker\API\Model\PluginsNameUpgradePostBodyItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PluginsPrivilegesGetJsonResponse200ItemNormalizer.php b/src/Normalizer/PluginsPrivilegesGetJsonResponse200ItemNormalizer.php index 51d460f2..a312979b 100644 --- a/src/Normalizer/PluginsPrivilegesGetJsonResponse200ItemNormalizer.php +++ b/src/Normalizer/PluginsPrivilegesGetJsonResponse200ItemNormalizer.php @@ -22,11 +22,11 @@ class PluginsPrivilegesGetJsonResponse200ItemNormalizer implements DenormalizerI use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginsPrivilegesGetJsonResponse200Item'; + return $type === \Docker\API\Model\PluginsPrivilegesGetJsonResponse200Item::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginsPrivilegesGetJsonResponse200Item'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginsPrivilegesGetJsonResponse200Item::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -97,7 +97,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginsPrivilegesGetJsonResponse200Item' => false]; + return [\Docker\API\Model\PluginsPrivilegesGetJsonResponse200Item::class => false]; } } } else { @@ -109,11 +109,11 @@ class PluginsPrivilegesGetJsonResponse200ItemNormalizer implements DenormalizerI use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginsPrivilegesGetJsonResponse200Item'; + return $type === \Docker\API\Model\PluginsPrivilegesGetJsonResponse200Item::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginsPrivilegesGetJsonResponse200Item'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginsPrivilegesGetJsonResponse200Item::class; } /** * @return mixed @@ -190,7 +190,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginsPrivilegesGetJsonResponse200Item' => false]; + return [\Docker\API\Model\PluginsPrivilegesGetJsonResponse200Item::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PluginsPrivilegesGetTextplainResponse200ItemNormalizer.php b/src/Normalizer/PluginsPrivilegesGetTextplainResponse200ItemNormalizer.php index 35d2f401..7d2647be 100644 --- a/src/Normalizer/PluginsPrivilegesGetTextplainResponse200ItemNormalizer.php +++ b/src/Normalizer/PluginsPrivilegesGetTextplainResponse200ItemNormalizer.php @@ -22,11 +22,11 @@ class PluginsPrivilegesGetTextplainResponse200ItemNormalizer implements Denormal use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginsPrivilegesGetTextplainResponse200Item'; + return $type === \Docker\API\Model\PluginsPrivilegesGetTextplainResponse200Item::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginsPrivilegesGetTextplainResponse200Item'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginsPrivilegesGetTextplainResponse200Item::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -97,7 +97,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginsPrivilegesGetTextplainResponse200Item' => false]; + return [\Docker\API\Model\PluginsPrivilegesGetTextplainResponse200Item::class => false]; } } } else { @@ -109,11 +109,11 @@ class PluginsPrivilegesGetTextplainResponse200ItemNormalizer implements Denormal use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginsPrivilegesGetTextplainResponse200Item'; + return $type === \Docker\API\Model\PluginsPrivilegesGetTextplainResponse200Item::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginsPrivilegesGetTextplainResponse200Item'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginsPrivilegesGetTextplainResponse200Item::class; } /** * @return mixed @@ -190,7 +190,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginsPrivilegesGetTextplainResponse200Item' => false]; + return [\Docker\API\Model\PluginsPrivilegesGetTextplainResponse200Item::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PluginsPullPostBodyItemNormalizer.php b/src/Normalizer/PluginsPullPostBodyItemNormalizer.php index d7308548..53f14f4b 100644 --- a/src/Normalizer/PluginsPullPostBodyItemNormalizer.php +++ b/src/Normalizer/PluginsPullPostBodyItemNormalizer.php @@ -22,11 +22,11 @@ class PluginsPullPostBodyItemNormalizer implements DenormalizerInterface, Normal use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginsPullPostBodyItem'; + return $type === \Docker\API\Model\PluginsPullPostBodyItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginsPullPostBodyItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginsPullPostBodyItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -97,7 +97,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginsPullPostBodyItem' => false]; + return [\Docker\API\Model\PluginsPullPostBodyItem::class => false]; } } } else { @@ -109,11 +109,11 @@ class PluginsPullPostBodyItemNormalizer implements DenormalizerInterface, Normal use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PluginsPullPostBodyItem'; + return $type === \Docker\API\Model\PluginsPullPostBodyItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PluginsPullPostBodyItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\PluginsPullPostBodyItem::class; } /** * @return mixed @@ -190,7 +190,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PluginsPullPostBodyItem' => false]; + return [\Docker\API\Model\PluginsPullPostBodyItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PortBindingNormalizer.php b/src/Normalizer/PortBindingNormalizer.php index c81a4af4..2e67299f 100644 --- a/src/Normalizer/PortBindingNormalizer.php +++ b/src/Normalizer/PortBindingNormalizer.php @@ -22,11 +22,11 @@ class PortBindingNormalizer implements DenormalizerInterface, NormalizerInterfac use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PortBinding'; + return $type === \Docker\API\Model\PortBinding::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PortBinding'; + return is_object($data) && get_class($data) === \Docker\API\Model\PortBinding::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PortBinding' => false]; + return [\Docker\API\Model\PortBinding::class => false]; } } } else { @@ -91,11 +91,11 @@ class PortBindingNormalizer implements DenormalizerInterface, NormalizerInterfac use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PortBinding'; + return $type === \Docker\API\Model\PortBinding::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PortBinding'; + return is_object($data) && get_class($data) === \Docker\API\Model\PortBinding::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PortBinding' => false]; + return [\Docker\API\Model\PortBinding::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PortNormalizer.php b/src/Normalizer/PortNormalizer.php index d443df3a..f593d85e 100644 --- a/src/Normalizer/PortNormalizer.php +++ b/src/Normalizer/PortNormalizer.php @@ -22,11 +22,11 @@ class PortNormalizer implements DenormalizerInterface, NormalizerInterface, Deno use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Port'; + return $type === \Docker\API\Model\Port::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Port'; + return is_object($data) && get_class($data) === \Docker\API\Model\Port::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -95,7 +95,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Port' => false]; + return [\Docker\API\Model\Port::class => false]; } } } else { @@ -107,11 +107,11 @@ class PortNormalizer implements DenormalizerInterface, NormalizerInterface, Deno use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Port'; + return $type === \Docker\API\Model\Port::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Port'; + return is_object($data) && get_class($data) === \Docker\API\Model\Port::class; } /** * @return mixed @@ -186,7 +186,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Port' => false]; + return [\Docker\API\Model\Port::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ProcessConfigNormalizer.php b/src/Normalizer/ProcessConfigNormalizer.php index ed2fb158..d207ac00 100644 --- a/src/Normalizer/ProcessConfigNormalizer.php +++ b/src/Normalizer/ProcessConfigNormalizer.php @@ -22,11 +22,11 @@ class ProcessConfigNormalizer implements DenormalizerInterface, NormalizerInterf use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ProcessConfig'; + return $type === \Docker\API\Model\ProcessConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ProcessConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\ProcessConfig::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -117,7 +117,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ProcessConfig' => false]; + return [\Docker\API\Model\ProcessConfig::class => false]; } } } else { @@ -129,11 +129,11 @@ class ProcessConfigNormalizer implements DenormalizerInterface, NormalizerInterf use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ProcessConfig'; + return $type === \Docker\API\Model\ProcessConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ProcessConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\ProcessConfig::class; } /** * @return mixed @@ -230,7 +230,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ProcessConfig' => false]; + return [\Docker\API\Model\ProcessConfig::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ProgressDetailNormalizer.php b/src/Normalizer/ProgressDetailNormalizer.php index 4bb950d3..4fdbdf5a 100644 --- a/src/Normalizer/ProgressDetailNormalizer.php +++ b/src/Normalizer/ProgressDetailNormalizer.php @@ -22,11 +22,11 @@ class ProgressDetailNormalizer implements DenormalizerInterface, NormalizerInter use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ProgressDetail'; + return $type === \Docker\API\Model\ProgressDetail::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ProgressDetail'; + return is_object($data) && get_class($data) === \Docker\API\Model\ProgressDetail::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ProgressDetail' => false]; + return [\Docker\API\Model\ProgressDetail::class => false]; } } } else { @@ -91,11 +91,11 @@ class ProgressDetailNormalizer implements DenormalizerInterface, NormalizerInter use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ProgressDetail'; + return $type === \Docker\API\Model\ProgressDetail::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ProgressDetail'; + return is_object($data) && get_class($data) === \Docker\API\Model\ProgressDetail::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ProgressDetail' => false]; + return [\Docker\API\Model\ProgressDetail::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/PushImageInfoNormalizer.php b/src/Normalizer/PushImageInfoNormalizer.php index 0f53ce47..9fc5955e 100644 --- a/src/Normalizer/PushImageInfoNormalizer.php +++ b/src/Normalizer/PushImageInfoNormalizer.php @@ -22,11 +22,11 @@ class PushImageInfoNormalizer implements DenormalizerInterface, NormalizerInterf use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PushImageInfo'; + return $type === \Docker\API\Model\PushImageInfo::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PushImageInfo'; + return is_object($data) && get_class($data) === \Docker\API\Model\PushImageInfo::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -62,7 +62,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setProgress(null); } if (\array_key_exists('progressDetail', $data) && $data['progressDetail'] !== null) { - $object->setProgressDetail($this->denormalizer->denormalize($data['progressDetail'], 'Docker\\API\\Model\\ProgressDetail', 'json', $context)); + $object->setProgressDetail($this->denormalizer->denormalize($data['progressDetail'], \Docker\API\Model\ProgressDetail::class, 'json', $context)); unset($data['progressDetail']); } elseif (\array_key_exists('progressDetail', $data) && $data['progressDetail'] === null) { @@ -99,7 +99,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PushImageInfo' => false]; + return [\Docker\API\Model\PushImageInfo::class => false]; } } } else { @@ -111,11 +111,11 @@ class PushImageInfoNormalizer implements DenormalizerInterface, NormalizerInterf use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\PushImageInfo'; + return $type === \Docker\API\Model\PushImageInfo::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\PushImageInfo'; + return is_object($data) && get_class($data) === \Docker\API\Model\PushImageInfo::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setProgress(null); } if (\array_key_exists('progressDetail', $data) && $data['progressDetail'] !== null) { - $object->setProgressDetail($this->denormalizer->denormalize($data['progressDetail'], 'Docker\\API\\Model\\ProgressDetail', 'json', $context)); + $object->setProgressDetail($this->denormalizer->denormalize($data['progressDetail'], \Docker\API\Model\ProgressDetail::class, 'json', $context)); unset($data['progressDetail']); } elseif (\array_key_exists('progressDetail', $data) && $data['progressDetail'] === null) { @@ -194,7 +194,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\PushImageInfo' => false]; + return [\Docker\API\Model\PushImageInfo::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/RegistryServiceConfigNormalizer.php b/src/Normalizer/RegistryServiceConfigNormalizer.php index feac7e04..498994c9 100644 --- a/src/Normalizer/RegistryServiceConfigNormalizer.php +++ b/src/Normalizer/RegistryServiceConfigNormalizer.php @@ -22,11 +22,11 @@ class RegistryServiceConfigNormalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\RegistryServiceConfig'; + return $type === \Docker\API\Model\RegistryServiceConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\RegistryServiceConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\RegistryServiceConfig::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -76,7 +76,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('IndexConfigs', $data) && $data['IndexConfigs'] !== null) { $values_3 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['IndexConfigs'] as $key => $value_3) { - $values_3[$key] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\IndexInfo', 'json', $context); + $values_3[$key] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\IndexInfo::class, 'json', $context); } $object->setIndexConfigs($values_3); unset($data['IndexConfigs']); @@ -149,7 +149,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\RegistryServiceConfig' => false]; + return [\Docker\API\Model\RegistryServiceConfig::class => false]; } } } else { @@ -161,11 +161,11 @@ class RegistryServiceConfigNormalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\RegistryServiceConfig'; + return $type === \Docker\API\Model\RegistryServiceConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\RegistryServiceConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\RegistryServiceConfig::class; } /** * @return mixed @@ -218,7 +218,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('IndexConfigs', $data) && $data['IndexConfigs'] !== null) { $values_3 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['IndexConfigs'] as $key => $value_3) { - $values_3[$key] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\IndexInfo', 'json', $context); + $values_3[$key] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\IndexInfo::class, 'json', $context); } $object->setIndexConfigs($values_3); unset($data['IndexConfigs']); @@ -294,7 +294,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\RegistryServiceConfig' => false]; + return [\Docker\API\Model\RegistryServiceConfig::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ResourceObjectNormalizer.php b/src/Normalizer/ResourceObjectNormalizer.php index c4740807..afc786d4 100644 --- a/src/Normalizer/ResourceObjectNormalizer.php +++ b/src/Normalizer/ResourceObjectNormalizer.php @@ -22,11 +22,11 @@ class ResourceObjectNormalizer implements DenormalizerInterface, NormalizerInter use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ResourceObject'; + return $type === \Docker\API\Model\ResourceObject::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ResourceObject'; + return is_object($data) && get_class($data) === \Docker\API\Model\ResourceObject::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -57,7 +57,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('GenericResources', $data) && $data['GenericResources'] !== null) { $values = []; foreach ($data['GenericResources'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\GenericResourcesItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\GenericResourcesItem::class, 'json', $context); } $object->setGenericResources($values); unset($data['GenericResources']); @@ -97,7 +97,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ResourceObject' => false]; + return [\Docker\API\Model\ResourceObject::class => false]; } } } else { @@ -109,11 +109,11 @@ class ResourceObjectNormalizer implements DenormalizerInterface, NormalizerInter use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ResourceObject'; + return $type === \Docker\API\Model\ResourceObject::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ResourceObject'; + return is_object($data) && get_class($data) === \Docker\API\Model\ResourceObject::class; } /** * @return mixed @@ -147,7 +147,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('GenericResources', $data) && $data['GenericResources'] !== null) { $values = []; foreach ($data['GenericResources'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\GenericResourcesItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\GenericResourcesItem::class, 'json', $context); } $object->setGenericResources($values); unset($data['GenericResources']); @@ -190,7 +190,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ResourceObject' => false]; + return [\Docker\API\Model\ResourceObject::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ResourcesBlkioWeightDeviceItemNormalizer.php b/src/Normalizer/ResourcesBlkioWeightDeviceItemNormalizer.php index 0b222a2c..3b802eac 100644 --- a/src/Normalizer/ResourcesBlkioWeightDeviceItemNormalizer.php +++ b/src/Normalizer/ResourcesBlkioWeightDeviceItemNormalizer.php @@ -22,11 +22,11 @@ class ResourcesBlkioWeightDeviceItemNormalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ResourcesBlkioWeightDeviceItem'; + return $type === \Docker\API\Model\ResourcesBlkioWeightDeviceItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ResourcesBlkioWeightDeviceItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\ResourcesBlkioWeightDeviceItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ResourcesBlkioWeightDeviceItem' => false]; + return [\Docker\API\Model\ResourcesBlkioWeightDeviceItem::class => false]; } } } else { @@ -91,11 +91,11 @@ class ResourcesBlkioWeightDeviceItemNormalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ResourcesBlkioWeightDeviceItem'; + return $type === \Docker\API\Model\ResourcesBlkioWeightDeviceItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ResourcesBlkioWeightDeviceItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\ResourcesBlkioWeightDeviceItem::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ResourcesBlkioWeightDeviceItem' => false]; + return [\Docker\API\Model\ResourcesBlkioWeightDeviceItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ResourcesNormalizer.php b/src/Normalizer/ResourcesNormalizer.php index a5cebe78..6a2d603b 100644 --- a/src/Normalizer/ResourcesNormalizer.php +++ b/src/Normalizer/ResourcesNormalizer.php @@ -22,11 +22,11 @@ class ResourcesNormalizer implements DenormalizerInterface, NormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Resources'; + return $type === \Docker\API\Model\Resources::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Resources'; + return is_object($data) && get_class($data) === \Docker\API\Model\Resources::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -71,7 +71,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('BlkioWeightDevice', $data) && $data['BlkioWeightDevice'] !== null) { $values = []; foreach ($data['BlkioWeightDevice'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\ResourcesBlkioWeightDeviceItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\ResourcesBlkioWeightDeviceItem::class, 'json', $context); } $object->setBlkioWeightDevice($values); unset($data['BlkioWeightDevice']); @@ -82,7 +82,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('BlkioDeviceReadBps', $data) && $data['BlkioDeviceReadBps'] !== null) { $values_1 = []; foreach ($data['BlkioDeviceReadBps'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceReadBps($values_1); unset($data['BlkioDeviceReadBps']); @@ -93,7 +93,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('BlkioDeviceWriteBps', $data) && $data['BlkioDeviceWriteBps'] !== null) { $values_2 = []; foreach ($data['BlkioDeviceWriteBps'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_2[] = $this->denormalizer->denormalize($value_2, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceWriteBps($values_2); unset($data['BlkioDeviceWriteBps']); @@ -104,7 +104,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('BlkioDeviceReadIOps', $data) && $data['BlkioDeviceReadIOps'] !== null) { $values_3 = []; foreach ($data['BlkioDeviceReadIOps'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_3[] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceReadIOps($values_3); unset($data['BlkioDeviceReadIOps']); @@ -115,7 +115,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('BlkioDeviceWriteIOps', $data) && $data['BlkioDeviceWriteIOps'] !== null) { $values_4 = []; foreach ($data['BlkioDeviceWriteIOps'] as $value_4) { - $values_4[] = $this->denormalizer->denormalize($value_4, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_4[] = $this->denormalizer->denormalize($value_4, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceWriteIOps($values_4); unset($data['BlkioDeviceWriteIOps']); @@ -168,7 +168,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Devices', $data) && $data['Devices'] !== null) { $values_5 = []; foreach ($data['Devices'] as $value_5) { - $values_5[] = $this->denormalizer->denormalize($value_5, 'Docker\\API\\Model\\DeviceMapping', 'json', $context); + $values_5[] = $this->denormalizer->denormalize($value_5, \Docker\API\Model\DeviceMapping::class, 'json', $context); } $object->setDevices($values_5); unset($data['Devices']); @@ -246,7 +246,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Ulimits', $data) && $data['Ulimits'] !== null) { $values_7 = []; foreach ($data['Ulimits'] as $value_7) { - $values_7[] = $this->denormalizer->denormalize($value_7, 'Docker\\API\\Model\\ResourcesUlimitsItem', 'json', $context); + $values_7[] = $this->denormalizer->denormalize($value_7, \Docker\API\Model\ResourcesUlimitsItem::class, 'json', $context); } $object->setUlimits($values_7); unset($data['Ulimits']); @@ -423,7 +423,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Resources' => false]; + return [\Docker\API\Model\Resources::class => false]; } } } else { @@ -435,11 +435,11 @@ class ResourcesNormalizer implements DenormalizerInterface, NormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Resources'; + return $type === \Docker\API\Model\Resources::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Resources'; + return is_object($data) && get_class($data) === \Docker\API\Model\Resources::class; } /** * @return mixed @@ -487,7 +487,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('BlkioWeightDevice', $data) && $data['BlkioWeightDevice'] !== null) { $values = []; foreach ($data['BlkioWeightDevice'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\ResourcesBlkioWeightDeviceItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\ResourcesBlkioWeightDeviceItem::class, 'json', $context); } $object->setBlkioWeightDevice($values); unset($data['BlkioWeightDevice']); @@ -498,7 +498,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('BlkioDeviceReadBps', $data) && $data['BlkioDeviceReadBps'] !== null) { $values_1 = []; foreach ($data['BlkioDeviceReadBps'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceReadBps($values_1); unset($data['BlkioDeviceReadBps']); @@ -509,7 +509,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('BlkioDeviceWriteBps', $data) && $data['BlkioDeviceWriteBps'] !== null) { $values_2 = []; foreach ($data['BlkioDeviceWriteBps'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_2[] = $this->denormalizer->denormalize($value_2, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceWriteBps($values_2); unset($data['BlkioDeviceWriteBps']); @@ -520,7 +520,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('BlkioDeviceReadIOps', $data) && $data['BlkioDeviceReadIOps'] !== null) { $values_3 = []; foreach ($data['BlkioDeviceReadIOps'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_3[] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceReadIOps($values_3); unset($data['BlkioDeviceReadIOps']); @@ -531,7 +531,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('BlkioDeviceWriteIOps', $data) && $data['BlkioDeviceWriteIOps'] !== null) { $values_4 = []; foreach ($data['BlkioDeviceWriteIOps'] as $value_4) { - $values_4[] = $this->denormalizer->denormalize($value_4, 'Docker\\API\\Model\\ThrottleDevice', 'json', $context); + $values_4[] = $this->denormalizer->denormalize($value_4, \Docker\API\Model\ThrottleDevice::class, 'json', $context); } $object->setBlkioDeviceWriteIOps($values_4); unset($data['BlkioDeviceWriteIOps']); @@ -584,7 +584,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Devices', $data) && $data['Devices'] !== null) { $values_5 = []; foreach ($data['Devices'] as $value_5) { - $values_5[] = $this->denormalizer->denormalize($value_5, 'Docker\\API\\Model\\DeviceMapping', 'json', $context); + $values_5[] = $this->denormalizer->denormalize($value_5, \Docker\API\Model\DeviceMapping::class, 'json', $context); } $object->setDevices($values_5); unset($data['Devices']); @@ -662,7 +662,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Ulimits', $data) && $data['Ulimits'] !== null) { $values_7 = []; foreach ($data['Ulimits'] as $value_7) { - $values_7[] = $this->denormalizer->denormalize($value_7, 'Docker\\API\\Model\\ResourcesUlimitsItem', 'json', $context); + $values_7[] = $this->denormalizer->denormalize($value_7, \Docker\API\Model\ResourcesUlimitsItem::class, 'json', $context); } $object->setUlimits($values_7); unset($data['Ulimits']); @@ -842,7 +842,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Resources' => false]; + return [\Docker\API\Model\Resources::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ResourcesUlimitsItemNormalizer.php b/src/Normalizer/ResourcesUlimitsItemNormalizer.php index c4c9a8e2..f31300d2 100644 --- a/src/Normalizer/ResourcesUlimitsItemNormalizer.php +++ b/src/Normalizer/ResourcesUlimitsItemNormalizer.php @@ -22,11 +22,11 @@ class ResourcesUlimitsItemNormalizer implements DenormalizerInterface, Normalize use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ResourcesUlimitsItem'; + return $type === \Docker\API\Model\ResourcesUlimitsItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ResourcesUlimitsItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\ResourcesUlimitsItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -89,7 +89,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ResourcesUlimitsItem' => false]; + return [\Docker\API\Model\ResourcesUlimitsItem::class => false]; } } } else { @@ -101,11 +101,11 @@ class ResourcesUlimitsItemNormalizer implements DenormalizerInterface, Normalize use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ResourcesUlimitsItem'; + return $type === \Docker\API\Model\ResourcesUlimitsItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ResourcesUlimitsItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\ResourcesUlimitsItem::class; } /** * @return mixed @@ -174,7 +174,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ResourcesUlimitsItem' => false]; + return [\Docker\API\Model\ResourcesUlimitsItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/RestartPolicyNormalizer.php b/src/Normalizer/RestartPolicyNormalizer.php index 51d844b5..b35934ca 100644 --- a/src/Normalizer/RestartPolicyNormalizer.php +++ b/src/Normalizer/RestartPolicyNormalizer.php @@ -22,11 +22,11 @@ class RestartPolicyNormalizer implements DenormalizerInterface, NormalizerInterf use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\RestartPolicy'; + return $type === \Docker\API\Model\RestartPolicy::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\RestartPolicy'; + return is_object($data) && get_class($data) === \Docker\API\Model\RestartPolicy::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\RestartPolicy' => false]; + return [\Docker\API\Model\RestartPolicy::class => false]; } } } else { @@ -91,11 +91,11 @@ class RestartPolicyNormalizer implements DenormalizerInterface, NormalizerInterf use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\RestartPolicy'; + return $type === \Docker\API\Model\RestartPolicy::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\RestartPolicy'; + return is_object($data) && get_class($data) === \Docker\API\Model\RestartPolicy::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\RestartPolicy' => false]; + return [\Docker\API\Model\RestartPolicy::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/RuntimeNormalizer.php b/src/Normalizer/RuntimeNormalizer.php index b970cfa8..414efacc 100644 --- a/src/Normalizer/RuntimeNormalizer.php +++ b/src/Normalizer/RuntimeNormalizer.php @@ -22,11 +22,11 @@ class RuntimeNormalizer implements DenormalizerInterface, NormalizerInterface, D use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Runtime'; + return $type === \Docker\API\Model\Runtime::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Runtime'; + return is_object($data) && get_class($data) === \Docker\API\Model\Runtime::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -87,7 +87,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Runtime' => false]; + return [\Docker\API\Model\Runtime::class => false]; } } } else { @@ -99,11 +99,11 @@ class RuntimeNormalizer implements DenormalizerInterface, NormalizerInterface, D use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Runtime'; + return $type === \Docker\API\Model\Runtime::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Runtime'; + return is_object($data) && get_class($data) === \Docker\API\Model\Runtime::class; } /** * @return mixed @@ -170,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Runtime' => false]; + return [\Docker\API\Model\Runtime::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SecretNormalizer.php b/src/Normalizer/SecretNormalizer.php index 136eb192..fb8575c8 100644 --- a/src/Normalizer/SecretNormalizer.php +++ b/src/Normalizer/SecretNormalizer.php @@ -22,11 +22,11 @@ class SecretNormalizer implements DenormalizerInterface, NormalizerInterface, De use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Secret'; + return $type === \Docker\API\Model\Secret::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Secret'; + return is_object($data) && get_class($data) === \Docker\API\Model\Secret::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -48,7 +48,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setID(null); } if (\array_key_exists('Version', $data) && $data['Version'] !== null) { - $object->setVersion($this->denormalizer->denormalize($data['Version'], 'Docker\\API\\Model\\ObjectVersion', 'json', $context)); + $object->setVersion($this->denormalizer->denormalize($data['Version'], \Docker\API\Model\ObjectVersion::class, 'json', $context)); unset($data['Version']); } elseif (\array_key_exists('Version', $data) && $data['Version'] === null) { @@ -69,7 +69,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setUpdatedAt(null); } if (\array_key_exists('Spec', $data) && $data['Spec'] !== null) { - $object->setSpec($this->denormalizer->denormalize($data['Spec'], 'Docker\\API\\Model\\SecretSpec', 'json', $context)); + $object->setSpec($this->denormalizer->denormalize($data['Spec'], \Docker\API\Model\SecretSpec::class, 'json', $context)); unset($data['Spec']); } elseif (\array_key_exists('Spec', $data) && $data['Spec'] === null) { @@ -109,7 +109,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Secret' => false]; + return [\Docker\API\Model\Secret::class => false]; } } } else { @@ -121,11 +121,11 @@ class SecretNormalizer implements DenormalizerInterface, NormalizerInterface, De use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Secret'; + return $type === \Docker\API\Model\Secret::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Secret'; + return is_object($data) && get_class($data) === \Docker\API\Model\Secret::class; } /** * @return mixed @@ -150,7 +150,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setID(null); } if (\array_key_exists('Version', $data) && $data['Version'] !== null) { - $object->setVersion($this->denormalizer->denormalize($data['Version'], 'Docker\\API\\Model\\ObjectVersion', 'json', $context)); + $object->setVersion($this->denormalizer->denormalize($data['Version'], \Docker\API\Model\ObjectVersion::class, 'json', $context)); unset($data['Version']); } elseif (\array_key_exists('Version', $data) && $data['Version'] === null) { @@ -171,7 +171,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setUpdatedAt(null); } if (\array_key_exists('Spec', $data) && $data['Spec'] !== null) { - $object->setSpec($this->denormalizer->denormalize($data['Spec'], 'Docker\\API\\Model\\SecretSpec', 'json', $context)); + $object->setSpec($this->denormalizer->denormalize($data['Spec'], \Docker\API\Model\SecretSpec::class, 'json', $context)); unset($data['Spec']); } elseif (\array_key_exists('Spec', $data) && $data['Spec'] === null) { @@ -214,7 +214,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Secret' => false]; + return [\Docker\API\Model\Secret::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SecretSpecNormalizer.php b/src/Normalizer/SecretSpecNormalizer.php index 7d63e878..c4e5fd83 100644 --- a/src/Normalizer/SecretSpecNormalizer.php +++ b/src/Normalizer/SecretSpecNormalizer.php @@ -22,11 +22,11 @@ class SecretSpecNormalizer implements DenormalizerInterface, NormalizerInterface use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SecretSpec'; + return $type === \Docker\API\Model\SecretSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SecretSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\SecretSpec::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -66,7 +66,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setData(null); } if (\array_key_exists('Driver', $data) && $data['Driver'] !== null) { - $object->setDriver($this->denormalizer->denormalize($data['Driver'], 'Docker\\API\\Model\\Driver', 'json', $context)); + $object->setDriver($this->denormalizer->denormalize($data['Driver'], \Docker\API\Model\Driver::class, 'json', $context)); unset($data['Driver']); } elseif (\array_key_exists('Driver', $data) && $data['Driver'] === null) { @@ -107,7 +107,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SecretSpec' => false]; + return [\Docker\API\Model\SecretSpec::class => false]; } } } else { @@ -119,11 +119,11 @@ class SecretSpecNormalizer implements DenormalizerInterface, NormalizerInterface use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SecretSpec'; + return $type === \Docker\API\Model\SecretSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SecretSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\SecretSpec::class; } /** * @return mixed @@ -166,7 +166,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setData(null); } if (\array_key_exists('Driver', $data) && $data['Driver'] !== null) { - $object->setDriver($this->denormalizer->denormalize($data['Driver'], 'Docker\\API\\Model\\Driver', 'json', $context)); + $object->setDriver($this->denormalizer->denormalize($data['Driver'], \Docker\API\Model\Driver::class, 'json', $context)); unset($data['Driver']); } elseif (\array_key_exists('Driver', $data) && $data['Driver'] === null) { @@ -210,7 +210,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SecretSpec' => false]; + return [\Docker\API\Model\SecretSpec::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SecretsCreatePostBodyNormalizer.php b/src/Normalizer/SecretsCreatePostBodyNormalizer.php index fb6db189..0ab4273f 100644 --- a/src/Normalizer/SecretsCreatePostBodyNormalizer.php +++ b/src/Normalizer/SecretsCreatePostBodyNormalizer.php @@ -22,11 +22,11 @@ class SecretsCreatePostBodyNormalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SecretsCreatePostBody'; + return $type === \Docker\API\Model\SecretsCreatePostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SecretsCreatePostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\SecretsCreatePostBody::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -66,7 +66,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setData(null); } if (\array_key_exists('Driver', $data) && $data['Driver'] !== null) { - $object->setDriver($this->denormalizer->denormalize($data['Driver'], 'Docker\\API\\Model\\Driver', 'json', $context)); + $object->setDriver($this->denormalizer->denormalize($data['Driver'], \Docker\API\Model\Driver::class, 'json', $context)); unset($data['Driver']); } elseif (\array_key_exists('Driver', $data) && $data['Driver'] === null) { @@ -107,7 +107,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SecretsCreatePostBody' => false]; + return [\Docker\API\Model\SecretsCreatePostBody::class => false]; } } } else { @@ -119,11 +119,11 @@ class SecretsCreatePostBodyNormalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SecretsCreatePostBody'; + return $type === \Docker\API\Model\SecretsCreatePostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SecretsCreatePostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\SecretsCreatePostBody::class; } /** * @return mixed @@ -166,7 +166,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setData(null); } if (\array_key_exists('Driver', $data) && $data['Driver'] !== null) { - $object->setDriver($this->denormalizer->denormalize($data['Driver'], 'Docker\\API\\Model\\Driver', 'json', $context)); + $object->setDriver($this->denormalizer->denormalize($data['Driver'], \Docker\API\Model\Driver::class, 'json', $context)); unset($data['Driver']); } elseif (\array_key_exists('Driver', $data) && $data['Driver'] === null) { @@ -210,7 +210,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SecretsCreatePostBody' => false]; + return [\Docker\API\Model\SecretsCreatePostBody::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ServiceEndpointNormalizer.php b/src/Normalizer/ServiceEndpointNormalizer.php index 27bdc3c4..bf916bf2 100644 --- a/src/Normalizer/ServiceEndpointNormalizer.php +++ b/src/Normalizer/ServiceEndpointNormalizer.php @@ -22,11 +22,11 @@ class ServiceEndpointNormalizer implements DenormalizerInterface, NormalizerInte use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceEndpoint'; + return $type === \Docker\API\Model\ServiceEndpoint::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceEndpoint'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceEndpoint::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -41,7 +41,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar return $object; } if (\array_key_exists('Spec', $data) && $data['Spec'] !== null) { - $object->setSpec($this->denormalizer->denormalize($data['Spec'], 'Docker\\API\\Model\\EndpointSpec', 'json', $context)); + $object->setSpec($this->denormalizer->denormalize($data['Spec'], \Docker\API\Model\EndpointSpec::class, 'json', $context)); unset($data['Spec']); } elseif (\array_key_exists('Spec', $data) && $data['Spec'] === null) { @@ -50,7 +50,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Ports', $data) && $data['Ports'] !== null) { $values = []; foreach ($data['Ports'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\EndpointPortConfig', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\EndpointPortConfig::class, 'json', $context); } $object->setPorts($values); unset($data['Ports']); @@ -61,7 +61,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('VirtualIPs', $data) && $data['VirtualIPs'] !== null) { $values_1 = []; foreach ($data['VirtualIPs'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\ServiceEndpointVirtualIPsItem', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\ServiceEndpointVirtualIPsItem::class, 'json', $context); } $object->setVirtualIPs($values_1); unset($data['VirtualIPs']); @@ -105,7 +105,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceEndpoint' => false]; + return [\Docker\API\Model\ServiceEndpoint::class => false]; } } } else { @@ -117,11 +117,11 @@ class ServiceEndpointNormalizer implements DenormalizerInterface, NormalizerInte use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceEndpoint'; + return $type === \Docker\API\Model\ServiceEndpoint::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceEndpoint'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceEndpoint::class; } /** * @return mixed @@ -139,7 +139,7 @@ public function denormalize($data, $type, $format = null, array $context = []) return $object; } if (\array_key_exists('Spec', $data) && $data['Spec'] !== null) { - $object->setSpec($this->denormalizer->denormalize($data['Spec'], 'Docker\\API\\Model\\EndpointSpec', 'json', $context)); + $object->setSpec($this->denormalizer->denormalize($data['Spec'], \Docker\API\Model\EndpointSpec::class, 'json', $context)); unset($data['Spec']); } elseif (\array_key_exists('Spec', $data) && $data['Spec'] === null) { @@ -148,7 +148,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Ports', $data) && $data['Ports'] !== null) { $values = []; foreach ($data['Ports'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\EndpointPortConfig', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\EndpointPortConfig::class, 'json', $context); } $object->setPorts($values); unset($data['Ports']); @@ -159,7 +159,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('VirtualIPs', $data) && $data['VirtualIPs'] !== null) { $values_1 = []; foreach ($data['VirtualIPs'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\ServiceEndpointVirtualIPsItem', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\ServiceEndpointVirtualIPsItem::class, 'json', $context); } $object->setVirtualIPs($values_1); unset($data['VirtualIPs']); @@ -206,7 +206,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceEndpoint' => false]; + return [\Docker\API\Model\ServiceEndpoint::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ServiceEndpointVirtualIPsItemNormalizer.php b/src/Normalizer/ServiceEndpointVirtualIPsItemNormalizer.php index d4899876..db4f71c8 100644 --- a/src/Normalizer/ServiceEndpointVirtualIPsItemNormalizer.php +++ b/src/Normalizer/ServiceEndpointVirtualIPsItemNormalizer.php @@ -22,11 +22,11 @@ class ServiceEndpointVirtualIPsItemNormalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceEndpointVirtualIPsItem'; + return $type === \Docker\API\Model\ServiceEndpointVirtualIPsItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceEndpointVirtualIPsItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceEndpointVirtualIPsItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceEndpointVirtualIPsItem' => false]; + return [\Docker\API\Model\ServiceEndpointVirtualIPsItem::class => false]; } } } else { @@ -91,11 +91,11 @@ class ServiceEndpointVirtualIPsItemNormalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceEndpointVirtualIPsItem'; + return $type === \Docker\API\Model\ServiceEndpointVirtualIPsItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceEndpointVirtualIPsItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceEndpointVirtualIPsItem::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceEndpointVirtualIPsItem' => false]; + return [\Docker\API\Model\ServiceEndpointVirtualIPsItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ServiceNormalizer.php b/src/Normalizer/ServiceNormalizer.php index 9a381e28..672088db 100644 --- a/src/Normalizer/ServiceNormalizer.php +++ b/src/Normalizer/ServiceNormalizer.php @@ -22,11 +22,11 @@ class ServiceNormalizer implements DenormalizerInterface, NormalizerInterface, D use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Service'; + return $type === \Docker\API\Model\Service::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Service'; + return is_object($data) && get_class($data) === \Docker\API\Model\Service::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -48,7 +48,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setID(null); } if (\array_key_exists('Version', $data) && $data['Version'] !== null) { - $object->setVersion($this->denormalizer->denormalize($data['Version'], 'Docker\\API\\Model\\ObjectVersion', 'json', $context)); + $object->setVersion($this->denormalizer->denormalize($data['Version'], \Docker\API\Model\ObjectVersion::class, 'json', $context)); unset($data['Version']); } elseif (\array_key_exists('Version', $data) && $data['Version'] === null) { @@ -69,21 +69,21 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setUpdatedAt(null); } if (\array_key_exists('Spec', $data) && $data['Spec'] !== null) { - $object->setSpec($this->denormalizer->denormalize($data['Spec'], 'Docker\\API\\Model\\ServiceSpec', 'json', $context)); + $object->setSpec($this->denormalizer->denormalize($data['Spec'], \Docker\API\Model\ServiceSpec::class, 'json', $context)); unset($data['Spec']); } elseif (\array_key_exists('Spec', $data) && $data['Spec'] === null) { $object->setSpec(null); } if (\array_key_exists('Endpoint', $data) && $data['Endpoint'] !== null) { - $object->setEndpoint($this->denormalizer->denormalize($data['Endpoint'], 'Docker\\API\\Model\\ServiceEndpoint', 'json', $context)); + $object->setEndpoint($this->denormalizer->denormalize($data['Endpoint'], \Docker\API\Model\ServiceEndpoint::class, 'json', $context)); unset($data['Endpoint']); } elseif (\array_key_exists('Endpoint', $data) && $data['Endpoint'] === null) { $object->setEndpoint(null); } if (\array_key_exists('UpdateStatus', $data) && $data['UpdateStatus'] !== null) { - $object->setUpdateStatus($this->denormalizer->denormalize($data['UpdateStatus'], 'Docker\\API\\Model\\ServiceUpdateStatus', 'json', $context)); + $object->setUpdateStatus($this->denormalizer->denormalize($data['UpdateStatus'], \Docker\API\Model\ServiceUpdateStatus::class, 'json', $context)); unset($data['UpdateStatus']); } elseif (\array_key_exists('UpdateStatus', $data) && $data['UpdateStatus'] === null) { @@ -129,7 +129,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Service' => false]; + return [\Docker\API\Model\Service::class => false]; } } } else { @@ -141,11 +141,11 @@ class ServiceNormalizer implements DenormalizerInterface, NormalizerInterface, D use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Service'; + return $type === \Docker\API\Model\Service::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Service'; + return is_object($data) && get_class($data) === \Docker\API\Model\Service::class; } /** * @return mixed @@ -170,7 +170,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setID(null); } if (\array_key_exists('Version', $data) && $data['Version'] !== null) { - $object->setVersion($this->denormalizer->denormalize($data['Version'], 'Docker\\API\\Model\\ObjectVersion', 'json', $context)); + $object->setVersion($this->denormalizer->denormalize($data['Version'], \Docker\API\Model\ObjectVersion::class, 'json', $context)); unset($data['Version']); } elseif (\array_key_exists('Version', $data) && $data['Version'] === null) { @@ -191,21 +191,21 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setUpdatedAt(null); } if (\array_key_exists('Spec', $data) && $data['Spec'] !== null) { - $object->setSpec($this->denormalizer->denormalize($data['Spec'], 'Docker\\API\\Model\\ServiceSpec', 'json', $context)); + $object->setSpec($this->denormalizer->denormalize($data['Spec'], \Docker\API\Model\ServiceSpec::class, 'json', $context)); unset($data['Spec']); } elseif (\array_key_exists('Spec', $data) && $data['Spec'] === null) { $object->setSpec(null); } if (\array_key_exists('Endpoint', $data) && $data['Endpoint'] !== null) { - $object->setEndpoint($this->denormalizer->denormalize($data['Endpoint'], 'Docker\\API\\Model\\ServiceEndpoint', 'json', $context)); + $object->setEndpoint($this->denormalizer->denormalize($data['Endpoint'], \Docker\API\Model\ServiceEndpoint::class, 'json', $context)); unset($data['Endpoint']); } elseif (\array_key_exists('Endpoint', $data) && $data['Endpoint'] === null) { $object->setEndpoint(null); } if (\array_key_exists('UpdateStatus', $data) && $data['UpdateStatus'] !== null) { - $object->setUpdateStatus($this->denormalizer->denormalize($data['UpdateStatus'], 'Docker\\API\\Model\\ServiceUpdateStatus', 'json', $context)); + $object->setUpdateStatus($this->denormalizer->denormalize($data['UpdateStatus'], \Docker\API\Model\ServiceUpdateStatus::class, 'json', $context)); unset($data['UpdateStatus']); } elseif (\array_key_exists('UpdateStatus', $data) && $data['UpdateStatus'] === null) { @@ -254,7 +254,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Service' => false]; + return [\Docker\API\Model\Service::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ServiceSpecModeGlobalNormalizer.php b/src/Normalizer/ServiceSpecModeGlobalNormalizer.php index e175a344..a2c6bec3 100644 --- a/src/Normalizer/ServiceSpecModeGlobalNormalizer.php +++ b/src/Normalizer/ServiceSpecModeGlobalNormalizer.php @@ -22,11 +22,11 @@ class ServiceSpecModeGlobalNormalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceSpecModeGlobal'; + return $type === \Docker\API\Model\ServiceSpecModeGlobal::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceSpecModeGlobal'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceSpecModeGlobal::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -59,7 +59,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceSpecModeGlobal' => false]; + return [\Docker\API\Model\ServiceSpecModeGlobal::class => false]; } } } else { @@ -71,11 +71,11 @@ class ServiceSpecModeGlobalNormalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceSpecModeGlobal'; + return $type === \Docker\API\Model\ServiceSpecModeGlobal::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceSpecModeGlobal'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceSpecModeGlobal::class; } /** * @return mixed @@ -114,7 +114,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceSpecModeGlobal' => false]; + return [\Docker\API\Model\ServiceSpecModeGlobal::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ServiceSpecModeNormalizer.php b/src/Normalizer/ServiceSpecModeNormalizer.php index 0c4a515d..242fcfa3 100644 --- a/src/Normalizer/ServiceSpecModeNormalizer.php +++ b/src/Normalizer/ServiceSpecModeNormalizer.php @@ -22,11 +22,11 @@ class ServiceSpecModeNormalizer implements DenormalizerInterface, NormalizerInte use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceSpecMode'; + return $type === \Docker\API\Model\ServiceSpecMode::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceSpecMode'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceSpecMode::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -41,14 +41,14 @@ public function denormalize(mixed $data, string $type, string $format = null, ar return $object; } if (\array_key_exists('Replicated', $data) && $data['Replicated'] !== null) { - $object->setReplicated($this->denormalizer->denormalize($data['Replicated'], 'Docker\\API\\Model\\ServiceSpecModeReplicated', 'json', $context)); + $object->setReplicated($this->denormalizer->denormalize($data['Replicated'], \Docker\API\Model\ServiceSpecModeReplicated::class, 'json', $context)); unset($data['Replicated']); } elseif (\array_key_exists('Replicated', $data) && $data['Replicated'] === null) { $object->setReplicated(null); } if (\array_key_exists('Global', $data) && $data['Global'] !== null) { - $object->setGlobal($this->denormalizer->denormalize($data['Global'], 'Docker\\API\\Model\\ServiceSpecModeGlobal', 'json', $context)); + $object->setGlobal($this->denormalizer->denormalize($data['Global'], \Docker\API\Model\ServiceSpecModeGlobal::class, 'json', $context)); unset($data['Global']); } elseif (\array_key_exists('Global', $data) && $data['Global'] === null) { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceSpecMode' => false]; + return [\Docker\API\Model\ServiceSpecMode::class => false]; } } } else { @@ -91,11 +91,11 @@ class ServiceSpecModeNormalizer implements DenormalizerInterface, NormalizerInte use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceSpecMode'; + return $type === \Docker\API\Model\ServiceSpecMode::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceSpecMode'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceSpecMode::class; } /** * @return mixed @@ -113,14 +113,14 @@ public function denormalize($data, $type, $format = null, array $context = []) return $object; } if (\array_key_exists('Replicated', $data) && $data['Replicated'] !== null) { - $object->setReplicated($this->denormalizer->denormalize($data['Replicated'], 'Docker\\API\\Model\\ServiceSpecModeReplicated', 'json', $context)); + $object->setReplicated($this->denormalizer->denormalize($data['Replicated'], \Docker\API\Model\ServiceSpecModeReplicated::class, 'json', $context)); unset($data['Replicated']); } elseif (\array_key_exists('Replicated', $data) && $data['Replicated'] === null) { $object->setReplicated(null); } if (\array_key_exists('Global', $data) && $data['Global'] !== null) { - $object->setGlobal($this->denormalizer->denormalize($data['Global'], 'Docker\\API\\Model\\ServiceSpecModeGlobal', 'json', $context)); + $object->setGlobal($this->denormalizer->denormalize($data['Global'], \Docker\API\Model\ServiceSpecModeGlobal::class, 'json', $context)); unset($data['Global']); } elseif (\array_key_exists('Global', $data) && $data['Global'] === null) { @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceSpecMode' => false]; + return [\Docker\API\Model\ServiceSpecMode::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ServiceSpecModeReplicatedNormalizer.php b/src/Normalizer/ServiceSpecModeReplicatedNormalizer.php index a9659724..cd35850b 100644 --- a/src/Normalizer/ServiceSpecModeReplicatedNormalizer.php +++ b/src/Normalizer/ServiceSpecModeReplicatedNormalizer.php @@ -22,11 +22,11 @@ class ServiceSpecModeReplicatedNormalizer implements DenormalizerInterface, Norm use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceSpecModeReplicated'; + return $type === \Docker\API\Model\ServiceSpecModeReplicated::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceSpecModeReplicated'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceSpecModeReplicated::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceSpecModeReplicated' => false]; + return [\Docker\API\Model\ServiceSpecModeReplicated::class => false]; } } } else { @@ -81,11 +81,11 @@ class ServiceSpecModeReplicatedNormalizer implements DenormalizerInterface, Norm use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceSpecModeReplicated'; + return $type === \Docker\API\Model\ServiceSpecModeReplicated::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceSpecModeReplicated'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceSpecModeReplicated::class; } /** * @return mixed @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceSpecModeReplicated' => false]; + return [\Docker\API\Model\ServiceSpecModeReplicated::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ServiceSpecNetworksItemNormalizer.php b/src/Normalizer/ServiceSpecNetworksItemNormalizer.php index ebeed23d..db815507 100644 --- a/src/Normalizer/ServiceSpecNetworksItemNormalizer.php +++ b/src/Normalizer/ServiceSpecNetworksItemNormalizer.php @@ -22,11 +22,11 @@ class ServiceSpecNetworksItemNormalizer implements DenormalizerInterface, Normal use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceSpecNetworksItem'; + return $type === \Docker\API\Model\ServiceSpecNetworksItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceSpecNetworksItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceSpecNetworksItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -87,7 +87,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceSpecNetworksItem' => false]; + return [\Docker\API\Model\ServiceSpecNetworksItem::class => false]; } } } else { @@ -99,11 +99,11 @@ class ServiceSpecNetworksItemNormalizer implements DenormalizerInterface, Normal use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceSpecNetworksItem'; + return $type === \Docker\API\Model\ServiceSpecNetworksItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceSpecNetworksItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceSpecNetworksItem::class; } /** * @return mixed @@ -170,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceSpecNetworksItem' => false]; + return [\Docker\API\Model\ServiceSpecNetworksItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ServiceSpecNormalizer.php b/src/Normalizer/ServiceSpecNormalizer.php index 6fab441f..39f3be2d 100644 --- a/src/Normalizer/ServiceSpecNormalizer.php +++ b/src/Normalizer/ServiceSpecNormalizer.php @@ -22,11 +22,11 @@ class ServiceSpecNormalizer implements DenormalizerInterface, NormalizerInterfac use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceSpec'; + return $type === \Docker\API\Model\ServiceSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceSpec::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -59,28 +59,28 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setLabels(null); } if (\array_key_exists('TaskTemplate', $data) && $data['TaskTemplate'] !== null) { - $object->setTaskTemplate($this->denormalizer->denormalize($data['TaskTemplate'], 'Docker\\API\\Model\\TaskSpec', 'json', $context)); + $object->setTaskTemplate($this->denormalizer->denormalize($data['TaskTemplate'], \Docker\API\Model\TaskSpec::class, 'json', $context)); unset($data['TaskTemplate']); } elseif (\array_key_exists('TaskTemplate', $data) && $data['TaskTemplate'] === null) { $object->setTaskTemplate(null); } if (\array_key_exists('Mode', $data) && $data['Mode'] !== null) { - $object->setMode($this->denormalizer->denormalize($data['Mode'], 'Docker\\API\\Model\\ServiceSpecMode', 'json', $context)); + $object->setMode($this->denormalizer->denormalize($data['Mode'], \Docker\API\Model\ServiceSpecMode::class, 'json', $context)); unset($data['Mode']); } elseif (\array_key_exists('Mode', $data) && $data['Mode'] === null) { $object->setMode(null); } if (\array_key_exists('UpdateConfig', $data) && $data['UpdateConfig'] !== null) { - $object->setUpdateConfig($this->denormalizer->denormalize($data['UpdateConfig'], 'Docker\\API\\Model\\ServiceSpecUpdateConfig', 'json', $context)); + $object->setUpdateConfig($this->denormalizer->denormalize($data['UpdateConfig'], \Docker\API\Model\ServiceSpecUpdateConfig::class, 'json', $context)); unset($data['UpdateConfig']); } elseif (\array_key_exists('UpdateConfig', $data) && $data['UpdateConfig'] === null) { $object->setUpdateConfig(null); } if (\array_key_exists('RollbackConfig', $data) && $data['RollbackConfig'] !== null) { - $object->setRollbackConfig($this->denormalizer->denormalize($data['RollbackConfig'], 'Docker\\API\\Model\\ServiceSpecRollbackConfig', 'json', $context)); + $object->setRollbackConfig($this->denormalizer->denormalize($data['RollbackConfig'], \Docker\API\Model\ServiceSpecRollbackConfig::class, 'json', $context)); unset($data['RollbackConfig']); } elseif (\array_key_exists('RollbackConfig', $data) && $data['RollbackConfig'] === null) { @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Networks', $data) && $data['Networks'] !== null) { $values_1 = []; foreach ($data['Networks'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\ServiceSpecNetworksItem', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\ServiceSpecNetworksItem::class, 'json', $context); } $object->setNetworks($values_1); unset($data['Networks']); @@ -98,7 +98,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setNetworks(null); } if (\array_key_exists('EndpointSpec', $data) && $data['EndpointSpec'] !== null) { - $object->setEndpointSpec($this->denormalizer->denormalize($data['EndpointSpec'], 'Docker\\API\\Model\\EndpointSpec', 'json', $context)); + $object->setEndpointSpec($this->denormalizer->denormalize($data['EndpointSpec'], \Docker\API\Model\EndpointSpec::class, 'json', $context)); unset($data['EndpointSpec']); } elseif (\array_key_exists('EndpointSpec', $data) && $data['EndpointSpec'] === null) { @@ -155,7 +155,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceSpec' => false]; + return [\Docker\API\Model\ServiceSpec::class => false]; } } } else { @@ -167,11 +167,11 @@ class ServiceSpecNormalizer implements DenormalizerInterface, NormalizerInterfac use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceSpec'; + return $type === \Docker\API\Model\ServiceSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceSpec::class; } /** * @return mixed @@ -207,28 +207,28 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setLabels(null); } if (\array_key_exists('TaskTemplate', $data) && $data['TaskTemplate'] !== null) { - $object->setTaskTemplate($this->denormalizer->denormalize($data['TaskTemplate'], 'Docker\\API\\Model\\TaskSpec', 'json', $context)); + $object->setTaskTemplate($this->denormalizer->denormalize($data['TaskTemplate'], \Docker\API\Model\TaskSpec::class, 'json', $context)); unset($data['TaskTemplate']); } elseif (\array_key_exists('TaskTemplate', $data) && $data['TaskTemplate'] === null) { $object->setTaskTemplate(null); } if (\array_key_exists('Mode', $data) && $data['Mode'] !== null) { - $object->setMode($this->denormalizer->denormalize($data['Mode'], 'Docker\\API\\Model\\ServiceSpecMode', 'json', $context)); + $object->setMode($this->denormalizer->denormalize($data['Mode'], \Docker\API\Model\ServiceSpecMode::class, 'json', $context)); unset($data['Mode']); } elseif (\array_key_exists('Mode', $data) && $data['Mode'] === null) { $object->setMode(null); } if (\array_key_exists('UpdateConfig', $data) && $data['UpdateConfig'] !== null) { - $object->setUpdateConfig($this->denormalizer->denormalize($data['UpdateConfig'], 'Docker\\API\\Model\\ServiceSpecUpdateConfig', 'json', $context)); + $object->setUpdateConfig($this->denormalizer->denormalize($data['UpdateConfig'], \Docker\API\Model\ServiceSpecUpdateConfig::class, 'json', $context)); unset($data['UpdateConfig']); } elseif (\array_key_exists('UpdateConfig', $data) && $data['UpdateConfig'] === null) { $object->setUpdateConfig(null); } if (\array_key_exists('RollbackConfig', $data) && $data['RollbackConfig'] !== null) { - $object->setRollbackConfig($this->denormalizer->denormalize($data['RollbackConfig'], 'Docker\\API\\Model\\ServiceSpecRollbackConfig', 'json', $context)); + $object->setRollbackConfig($this->denormalizer->denormalize($data['RollbackConfig'], \Docker\API\Model\ServiceSpecRollbackConfig::class, 'json', $context)); unset($data['RollbackConfig']); } elseif (\array_key_exists('RollbackConfig', $data) && $data['RollbackConfig'] === null) { @@ -237,7 +237,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Networks', $data) && $data['Networks'] !== null) { $values_1 = []; foreach ($data['Networks'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\ServiceSpecNetworksItem', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\ServiceSpecNetworksItem::class, 'json', $context); } $object->setNetworks($values_1); unset($data['Networks']); @@ -246,7 +246,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setNetworks(null); } if (\array_key_exists('EndpointSpec', $data) && $data['EndpointSpec'] !== null) { - $object->setEndpointSpec($this->denormalizer->denormalize($data['EndpointSpec'], 'Docker\\API\\Model\\EndpointSpec', 'json', $context)); + $object->setEndpointSpec($this->denormalizer->denormalize($data['EndpointSpec'], \Docker\API\Model\EndpointSpec::class, 'json', $context)); unset($data['EndpointSpec']); } elseif (\array_key_exists('EndpointSpec', $data) && $data['EndpointSpec'] === null) { @@ -306,7 +306,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceSpec' => false]; + return [\Docker\API\Model\ServiceSpec::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ServiceSpecRollbackConfigNormalizer.php b/src/Normalizer/ServiceSpecRollbackConfigNormalizer.php index 39a7ecbb..cf5c5b26 100644 --- a/src/Normalizer/ServiceSpecRollbackConfigNormalizer.php +++ b/src/Normalizer/ServiceSpecRollbackConfigNormalizer.php @@ -22,11 +22,11 @@ class ServiceSpecRollbackConfigNormalizer implements DenormalizerInterface, Norm use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceSpecRollbackConfig'; + return $type === \Docker\API\Model\ServiceSpecRollbackConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceSpecRollbackConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceSpecRollbackConfig::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -122,7 +122,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceSpecRollbackConfig' => false]; + return [\Docker\API\Model\ServiceSpecRollbackConfig::class => false]; } } } else { @@ -134,11 +134,11 @@ class ServiceSpecRollbackConfigNormalizer implements DenormalizerInterface, Norm use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceSpecRollbackConfig'; + return $type === \Docker\API\Model\ServiceSpecRollbackConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceSpecRollbackConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceSpecRollbackConfig::class; } /** * @return mixed @@ -240,7 +240,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceSpecRollbackConfig' => false]; + return [\Docker\API\Model\ServiceSpecRollbackConfig::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ServiceSpecUpdateConfigNormalizer.php b/src/Normalizer/ServiceSpecUpdateConfigNormalizer.php index da2925ab..e71d8adc 100644 --- a/src/Normalizer/ServiceSpecUpdateConfigNormalizer.php +++ b/src/Normalizer/ServiceSpecUpdateConfigNormalizer.php @@ -22,11 +22,11 @@ class ServiceSpecUpdateConfigNormalizer implements DenormalizerInterface, Normal use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceSpecUpdateConfig'; + return $type === \Docker\API\Model\ServiceSpecUpdateConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceSpecUpdateConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceSpecUpdateConfig::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -122,7 +122,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceSpecUpdateConfig' => false]; + return [\Docker\API\Model\ServiceSpecUpdateConfig::class => false]; } } } else { @@ -134,11 +134,11 @@ class ServiceSpecUpdateConfigNormalizer implements DenormalizerInterface, Normal use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceSpecUpdateConfig'; + return $type === \Docker\API\Model\ServiceSpecUpdateConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceSpecUpdateConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceSpecUpdateConfig::class; } /** * @return mixed @@ -240,7 +240,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceSpecUpdateConfig' => false]; + return [\Docker\API\Model\ServiceSpecUpdateConfig::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ServiceUpdateResponseNormalizer.php b/src/Normalizer/ServiceUpdateResponseNormalizer.php index dac336ee..6cc3d599 100644 --- a/src/Normalizer/ServiceUpdateResponseNormalizer.php +++ b/src/Normalizer/ServiceUpdateResponseNormalizer.php @@ -22,11 +22,11 @@ class ServiceUpdateResponseNormalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceUpdateResponse'; + return $type === \Docker\API\Model\ServiceUpdateResponse::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceUpdateResponse'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceUpdateResponse::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -77,7 +77,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceUpdateResponse' => false]; + return [\Docker\API\Model\ServiceUpdateResponse::class => false]; } } } else { @@ -89,11 +89,11 @@ class ServiceUpdateResponseNormalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceUpdateResponse'; + return $type === \Docker\API\Model\ServiceUpdateResponse::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceUpdateResponse'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceUpdateResponse::class; } /** * @return mixed @@ -150,7 +150,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceUpdateResponse' => false]; + return [\Docker\API\Model\ServiceUpdateResponse::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ServiceUpdateStatusNormalizer.php b/src/Normalizer/ServiceUpdateStatusNormalizer.php index c4023624..f6890346 100644 --- a/src/Normalizer/ServiceUpdateStatusNormalizer.php +++ b/src/Normalizer/ServiceUpdateStatusNormalizer.php @@ -22,11 +22,11 @@ class ServiceUpdateStatusNormalizer implements DenormalizerInterface, Normalizer use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceUpdateStatus'; + return $type === \Docker\API\Model\ServiceUpdateStatus::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceUpdateStatus'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceUpdateStatus::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -99,7 +99,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceUpdateStatus' => false]; + return [\Docker\API\Model\ServiceUpdateStatus::class => false]; } } } else { @@ -111,11 +111,11 @@ class ServiceUpdateStatusNormalizer implements DenormalizerInterface, Normalizer use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServiceUpdateStatus'; + return $type === \Docker\API\Model\ServiceUpdateStatus::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServiceUpdateStatus'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServiceUpdateStatus::class; } /** * @return mixed @@ -194,7 +194,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServiceUpdateStatus' => false]; + return [\Docker\API\Model\ServiceUpdateStatus::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ServicesCreatePostBodyNormalizer.php b/src/Normalizer/ServicesCreatePostBodyNormalizer.php index dc1a160f..9ca31085 100644 --- a/src/Normalizer/ServicesCreatePostBodyNormalizer.php +++ b/src/Normalizer/ServicesCreatePostBodyNormalizer.php @@ -22,11 +22,11 @@ class ServicesCreatePostBodyNormalizer implements DenormalizerInterface, Normali use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServicesCreatePostBody'; + return $type === \Docker\API\Model\ServicesCreatePostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServicesCreatePostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServicesCreatePostBody::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -59,28 +59,28 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setLabels(null); } if (\array_key_exists('TaskTemplate', $data) && $data['TaskTemplate'] !== null) { - $object->setTaskTemplate($this->denormalizer->denormalize($data['TaskTemplate'], 'Docker\\API\\Model\\TaskSpec', 'json', $context)); + $object->setTaskTemplate($this->denormalizer->denormalize($data['TaskTemplate'], \Docker\API\Model\TaskSpec::class, 'json', $context)); unset($data['TaskTemplate']); } elseif (\array_key_exists('TaskTemplate', $data) && $data['TaskTemplate'] === null) { $object->setTaskTemplate(null); } if (\array_key_exists('Mode', $data) && $data['Mode'] !== null) { - $object->setMode($this->denormalizer->denormalize($data['Mode'], 'Docker\\API\\Model\\ServiceSpecMode', 'json', $context)); + $object->setMode($this->denormalizer->denormalize($data['Mode'], \Docker\API\Model\ServiceSpecMode::class, 'json', $context)); unset($data['Mode']); } elseif (\array_key_exists('Mode', $data) && $data['Mode'] === null) { $object->setMode(null); } if (\array_key_exists('UpdateConfig', $data) && $data['UpdateConfig'] !== null) { - $object->setUpdateConfig($this->denormalizer->denormalize($data['UpdateConfig'], 'Docker\\API\\Model\\ServiceSpecUpdateConfig', 'json', $context)); + $object->setUpdateConfig($this->denormalizer->denormalize($data['UpdateConfig'], \Docker\API\Model\ServiceSpecUpdateConfig::class, 'json', $context)); unset($data['UpdateConfig']); } elseif (\array_key_exists('UpdateConfig', $data) && $data['UpdateConfig'] === null) { $object->setUpdateConfig(null); } if (\array_key_exists('RollbackConfig', $data) && $data['RollbackConfig'] !== null) { - $object->setRollbackConfig($this->denormalizer->denormalize($data['RollbackConfig'], 'Docker\\API\\Model\\ServiceSpecRollbackConfig', 'json', $context)); + $object->setRollbackConfig($this->denormalizer->denormalize($data['RollbackConfig'], \Docker\API\Model\ServiceSpecRollbackConfig::class, 'json', $context)); unset($data['RollbackConfig']); } elseif (\array_key_exists('RollbackConfig', $data) && $data['RollbackConfig'] === null) { @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Networks', $data) && $data['Networks'] !== null) { $values_1 = []; foreach ($data['Networks'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\ServiceSpecNetworksItem', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\ServiceSpecNetworksItem::class, 'json', $context); } $object->setNetworks($values_1); unset($data['Networks']); @@ -98,7 +98,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setNetworks(null); } if (\array_key_exists('EndpointSpec', $data) && $data['EndpointSpec'] !== null) { - $object->setEndpointSpec($this->denormalizer->denormalize($data['EndpointSpec'], 'Docker\\API\\Model\\EndpointSpec', 'json', $context)); + $object->setEndpointSpec($this->denormalizer->denormalize($data['EndpointSpec'], \Docker\API\Model\EndpointSpec::class, 'json', $context)); unset($data['EndpointSpec']); } elseif (\array_key_exists('EndpointSpec', $data) && $data['EndpointSpec'] === null) { @@ -155,7 +155,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServicesCreatePostBody' => false]; + return [\Docker\API\Model\ServicesCreatePostBody::class => false]; } } } else { @@ -167,11 +167,11 @@ class ServicesCreatePostBodyNormalizer implements DenormalizerInterface, Normali use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServicesCreatePostBody'; + return $type === \Docker\API\Model\ServicesCreatePostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServicesCreatePostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServicesCreatePostBody::class; } /** * @return mixed @@ -207,28 +207,28 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setLabels(null); } if (\array_key_exists('TaskTemplate', $data) && $data['TaskTemplate'] !== null) { - $object->setTaskTemplate($this->denormalizer->denormalize($data['TaskTemplate'], 'Docker\\API\\Model\\TaskSpec', 'json', $context)); + $object->setTaskTemplate($this->denormalizer->denormalize($data['TaskTemplate'], \Docker\API\Model\TaskSpec::class, 'json', $context)); unset($data['TaskTemplate']); } elseif (\array_key_exists('TaskTemplate', $data) && $data['TaskTemplate'] === null) { $object->setTaskTemplate(null); } if (\array_key_exists('Mode', $data) && $data['Mode'] !== null) { - $object->setMode($this->denormalizer->denormalize($data['Mode'], 'Docker\\API\\Model\\ServiceSpecMode', 'json', $context)); + $object->setMode($this->denormalizer->denormalize($data['Mode'], \Docker\API\Model\ServiceSpecMode::class, 'json', $context)); unset($data['Mode']); } elseif (\array_key_exists('Mode', $data) && $data['Mode'] === null) { $object->setMode(null); } if (\array_key_exists('UpdateConfig', $data) && $data['UpdateConfig'] !== null) { - $object->setUpdateConfig($this->denormalizer->denormalize($data['UpdateConfig'], 'Docker\\API\\Model\\ServiceSpecUpdateConfig', 'json', $context)); + $object->setUpdateConfig($this->denormalizer->denormalize($data['UpdateConfig'], \Docker\API\Model\ServiceSpecUpdateConfig::class, 'json', $context)); unset($data['UpdateConfig']); } elseif (\array_key_exists('UpdateConfig', $data) && $data['UpdateConfig'] === null) { $object->setUpdateConfig(null); } if (\array_key_exists('RollbackConfig', $data) && $data['RollbackConfig'] !== null) { - $object->setRollbackConfig($this->denormalizer->denormalize($data['RollbackConfig'], 'Docker\\API\\Model\\ServiceSpecRollbackConfig', 'json', $context)); + $object->setRollbackConfig($this->denormalizer->denormalize($data['RollbackConfig'], \Docker\API\Model\ServiceSpecRollbackConfig::class, 'json', $context)); unset($data['RollbackConfig']); } elseif (\array_key_exists('RollbackConfig', $data) && $data['RollbackConfig'] === null) { @@ -237,7 +237,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Networks', $data) && $data['Networks'] !== null) { $values_1 = []; foreach ($data['Networks'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\ServiceSpecNetworksItem', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\ServiceSpecNetworksItem::class, 'json', $context); } $object->setNetworks($values_1); unset($data['Networks']); @@ -246,7 +246,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setNetworks(null); } if (\array_key_exists('EndpointSpec', $data) && $data['EndpointSpec'] !== null) { - $object->setEndpointSpec($this->denormalizer->denormalize($data['EndpointSpec'], 'Docker\\API\\Model\\EndpointSpec', 'json', $context)); + $object->setEndpointSpec($this->denormalizer->denormalize($data['EndpointSpec'], \Docker\API\Model\EndpointSpec::class, 'json', $context)); unset($data['EndpointSpec']); } elseif (\array_key_exists('EndpointSpec', $data) && $data['EndpointSpec'] === null) { @@ -306,7 +306,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServicesCreatePostBody' => false]; + return [\Docker\API\Model\ServicesCreatePostBody::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ServicesCreatePostResponse201Normalizer.php b/src/Normalizer/ServicesCreatePostResponse201Normalizer.php index 3595c1b0..7aff9960 100644 --- a/src/Normalizer/ServicesCreatePostResponse201Normalizer.php +++ b/src/Normalizer/ServicesCreatePostResponse201Normalizer.php @@ -22,11 +22,11 @@ class ServicesCreatePostResponse201Normalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServicesCreatePostResponse201'; + return $type === \Docker\API\Model\ServicesCreatePostResponse201::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServicesCreatePostResponse201'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServicesCreatePostResponse201::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServicesCreatePostResponse201' => false]; + return [\Docker\API\Model\ServicesCreatePostResponse201::class => false]; } } } else { @@ -91,11 +91,11 @@ class ServicesCreatePostResponse201Normalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServicesCreatePostResponse201'; + return $type === \Docker\API\Model\ServicesCreatePostResponse201::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServicesCreatePostResponse201'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServicesCreatePostResponse201::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServicesCreatePostResponse201' => false]; + return [\Docker\API\Model\ServicesCreatePostResponse201::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ServicesIdUpdatePostBodyNormalizer.php b/src/Normalizer/ServicesIdUpdatePostBodyNormalizer.php index 40082291..3a0d23c7 100644 --- a/src/Normalizer/ServicesIdUpdatePostBodyNormalizer.php +++ b/src/Normalizer/ServicesIdUpdatePostBodyNormalizer.php @@ -22,11 +22,11 @@ class ServicesIdUpdatePostBodyNormalizer implements DenormalizerInterface, Norma use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServicesIdUpdatePostBody'; + return $type === \Docker\API\Model\ServicesIdUpdatePostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServicesIdUpdatePostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServicesIdUpdatePostBody::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -59,28 +59,28 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setLabels(null); } if (\array_key_exists('TaskTemplate', $data) && $data['TaskTemplate'] !== null) { - $object->setTaskTemplate($this->denormalizer->denormalize($data['TaskTemplate'], 'Docker\\API\\Model\\TaskSpec', 'json', $context)); + $object->setTaskTemplate($this->denormalizer->denormalize($data['TaskTemplate'], \Docker\API\Model\TaskSpec::class, 'json', $context)); unset($data['TaskTemplate']); } elseif (\array_key_exists('TaskTemplate', $data) && $data['TaskTemplate'] === null) { $object->setTaskTemplate(null); } if (\array_key_exists('Mode', $data) && $data['Mode'] !== null) { - $object->setMode($this->denormalizer->denormalize($data['Mode'], 'Docker\\API\\Model\\ServiceSpecMode', 'json', $context)); + $object->setMode($this->denormalizer->denormalize($data['Mode'], \Docker\API\Model\ServiceSpecMode::class, 'json', $context)); unset($data['Mode']); } elseif (\array_key_exists('Mode', $data) && $data['Mode'] === null) { $object->setMode(null); } if (\array_key_exists('UpdateConfig', $data) && $data['UpdateConfig'] !== null) { - $object->setUpdateConfig($this->denormalizer->denormalize($data['UpdateConfig'], 'Docker\\API\\Model\\ServiceSpecUpdateConfig', 'json', $context)); + $object->setUpdateConfig($this->denormalizer->denormalize($data['UpdateConfig'], \Docker\API\Model\ServiceSpecUpdateConfig::class, 'json', $context)); unset($data['UpdateConfig']); } elseif (\array_key_exists('UpdateConfig', $data) && $data['UpdateConfig'] === null) { $object->setUpdateConfig(null); } if (\array_key_exists('RollbackConfig', $data) && $data['RollbackConfig'] !== null) { - $object->setRollbackConfig($this->denormalizer->denormalize($data['RollbackConfig'], 'Docker\\API\\Model\\ServiceSpecRollbackConfig', 'json', $context)); + $object->setRollbackConfig($this->denormalizer->denormalize($data['RollbackConfig'], \Docker\API\Model\ServiceSpecRollbackConfig::class, 'json', $context)); unset($data['RollbackConfig']); } elseif (\array_key_exists('RollbackConfig', $data) && $data['RollbackConfig'] === null) { @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Networks', $data) && $data['Networks'] !== null) { $values_1 = []; foreach ($data['Networks'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\ServiceSpecNetworksItem', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\ServiceSpecNetworksItem::class, 'json', $context); } $object->setNetworks($values_1); unset($data['Networks']); @@ -98,7 +98,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setNetworks(null); } if (\array_key_exists('EndpointSpec', $data) && $data['EndpointSpec'] !== null) { - $object->setEndpointSpec($this->denormalizer->denormalize($data['EndpointSpec'], 'Docker\\API\\Model\\EndpointSpec', 'json', $context)); + $object->setEndpointSpec($this->denormalizer->denormalize($data['EndpointSpec'], \Docker\API\Model\EndpointSpec::class, 'json', $context)); unset($data['EndpointSpec']); } elseif (\array_key_exists('EndpointSpec', $data) && $data['EndpointSpec'] === null) { @@ -155,7 +155,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServicesIdUpdatePostBody' => false]; + return [\Docker\API\Model\ServicesIdUpdatePostBody::class => false]; } } } else { @@ -167,11 +167,11 @@ class ServicesIdUpdatePostBodyNormalizer implements DenormalizerInterface, Norma use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ServicesIdUpdatePostBody'; + return $type === \Docker\API\Model\ServicesIdUpdatePostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ServicesIdUpdatePostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\ServicesIdUpdatePostBody::class; } /** * @return mixed @@ -207,28 +207,28 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setLabels(null); } if (\array_key_exists('TaskTemplate', $data) && $data['TaskTemplate'] !== null) { - $object->setTaskTemplate($this->denormalizer->denormalize($data['TaskTemplate'], 'Docker\\API\\Model\\TaskSpec', 'json', $context)); + $object->setTaskTemplate($this->denormalizer->denormalize($data['TaskTemplate'], \Docker\API\Model\TaskSpec::class, 'json', $context)); unset($data['TaskTemplate']); } elseif (\array_key_exists('TaskTemplate', $data) && $data['TaskTemplate'] === null) { $object->setTaskTemplate(null); } if (\array_key_exists('Mode', $data) && $data['Mode'] !== null) { - $object->setMode($this->denormalizer->denormalize($data['Mode'], 'Docker\\API\\Model\\ServiceSpecMode', 'json', $context)); + $object->setMode($this->denormalizer->denormalize($data['Mode'], \Docker\API\Model\ServiceSpecMode::class, 'json', $context)); unset($data['Mode']); } elseif (\array_key_exists('Mode', $data) && $data['Mode'] === null) { $object->setMode(null); } if (\array_key_exists('UpdateConfig', $data) && $data['UpdateConfig'] !== null) { - $object->setUpdateConfig($this->denormalizer->denormalize($data['UpdateConfig'], 'Docker\\API\\Model\\ServiceSpecUpdateConfig', 'json', $context)); + $object->setUpdateConfig($this->denormalizer->denormalize($data['UpdateConfig'], \Docker\API\Model\ServiceSpecUpdateConfig::class, 'json', $context)); unset($data['UpdateConfig']); } elseif (\array_key_exists('UpdateConfig', $data) && $data['UpdateConfig'] === null) { $object->setUpdateConfig(null); } if (\array_key_exists('RollbackConfig', $data) && $data['RollbackConfig'] !== null) { - $object->setRollbackConfig($this->denormalizer->denormalize($data['RollbackConfig'], 'Docker\\API\\Model\\ServiceSpecRollbackConfig', 'json', $context)); + $object->setRollbackConfig($this->denormalizer->denormalize($data['RollbackConfig'], \Docker\API\Model\ServiceSpecRollbackConfig::class, 'json', $context)); unset($data['RollbackConfig']); } elseif (\array_key_exists('RollbackConfig', $data) && $data['RollbackConfig'] === null) { @@ -237,7 +237,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Networks', $data) && $data['Networks'] !== null) { $values_1 = []; foreach ($data['Networks'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\ServiceSpecNetworksItem', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\ServiceSpecNetworksItem::class, 'json', $context); } $object->setNetworks($values_1); unset($data['Networks']); @@ -246,7 +246,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setNetworks(null); } if (\array_key_exists('EndpointSpec', $data) && $data['EndpointSpec'] !== null) { - $object->setEndpointSpec($this->denormalizer->denormalize($data['EndpointSpec'], 'Docker\\API\\Model\\EndpointSpec', 'json', $context)); + $object->setEndpointSpec($this->denormalizer->denormalize($data['EndpointSpec'], \Docker\API\Model\EndpointSpec::class, 'json', $context)); unset($data['EndpointSpec']); } elseif (\array_key_exists('EndpointSpec', $data) && $data['EndpointSpec'] === null) { @@ -306,7 +306,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ServicesIdUpdatePostBody' => false]; + return [\Docker\API\Model\ServicesIdUpdatePostBody::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SwarmInfoNormalizer.php b/src/Normalizer/SwarmInfoNormalizer.php index 2506ebd5..179f8197 100644 --- a/src/Normalizer/SwarmInfoNormalizer.php +++ b/src/Normalizer/SwarmInfoNormalizer.php @@ -22,11 +22,11 @@ class SwarmInfoNormalizer implements DenormalizerInterface, NormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmInfo'; + return $type === \Docker\API\Model\SwarmInfo::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmInfo'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmInfo::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -78,7 +78,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('RemoteManagers', $data) && $data['RemoteManagers'] !== null) { $values = []; foreach ($data['RemoteManagers'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\PeerNode', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\PeerNode::class, 'json', $context); } $object->setRemoteManagers($values); unset($data['RemoteManagers']); @@ -101,7 +101,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setManagers(null); } if (\array_key_exists('Cluster', $data) && $data['Cluster'] !== null) { - $object->setCluster($this->denormalizer->denormalize($data['Cluster'], 'Docker\\API\\Model\\ClusterInfo', 'json', $context)); + $object->setCluster($this->denormalizer->denormalize($data['Cluster'], \Docker\API\Model\ClusterInfo::class, 'json', $context)); unset($data['Cluster']); } elseif (\array_key_exists('Cluster', $data) && $data['Cluster'] === null) { @@ -157,7 +157,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmInfo' => false]; + return [\Docker\API\Model\SwarmInfo::class => false]; } } } else { @@ -169,11 +169,11 @@ class SwarmInfoNormalizer implements DenormalizerInterface, NormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmInfo'; + return $type === \Docker\API\Model\SwarmInfo::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmInfo'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmInfo::class; } /** * @return mixed @@ -228,7 +228,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('RemoteManagers', $data) && $data['RemoteManagers'] !== null) { $values = []; foreach ($data['RemoteManagers'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\PeerNode', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\PeerNode::class, 'json', $context); } $object->setRemoteManagers($values); unset($data['RemoteManagers']); @@ -251,7 +251,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setManagers(null); } if (\array_key_exists('Cluster', $data) && $data['Cluster'] !== null) { - $object->setCluster($this->denormalizer->denormalize($data['Cluster'], 'Docker\\API\\Model\\ClusterInfo', 'json', $context)); + $object->setCluster($this->denormalizer->denormalize($data['Cluster'], \Docker\API\Model\ClusterInfo::class, 'json', $context)); unset($data['Cluster']); } elseif (\array_key_exists('Cluster', $data) && $data['Cluster'] === null) { @@ -310,7 +310,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmInfo' => false]; + return [\Docker\API\Model\SwarmInfo::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SwarmInitPostBodyNormalizer.php b/src/Normalizer/SwarmInitPostBodyNormalizer.php index 0d621d24..406b6cb0 100644 --- a/src/Normalizer/SwarmInitPostBodyNormalizer.php +++ b/src/Normalizer/SwarmInitPostBodyNormalizer.php @@ -22,11 +22,11 @@ class SwarmInitPostBodyNormalizer implements DenormalizerInterface, NormalizerIn use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmInitPostBody'; + return $type === \Docker\API\Model\SwarmInitPostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmInitPostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmInitPostBody::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setForceNewCluster(null); } if (\array_key_exists('Spec', $data) && $data['Spec'] !== null) { - $object->setSpec($this->denormalizer->denormalize($data['Spec'], 'Docker\\API\\Model\\SwarmSpec', 'json', $context)); + $object->setSpec($this->denormalizer->denormalize($data['Spec'], \Docker\API\Model\SwarmSpec::class, 'json', $context)); unset($data['Spec']); } elseif (\array_key_exists('Spec', $data) && $data['Spec'] === null) { @@ -109,7 +109,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmInitPostBody' => false]; + return [\Docker\API\Model\SwarmInitPostBody::class => false]; } } } else { @@ -121,11 +121,11 @@ class SwarmInitPostBodyNormalizer implements DenormalizerInterface, NormalizerIn use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmInitPostBody'; + return $type === \Docker\API\Model\SwarmInitPostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmInitPostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmInitPostBody::class; } /** * @return mixed @@ -171,7 +171,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setForceNewCluster(null); } if (\array_key_exists('Spec', $data) && $data['Spec'] !== null) { - $object->setSpec($this->denormalizer->denormalize($data['Spec'], 'Docker\\API\\Model\\SwarmSpec', 'json', $context)); + $object->setSpec($this->denormalizer->denormalize($data['Spec'], \Docker\API\Model\SwarmSpec::class, 'json', $context)); unset($data['Spec']); } elseif (\array_key_exists('Spec', $data) && $data['Spec'] === null) { @@ -214,7 +214,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmInitPostBody' => false]; + return [\Docker\API\Model\SwarmInitPostBody::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SwarmJoinPostBodyNormalizer.php b/src/Normalizer/SwarmJoinPostBodyNormalizer.php index 733af61f..97e4e45d 100644 --- a/src/Normalizer/SwarmJoinPostBodyNormalizer.php +++ b/src/Normalizer/SwarmJoinPostBodyNormalizer.php @@ -22,11 +22,11 @@ class SwarmJoinPostBodyNormalizer implements DenormalizerInterface, NormalizerIn use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmJoinPostBody'; + return $type === \Docker\API\Model\SwarmJoinPostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmJoinPostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmJoinPostBody::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -117,7 +117,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmJoinPostBody' => false]; + return [\Docker\API\Model\SwarmJoinPostBody::class => false]; } } } else { @@ -129,11 +129,11 @@ class SwarmJoinPostBodyNormalizer implements DenormalizerInterface, NormalizerIn use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmJoinPostBody'; + return $type === \Docker\API\Model\SwarmJoinPostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmJoinPostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmJoinPostBody::class; } /** * @return mixed @@ -230,7 +230,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmJoinPostBody' => false]; + return [\Docker\API\Model\SwarmJoinPostBody::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SwarmNormalizer.php b/src/Normalizer/SwarmNormalizer.php index 81457565..1d2d34e2 100644 --- a/src/Normalizer/SwarmNormalizer.php +++ b/src/Normalizer/SwarmNormalizer.php @@ -22,11 +22,11 @@ class SwarmNormalizer implements DenormalizerInterface, NormalizerInterface, Den use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Swarm'; + return $type === \Docker\API\Model\Swarm::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Swarm'; + return is_object($data) && get_class($data) === \Docker\API\Model\Swarm::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -48,7 +48,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setID(null); } if (\array_key_exists('Version', $data) && $data['Version'] !== null) { - $object->setVersion($this->denormalizer->denormalize($data['Version'], 'Docker\\API\\Model\\ObjectVersion', 'json', $context)); + $object->setVersion($this->denormalizer->denormalize($data['Version'], \Docker\API\Model\ObjectVersion::class, 'json', $context)); unset($data['Version']); } elseif (\array_key_exists('Version', $data) && $data['Version'] === null) { @@ -69,14 +69,14 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setUpdatedAt(null); } if (\array_key_exists('Spec', $data) && $data['Spec'] !== null) { - $object->setSpec($this->denormalizer->denormalize($data['Spec'], 'Docker\\API\\Model\\SwarmSpec', 'json', $context)); + $object->setSpec($this->denormalizer->denormalize($data['Spec'], \Docker\API\Model\SwarmSpec::class, 'json', $context)); unset($data['Spec']); } elseif (\array_key_exists('Spec', $data) && $data['Spec'] === null) { $object->setSpec(null); } if (\array_key_exists('TLSInfo', $data) && $data['TLSInfo'] !== null) { - $object->setTLSInfo($this->denormalizer->denormalize($data['TLSInfo'], 'Docker\\API\\Model\\TLSInfo', 'json', $context)); + $object->setTLSInfo($this->denormalizer->denormalize($data['TLSInfo'], \Docker\API\Model\TLSInfo::class, 'json', $context)); unset($data['TLSInfo']); } elseif (\array_key_exists('TLSInfo', $data) && $data['TLSInfo'] === null) { @@ -90,7 +90,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setRootRotationInProgress(null); } if (\array_key_exists('JoinTokens', $data) && $data['JoinTokens'] !== null) { - $object->setJoinTokens($this->denormalizer->denormalize($data['JoinTokens'], 'Docker\\API\\Model\\JoinTokens', 'json', $context)); + $object->setJoinTokens($this->denormalizer->denormalize($data['JoinTokens'], \Docker\API\Model\JoinTokens::class, 'json', $context)); unset($data['JoinTokens']); } elseif (\array_key_exists('JoinTokens', $data) && $data['JoinTokens'] === null) { @@ -139,7 +139,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Swarm' => false]; + return [\Docker\API\Model\Swarm::class => false]; } } } else { @@ -151,11 +151,11 @@ class SwarmNormalizer implements DenormalizerInterface, NormalizerInterface, Den use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Swarm'; + return $type === \Docker\API\Model\Swarm::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Swarm'; + return is_object($data) && get_class($data) === \Docker\API\Model\Swarm::class; } /** * @return mixed @@ -180,7 +180,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setID(null); } if (\array_key_exists('Version', $data) && $data['Version'] !== null) { - $object->setVersion($this->denormalizer->denormalize($data['Version'], 'Docker\\API\\Model\\ObjectVersion', 'json', $context)); + $object->setVersion($this->denormalizer->denormalize($data['Version'], \Docker\API\Model\ObjectVersion::class, 'json', $context)); unset($data['Version']); } elseif (\array_key_exists('Version', $data) && $data['Version'] === null) { @@ -201,14 +201,14 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setUpdatedAt(null); } if (\array_key_exists('Spec', $data) && $data['Spec'] !== null) { - $object->setSpec($this->denormalizer->denormalize($data['Spec'], 'Docker\\API\\Model\\SwarmSpec', 'json', $context)); + $object->setSpec($this->denormalizer->denormalize($data['Spec'], \Docker\API\Model\SwarmSpec::class, 'json', $context)); unset($data['Spec']); } elseif (\array_key_exists('Spec', $data) && $data['Spec'] === null) { $object->setSpec(null); } if (\array_key_exists('TLSInfo', $data) && $data['TLSInfo'] !== null) { - $object->setTLSInfo($this->denormalizer->denormalize($data['TLSInfo'], 'Docker\\API\\Model\\TLSInfo', 'json', $context)); + $object->setTLSInfo($this->denormalizer->denormalize($data['TLSInfo'], \Docker\API\Model\TLSInfo::class, 'json', $context)); unset($data['TLSInfo']); } elseif (\array_key_exists('TLSInfo', $data) && $data['TLSInfo'] === null) { @@ -222,7 +222,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setRootRotationInProgress(null); } if (\array_key_exists('JoinTokens', $data) && $data['JoinTokens'] !== null) { - $object->setJoinTokens($this->denormalizer->denormalize($data['JoinTokens'], 'Docker\\API\\Model\\JoinTokens', 'json', $context)); + $object->setJoinTokens($this->denormalizer->denormalize($data['JoinTokens'], \Docker\API\Model\JoinTokens::class, 'json', $context)); unset($data['JoinTokens']); } elseif (\array_key_exists('JoinTokens', $data) && $data['JoinTokens'] === null) { @@ -274,7 +274,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Swarm' => false]; + return [\Docker\API\Model\Swarm::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SwarmSpecCAConfigExternalCAsItemNormalizer.php b/src/Normalizer/SwarmSpecCAConfigExternalCAsItemNormalizer.php index 25f2de77..005b28f1 100644 --- a/src/Normalizer/SwarmSpecCAConfigExternalCAsItemNormalizer.php +++ b/src/Normalizer/SwarmSpecCAConfigExternalCAsItemNormalizer.php @@ -22,11 +22,11 @@ class SwarmSpecCAConfigExternalCAsItemNormalizer implements DenormalizerInterfac use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmSpecCAConfigExternalCAsItem'; + return $type === \Docker\API\Model\SwarmSpecCAConfigExternalCAsItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmSpecCAConfigExternalCAsItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmSpecCAConfigExternalCAsItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -107,7 +107,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmSpecCAConfigExternalCAsItem' => false]; + return [\Docker\API\Model\SwarmSpecCAConfigExternalCAsItem::class => false]; } } } else { @@ -119,11 +119,11 @@ class SwarmSpecCAConfigExternalCAsItemNormalizer implements DenormalizerInterfac use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmSpecCAConfigExternalCAsItem'; + return $type === \Docker\API\Model\SwarmSpecCAConfigExternalCAsItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmSpecCAConfigExternalCAsItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmSpecCAConfigExternalCAsItem::class; } /** * @return mixed @@ -210,7 +210,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmSpecCAConfigExternalCAsItem' => false]; + return [\Docker\API\Model\SwarmSpecCAConfigExternalCAsItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SwarmSpecCAConfigNormalizer.php b/src/Normalizer/SwarmSpecCAConfigNormalizer.php index f904f2d0..224b64fa 100644 --- a/src/Normalizer/SwarmSpecCAConfigNormalizer.php +++ b/src/Normalizer/SwarmSpecCAConfigNormalizer.php @@ -22,11 +22,11 @@ class SwarmSpecCAConfigNormalizer implements DenormalizerInterface, NormalizerIn use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmSpecCAConfig'; + return $type === \Docker\API\Model\SwarmSpecCAConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmSpecCAConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmSpecCAConfig::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -50,7 +50,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('ExternalCAs', $data) && $data['ExternalCAs'] !== null) { $values = []; foreach ($data['ExternalCAs'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\SwarmSpecCAConfigExternalCAsItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\SwarmSpecCAConfigExternalCAsItem::class, 'json', $context); } $object->setExternalCAs($values); unset($data['ExternalCAs']); @@ -117,7 +117,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmSpecCAConfig' => false]; + return [\Docker\API\Model\SwarmSpecCAConfig::class => false]; } } } else { @@ -129,11 +129,11 @@ class SwarmSpecCAConfigNormalizer implements DenormalizerInterface, NormalizerIn use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmSpecCAConfig'; + return $type === \Docker\API\Model\SwarmSpecCAConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmSpecCAConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmSpecCAConfig::class; } /** * @return mixed @@ -160,7 +160,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('ExternalCAs', $data) && $data['ExternalCAs'] !== null) { $values = []; foreach ($data['ExternalCAs'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\SwarmSpecCAConfigExternalCAsItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\SwarmSpecCAConfigExternalCAsItem::class, 'json', $context); } $object->setExternalCAs($values); unset($data['ExternalCAs']); @@ -230,7 +230,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmSpecCAConfig' => false]; + return [\Docker\API\Model\SwarmSpecCAConfig::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SwarmSpecDispatcherNormalizer.php b/src/Normalizer/SwarmSpecDispatcherNormalizer.php index 61d757b3..304824aa 100644 --- a/src/Normalizer/SwarmSpecDispatcherNormalizer.php +++ b/src/Normalizer/SwarmSpecDispatcherNormalizer.php @@ -22,11 +22,11 @@ class SwarmSpecDispatcherNormalizer implements DenormalizerInterface, Normalizer use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmSpecDispatcher'; + return $type === \Docker\API\Model\SwarmSpecDispatcher::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmSpecDispatcher'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmSpecDispatcher::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmSpecDispatcher' => false]; + return [\Docker\API\Model\SwarmSpecDispatcher::class => false]; } } } else { @@ -81,11 +81,11 @@ class SwarmSpecDispatcherNormalizer implements DenormalizerInterface, Normalizer use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmSpecDispatcher'; + return $type === \Docker\API\Model\SwarmSpecDispatcher::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmSpecDispatcher'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmSpecDispatcher::class; } /** * @return mixed @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmSpecDispatcher' => false]; + return [\Docker\API\Model\SwarmSpecDispatcher::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SwarmSpecEncryptionConfigNormalizer.php b/src/Normalizer/SwarmSpecEncryptionConfigNormalizer.php index e18d42e3..b6bb4abc 100644 --- a/src/Normalizer/SwarmSpecEncryptionConfigNormalizer.php +++ b/src/Normalizer/SwarmSpecEncryptionConfigNormalizer.php @@ -22,11 +22,11 @@ class SwarmSpecEncryptionConfigNormalizer implements DenormalizerInterface, Norm use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmSpecEncryptionConfig'; + return $type === \Docker\API\Model\SwarmSpecEncryptionConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmSpecEncryptionConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmSpecEncryptionConfig::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmSpecEncryptionConfig' => false]; + return [\Docker\API\Model\SwarmSpecEncryptionConfig::class => false]; } } } else { @@ -81,11 +81,11 @@ class SwarmSpecEncryptionConfigNormalizer implements DenormalizerInterface, Norm use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmSpecEncryptionConfig'; + return $type === \Docker\API\Model\SwarmSpecEncryptionConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmSpecEncryptionConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmSpecEncryptionConfig::class; } /** * @return mixed @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmSpecEncryptionConfig' => false]; + return [\Docker\API\Model\SwarmSpecEncryptionConfig::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SwarmSpecNormalizer.php b/src/Normalizer/SwarmSpecNormalizer.php index 1abe861e..c2aa2c1b 100644 --- a/src/Normalizer/SwarmSpecNormalizer.php +++ b/src/Normalizer/SwarmSpecNormalizer.php @@ -22,11 +22,11 @@ class SwarmSpecNormalizer implements DenormalizerInterface, NormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmSpec'; + return $type === \Docker\API\Model\SwarmSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmSpec::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -59,42 +59,42 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setLabels(null); } if (\array_key_exists('Orchestration', $data) && $data['Orchestration'] !== null) { - $object->setOrchestration($this->denormalizer->denormalize($data['Orchestration'], 'Docker\\API\\Model\\SwarmSpecOrchestration', 'json', $context)); + $object->setOrchestration($this->denormalizer->denormalize($data['Orchestration'], \Docker\API\Model\SwarmSpecOrchestration::class, 'json', $context)); unset($data['Orchestration']); } elseif (\array_key_exists('Orchestration', $data) && $data['Orchestration'] === null) { $object->setOrchestration(null); } if (\array_key_exists('Raft', $data) && $data['Raft'] !== null) { - $object->setRaft($this->denormalizer->denormalize($data['Raft'], 'Docker\\API\\Model\\SwarmSpecRaft', 'json', $context)); + $object->setRaft($this->denormalizer->denormalize($data['Raft'], \Docker\API\Model\SwarmSpecRaft::class, 'json', $context)); unset($data['Raft']); } elseif (\array_key_exists('Raft', $data) && $data['Raft'] === null) { $object->setRaft(null); } if (\array_key_exists('Dispatcher', $data) && $data['Dispatcher'] !== null) { - $object->setDispatcher($this->denormalizer->denormalize($data['Dispatcher'], 'Docker\\API\\Model\\SwarmSpecDispatcher', 'json', $context)); + $object->setDispatcher($this->denormalizer->denormalize($data['Dispatcher'], \Docker\API\Model\SwarmSpecDispatcher::class, 'json', $context)); unset($data['Dispatcher']); } elseif (\array_key_exists('Dispatcher', $data) && $data['Dispatcher'] === null) { $object->setDispatcher(null); } if (\array_key_exists('CAConfig', $data) && $data['CAConfig'] !== null) { - $object->setCAConfig($this->denormalizer->denormalize($data['CAConfig'], 'Docker\\API\\Model\\SwarmSpecCAConfig', 'json', $context)); + $object->setCAConfig($this->denormalizer->denormalize($data['CAConfig'], \Docker\API\Model\SwarmSpecCAConfig::class, 'json', $context)); unset($data['CAConfig']); } elseif (\array_key_exists('CAConfig', $data) && $data['CAConfig'] === null) { $object->setCAConfig(null); } if (\array_key_exists('EncryptionConfig', $data) && $data['EncryptionConfig'] !== null) { - $object->setEncryptionConfig($this->denormalizer->denormalize($data['EncryptionConfig'], 'Docker\\API\\Model\\SwarmSpecEncryptionConfig', 'json', $context)); + $object->setEncryptionConfig($this->denormalizer->denormalize($data['EncryptionConfig'], \Docker\API\Model\SwarmSpecEncryptionConfig::class, 'json', $context)); unset($data['EncryptionConfig']); } elseif (\array_key_exists('EncryptionConfig', $data) && $data['EncryptionConfig'] === null) { $object->setEncryptionConfig(null); } if (\array_key_exists('TaskDefaults', $data) && $data['TaskDefaults'] !== null) { - $object->setTaskDefaults($this->denormalizer->denormalize($data['TaskDefaults'], 'Docker\\API\\Model\\SwarmSpecTaskDefaults', 'json', $context)); + $object->setTaskDefaults($this->denormalizer->denormalize($data['TaskDefaults'], \Docker\API\Model\SwarmSpecTaskDefaults::class, 'json', $context)); unset($data['TaskDefaults']); } elseif (\array_key_exists('TaskDefaults', $data) && $data['TaskDefaults'] === null) { @@ -147,7 +147,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmSpec' => false]; + return [\Docker\API\Model\SwarmSpec::class => false]; } } } else { @@ -159,11 +159,11 @@ class SwarmSpecNormalizer implements DenormalizerInterface, NormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmSpec'; + return $type === \Docker\API\Model\SwarmSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmSpec::class; } /** * @return mixed @@ -199,42 +199,42 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setLabels(null); } if (\array_key_exists('Orchestration', $data) && $data['Orchestration'] !== null) { - $object->setOrchestration($this->denormalizer->denormalize($data['Orchestration'], 'Docker\\API\\Model\\SwarmSpecOrchestration', 'json', $context)); + $object->setOrchestration($this->denormalizer->denormalize($data['Orchestration'], \Docker\API\Model\SwarmSpecOrchestration::class, 'json', $context)); unset($data['Orchestration']); } elseif (\array_key_exists('Orchestration', $data) && $data['Orchestration'] === null) { $object->setOrchestration(null); } if (\array_key_exists('Raft', $data) && $data['Raft'] !== null) { - $object->setRaft($this->denormalizer->denormalize($data['Raft'], 'Docker\\API\\Model\\SwarmSpecRaft', 'json', $context)); + $object->setRaft($this->denormalizer->denormalize($data['Raft'], \Docker\API\Model\SwarmSpecRaft::class, 'json', $context)); unset($data['Raft']); } elseif (\array_key_exists('Raft', $data) && $data['Raft'] === null) { $object->setRaft(null); } if (\array_key_exists('Dispatcher', $data) && $data['Dispatcher'] !== null) { - $object->setDispatcher($this->denormalizer->denormalize($data['Dispatcher'], 'Docker\\API\\Model\\SwarmSpecDispatcher', 'json', $context)); + $object->setDispatcher($this->denormalizer->denormalize($data['Dispatcher'], \Docker\API\Model\SwarmSpecDispatcher::class, 'json', $context)); unset($data['Dispatcher']); } elseif (\array_key_exists('Dispatcher', $data) && $data['Dispatcher'] === null) { $object->setDispatcher(null); } if (\array_key_exists('CAConfig', $data) && $data['CAConfig'] !== null) { - $object->setCAConfig($this->denormalizer->denormalize($data['CAConfig'], 'Docker\\API\\Model\\SwarmSpecCAConfig', 'json', $context)); + $object->setCAConfig($this->denormalizer->denormalize($data['CAConfig'], \Docker\API\Model\SwarmSpecCAConfig::class, 'json', $context)); unset($data['CAConfig']); } elseif (\array_key_exists('CAConfig', $data) && $data['CAConfig'] === null) { $object->setCAConfig(null); } if (\array_key_exists('EncryptionConfig', $data) && $data['EncryptionConfig'] !== null) { - $object->setEncryptionConfig($this->denormalizer->denormalize($data['EncryptionConfig'], 'Docker\\API\\Model\\SwarmSpecEncryptionConfig', 'json', $context)); + $object->setEncryptionConfig($this->denormalizer->denormalize($data['EncryptionConfig'], \Docker\API\Model\SwarmSpecEncryptionConfig::class, 'json', $context)); unset($data['EncryptionConfig']); } elseif (\array_key_exists('EncryptionConfig', $data) && $data['EncryptionConfig'] === null) { $object->setEncryptionConfig(null); } if (\array_key_exists('TaskDefaults', $data) && $data['TaskDefaults'] !== null) { - $object->setTaskDefaults($this->denormalizer->denormalize($data['TaskDefaults'], 'Docker\\API\\Model\\SwarmSpecTaskDefaults', 'json', $context)); + $object->setTaskDefaults($this->denormalizer->denormalize($data['TaskDefaults'], \Docker\API\Model\SwarmSpecTaskDefaults::class, 'json', $context)); unset($data['TaskDefaults']); } elseif (\array_key_exists('TaskDefaults', $data) && $data['TaskDefaults'] === null) { @@ -290,7 +290,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmSpec' => false]; + return [\Docker\API\Model\SwarmSpec::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SwarmSpecOrchestrationNormalizer.php b/src/Normalizer/SwarmSpecOrchestrationNormalizer.php index 411ab185..f7d24980 100644 --- a/src/Normalizer/SwarmSpecOrchestrationNormalizer.php +++ b/src/Normalizer/SwarmSpecOrchestrationNormalizer.php @@ -22,11 +22,11 @@ class SwarmSpecOrchestrationNormalizer implements DenormalizerInterface, Normali use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmSpecOrchestration'; + return $type === \Docker\API\Model\SwarmSpecOrchestration::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmSpecOrchestration'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmSpecOrchestration::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmSpecOrchestration' => false]; + return [\Docker\API\Model\SwarmSpecOrchestration::class => false]; } } } else { @@ -81,11 +81,11 @@ class SwarmSpecOrchestrationNormalizer implements DenormalizerInterface, Normali use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmSpecOrchestration'; + return $type === \Docker\API\Model\SwarmSpecOrchestration::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmSpecOrchestration'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmSpecOrchestration::class; } /** * @return mixed @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmSpecOrchestration' => false]; + return [\Docker\API\Model\SwarmSpecOrchestration::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SwarmSpecRaftNormalizer.php b/src/Normalizer/SwarmSpecRaftNormalizer.php index 23972cf8..83f8c00e 100644 --- a/src/Normalizer/SwarmSpecRaftNormalizer.php +++ b/src/Normalizer/SwarmSpecRaftNormalizer.php @@ -22,11 +22,11 @@ class SwarmSpecRaftNormalizer implements DenormalizerInterface, NormalizerInterf use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmSpecRaft'; + return $type === \Docker\API\Model\SwarmSpecRaft::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmSpecRaft'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmSpecRaft::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -109,7 +109,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmSpecRaft' => false]; + return [\Docker\API\Model\SwarmSpecRaft::class => false]; } } } else { @@ -121,11 +121,11 @@ class SwarmSpecRaftNormalizer implements DenormalizerInterface, NormalizerInterf use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmSpecRaft'; + return $type === \Docker\API\Model\SwarmSpecRaft::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmSpecRaft'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmSpecRaft::class; } /** * @return mixed @@ -214,7 +214,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmSpecRaft' => false]; + return [\Docker\API\Model\SwarmSpecRaft::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SwarmSpecTaskDefaultsLogDriverNormalizer.php b/src/Normalizer/SwarmSpecTaskDefaultsLogDriverNormalizer.php index 6a773d9a..e3a24a5c 100644 --- a/src/Normalizer/SwarmSpecTaskDefaultsLogDriverNormalizer.php +++ b/src/Normalizer/SwarmSpecTaskDefaultsLogDriverNormalizer.php @@ -22,11 +22,11 @@ class SwarmSpecTaskDefaultsLogDriverNormalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmSpecTaskDefaultsLogDriver'; + return $type === \Docker\API\Model\SwarmSpecTaskDefaultsLogDriver::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmSpecTaskDefaultsLogDriver'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmSpecTaskDefaultsLogDriver::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -87,7 +87,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmSpecTaskDefaultsLogDriver' => false]; + return [\Docker\API\Model\SwarmSpecTaskDefaultsLogDriver::class => false]; } } } else { @@ -99,11 +99,11 @@ class SwarmSpecTaskDefaultsLogDriverNormalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmSpecTaskDefaultsLogDriver'; + return $type === \Docker\API\Model\SwarmSpecTaskDefaultsLogDriver::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmSpecTaskDefaultsLogDriver'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmSpecTaskDefaultsLogDriver::class; } /** * @return mixed @@ -170,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmSpecTaskDefaultsLogDriver' => false]; + return [\Docker\API\Model\SwarmSpecTaskDefaultsLogDriver::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SwarmSpecTaskDefaultsNormalizer.php b/src/Normalizer/SwarmSpecTaskDefaultsNormalizer.php index 91050f93..d2191855 100644 --- a/src/Normalizer/SwarmSpecTaskDefaultsNormalizer.php +++ b/src/Normalizer/SwarmSpecTaskDefaultsNormalizer.php @@ -22,11 +22,11 @@ class SwarmSpecTaskDefaultsNormalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmSpecTaskDefaults'; + return $type === \Docker\API\Model\SwarmSpecTaskDefaults::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmSpecTaskDefaults'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmSpecTaskDefaults::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -41,7 +41,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar return $object; } if (\array_key_exists('LogDriver', $data) && $data['LogDriver'] !== null) { - $object->setLogDriver($this->denormalizer->denormalize($data['LogDriver'], 'Docker\\API\\Model\\SwarmSpecTaskDefaultsLogDriver', 'json', $context)); + $object->setLogDriver($this->denormalizer->denormalize($data['LogDriver'], \Docker\API\Model\SwarmSpecTaskDefaultsLogDriver::class, 'json', $context)); unset($data['LogDriver']); } elseif (\array_key_exists('LogDriver', $data) && $data['LogDriver'] === null) { @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmSpecTaskDefaults' => false]; + return [\Docker\API\Model\SwarmSpecTaskDefaults::class => false]; } } } else { @@ -81,11 +81,11 @@ class SwarmSpecTaskDefaultsNormalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmSpecTaskDefaults'; + return $type === \Docker\API\Model\SwarmSpecTaskDefaults::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmSpecTaskDefaults'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmSpecTaskDefaults::class; } /** * @return mixed @@ -103,7 +103,7 @@ public function denormalize($data, $type, $format = null, array $context = []) return $object; } if (\array_key_exists('LogDriver', $data) && $data['LogDriver'] !== null) { - $object->setLogDriver($this->denormalizer->denormalize($data['LogDriver'], 'Docker\\API\\Model\\SwarmSpecTaskDefaultsLogDriver', 'json', $context)); + $object->setLogDriver($this->denormalizer->denormalize($data['LogDriver'], \Docker\API\Model\SwarmSpecTaskDefaultsLogDriver::class, 'json', $context)); unset($data['LogDriver']); } elseif (\array_key_exists('LogDriver', $data) && $data['LogDriver'] === null) { @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmSpecTaskDefaults' => false]; + return [\Docker\API\Model\SwarmSpecTaskDefaults::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SwarmUnlockPostBodyNormalizer.php b/src/Normalizer/SwarmUnlockPostBodyNormalizer.php index 06b57c10..5d9b6772 100644 --- a/src/Normalizer/SwarmUnlockPostBodyNormalizer.php +++ b/src/Normalizer/SwarmUnlockPostBodyNormalizer.php @@ -22,11 +22,11 @@ class SwarmUnlockPostBodyNormalizer implements DenormalizerInterface, Normalizer use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmUnlockPostBody'; + return $type === \Docker\API\Model\SwarmUnlockPostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmUnlockPostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmUnlockPostBody::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmUnlockPostBody' => false]; + return [\Docker\API\Model\SwarmUnlockPostBody::class => false]; } } } else { @@ -81,11 +81,11 @@ class SwarmUnlockPostBodyNormalizer implements DenormalizerInterface, Normalizer use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmUnlockPostBody'; + return $type === \Docker\API\Model\SwarmUnlockPostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmUnlockPostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmUnlockPostBody::class; } /** * @return mixed @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmUnlockPostBody' => false]; + return [\Docker\API\Model\SwarmUnlockPostBody::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SwarmUnlockkeyGetJsonResponse200Normalizer.php b/src/Normalizer/SwarmUnlockkeyGetJsonResponse200Normalizer.php index 328cfbb9..4e218d3f 100644 --- a/src/Normalizer/SwarmUnlockkeyGetJsonResponse200Normalizer.php +++ b/src/Normalizer/SwarmUnlockkeyGetJsonResponse200Normalizer.php @@ -22,11 +22,11 @@ class SwarmUnlockkeyGetJsonResponse200Normalizer implements DenormalizerInterfac use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmUnlockkeyGetJsonResponse200'; + return $type === \Docker\API\Model\SwarmUnlockkeyGetJsonResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmUnlockkeyGetJsonResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmUnlockkeyGetJsonResponse200::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmUnlockkeyGetJsonResponse200' => false]; + return [\Docker\API\Model\SwarmUnlockkeyGetJsonResponse200::class => false]; } } } else { @@ -81,11 +81,11 @@ class SwarmUnlockkeyGetJsonResponse200Normalizer implements DenormalizerInterfac use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmUnlockkeyGetJsonResponse200'; + return $type === \Docker\API\Model\SwarmUnlockkeyGetJsonResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmUnlockkeyGetJsonResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmUnlockkeyGetJsonResponse200::class; } /** * @return mixed @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmUnlockkeyGetJsonResponse200' => false]; + return [\Docker\API\Model\SwarmUnlockkeyGetJsonResponse200::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SwarmUnlockkeyGetTextplainResponse200Normalizer.php b/src/Normalizer/SwarmUnlockkeyGetTextplainResponse200Normalizer.php index 304bd83f..372aee4c 100644 --- a/src/Normalizer/SwarmUnlockkeyGetTextplainResponse200Normalizer.php +++ b/src/Normalizer/SwarmUnlockkeyGetTextplainResponse200Normalizer.php @@ -22,11 +22,11 @@ class SwarmUnlockkeyGetTextplainResponse200Normalizer implements DenormalizerInt use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmUnlockkeyGetTextplainResponse200'; + return $type === \Docker\API\Model\SwarmUnlockkeyGetTextplainResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmUnlockkeyGetTextplainResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmUnlockkeyGetTextplainResponse200::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmUnlockkeyGetTextplainResponse200' => false]; + return [\Docker\API\Model\SwarmUnlockkeyGetTextplainResponse200::class => false]; } } } else { @@ -81,11 +81,11 @@ class SwarmUnlockkeyGetTextplainResponse200Normalizer implements DenormalizerInt use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SwarmUnlockkeyGetTextplainResponse200'; + return $type === \Docker\API\Model\SwarmUnlockkeyGetTextplainResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SwarmUnlockkeyGetTextplainResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\SwarmUnlockkeyGetTextplainResponse200::class; } /** * @return mixed @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SwarmUnlockkeyGetTextplainResponse200' => false]; + return [\Docker\API\Model\SwarmUnlockkeyGetTextplainResponse200::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SystemDfGetJsonResponse200Normalizer.php b/src/Normalizer/SystemDfGetJsonResponse200Normalizer.php index ae43c2c5..d4e320bd 100644 --- a/src/Normalizer/SystemDfGetJsonResponse200Normalizer.php +++ b/src/Normalizer/SystemDfGetJsonResponse200Normalizer.php @@ -22,11 +22,11 @@ class SystemDfGetJsonResponse200Normalizer implements DenormalizerInterface, Nor use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SystemDfGetJsonResponse200'; + return $type === \Docker\API\Model\SystemDfGetJsonResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SystemDfGetJsonResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\SystemDfGetJsonResponse200::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -50,7 +50,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Images', $data) && $data['Images'] !== null) { $values = []; foreach ($data['Images'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\ImageSummary', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\ImageSummary::class, 'json', $context); } $object->setImages($values); unset($data['Images']); @@ -63,7 +63,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar foreach ($data['Containers'] as $value_1) { $values_2 = []; foreach ($value_1 as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, 'Docker\\API\\Model\\ContainerSummaryItem', 'json', $context); + $values_2[] = $this->denormalizer->denormalize($value_2, \Docker\API\Model\ContainerSummaryItem::class, 'json', $context); } $values_1[] = $values_2; } @@ -76,7 +76,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Volumes', $data) && $data['Volumes'] !== null) { $values_3 = []; foreach ($data['Volumes'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\Volume', 'json', $context); + $values_3[] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\Volume::class, 'json', $context); } $object->setVolumes($values_3); unset($data['Volumes']); @@ -131,7 +131,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SystemDfGetJsonResponse200' => false]; + return [\Docker\API\Model\SystemDfGetJsonResponse200::class => false]; } } } else { @@ -143,11 +143,11 @@ class SystemDfGetJsonResponse200Normalizer implements DenormalizerInterface, Nor use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SystemDfGetJsonResponse200'; + return $type === \Docker\API\Model\SystemDfGetJsonResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SystemDfGetJsonResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\SystemDfGetJsonResponse200::class; } /** * @return mixed @@ -174,7 +174,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Images', $data) && $data['Images'] !== null) { $values = []; foreach ($data['Images'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\ImageSummary', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\ImageSummary::class, 'json', $context); } $object->setImages($values); unset($data['Images']); @@ -187,7 +187,7 @@ public function denormalize($data, $type, $format = null, array $context = []) foreach ($data['Containers'] as $value_1) { $values_2 = []; foreach ($value_1 as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, 'Docker\\API\\Model\\ContainerSummaryItem', 'json', $context); + $values_2[] = $this->denormalizer->denormalize($value_2, \Docker\API\Model\ContainerSummaryItem::class, 'json', $context); } $values_1[] = $values_2; } @@ -200,7 +200,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Volumes', $data) && $data['Volumes'] !== null) { $values_3 = []; foreach ($data['Volumes'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\Volume', 'json', $context); + $values_3[] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\Volume::class, 'json', $context); } $object->setVolumes($values_3); unset($data['Volumes']); @@ -258,7 +258,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SystemDfGetJsonResponse200' => false]; + return [\Docker\API\Model\SystemDfGetJsonResponse200::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SystemDfGetTextplainResponse200Normalizer.php b/src/Normalizer/SystemDfGetTextplainResponse200Normalizer.php index e8374a40..8266f75b 100644 --- a/src/Normalizer/SystemDfGetTextplainResponse200Normalizer.php +++ b/src/Normalizer/SystemDfGetTextplainResponse200Normalizer.php @@ -22,11 +22,11 @@ class SystemDfGetTextplainResponse200Normalizer implements DenormalizerInterface use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SystemDfGetTextplainResponse200'; + return $type === \Docker\API\Model\SystemDfGetTextplainResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SystemDfGetTextplainResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\SystemDfGetTextplainResponse200::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -50,7 +50,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Images', $data) && $data['Images'] !== null) { $values = []; foreach ($data['Images'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\ImageSummary', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\ImageSummary::class, 'json', $context); } $object->setImages($values); unset($data['Images']); @@ -63,7 +63,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar foreach ($data['Containers'] as $value_1) { $values_2 = []; foreach ($value_1 as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, 'Docker\\API\\Model\\ContainerSummaryItem', 'json', $context); + $values_2[] = $this->denormalizer->denormalize($value_2, \Docker\API\Model\ContainerSummaryItem::class, 'json', $context); } $values_1[] = $values_2; } @@ -76,7 +76,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Volumes', $data) && $data['Volumes'] !== null) { $values_3 = []; foreach ($data['Volumes'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\Volume', 'json', $context); + $values_3[] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\Volume::class, 'json', $context); } $object->setVolumes($values_3); unset($data['Volumes']); @@ -131,7 +131,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SystemDfGetTextplainResponse200' => false]; + return [\Docker\API\Model\SystemDfGetTextplainResponse200::class => false]; } } } else { @@ -143,11 +143,11 @@ class SystemDfGetTextplainResponse200Normalizer implements DenormalizerInterface use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SystemDfGetTextplainResponse200'; + return $type === \Docker\API\Model\SystemDfGetTextplainResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SystemDfGetTextplainResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\SystemDfGetTextplainResponse200::class; } /** * @return mixed @@ -174,7 +174,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Images', $data) && $data['Images'] !== null) { $values = []; foreach ($data['Images'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\ImageSummary', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\ImageSummary::class, 'json', $context); } $object->setImages($values); unset($data['Images']); @@ -187,7 +187,7 @@ public function denormalize($data, $type, $format = null, array $context = []) foreach ($data['Containers'] as $value_1) { $values_2 = []; foreach ($value_1 as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, 'Docker\\API\\Model\\ContainerSummaryItem', 'json', $context); + $values_2[] = $this->denormalizer->denormalize($value_2, \Docker\API\Model\ContainerSummaryItem::class, 'json', $context); } $values_1[] = $values_2; } @@ -200,7 +200,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Volumes', $data) && $data['Volumes'] !== null) { $values_3 = []; foreach ($data['Volumes'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, 'Docker\\API\\Model\\Volume', 'json', $context); + $values_3[] = $this->denormalizer->denormalize($value_3, \Docker\API\Model\Volume::class, 'json', $context); } $object->setVolumes($values_3); unset($data['Volumes']); @@ -258,7 +258,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SystemDfGetTextplainResponse200' => false]; + return [\Docker\API\Model\SystemDfGetTextplainResponse200::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/SystemInfoNormalizer.php b/src/Normalizer/SystemInfoNormalizer.php index 21d2372d..0ac8c3e6 100644 --- a/src/Normalizer/SystemInfoNormalizer.php +++ b/src/Normalizer/SystemInfoNormalizer.php @@ -22,11 +22,11 @@ class SystemInfoNormalizer implements DenormalizerInterface, NormalizerInterface use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SystemInfo'; + return $type === \Docker\API\Model\SystemInfo::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SystemInfo'; + return is_object($data) && get_class($data) === \Docker\API\Model\SystemInfo::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -127,7 +127,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setSystemStatus(null); } if (\array_key_exists('Plugins', $data) && $data['Plugins'] !== null) { - $object->setPlugins($this->denormalizer->denormalize($data['Plugins'], 'Docker\\API\\Model\\PluginsInfo', 'json', $context)); + $object->setPlugins($this->denormalizer->denormalize($data['Plugins'], \Docker\API\Model\PluginsInfo::class, 'json', $context)); unset($data['Plugins']); } elseif (\array_key_exists('Plugins', $data) && $data['Plugins'] === null) { @@ -309,7 +309,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setIndexServerAddress(null); } if (\array_key_exists('RegistryConfig', $data) && $data['RegistryConfig'] !== null) { - $object->setRegistryConfig($this->denormalizer->denormalize($data['RegistryConfig'], 'Docker\\API\\Model\\RegistryServiceConfig', 'json', $context)); + $object->setRegistryConfig($this->denormalizer->denormalize($data['RegistryConfig'], \Docker\API\Model\RegistryServiceConfig::class, 'json', $context)); unset($data['RegistryConfig']); } elseif (\array_key_exists('RegistryConfig', $data) && $data['RegistryConfig'] === null) { @@ -318,7 +318,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('GenericResources', $data) && $data['GenericResources'] !== null) { $values_4 = []; foreach ($data['GenericResources'] as $value_4) { - $values_4[] = $this->denormalizer->denormalize($value_4, 'Docker\\API\\Model\\GenericResourcesItem', 'json', $context); + $values_4[] = $this->denormalizer->denormalize($value_4, \Docker\API\Model\GenericResourcesItem::class, 'json', $context); } $object->setGenericResources($values_4); unset($data['GenericResources']); @@ -396,7 +396,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Runtimes', $data) && $data['Runtimes'] !== null) { $values_6 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['Runtimes'] as $key => $value_6) { - $values_6[$key] = $this->denormalizer->denormalize($value_6, 'Docker\\API\\Model\\Runtime', 'json', $context); + $values_6[$key] = $this->denormalizer->denormalize($value_6, \Docker\API\Model\Runtime::class, 'json', $context); } $object->setRuntimes($values_6); unset($data['Runtimes']); @@ -412,7 +412,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setDefaultRuntime(null); } if (\array_key_exists('Swarm', $data) && $data['Swarm'] !== null) { - $object->setSwarm($this->denormalizer->denormalize($data['Swarm'], 'Docker\\API\\Model\\SwarmInfo', 'json', $context)); + $object->setSwarm($this->denormalizer->denormalize($data['Swarm'], \Docker\API\Model\SwarmInfo::class, 'json', $context)); unset($data['Swarm']); } elseif (\array_key_exists('Swarm', $data) && $data['Swarm'] === null) { @@ -440,21 +440,21 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setInitBinary(null); } if (\array_key_exists('ContainerdCommit', $data) && $data['ContainerdCommit'] !== null) { - $object->setContainerdCommit($this->denormalizer->denormalize($data['ContainerdCommit'], 'Docker\\API\\Model\\Commit', 'json', $context)); + $object->setContainerdCommit($this->denormalizer->denormalize($data['ContainerdCommit'], \Docker\API\Model\Commit::class, 'json', $context)); unset($data['ContainerdCommit']); } elseif (\array_key_exists('ContainerdCommit', $data) && $data['ContainerdCommit'] === null) { $object->setContainerdCommit(null); } if (\array_key_exists('RuncCommit', $data) && $data['RuncCommit'] !== null) { - $object->setRuncCommit($this->denormalizer->denormalize($data['RuncCommit'], 'Docker\\API\\Model\\Commit', 'json', $context)); + $object->setRuncCommit($this->denormalizer->denormalize($data['RuncCommit'], \Docker\API\Model\Commit::class, 'json', $context)); unset($data['RuncCommit']); } elseif (\array_key_exists('RuncCommit', $data) && $data['RuncCommit'] === null) { $object->setRuncCommit(null); } if (\array_key_exists('InitCommit', $data) && $data['InitCommit'] !== null) { - $object->setInitCommit($this->denormalizer->denormalize($data['InitCommit'], 'Docker\\API\\Model\\Commit', 'json', $context)); + $object->setInitCommit($this->denormalizer->denormalize($data['InitCommit'], \Docker\API\Model\Commit::class, 'json', $context)); unset($data['InitCommit']); } elseif (\array_key_exists('InitCommit', $data) && $data['InitCommit'] === null) { @@ -693,7 +693,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SystemInfo' => false]; + return [\Docker\API\Model\SystemInfo::class => false]; } } } else { @@ -705,11 +705,11 @@ class SystemInfoNormalizer implements DenormalizerInterface, NormalizerInterface use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\SystemInfo'; + return $type === \Docker\API\Model\SystemInfo::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\SystemInfo'; + return is_object($data) && get_class($data) === \Docker\API\Model\SystemInfo::class; } /** * @return mixed @@ -813,7 +813,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setSystemStatus(null); } if (\array_key_exists('Plugins', $data) && $data['Plugins'] !== null) { - $object->setPlugins($this->denormalizer->denormalize($data['Plugins'], 'Docker\\API\\Model\\PluginsInfo', 'json', $context)); + $object->setPlugins($this->denormalizer->denormalize($data['Plugins'], \Docker\API\Model\PluginsInfo::class, 'json', $context)); unset($data['Plugins']); } elseif (\array_key_exists('Plugins', $data) && $data['Plugins'] === null) { @@ -995,7 +995,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setIndexServerAddress(null); } if (\array_key_exists('RegistryConfig', $data) && $data['RegistryConfig'] !== null) { - $object->setRegistryConfig($this->denormalizer->denormalize($data['RegistryConfig'], 'Docker\\API\\Model\\RegistryServiceConfig', 'json', $context)); + $object->setRegistryConfig($this->denormalizer->denormalize($data['RegistryConfig'], \Docker\API\Model\RegistryServiceConfig::class, 'json', $context)); unset($data['RegistryConfig']); } elseif (\array_key_exists('RegistryConfig', $data) && $data['RegistryConfig'] === null) { @@ -1004,7 +1004,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('GenericResources', $data) && $data['GenericResources'] !== null) { $values_4 = []; foreach ($data['GenericResources'] as $value_4) { - $values_4[] = $this->denormalizer->denormalize($value_4, 'Docker\\API\\Model\\GenericResourcesItem', 'json', $context); + $values_4[] = $this->denormalizer->denormalize($value_4, \Docker\API\Model\GenericResourcesItem::class, 'json', $context); } $object->setGenericResources($values_4); unset($data['GenericResources']); @@ -1082,7 +1082,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Runtimes', $data) && $data['Runtimes'] !== null) { $values_6 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['Runtimes'] as $key => $value_6) { - $values_6[$key] = $this->denormalizer->denormalize($value_6, 'Docker\\API\\Model\\Runtime', 'json', $context); + $values_6[$key] = $this->denormalizer->denormalize($value_6, \Docker\API\Model\Runtime::class, 'json', $context); } $object->setRuntimes($values_6); unset($data['Runtimes']); @@ -1098,7 +1098,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setDefaultRuntime(null); } if (\array_key_exists('Swarm', $data) && $data['Swarm'] !== null) { - $object->setSwarm($this->denormalizer->denormalize($data['Swarm'], 'Docker\\API\\Model\\SwarmInfo', 'json', $context)); + $object->setSwarm($this->denormalizer->denormalize($data['Swarm'], \Docker\API\Model\SwarmInfo::class, 'json', $context)); unset($data['Swarm']); } elseif (\array_key_exists('Swarm', $data) && $data['Swarm'] === null) { @@ -1126,21 +1126,21 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setInitBinary(null); } if (\array_key_exists('ContainerdCommit', $data) && $data['ContainerdCommit'] !== null) { - $object->setContainerdCommit($this->denormalizer->denormalize($data['ContainerdCommit'], 'Docker\\API\\Model\\Commit', 'json', $context)); + $object->setContainerdCommit($this->denormalizer->denormalize($data['ContainerdCommit'], \Docker\API\Model\Commit::class, 'json', $context)); unset($data['ContainerdCommit']); } elseif (\array_key_exists('ContainerdCommit', $data) && $data['ContainerdCommit'] === null) { $object->setContainerdCommit(null); } if (\array_key_exists('RuncCommit', $data) && $data['RuncCommit'] !== null) { - $object->setRuncCommit($this->denormalizer->denormalize($data['RuncCommit'], 'Docker\\API\\Model\\Commit', 'json', $context)); + $object->setRuncCommit($this->denormalizer->denormalize($data['RuncCommit'], \Docker\API\Model\Commit::class, 'json', $context)); unset($data['RuncCommit']); } elseif (\array_key_exists('RuncCommit', $data) && $data['RuncCommit'] === null) { $object->setRuncCommit(null); } if (\array_key_exists('InitCommit', $data) && $data['InitCommit'] !== null) { - $object->setInitCommit($this->denormalizer->denormalize($data['InitCommit'], 'Docker\\API\\Model\\Commit', 'json', $context)); + $object->setInitCommit($this->denormalizer->denormalize($data['InitCommit'], \Docker\API\Model\Commit::class, 'json', $context)); unset($data['InitCommit']); } elseif (\array_key_exists('InitCommit', $data) && $data['InitCommit'] === null) { @@ -1382,7 +1382,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\SystemInfo' => false]; + return [\Docker\API\Model\SystemInfo::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TLSInfoNormalizer.php b/src/Normalizer/TLSInfoNormalizer.php index 9fc1c7ec..4187b567 100644 --- a/src/Normalizer/TLSInfoNormalizer.php +++ b/src/Normalizer/TLSInfoNormalizer.php @@ -22,11 +22,11 @@ class TLSInfoNormalizer implements DenormalizerInterface, NormalizerInterface, D use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TLSInfo'; + return $type === \Docker\API\Model\TLSInfo::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TLSInfo'; + return is_object($data) && get_class($data) === \Docker\API\Model\TLSInfo::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -89,7 +89,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TLSInfo' => false]; + return [\Docker\API\Model\TLSInfo::class => false]; } } } else { @@ -101,11 +101,11 @@ class TLSInfoNormalizer implements DenormalizerInterface, NormalizerInterface, D use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TLSInfo'; + return $type === \Docker\API\Model\TLSInfo::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TLSInfo'; + return is_object($data) && get_class($data) === \Docker\API\Model\TLSInfo::class; } /** * @return mixed @@ -174,7 +174,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TLSInfo' => false]; + return [\Docker\API\Model\TLSInfo::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskNormalizer.php b/src/Normalizer/TaskNormalizer.php index 23863b38..a1db4e87 100644 --- a/src/Normalizer/TaskNormalizer.php +++ b/src/Normalizer/TaskNormalizer.php @@ -22,11 +22,11 @@ class TaskNormalizer implements DenormalizerInterface, NormalizerInterface, Deno use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Task'; + return $type === \Docker\API\Model\Task::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Task'; + return is_object($data) && get_class($data) === \Docker\API\Model\Task::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -48,7 +48,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setID(null); } if (\array_key_exists('Version', $data) && $data['Version'] !== null) { - $object->setVersion($this->denormalizer->denormalize($data['Version'], 'Docker\\API\\Model\\ObjectVersion', 'json', $context)); + $object->setVersion($this->denormalizer->denormalize($data['Version'], \Docker\API\Model\ObjectVersion::class, 'json', $context)); unset($data['Version']); } elseif (\array_key_exists('Version', $data) && $data['Version'] === null) { @@ -87,7 +87,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setLabels(null); } if (\array_key_exists('Spec', $data) && $data['Spec'] !== null) { - $object->setSpec($this->denormalizer->denormalize($data['Spec'], 'Docker\\API\\Model\\TaskSpec', 'json', $context)); + $object->setSpec($this->denormalizer->denormalize($data['Spec'], \Docker\API\Model\TaskSpec::class, 'json', $context)); unset($data['Spec']); } elseif (\array_key_exists('Spec', $data) && $data['Spec'] === null) { @@ -117,7 +117,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('AssignedGenericResources', $data) && $data['AssignedGenericResources'] !== null) { $values_1 = []; foreach ($data['AssignedGenericResources'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\GenericResourcesItem', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\GenericResourcesItem::class, 'json', $context); } $object->setAssignedGenericResources($values_1); unset($data['AssignedGenericResources']); @@ -126,7 +126,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setAssignedGenericResources(null); } if (\array_key_exists('Status', $data) && $data['Status'] !== null) { - $object->setStatus($this->denormalizer->denormalize($data['Status'], 'Docker\\API\\Model\\TaskStatus', 'json', $context)); + $object->setStatus($this->denormalizer->denormalize($data['Status'], \Docker\API\Model\TaskStatus::class, 'json', $context)); unset($data['Status']); } elseif (\array_key_exists('Status', $data) && $data['Status'] === null) { @@ -205,7 +205,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Task' => false]; + return [\Docker\API\Model\Task::class => false]; } } } else { @@ -217,11 +217,11 @@ class TaskNormalizer implements DenormalizerInterface, NormalizerInterface, Deno use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Task'; + return $type === \Docker\API\Model\Task::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Task'; + return is_object($data) && get_class($data) === \Docker\API\Model\Task::class; } /** * @return mixed @@ -246,7 +246,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setID(null); } if (\array_key_exists('Version', $data) && $data['Version'] !== null) { - $object->setVersion($this->denormalizer->denormalize($data['Version'], 'Docker\\API\\Model\\ObjectVersion', 'json', $context)); + $object->setVersion($this->denormalizer->denormalize($data['Version'], \Docker\API\Model\ObjectVersion::class, 'json', $context)); unset($data['Version']); } elseif (\array_key_exists('Version', $data) && $data['Version'] === null) { @@ -285,7 +285,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setLabels(null); } if (\array_key_exists('Spec', $data) && $data['Spec'] !== null) { - $object->setSpec($this->denormalizer->denormalize($data['Spec'], 'Docker\\API\\Model\\TaskSpec', 'json', $context)); + $object->setSpec($this->denormalizer->denormalize($data['Spec'], \Docker\API\Model\TaskSpec::class, 'json', $context)); unset($data['Spec']); } elseif (\array_key_exists('Spec', $data) && $data['Spec'] === null) { @@ -315,7 +315,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('AssignedGenericResources', $data) && $data['AssignedGenericResources'] !== null) { $values_1 = []; foreach ($data['AssignedGenericResources'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\GenericResourcesItem', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\GenericResourcesItem::class, 'json', $context); } $object->setAssignedGenericResources($values_1); unset($data['AssignedGenericResources']); @@ -324,7 +324,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setAssignedGenericResources(null); } if (\array_key_exists('Status', $data) && $data['Status'] !== null) { - $object->setStatus($this->denormalizer->denormalize($data['Status'], 'Docker\\API\\Model\\TaskStatus', 'json', $context)); + $object->setStatus($this->denormalizer->denormalize($data['Status'], \Docker\API\Model\TaskStatus::class, 'json', $context)); unset($data['Status']); } elseif (\array_key_exists('Status', $data) && $data['Status'] === null) { @@ -406,7 +406,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Task' => false]; + return [\Docker\API\Model\Task::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskSpecContainerSpecConfigsItemFileNormalizer.php b/src/Normalizer/TaskSpecContainerSpecConfigsItemFileNormalizer.php index a668201e..1c8fe7a2 100644 --- a/src/Normalizer/TaskSpecContainerSpecConfigsItemFileNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecConfigsItemFileNormalizer.php @@ -22,11 +22,11 @@ class TaskSpecContainerSpecConfigsItemFileNormalizer implements DenormalizerInte use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItemFile'; + return $type === \Docker\API\Model\TaskSpecContainerSpecConfigsItemFile::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItemFile'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecContainerSpecConfigsItemFile::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -99,7 +99,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecContainerSpecConfigsItemFile' => false]; + return [\Docker\API\Model\TaskSpecContainerSpecConfigsItemFile::class => false]; } } } else { @@ -111,11 +111,11 @@ class TaskSpecContainerSpecConfigsItemFileNormalizer implements DenormalizerInte use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItemFile'; + return $type === \Docker\API\Model\TaskSpecContainerSpecConfigsItemFile::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItemFile'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecContainerSpecConfigsItemFile::class; } /** * @return mixed @@ -194,7 +194,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecContainerSpecConfigsItemFile' => false]; + return [\Docker\API\Model\TaskSpecContainerSpecConfigsItemFile::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskSpecContainerSpecConfigsItemNormalizer.php b/src/Normalizer/TaskSpecContainerSpecConfigsItemNormalizer.php index 1579affa..882b4fd8 100644 --- a/src/Normalizer/TaskSpecContainerSpecConfigsItemNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecConfigsItemNormalizer.php @@ -22,11 +22,11 @@ class TaskSpecContainerSpecConfigsItemNormalizer implements DenormalizerInterfac use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItem'; + return $type === \Docker\API\Model\TaskSpecContainerSpecConfigsItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecContainerSpecConfigsItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -41,7 +41,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar return $object; } if (\array_key_exists('File', $data) && $data['File'] !== null) { - $object->setFile($this->denormalizer->denormalize($data['File'], 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItemFile', 'json', $context)); + $object->setFile($this->denormalizer->denormalize($data['File'], \Docker\API\Model\TaskSpecContainerSpecConfigsItemFile::class, 'json', $context)); unset($data['File']); } elseif (\array_key_exists('File', $data) && $data['File'] === null) { @@ -89,7 +89,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecContainerSpecConfigsItem' => false]; + return [\Docker\API\Model\TaskSpecContainerSpecConfigsItem::class => false]; } } } else { @@ -101,11 +101,11 @@ class TaskSpecContainerSpecConfigsItemNormalizer implements DenormalizerInterfac use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItem'; + return $type === \Docker\API\Model\TaskSpecContainerSpecConfigsItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecContainerSpecConfigsItem::class; } /** * @return mixed @@ -123,7 +123,7 @@ public function denormalize($data, $type, $format = null, array $context = []) return $object; } if (\array_key_exists('File', $data) && $data['File'] !== null) { - $object->setFile($this->denormalizer->denormalize($data['File'], 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItemFile', 'json', $context)); + $object->setFile($this->denormalizer->denormalize($data['File'], \Docker\API\Model\TaskSpecContainerSpecConfigsItemFile::class, 'json', $context)); unset($data['File']); } elseif (\array_key_exists('File', $data) && $data['File'] === null) { @@ -174,7 +174,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecContainerSpecConfigsItem' => false]; + return [\Docker\API\Model\TaskSpecContainerSpecConfigsItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskSpecContainerSpecDNSConfigNormalizer.php b/src/Normalizer/TaskSpecContainerSpecDNSConfigNormalizer.php index eb2eea63..10438ecc 100644 --- a/src/Normalizer/TaskSpecContainerSpecDNSConfigNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecDNSConfigNormalizer.php @@ -22,11 +22,11 @@ class TaskSpecContainerSpecDNSConfigNormalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecContainerSpecDNSConfig'; + return $type === \Docker\API\Model\TaskSpecContainerSpecDNSConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecContainerSpecDNSConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecContainerSpecDNSConfig::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -113,7 +113,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecContainerSpecDNSConfig' => false]; + return [\Docker\API\Model\TaskSpecContainerSpecDNSConfig::class => false]; } } } else { @@ -125,11 +125,11 @@ class TaskSpecContainerSpecDNSConfigNormalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecContainerSpecDNSConfig'; + return $type === \Docker\API\Model\TaskSpecContainerSpecDNSConfig::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecContainerSpecDNSConfig'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecContainerSpecDNSConfig::class; } /** * @return mixed @@ -222,7 +222,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecContainerSpecDNSConfig' => false]; + return [\Docker\API\Model\TaskSpecContainerSpecDNSConfig::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskSpecContainerSpecNormalizer.php b/src/Normalizer/TaskSpecContainerSpecNormalizer.php index c8211824..38531547 100644 --- a/src/Normalizer/TaskSpecContainerSpecNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecNormalizer.php @@ -22,11 +22,11 @@ class TaskSpecContainerSpecNormalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecContainerSpec'; + return $type === \Docker\API\Model\TaskSpecContainerSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecContainerSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecContainerSpec::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -124,7 +124,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setGroups(null); } if (\array_key_exists('Privileges', $data) && $data['Privileges'] !== null) { - $object->setPrivileges($this->denormalizer->denormalize($data['Privileges'], 'Docker\\API\\Model\\TaskSpecContainerSpecPrivileges', 'json', $context)); + $object->setPrivileges($this->denormalizer->denormalize($data['Privileges'], \Docker\API\Model\TaskSpecContainerSpecPrivileges::class, 'json', $context)); unset($data['Privileges']); } elseif (\array_key_exists('Privileges', $data) && $data['Privileges'] === null) { @@ -154,7 +154,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Mounts', $data) && $data['Mounts'] !== null) { $values_5 = []; foreach ($data['Mounts'] as $value_5) { - $values_5[] = $this->denormalizer->denormalize($value_5, 'Docker\\API\\Model\\Mount', 'json', $context); + $values_5[] = $this->denormalizer->denormalize($value_5, \Docker\API\Model\Mount::class, 'json', $context); } $object->setMounts($values_5); unset($data['Mounts']); @@ -177,7 +177,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setStopGracePeriod(null); } if (\array_key_exists('HealthCheck', $data) && $data['HealthCheck'] !== null) { - $object->setHealthCheck($this->denormalizer->denormalize($data['HealthCheck'], 'Docker\\API\\Model\\HealthConfig', 'json', $context)); + $object->setHealthCheck($this->denormalizer->denormalize($data['HealthCheck'], \Docker\API\Model\HealthConfig::class, 'json', $context)); unset($data['HealthCheck']); } elseif (\array_key_exists('HealthCheck', $data) && $data['HealthCheck'] === null) { @@ -195,7 +195,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setHosts(null); } if (\array_key_exists('DNSConfig', $data) && $data['DNSConfig'] !== null) { - $object->setDNSConfig($this->denormalizer->denormalize($data['DNSConfig'], 'Docker\\API\\Model\\TaskSpecContainerSpecDNSConfig', 'json', $context)); + $object->setDNSConfig($this->denormalizer->denormalize($data['DNSConfig'], \Docker\API\Model\TaskSpecContainerSpecDNSConfig::class, 'json', $context)); unset($data['DNSConfig']); } elseif (\array_key_exists('DNSConfig', $data) && $data['DNSConfig'] === null) { @@ -204,7 +204,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Secrets', $data) && $data['Secrets'] !== null) { $values_7 = []; foreach ($data['Secrets'] as $value_7) { - $values_7[] = $this->denormalizer->denormalize($value_7, 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItem', 'json', $context); + $values_7[] = $this->denormalizer->denormalize($value_7, \Docker\API\Model\TaskSpecContainerSpecSecretsItem::class, 'json', $context); } $object->setSecrets($values_7); unset($data['Secrets']); @@ -215,7 +215,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Configs', $data) && $data['Configs'] !== null) { $values_8 = []; foreach ($data['Configs'] as $value_8) { - $values_8[] = $this->denormalizer->denormalize($value_8, 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItem', 'json', $context); + $values_8[] = $this->denormalizer->denormalize($value_8, \Docker\API\Model\TaskSpecContainerSpecConfigsItem::class, 'json', $context); } $object->setConfigs($values_8); unset($data['Configs']); @@ -351,7 +351,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecContainerSpec' => false]; + return [\Docker\API\Model\TaskSpecContainerSpec::class => false]; } } } else { @@ -363,11 +363,11 @@ class TaskSpecContainerSpecNormalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecContainerSpec'; + return $type === \Docker\API\Model\TaskSpecContainerSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecContainerSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecContainerSpec::class; } /** * @return mixed @@ -468,7 +468,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setGroups(null); } if (\array_key_exists('Privileges', $data) && $data['Privileges'] !== null) { - $object->setPrivileges($this->denormalizer->denormalize($data['Privileges'], 'Docker\\API\\Model\\TaskSpecContainerSpecPrivileges', 'json', $context)); + $object->setPrivileges($this->denormalizer->denormalize($data['Privileges'], \Docker\API\Model\TaskSpecContainerSpecPrivileges::class, 'json', $context)); unset($data['Privileges']); } elseif (\array_key_exists('Privileges', $data) && $data['Privileges'] === null) { @@ -498,7 +498,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Mounts', $data) && $data['Mounts'] !== null) { $values_5 = []; foreach ($data['Mounts'] as $value_5) { - $values_5[] = $this->denormalizer->denormalize($value_5, 'Docker\\API\\Model\\Mount', 'json', $context); + $values_5[] = $this->denormalizer->denormalize($value_5, \Docker\API\Model\Mount::class, 'json', $context); } $object->setMounts($values_5); unset($data['Mounts']); @@ -521,7 +521,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setStopGracePeriod(null); } if (\array_key_exists('HealthCheck', $data) && $data['HealthCheck'] !== null) { - $object->setHealthCheck($this->denormalizer->denormalize($data['HealthCheck'], 'Docker\\API\\Model\\HealthConfig', 'json', $context)); + $object->setHealthCheck($this->denormalizer->denormalize($data['HealthCheck'], \Docker\API\Model\HealthConfig::class, 'json', $context)); unset($data['HealthCheck']); } elseif (\array_key_exists('HealthCheck', $data) && $data['HealthCheck'] === null) { @@ -539,7 +539,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setHosts(null); } if (\array_key_exists('DNSConfig', $data) && $data['DNSConfig'] !== null) { - $object->setDNSConfig($this->denormalizer->denormalize($data['DNSConfig'], 'Docker\\API\\Model\\TaskSpecContainerSpecDNSConfig', 'json', $context)); + $object->setDNSConfig($this->denormalizer->denormalize($data['DNSConfig'], \Docker\API\Model\TaskSpecContainerSpecDNSConfig::class, 'json', $context)); unset($data['DNSConfig']); } elseif (\array_key_exists('DNSConfig', $data) && $data['DNSConfig'] === null) { @@ -548,7 +548,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Secrets', $data) && $data['Secrets'] !== null) { $values_7 = []; foreach ($data['Secrets'] as $value_7) { - $values_7[] = $this->denormalizer->denormalize($value_7, 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItem', 'json', $context); + $values_7[] = $this->denormalizer->denormalize($value_7, \Docker\API\Model\TaskSpecContainerSpecSecretsItem::class, 'json', $context); } $object->setSecrets($values_7); unset($data['Secrets']); @@ -559,7 +559,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Configs', $data) && $data['Configs'] !== null) { $values_8 = []; foreach ($data['Configs'] as $value_8) { - $values_8[] = $this->denormalizer->denormalize($value_8, 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItem', 'json', $context); + $values_8[] = $this->denormalizer->denormalize($value_8, \Docker\API\Model\TaskSpecContainerSpecConfigsItem::class, 'json', $context); } $object->setConfigs($values_8); unset($data['Configs']); @@ -698,7 +698,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecContainerSpec' => false]; + return [\Docker\API\Model\TaskSpecContainerSpec::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskSpecContainerSpecPrivilegesCredentialSpecNormalizer.php b/src/Normalizer/TaskSpecContainerSpecPrivilegesCredentialSpecNormalizer.php index ca1870f9..a0409f24 100644 --- a/src/Normalizer/TaskSpecContainerSpecPrivilegesCredentialSpecNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecPrivilegesCredentialSpecNormalizer.php @@ -22,11 +22,11 @@ class TaskSpecContainerSpecPrivilegesCredentialSpecNormalizer implements Denorma use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesCredentialSpec'; + return $type === \Docker\API\Model\TaskSpecContainerSpecPrivilegesCredentialSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesCredentialSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecContainerSpecPrivilegesCredentialSpec::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesCredentialSpec' => false]; + return [\Docker\API\Model\TaskSpecContainerSpecPrivilegesCredentialSpec::class => false]; } } } else { @@ -91,11 +91,11 @@ class TaskSpecContainerSpecPrivilegesCredentialSpecNormalizer implements Denorma use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesCredentialSpec'; + return $type === \Docker\API\Model\TaskSpecContainerSpecPrivilegesCredentialSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesCredentialSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecContainerSpecPrivilegesCredentialSpec::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesCredentialSpec' => false]; + return [\Docker\API\Model\TaskSpecContainerSpecPrivilegesCredentialSpec::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskSpecContainerSpecPrivilegesNormalizer.php b/src/Normalizer/TaskSpecContainerSpecPrivilegesNormalizer.php index 1be10744..7846b7e8 100644 --- a/src/Normalizer/TaskSpecContainerSpecPrivilegesNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecPrivilegesNormalizer.php @@ -22,11 +22,11 @@ class TaskSpecContainerSpecPrivilegesNormalizer implements DenormalizerInterface use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecContainerSpecPrivileges'; + return $type === \Docker\API\Model\TaskSpecContainerSpecPrivileges::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecContainerSpecPrivileges'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecContainerSpecPrivileges::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -41,14 +41,14 @@ public function denormalize(mixed $data, string $type, string $format = null, ar return $object; } if (\array_key_exists('CredentialSpec', $data) && $data['CredentialSpec'] !== null) { - $object->setCredentialSpec($this->denormalizer->denormalize($data['CredentialSpec'], 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesCredentialSpec', 'json', $context)); + $object->setCredentialSpec($this->denormalizer->denormalize($data['CredentialSpec'], \Docker\API\Model\TaskSpecContainerSpecPrivilegesCredentialSpec::class, 'json', $context)); unset($data['CredentialSpec']); } elseif (\array_key_exists('CredentialSpec', $data) && $data['CredentialSpec'] === null) { $object->setCredentialSpec(null); } if (\array_key_exists('SELinuxContext', $data) && $data['SELinuxContext'] !== null) { - $object->setSELinuxContext($this->denormalizer->denormalize($data['SELinuxContext'], 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesSELinuxContext', 'json', $context)); + $object->setSELinuxContext($this->denormalizer->denormalize($data['SELinuxContext'], \Docker\API\Model\TaskSpecContainerSpecPrivilegesSELinuxContext::class, 'json', $context)); unset($data['SELinuxContext']); } elseif (\array_key_exists('SELinuxContext', $data) && $data['SELinuxContext'] === null) { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecContainerSpecPrivileges' => false]; + return [\Docker\API\Model\TaskSpecContainerSpecPrivileges::class => false]; } } } else { @@ -91,11 +91,11 @@ class TaskSpecContainerSpecPrivilegesNormalizer implements DenormalizerInterface use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecContainerSpecPrivileges'; + return $type === \Docker\API\Model\TaskSpecContainerSpecPrivileges::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecContainerSpecPrivileges'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecContainerSpecPrivileges::class; } /** * @return mixed @@ -113,14 +113,14 @@ public function denormalize($data, $type, $format = null, array $context = []) return $object; } if (\array_key_exists('CredentialSpec', $data) && $data['CredentialSpec'] !== null) { - $object->setCredentialSpec($this->denormalizer->denormalize($data['CredentialSpec'], 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesCredentialSpec', 'json', $context)); + $object->setCredentialSpec($this->denormalizer->denormalize($data['CredentialSpec'], \Docker\API\Model\TaskSpecContainerSpecPrivilegesCredentialSpec::class, 'json', $context)); unset($data['CredentialSpec']); } elseif (\array_key_exists('CredentialSpec', $data) && $data['CredentialSpec'] === null) { $object->setCredentialSpec(null); } if (\array_key_exists('SELinuxContext', $data) && $data['SELinuxContext'] !== null) { - $object->setSELinuxContext($this->denormalizer->denormalize($data['SELinuxContext'], 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesSELinuxContext', 'json', $context)); + $object->setSELinuxContext($this->denormalizer->denormalize($data['SELinuxContext'], \Docker\API\Model\TaskSpecContainerSpecPrivilegesSELinuxContext::class, 'json', $context)); unset($data['SELinuxContext']); } elseif (\array_key_exists('SELinuxContext', $data) && $data['SELinuxContext'] === null) { @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecContainerSpecPrivileges' => false]; + return [\Docker\API\Model\TaskSpecContainerSpecPrivileges::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskSpecContainerSpecPrivilegesSELinuxContextNormalizer.php b/src/Normalizer/TaskSpecContainerSpecPrivilegesSELinuxContextNormalizer.php index 5bdfd682..2549bcf1 100644 --- a/src/Normalizer/TaskSpecContainerSpecPrivilegesSELinuxContextNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecPrivilegesSELinuxContextNormalizer.php @@ -22,11 +22,11 @@ class TaskSpecContainerSpecPrivilegesSELinuxContextNormalizer implements Denorma use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesSELinuxContext'; + return $type === \Docker\API\Model\TaskSpecContainerSpecPrivilegesSELinuxContext::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesSELinuxContext'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecContainerSpecPrivilegesSELinuxContext::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -109,7 +109,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesSELinuxContext' => false]; + return [\Docker\API\Model\TaskSpecContainerSpecPrivilegesSELinuxContext::class => false]; } } } else { @@ -121,11 +121,11 @@ class TaskSpecContainerSpecPrivilegesSELinuxContextNormalizer implements Denorma use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesSELinuxContext'; + return $type === \Docker\API\Model\TaskSpecContainerSpecPrivilegesSELinuxContext::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesSELinuxContext'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecContainerSpecPrivilegesSELinuxContext::class; } /** * @return mixed @@ -214,7 +214,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesSELinuxContext' => false]; + return [\Docker\API\Model\TaskSpecContainerSpecPrivilegesSELinuxContext::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskSpecContainerSpecSecretsItemFileNormalizer.php b/src/Normalizer/TaskSpecContainerSpecSecretsItemFileNormalizer.php index 7a416b06..6504edf8 100644 --- a/src/Normalizer/TaskSpecContainerSpecSecretsItemFileNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecSecretsItemFileNormalizer.php @@ -22,11 +22,11 @@ class TaskSpecContainerSpecSecretsItemFileNormalizer implements DenormalizerInte use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItemFile'; + return $type === \Docker\API\Model\TaskSpecContainerSpecSecretsItemFile::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItemFile'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecContainerSpecSecretsItemFile::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -99,7 +99,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecContainerSpecSecretsItemFile' => false]; + return [\Docker\API\Model\TaskSpecContainerSpecSecretsItemFile::class => false]; } } } else { @@ -111,11 +111,11 @@ class TaskSpecContainerSpecSecretsItemFileNormalizer implements DenormalizerInte use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItemFile'; + return $type === \Docker\API\Model\TaskSpecContainerSpecSecretsItemFile::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItemFile'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecContainerSpecSecretsItemFile::class; } /** * @return mixed @@ -194,7 +194,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecContainerSpecSecretsItemFile' => false]; + return [\Docker\API\Model\TaskSpecContainerSpecSecretsItemFile::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskSpecContainerSpecSecretsItemNormalizer.php b/src/Normalizer/TaskSpecContainerSpecSecretsItemNormalizer.php index 04d0e23d..c55ed444 100644 --- a/src/Normalizer/TaskSpecContainerSpecSecretsItemNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecSecretsItemNormalizer.php @@ -22,11 +22,11 @@ class TaskSpecContainerSpecSecretsItemNormalizer implements DenormalizerInterfac use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItem'; + return $type === \Docker\API\Model\TaskSpecContainerSpecSecretsItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecContainerSpecSecretsItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -41,7 +41,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar return $object; } if (\array_key_exists('File', $data) && $data['File'] !== null) { - $object->setFile($this->denormalizer->denormalize($data['File'], 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItemFile', 'json', $context)); + $object->setFile($this->denormalizer->denormalize($data['File'], \Docker\API\Model\TaskSpecContainerSpecSecretsItemFile::class, 'json', $context)); unset($data['File']); } elseif (\array_key_exists('File', $data) && $data['File'] === null) { @@ -89,7 +89,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecContainerSpecSecretsItem' => false]; + return [\Docker\API\Model\TaskSpecContainerSpecSecretsItem::class => false]; } } } else { @@ -101,11 +101,11 @@ class TaskSpecContainerSpecSecretsItemNormalizer implements DenormalizerInterfac use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItem'; + return $type === \Docker\API\Model\TaskSpecContainerSpecSecretsItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecContainerSpecSecretsItem::class; } /** * @return mixed @@ -123,7 +123,7 @@ public function denormalize($data, $type, $format = null, array $context = []) return $object; } if (\array_key_exists('File', $data) && $data['File'] !== null) { - $object->setFile($this->denormalizer->denormalize($data['File'], 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItemFile', 'json', $context)); + $object->setFile($this->denormalizer->denormalize($data['File'], \Docker\API\Model\TaskSpecContainerSpecSecretsItemFile::class, 'json', $context)); unset($data['File']); } elseif (\array_key_exists('File', $data) && $data['File'] === null) { @@ -174,7 +174,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecContainerSpecSecretsItem' => false]; + return [\Docker\API\Model\TaskSpecContainerSpecSecretsItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskSpecLogDriverNormalizer.php b/src/Normalizer/TaskSpecLogDriverNormalizer.php index cda39d9c..f3a2a19e 100644 --- a/src/Normalizer/TaskSpecLogDriverNormalizer.php +++ b/src/Normalizer/TaskSpecLogDriverNormalizer.php @@ -22,11 +22,11 @@ class TaskSpecLogDriverNormalizer implements DenormalizerInterface, NormalizerIn use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecLogDriver'; + return $type === \Docker\API\Model\TaskSpecLogDriver::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecLogDriver'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecLogDriver::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -87,7 +87,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecLogDriver' => false]; + return [\Docker\API\Model\TaskSpecLogDriver::class => false]; } } } else { @@ -99,11 +99,11 @@ class TaskSpecLogDriverNormalizer implements DenormalizerInterface, NormalizerIn use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecLogDriver'; + return $type === \Docker\API\Model\TaskSpecLogDriver::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecLogDriver'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecLogDriver::class; } /** * @return mixed @@ -170,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecLogDriver' => false]; + return [\Docker\API\Model\TaskSpecLogDriver::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskSpecNetworksItemNormalizer.php b/src/Normalizer/TaskSpecNetworksItemNormalizer.php index 7a0ed1ee..1c18f3d4 100644 --- a/src/Normalizer/TaskSpecNetworksItemNormalizer.php +++ b/src/Normalizer/TaskSpecNetworksItemNormalizer.php @@ -22,11 +22,11 @@ class TaskSpecNetworksItemNormalizer implements DenormalizerInterface, Normalize use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecNetworksItem'; + return $type === \Docker\API\Model\TaskSpecNetworksItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecNetworksItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecNetworksItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -87,7 +87,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecNetworksItem' => false]; + return [\Docker\API\Model\TaskSpecNetworksItem::class => false]; } } } else { @@ -99,11 +99,11 @@ class TaskSpecNetworksItemNormalizer implements DenormalizerInterface, Normalize use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecNetworksItem'; + return $type === \Docker\API\Model\TaskSpecNetworksItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecNetworksItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecNetworksItem::class; } /** * @return mixed @@ -170,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecNetworksItem' => false]; + return [\Docker\API\Model\TaskSpecNetworksItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskSpecNormalizer.php b/src/Normalizer/TaskSpecNormalizer.php index 6d2eea0c..0a6e139a 100644 --- a/src/Normalizer/TaskSpecNormalizer.php +++ b/src/Normalizer/TaskSpecNormalizer.php @@ -22,11 +22,11 @@ class TaskSpecNormalizer implements DenormalizerInterface, NormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpec'; + return $type === \Docker\API\Model\TaskSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpec::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -41,35 +41,35 @@ public function denormalize(mixed $data, string $type, string $format = null, ar return $object; } if (\array_key_exists('PluginSpec', $data) && $data['PluginSpec'] !== null) { - $object->setPluginSpec($this->denormalizer->denormalize($data['PluginSpec'], 'Docker\\API\\Model\\TaskSpecPluginSpec', 'json', $context)); + $object->setPluginSpec($this->denormalizer->denormalize($data['PluginSpec'], \Docker\API\Model\TaskSpecPluginSpec::class, 'json', $context)); unset($data['PluginSpec']); } elseif (\array_key_exists('PluginSpec', $data) && $data['PluginSpec'] === null) { $object->setPluginSpec(null); } if (\array_key_exists('ContainerSpec', $data) && $data['ContainerSpec'] !== null) { - $object->setContainerSpec($this->denormalizer->denormalize($data['ContainerSpec'], 'Docker\\API\\Model\\TaskSpecContainerSpec', 'json', $context)); + $object->setContainerSpec($this->denormalizer->denormalize($data['ContainerSpec'], \Docker\API\Model\TaskSpecContainerSpec::class, 'json', $context)); unset($data['ContainerSpec']); } elseif (\array_key_exists('ContainerSpec', $data) && $data['ContainerSpec'] === null) { $object->setContainerSpec(null); } if (\array_key_exists('Resources', $data) && $data['Resources'] !== null) { - $object->setResources($this->denormalizer->denormalize($data['Resources'], 'Docker\\API\\Model\\TaskSpecResources', 'json', $context)); + $object->setResources($this->denormalizer->denormalize($data['Resources'], \Docker\API\Model\TaskSpecResources::class, 'json', $context)); unset($data['Resources']); } elseif (\array_key_exists('Resources', $data) && $data['Resources'] === null) { $object->setResources(null); } if (\array_key_exists('RestartPolicy', $data) && $data['RestartPolicy'] !== null) { - $object->setRestartPolicy($this->denormalizer->denormalize($data['RestartPolicy'], 'Docker\\API\\Model\\TaskSpecRestartPolicy', 'json', $context)); + $object->setRestartPolicy($this->denormalizer->denormalize($data['RestartPolicy'], \Docker\API\Model\TaskSpecRestartPolicy::class, 'json', $context)); unset($data['RestartPolicy']); } elseif (\array_key_exists('RestartPolicy', $data) && $data['RestartPolicy'] === null) { $object->setRestartPolicy(null); } if (\array_key_exists('Placement', $data) && $data['Placement'] !== null) { - $object->setPlacement($this->denormalizer->denormalize($data['Placement'], 'Docker\\API\\Model\\TaskSpecPlacement', 'json', $context)); + $object->setPlacement($this->denormalizer->denormalize($data['Placement'], \Docker\API\Model\TaskSpecPlacement::class, 'json', $context)); unset($data['Placement']); } elseif (\array_key_exists('Placement', $data) && $data['Placement'] === null) { @@ -92,7 +92,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Networks', $data) && $data['Networks'] !== null) { $values = []; foreach ($data['Networks'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\TaskSpecNetworksItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\TaskSpecNetworksItem::class, 'json', $context); } $object->setNetworks($values); unset($data['Networks']); @@ -101,7 +101,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setNetworks(null); } if (\array_key_exists('LogDriver', $data) && $data['LogDriver'] !== null) { - $object->setLogDriver($this->denormalizer->denormalize($data['LogDriver'], 'Docker\\API\\Model\\TaskSpecLogDriver', 'json', $context)); + $object->setLogDriver($this->denormalizer->denormalize($data['LogDriver'], \Docker\API\Model\TaskSpecLogDriver::class, 'json', $context)); unset($data['LogDriver']); } elseif (\array_key_exists('LogDriver', $data) && $data['LogDriver'] === null) { @@ -157,7 +157,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpec' => false]; + return [\Docker\API\Model\TaskSpec::class => false]; } } } else { @@ -169,11 +169,11 @@ class TaskSpecNormalizer implements DenormalizerInterface, NormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpec'; + return $type === \Docker\API\Model\TaskSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpec::class; } /** * @return mixed @@ -191,35 +191,35 @@ public function denormalize($data, $type, $format = null, array $context = []) return $object; } if (\array_key_exists('PluginSpec', $data) && $data['PluginSpec'] !== null) { - $object->setPluginSpec($this->denormalizer->denormalize($data['PluginSpec'], 'Docker\\API\\Model\\TaskSpecPluginSpec', 'json', $context)); + $object->setPluginSpec($this->denormalizer->denormalize($data['PluginSpec'], \Docker\API\Model\TaskSpecPluginSpec::class, 'json', $context)); unset($data['PluginSpec']); } elseif (\array_key_exists('PluginSpec', $data) && $data['PluginSpec'] === null) { $object->setPluginSpec(null); } if (\array_key_exists('ContainerSpec', $data) && $data['ContainerSpec'] !== null) { - $object->setContainerSpec($this->denormalizer->denormalize($data['ContainerSpec'], 'Docker\\API\\Model\\TaskSpecContainerSpec', 'json', $context)); + $object->setContainerSpec($this->denormalizer->denormalize($data['ContainerSpec'], \Docker\API\Model\TaskSpecContainerSpec::class, 'json', $context)); unset($data['ContainerSpec']); } elseif (\array_key_exists('ContainerSpec', $data) && $data['ContainerSpec'] === null) { $object->setContainerSpec(null); } if (\array_key_exists('Resources', $data) && $data['Resources'] !== null) { - $object->setResources($this->denormalizer->denormalize($data['Resources'], 'Docker\\API\\Model\\TaskSpecResources', 'json', $context)); + $object->setResources($this->denormalizer->denormalize($data['Resources'], \Docker\API\Model\TaskSpecResources::class, 'json', $context)); unset($data['Resources']); } elseif (\array_key_exists('Resources', $data) && $data['Resources'] === null) { $object->setResources(null); } if (\array_key_exists('RestartPolicy', $data) && $data['RestartPolicy'] !== null) { - $object->setRestartPolicy($this->denormalizer->denormalize($data['RestartPolicy'], 'Docker\\API\\Model\\TaskSpecRestartPolicy', 'json', $context)); + $object->setRestartPolicy($this->denormalizer->denormalize($data['RestartPolicy'], \Docker\API\Model\TaskSpecRestartPolicy::class, 'json', $context)); unset($data['RestartPolicy']); } elseif (\array_key_exists('RestartPolicy', $data) && $data['RestartPolicy'] === null) { $object->setRestartPolicy(null); } if (\array_key_exists('Placement', $data) && $data['Placement'] !== null) { - $object->setPlacement($this->denormalizer->denormalize($data['Placement'], 'Docker\\API\\Model\\TaskSpecPlacement', 'json', $context)); + $object->setPlacement($this->denormalizer->denormalize($data['Placement'], \Docker\API\Model\TaskSpecPlacement::class, 'json', $context)); unset($data['Placement']); } elseif (\array_key_exists('Placement', $data) && $data['Placement'] === null) { @@ -242,7 +242,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Networks', $data) && $data['Networks'] !== null) { $values = []; foreach ($data['Networks'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\TaskSpecNetworksItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\TaskSpecNetworksItem::class, 'json', $context); } $object->setNetworks($values); unset($data['Networks']); @@ -251,7 +251,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setNetworks(null); } if (\array_key_exists('LogDriver', $data) && $data['LogDriver'] !== null) { - $object->setLogDriver($this->denormalizer->denormalize($data['LogDriver'], 'Docker\\API\\Model\\TaskSpecLogDriver', 'json', $context)); + $object->setLogDriver($this->denormalizer->denormalize($data['LogDriver'], \Docker\API\Model\TaskSpecLogDriver::class, 'json', $context)); unset($data['LogDriver']); } elseif (\array_key_exists('LogDriver', $data) && $data['LogDriver'] === null) { @@ -310,7 +310,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpec' => false]; + return [\Docker\API\Model\TaskSpec::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskSpecPlacementNormalizer.php b/src/Normalizer/TaskSpecPlacementNormalizer.php index 22ba4ee7..3e6c18ba 100644 --- a/src/Normalizer/TaskSpecPlacementNormalizer.php +++ b/src/Normalizer/TaskSpecPlacementNormalizer.php @@ -22,11 +22,11 @@ class TaskSpecPlacementNormalizer implements DenormalizerInterface, NormalizerIn use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecPlacement'; + return $type === \Docker\API\Model\TaskSpecPlacement::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecPlacement'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecPlacement::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -54,7 +54,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Preferences', $data) && $data['Preferences'] !== null) { $values_1 = []; foreach ($data['Preferences'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItem', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\TaskSpecPlacementPreferencesItem::class, 'json', $context); } $object->setPreferences($values_1); unset($data['Preferences']); @@ -65,7 +65,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Platforms', $data) && $data['Platforms'] !== null) { $values_2 = []; foreach ($data['Platforms'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, 'Docker\\API\\Model\\Platform', 'json', $context); + $values_2[] = $this->denormalizer->denormalize($value_2, \Docker\API\Model\Platform::class, 'json', $context); } $object->setPlatforms($values_2); unset($data['Platforms']); @@ -113,7 +113,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecPlacement' => false]; + return [\Docker\API\Model\TaskSpecPlacement::class => false]; } } } else { @@ -125,11 +125,11 @@ class TaskSpecPlacementNormalizer implements DenormalizerInterface, NormalizerIn use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecPlacement'; + return $type === \Docker\API\Model\TaskSpecPlacement::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecPlacement'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecPlacement::class; } /** * @return mixed @@ -160,7 +160,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Preferences', $data) && $data['Preferences'] !== null) { $values_1 = []; foreach ($data['Preferences'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItem', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\TaskSpecPlacementPreferencesItem::class, 'json', $context); } $object->setPreferences($values_1); unset($data['Preferences']); @@ -171,7 +171,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Platforms', $data) && $data['Platforms'] !== null) { $values_2 = []; foreach ($data['Platforms'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, 'Docker\\API\\Model\\Platform', 'json', $context); + $values_2[] = $this->denormalizer->denormalize($value_2, \Docker\API\Model\Platform::class, 'json', $context); } $object->setPlatforms($values_2); unset($data['Platforms']); @@ -222,7 +222,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecPlacement' => false]; + return [\Docker\API\Model\TaskSpecPlacement::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskSpecPlacementPreferencesItemNormalizer.php b/src/Normalizer/TaskSpecPlacementPreferencesItemNormalizer.php index f2d94fc0..6439f92d 100644 --- a/src/Normalizer/TaskSpecPlacementPreferencesItemNormalizer.php +++ b/src/Normalizer/TaskSpecPlacementPreferencesItemNormalizer.php @@ -22,11 +22,11 @@ class TaskSpecPlacementPreferencesItemNormalizer implements DenormalizerInterfac use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItem'; + return $type === \Docker\API\Model\TaskSpecPlacementPreferencesItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecPlacementPreferencesItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -41,7 +41,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar return $object; } if (\array_key_exists('Spread', $data) && $data['Spread'] !== null) { - $object->setSpread($this->denormalizer->denormalize($data['Spread'], 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItemSpread', 'json', $context)); + $object->setSpread($this->denormalizer->denormalize($data['Spread'], \Docker\API\Model\TaskSpecPlacementPreferencesItemSpread::class, 'json', $context)); unset($data['Spread']); } elseif (\array_key_exists('Spread', $data) && $data['Spread'] === null) { @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecPlacementPreferencesItem' => false]; + return [\Docker\API\Model\TaskSpecPlacementPreferencesItem::class => false]; } } } else { @@ -81,11 +81,11 @@ class TaskSpecPlacementPreferencesItemNormalizer implements DenormalizerInterfac use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItem'; + return $type === \Docker\API\Model\TaskSpecPlacementPreferencesItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecPlacementPreferencesItem::class; } /** * @return mixed @@ -103,7 +103,7 @@ public function denormalize($data, $type, $format = null, array $context = []) return $object; } if (\array_key_exists('Spread', $data) && $data['Spread'] !== null) { - $object->setSpread($this->denormalizer->denormalize($data['Spread'], 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItemSpread', 'json', $context)); + $object->setSpread($this->denormalizer->denormalize($data['Spread'], \Docker\API\Model\TaskSpecPlacementPreferencesItemSpread::class, 'json', $context)); unset($data['Spread']); } elseif (\array_key_exists('Spread', $data) && $data['Spread'] === null) { @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecPlacementPreferencesItem' => false]; + return [\Docker\API\Model\TaskSpecPlacementPreferencesItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskSpecPlacementPreferencesItemSpreadNormalizer.php b/src/Normalizer/TaskSpecPlacementPreferencesItemSpreadNormalizer.php index a3aa7ad3..06a925a3 100644 --- a/src/Normalizer/TaskSpecPlacementPreferencesItemSpreadNormalizer.php +++ b/src/Normalizer/TaskSpecPlacementPreferencesItemSpreadNormalizer.php @@ -22,11 +22,11 @@ class TaskSpecPlacementPreferencesItemSpreadNormalizer implements DenormalizerIn use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItemSpread'; + return $type === \Docker\API\Model\TaskSpecPlacementPreferencesItemSpread::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItemSpread'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecPlacementPreferencesItemSpread::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecPlacementPreferencesItemSpread' => false]; + return [\Docker\API\Model\TaskSpecPlacementPreferencesItemSpread::class => false]; } } } else { @@ -81,11 +81,11 @@ class TaskSpecPlacementPreferencesItemSpreadNormalizer implements DenormalizerIn use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItemSpread'; + return $type === \Docker\API\Model\TaskSpecPlacementPreferencesItemSpread::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItemSpread'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecPlacementPreferencesItemSpread::class; } /** * @return mixed @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecPlacementPreferencesItemSpread' => false]; + return [\Docker\API\Model\TaskSpecPlacementPreferencesItemSpread::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskSpecPluginSpecNormalizer.php b/src/Normalizer/TaskSpecPluginSpecNormalizer.php index 12b6491f..5857b948 100644 --- a/src/Normalizer/TaskSpecPluginSpecNormalizer.php +++ b/src/Normalizer/TaskSpecPluginSpecNormalizer.php @@ -22,11 +22,11 @@ class TaskSpecPluginSpecNormalizer implements DenormalizerInterface, NormalizerI use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecPluginSpec'; + return $type === \Docker\API\Model\TaskSpecPluginSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecPluginSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecPluginSpec::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -64,7 +64,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('PluginPrivilege', $data) && $data['PluginPrivilege'] !== null) { $values = []; foreach ($data['PluginPrivilege'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\TaskSpecPluginSpecPluginPrivilegeItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\TaskSpecPluginSpecPluginPrivilegeItem::class, 'json', $context); } $object->setPluginPrivilege($values); unset($data['PluginPrivilege']); @@ -107,7 +107,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecPluginSpec' => false]; + return [\Docker\API\Model\TaskSpecPluginSpec::class => false]; } } } else { @@ -119,11 +119,11 @@ class TaskSpecPluginSpecNormalizer implements DenormalizerInterface, NormalizerI use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecPluginSpec'; + return $type === \Docker\API\Model\TaskSpecPluginSpec::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecPluginSpec'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecPluginSpec::class; } /** * @return mixed @@ -164,7 +164,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('PluginPrivilege', $data) && $data['PluginPrivilege'] !== null) { $values = []; foreach ($data['PluginPrivilege'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\TaskSpecPluginSpecPluginPrivilegeItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\TaskSpecPluginSpecPluginPrivilegeItem::class, 'json', $context); } $object->setPluginPrivilege($values); unset($data['PluginPrivilege']); @@ -210,7 +210,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecPluginSpec' => false]; + return [\Docker\API\Model\TaskSpecPluginSpec::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskSpecPluginSpecPluginPrivilegeItemNormalizer.php b/src/Normalizer/TaskSpecPluginSpecPluginPrivilegeItemNormalizer.php index f1a7cb3c..8adfe5ca 100644 --- a/src/Normalizer/TaskSpecPluginSpecPluginPrivilegeItemNormalizer.php +++ b/src/Normalizer/TaskSpecPluginSpecPluginPrivilegeItemNormalizer.php @@ -22,11 +22,11 @@ class TaskSpecPluginSpecPluginPrivilegeItemNormalizer implements DenormalizerInt use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecPluginSpecPluginPrivilegeItem'; + return $type === \Docker\API\Model\TaskSpecPluginSpecPluginPrivilegeItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecPluginSpecPluginPrivilegeItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecPluginSpecPluginPrivilegeItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -97,7 +97,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecPluginSpecPluginPrivilegeItem' => false]; + return [\Docker\API\Model\TaskSpecPluginSpecPluginPrivilegeItem::class => false]; } } } else { @@ -109,11 +109,11 @@ class TaskSpecPluginSpecPluginPrivilegeItemNormalizer implements DenormalizerInt use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecPluginSpecPluginPrivilegeItem'; + return $type === \Docker\API\Model\TaskSpecPluginSpecPluginPrivilegeItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecPluginSpecPluginPrivilegeItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecPluginSpecPluginPrivilegeItem::class; } /** * @return mixed @@ -190,7 +190,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecPluginSpecPluginPrivilegeItem' => false]; + return [\Docker\API\Model\TaskSpecPluginSpecPluginPrivilegeItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskSpecResourcesNormalizer.php b/src/Normalizer/TaskSpecResourcesNormalizer.php index 09d72636..384192a8 100644 --- a/src/Normalizer/TaskSpecResourcesNormalizer.php +++ b/src/Normalizer/TaskSpecResourcesNormalizer.php @@ -22,11 +22,11 @@ class TaskSpecResourcesNormalizer implements DenormalizerInterface, NormalizerIn use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecResources'; + return $type === \Docker\API\Model\TaskSpecResources::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecResources'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecResources::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -41,14 +41,14 @@ public function denormalize(mixed $data, string $type, string $format = null, ar return $object; } if (\array_key_exists('Limits', $data) && $data['Limits'] !== null) { - $object->setLimits($this->denormalizer->denormalize($data['Limits'], 'Docker\\API\\Model\\ResourceObject', 'json', $context)); + $object->setLimits($this->denormalizer->denormalize($data['Limits'], \Docker\API\Model\ResourceObject::class, 'json', $context)); unset($data['Limits']); } elseif (\array_key_exists('Limits', $data) && $data['Limits'] === null) { $object->setLimits(null); } if (\array_key_exists('Reservation', $data) && $data['Reservation'] !== null) { - $object->setReservation($this->denormalizer->denormalize($data['Reservation'], 'Docker\\API\\Model\\ResourceObject', 'json', $context)); + $object->setReservation($this->denormalizer->denormalize($data['Reservation'], \Docker\API\Model\ResourceObject::class, 'json', $context)); unset($data['Reservation']); } elseif (\array_key_exists('Reservation', $data) && $data['Reservation'] === null) { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecResources' => false]; + return [\Docker\API\Model\TaskSpecResources::class => false]; } } } else { @@ -91,11 +91,11 @@ class TaskSpecResourcesNormalizer implements DenormalizerInterface, NormalizerIn use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecResources'; + return $type === \Docker\API\Model\TaskSpecResources::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecResources'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecResources::class; } /** * @return mixed @@ -113,14 +113,14 @@ public function denormalize($data, $type, $format = null, array $context = []) return $object; } if (\array_key_exists('Limits', $data) && $data['Limits'] !== null) { - $object->setLimits($this->denormalizer->denormalize($data['Limits'], 'Docker\\API\\Model\\ResourceObject', 'json', $context)); + $object->setLimits($this->denormalizer->denormalize($data['Limits'], \Docker\API\Model\ResourceObject::class, 'json', $context)); unset($data['Limits']); } elseif (\array_key_exists('Limits', $data) && $data['Limits'] === null) { $object->setLimits(null); } if (\array_key_exists('Reservation', $data) && $data['Reservation'] !== null) { - $object->setReservation($this->denormalizer->denormalize($data['Reservation'], 'Docker\\API\\Model\\ResourceObject', 'json', $context)); + $object->setReservation($this->denormalizer->denormalize($data['Reservation'], \Docker\API\Model\ResourceObject::class, 'json', $context)); unset($data['Reservation']); } elseif (\array_key_exists('Reservation', $data) && $data['Reservation'] === null) { @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecResources' => false]; + return [\Docker\API\Model\TaskSpecResources::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskSpecRestartPolicyNormalizer.php b/src/Normalizer/TaskSpecRestartPolicyNormalizer.php index eadf50f6..ef2c720b 100644 --- a/src/Normalizer/TaskSpecRestartPolicyNormalizer.php +++ b/src/Normalizer/TaskSpecRestartPolicyNormalizer.php @@ -22,11 +22,11 @@ class TaskSpecRestartPolicyNormalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecRestartPolicy'; + return $type === \Docker\API\Model\TaskSpecRestartPolicy::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecRestartPolicy'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecRestartPolicy::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -99,7 +99,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecRestartPolicy' => false]; + return [\Docker\API\Model\TaskSpecRestartPolicy::class => false]; } } } else { @@ -111,11 +111,11 @@ class TaskSpecRestartPolicyNormalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskSpecRestartPolicy'; + return $type === \Docker\API\Model\TaskSpecRestartPolicy::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskSpecRestartPolicy'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskSpecRestartPolicy::class; } /** * @return mixed @@ -194,7 +194,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskSpecRestartPolicy' => false]; + return [\Docker\API\Model\TaskSpecRestartPolicy::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskStatusContainerStatusNormalizer.php b/src/Normalizer/TaskStatusContainerStatusNormalizer.php index d875f13c..cd9100a5 100644 --- a/src/Normalizer/TaskStatusContainerStatusNormalizer.php +++ b/src/Normalizer/TaskStatusContainerStatusNormalizer.php @@ -22,11 +22,11 @@ class TaskStatusContainerStatusNormalizer implements DenormalizerInterface, Norm use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskStatusContainerStatus'; + return $type === \Docker\API\Model\TaskStatusContainerStatus::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskStatusContainerStatus'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskStatusContainerStatus::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -89,7 +89,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskStatusContainerStatus' => false]; + return [\Docker\API\Model\TaskStatusContainerStatus::class => false]; } } } else { @@ -101,11 +101,11 @@ class TaskStatusContainerStatusNormalizer implements DenormalizerInterface, Norm use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskStatusContainerStatus'; + return $type === \Docker\API\Model\TaskStatusContainerStatus::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskStatusContainerStatus'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskStatusContainerStatus::class; } /** * @return mixed @@ -174,7 +174,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskStatusContainerStatus' => false]; + return [\Docker\API\Model\TaskStatusContainerStatus::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/TaskStatusNormalizer.php b/src/Normalizer/TaskStatusNormalizer.php index d579d620..ee6d1299 100644 --- a/src/Normalizer/TaskStatusNormalizer.php +++ b/src/Normalizer/TaskStatusNormalizer.php @@ -22,11 +22,11 @@ class TaskStatusNormalizer implements DenormalizerInterface, NormalizerInterface use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskStatus'; + return $type === \Docker\API\Model\TaskStatus::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskStatus'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskStatus::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -69,7 +69,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setErr(null); } if (\array_key_exists('ContainerStatus', $data) && $data['ContainerStatus'] !== null) { - $object->setContainerStatus($this->denormalizer->denormalize($data['ContainerStatus'], 'Docker\\API\\Model\\TaskStatusContainerStatus', 'json', $context)); + $object->setContainerStatus($this->denormalizer->denormalize($data['ContainerStatus'], \Docker\API\Model\TaskStatusContainerStatus::class, 'json', $context)); unset($data['ContainerStatus']); } elseif (\array_key_exists('ContainerStatus', $data) && $data['ContainerStatus'] === null) { @@ -109,7 +109,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskStatus' => false]; + return [\Docker\API\Model\TaskStatus::class => false]; } } } else { @@ -121,11 +121,11 @@ class TaskStatusNormalizer implements DenormalizerInterface, NormalizerInterface use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\TaskStatus'; + return $type === \Docker\API\Model\TaskStatus::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\TaskStatus'; + return is_object($data) && get_class($data) === \Docker\API\Model\TaskStatus::class; } /** * @return mixed @@ -171,7 +171,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setErr(null); } if (\array_key_exists('ContainerStatus', $data) && $data['ContainerStatus'] !== null) { - $object->setContainerStatus($this->denormalizer->denormalize($data['ContainerStatus'], 'Docker\\API\\Model\\TaskStatusContainerStatus', 'json', $context)); + $object->setContainerStatus($this->denormalizer->denormalize($data['ContainerStatus'], \Docker\API\Model\TaskStatusContainerStatus::class, 'json', $context)); unset($data['ContainerStatus']); } elseif (\array_key_exists('ContainerStatus', $data) && $data['ContainerStatus'] === null) { @@ -214,7 +214,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\TaskStatus' => false]; + return [\Docker\API\Model\TaskStatus::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/ThrottleDeviceNormalizer.php b/src/Normalizer/ThrottleDeviceNormalizer.php index 601e6c2e..c7206c21 100644 --- a/src/Normalizer/ThrottleDeviceNormalizer.php +++ b/src/Normalizer/ThrottleDeviceNormalizer.php @@ -22,11 +22,11 @@ class ThrottleDeviceNormalizer implements DenormalizerInterface, NormalizerInter use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ThrottleDevice'; + return $type === \Docker\API\Model\ThrottleDevice::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ThrottleDevice'; + return is_object($data) && get_class($data) === \Docker\API\Model\ThrottleDevice::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ThrottleDevice' => false]; + return [\Docker\API\Model\ThrottleDevice::class => false]; } } } else { @@ -91,11 +91,11 @@ class ThrottleDeviceNormalizer implements DenormalizerInterface, NormalizerInter use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\ThrottleDevice'; + return $type === \Docker\API\Model\ThrottleDevice::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\ThrottleDevice'; + return is_object($data) && get_class($data) === \Docker\API\Model\ThrottleDevice::class; } /** * @return mixed @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\ThrottleDevice' => false]; + return [\Docker\API\Model\ThrottleDevice::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/VersionGetResponse200ComponentsItemDetailsNormalizer.php b/src/Normalizer/VersionGetResponse200ComponentsItemDetailsNormalizer.php index db5e052a..012aaae1 100644 --- a/src/Normalizer/VersionGetResponse200ComponentsItemDetailsNormalizer.php +++ b/src/Normalizer/VersionGetResponse200ComponentsItemDetailsNormalizer.php @@ -22,11 +22,11 @@ class VersionGetResponse200ComponentsItemDetailsNormalizer implements Denormaliz use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\VersionGetResponse200ComponentsItemDetails'; + return $type === \Docker\API\Model\VersionGetResponse200ComponentsItemDetails::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\VersionGetResponse200ComponentsItemDetails'; + return is_object($data) && get_class($data) === \Docker\API\Model\VersionGetResponse200ComponentsItemDetails::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -59,7 +59,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\VersionGetResponse200ComponentsItemDetails' => false]; + return [\Docker\API\Model\VersionGetResponse200ComponentsItemDetails::class => false]; } } } else { @@ -71,11 +71,11 @@ class VersionGetResponse200ComponentsItemDetailsNormalizer implements Denormaliz use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\VersionGetResponse200ComponentsItemDetails'; + return $type === \Docker\API\Model\VersionGetResponse200ComponentsItemDetails::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\VersionGetResponse200ComponentsItemDetails'; + return is_object($data) && get_class($data) === \Docker\API\Model\VersionGetResponse200ComponentsItemDetails::class; } /** * @return mixed @@ -114,7 +114,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\VersionGetResponse200ComponentsItemDetails' => false]; + return [\Docker\API\Model\VersionGetResponse200ComponentsItemDetails::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/VersionGetResponse200ComponentsItemNormalizer.php b/src/Normalizer/VersionGetResponse200ComponentsItemNormalizer.php index 5a4536fb..78e266e0 100644 --- a/src/Normalizer/VersionGetResponse200ComponentsItemNormalizer.php +++ b/src/Normalizer/VersionGetResponse200ComponentsItemNormalizer.php @@ -22,11 +22,11 @@ class VersionGetResponse200ComponentsItemNormalizer implements DenormalizerInter use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\VersionGetResponse200ComponentsItem'; + return $type === \Docker\API\Model\VersionGetResponse200ComponentsItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\VersionGetResponse200ComponentsItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\VersionGetResponse200ComponentsItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setVersion(null); } if (\array_key_exists('Details', $data) && $data['Details'] !== null) { - $object->setDetails($this->denormalizer->denormalize($data['Details'], 'Docker\\API\\Model\\VersionGetResponse200ComponentsItemDetails', 'json', $context)); + $object->setDetails($this->denormalizer->denormalize($data['Details'], \Docker\API\Model\VersionGetResponse200ComponentsItemDetails::class, 'json', $context)); unset($data['Details']); } elseif (\array_key_exists('Details', $data) && $data['Details'] === null) { @@ -85,7 +85,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\VersionGetResponse200ComponentsItem' => false]; + return [\Docker\API\Model\VersionGetResponse200ComponentsItem::class => false]; } } } else { @@ -97,11 +97,11 @@ class VersionGetResponse200ComponentsItemNormalizer implements DenormalizerInter use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\VersionGetResponse200ComponentsItem'; + return $type === \Docker\API\Model\VersionGetResponse200ComponentsItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\VersionGetResponse200ComponentsItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\VersionGetResponse200ComponentsItem::class; } /** * @return mixed @@ -133,7 +133,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setVersion(null); } if (\array_key_exists('Details', $data) && $data['Details'] !== null) { - $object->setDetails($this->denormalizer->denormalize($data['Details'], 'Docker\\API\\Model\\VersionGetResponse200ComponentsItemDetails', 'json', $context)); + $object->setDetails($this->denormalizer->denormalize($data['Details'], \Docker\API\Model\VersionGetResponse200ComponentsItemDetails::class, 'json', $context)); unset($data['Details']); } elseif (\array_key_exists('Details', $data) && $data['Details'] === null) { @@ -166,7 +166,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\VersionGetResponse200ComponentsItem' => false]; + return [\Docker\API\Model\VersionGetResponse200ComponentsItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/VersionGetResponse200Normalizer.php b/src/Normalizer/VersionGetResponse200Normalizer.php index ea253432..e4ab0e77 100644 --- a/src/Normalizer/VersionGetResponse200Normalizer.php +++ b/src/Normalizer/VersionGetResponse200Normalizer.php @@ -22,11 +22,11 @@ class VersionGetResponse200Normalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\VersionGetResponse200'; + return $type === \Docker\API\Model\VersionGetResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\VersionGetResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\VersionGetResponse200::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -41,7 +41,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar return $object; } if (\array_key_exists('Platform', $data) && $data['Platform'] !== null) { - $object->setPlatform($this->denormalizer->denormalize($data['Platform'], 'Docker\\API\\Model\\VersionGetResponse200Platform', 'json', $context)); + $object->setPlatform($this->denormalizer->denormalize($data['Platform'], \Docker\API\Model\VersionGetResponse200Platform::class, 'json', $context)); unset($data['Platform']); } elseif (\array_key_exists('Platform', $data) && $data['Platform'] === null) { @@ -50,7 +50,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Components', $data) && $data['Components'] !== null) { $values = []; foreach ($data['Components'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\VersionGetResponse200ComponentsItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\VersionGetResponse200ComponentsItem::class, 'json', $context); } $object->setComponents($values); unset($data['Components']); @@ -187,7 +187,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\VersionGetResponse200' => false]; + return [\Docker\API\Model\VersionGetResponse200::class => false]; } } } else { @@ -199,11 +199,11 @@ class VersionGetResponse200Normalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\VersionGetResponse200'; + return $type === \Docker\API\Model\VersionGetResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\VersionGetResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\VersionGetResponse200::class; } /** * @return mixed @@ -221,7 +221,7 @@ public function denormalize($data, $type, $format = null, array $context = []) return $object; } if (\array_key_exists('Platform', $data) && $data['Platform'] !== null) { - $object->setPlatform($this->denormalizer->denormalize($data['Platform'], 'Docker\\API\\Model\\VersionGetResponse200Platform', 'json', $context)); + $object->setPlatform($this->denormalizer->denormalize($data['Platform'], \Docker\API\Model\VersionGetResponse200Platform::class, 'json', $context)); unset($data['Platform']); } elseif (\array_key_exists('Platform', $data) && $data['Platform'] === null) { @@ -230,7 +230,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Components', $data) && $data['Components'] !== null) { $values = []; foreach ($data['Components'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\VersionGetResponse200ComponentsItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\VersionGetResponse200ComponentsItem::class, 'json', $context); } $object->setComponents($values); unset($data['Components']); @@ -370,7 +370,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\VersionGetResponse200' => false]; + return [\Docker\API\Model\VersionGetResponse200::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/VersionGetResponse200PlatformNormalizer.php b/src/Normalizer/VersionGetResponse200PlatformNormalizer.php index 8c5d6d86..042d493b 100644 --- a/src/Normalizer/VersionGetResponse200PlatformNormalizer.php +++ b/src/Normalizer/VersionGetResponse200PlatformNormalizer.php @@ -22,11 +22,11 @@ class VersionGetResponse200PlatformNormalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\VersionGetResponse200Platform'; + return $type === \Docker\API\Model\VersionGetResponse200Platform::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\VersionGetResponse200Platform'; + return is_object($data) && get_class($data) === \Docker\API\Model\VersionGetResponse200Platform::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -67,7 +67,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\VersionGetResponse200Platform' => false]; + return [\Docker\API\Model\VersionGetResponse200Platform::class => false]; } } } else { @@ -79,11 +79,11 @@ class VersionGetResponse200PlatformNormalizer implements DenormalizerInterface, use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\VersionGetResponse200Platform'; + return $type === \Docker\API\Model\VersionGetResponse200Platform::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\VersionGetResponse200Platform'; + return is_object($data) && get_class($data) === \Docker\API\Model\VersionGetResponse200Platform::class; } /** * @return mixed @@ -130,7 +130,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\VersionGetResponse200Platform' => false]; + return [\Docker\API\Model\VersionGetResponse200Platform::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/VolumeNormalizer.php b/src/Normalizer/VolumeNormalizer.php index 24ce2333..b0a91349 100644 --- a/src/Normalizer/VolumeNormalizer.php +++ b/src/Normalizer/VolumeNormalizer.php @@ -22,11 +22,11 @@ class VolumeNormalizer implements DenormalizerInterface, NormalizerInterface, De use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Volume'; + return $type === \Docker\API\Model\Volume::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Volume'; + return is_object($data) && get_class($data) === \Docker\API\Model\Volume::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -71,7 +71,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Status', $data) && $data['Status'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['Status'] as $key => $value) { - $values[$key] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\VolumeStatusItem', 'json', $context); + $values[$key] = $this->denormalizer->denormalize($value, \Docker\API\Model\VolumeStatusItem::class, 'json', $context); } $object->setStatus($values); unset($data['Status']); @@ -109,7 +109,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar $object->setOptions(null); } if (\array_key_exists('UsageData', $data) && $data['UsageData'] !== null) { - $object->setUsageData($this->denormalizer->denormalize($data['UsageData'], 'Docker\\API\\Model\\VolumeUsageData', 'json', $context)); + $object->setUsageData($this->denormalizer->denormalize($data['UsageData'], \Docker\API\Model\VolumeUsageData::class, 'json', $context)); unset($data['UsageData']); } elseif (\array_key_exists('UsageData', $data) && $data['UsageData'] === null) { @@ -161,7 +161,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Volume' => false]; + return [\Docker\API\Model\Volume::class => false]; } } } else { @@ -173,11 +173,11 @@ class VolumeNormalizer implements DenormalizerInterface, NormalizerInterface, De use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\Volume'; + return $type === \Docker\API\Model\Volume::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Volume'; + return is_object($data) && get_class($data) === \Docker\API\Model\Volume::class; } /** * @return mixed @@ -225,7 +225,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Status', $data) && $data['Status'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['Status'] as $key => $value) { - $values[$key] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\VolumeStatusItem', 'json', $context); + $values[$key] = $this->denormalizer->denormalize($value, \Docker\API\Model\VolumeStatusItem::class, 'json', $context); } $object->setStatus($values); unset($data['Status']); @@ -263,7 +263,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setOptions(null); } if (\array_key_exists('UsageData', $data) && $data['UsageData'] !== null) { - $object->setUsageData($this->denormalizer->denormalize($data['UsageData'], 'Docker\\API\\Model\\VolumeUsageData', 'json', $context)); + $object->setUsageData($this->denormalizer->denormalize($data['UsageData'], \Docker\API\Model\VolumeUsageData::class, 'json', $context)); unset($data['UsageData']); } elseif (\array_key_exists('UsageData', $data) && $data['UsageData'] === null) { @@ -318,7 +318,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\Volume' => false]; + return [\Docker\API\Model\Volume::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/VolumeStatusItemNormalizer.php b/src/Normalizer/VolumeStatusItemNormalizer.php index 6b44c76f..dabf9c5a 100644 --- a/src/Normalizer/VolumeStatusItemNormalizer.php +++ b/src/Normalizer/VolumeStatusItemNormalizer.php @@ -22,11 +22,11 @@ class VolumeStatusItemNormalizer implements DenormalizerInterface, NormalizerInt use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\VolumeStatusItem'; + return $type === \Docker\API\Model\VolumeStatusItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\VolumeStatusItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\VolumeStatusItem::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -59,7 +59,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\VolumeStatusItem' => false]; + return [\Docker\API\Model\VolumeStatusItem::class => false]; } } } else { @@ -71,11 +71,11 @@ class VolumeStatusItemNormalizer implements DenormalizerInterface, NormalizerInt use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\VolumeStatusItem'; + return $type === \Docker\API\Model\VolumeStatusItem::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\VolumeStatusItem'; + return is_object($data) && get_class($data) === \Docker\API\Model\VolumeStatusItem::class; } /** * @return mixed @@ -114,7 +114,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\VolumeStatusItem' => false]; + return [\Docker\API\Model\VolumeStatusItem::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/VolumeUsageDataNormalizer.php b/src/Normalizer/VolumeUsageDataNormalizer.php index 1993b8f2..ab200b03 100644 --- a/src/Normalizer/VolumeUsageDataNormalizer.php +++ b/src/Normalizer/VolumeUsageDataNormalizer.php @@ -22,11 +22,11 @@ class VolumeUsageDataNormalizer implements DenormalizerInterface, NormalizerInte use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\VolumeUsageData'; + return $type === \Docker\API\Model\VolumeUsageData::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\VolumeUsageData'; + return is_object($data) && get_class($data) === \Docker\API\Model\VolumeUsageData::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -75,7 +75,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\VolumeUsageData' => false]; + return [\Docker\API\Model\VolumeUsageData::class => false]; } } } else { @@ -87,11 +87,11 @@ class VolumeUsageDataNormalizer implements DenormalizerInterface, NormalizerInte use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\VolumeUsageData'; + return $type === \Docker\API\Model\VolumeUsageData::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\VolumeUsageData'; + return is_object($data) && get_class($data) === \Docker\API\Model\VolumeUsageData::class; } /** * @return mixed @@ -146,7 +146,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\VolumeUsageData' => false]; + return [\Docker\API\Model\VolumeUsageData::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/VolumesCreatePostBodyNormalizer.php b/src/Normalizer/VolumesCreatePostBodyNormalizer.php index 3a4128c2..a40a12d5 100644 --- a/src/Normalizer/VolumesCreatePostBodyNormalizer.php +++ b/src/Normalizer/VolumesCreatePostBodyNormalizer.php @@ -22,11 +22,11 @@ class VolumesCreatePostBodyNormalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\VolumesCreatePostBody'; + return $type === \Docker\API\Model\VolumesCreatePostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\VolumesCreatePostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\VolumesCreatePostBody::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -115,7 +115,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\VolumesCreatePostBody' => false]; + return [\Docker\API\Model\VolumesCreatePostBody::class => false]; } } } else { @@ -127,11 +127,11 @@ class VolumesCreatePostBodyNormalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\VolumesCreatePostBody'; + return $type === \Docker\API\Model\VolumesCreatePostBody::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\VolumesCreatePostBody'; + return is_object($data) && get_class($data) === \Docker\API\Model\VolumesCreatePostBody::class; } /** * @return mixed @@ -226,7 +226,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\VolumesCreatePostBody' => false]; + return [\Docker\API\Model\VolumesCreatePostBody::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/VolumesGetResponse200Normalizer.php b/src/Normalizer/VolumesGetResponse200Normalizer.php index 1a0eeed5..b94d80da 100644 --- a/src/Normalizer/VolumesGetResponse200Normalizer.php +++ b/src/Normalizer/VolumesGetResponse200Normalizer.php @@ -22,11 +22,11 @@ class VolumesGetResponse200Normalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\VolumesGetResponse200'; + return $type === \Docker\API\Model\VolumesGetResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\VolumesGetResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\VolumesGetResponse200::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -43,7 +43,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar if (\array_key_exists('Volumes', $data) && $data['Volumes'] !== null) { $values = []; foreach ($data['Volumes'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\Volume', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\Volume::class, 'json', $context); } $object->setVolumes($values); unset($data['Volumes']); @@ -91,7 +91,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\VolumesGetResponse200' => false]; + return [\Docker\API\Model\VolumesGetResponse200::class => false]; } } } else { @@ -103,11 +103,11 @@ class VolumesGetResponse200Normalizer implements DenormalizerInterface, Normaliz use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\VolumesGetResponse200'; + return $type === \Docker\API\Model\VolumesGetResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\VolumesGetResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\VolumesGetResponse200::class; } /** * @return mixed @@ -127,7 +127,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('Volumes', $data) && $data['Volumes'] !== null) { $values = []; foreach ($data['Volumes'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'Docker\\API\\Model\\Volume', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \Docker\API\Model\Volume::class, 'json', $context); } $object->setVolumes($values); unset($data['Volumes']); @@ -178,7 +178,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\VolumesGetResponse200' => false]; + return [\Docker\API\Model\VolumesGetResponse200::class => false]; } } } \ No newline at end of file diff --git a/src/Normalizer/VolumesPrunePostResponse200Normalizer.php b/src/Normalizer/VolumesPrunePostResponse200Normalizer.php index 4bc0e1ad..05de9e6b 100644 --- a/src/Normalizer/VolumesPrunePostResponse200Normalizer.php +++ b/src/Normalizer/VolumesPrunePostResponse200Normalizer.php @@ -22,11 +22,11 @@ class VolumesPrunePostResponse200Normalizer implements DenormalizerInterface, No use ValidatorTrait; public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\VolumesPrunePostResponse200'; + return $type === \Docker\API\Model\VolumesPrunePostResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\VolumesPrunePostResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\VolumesPrunePostResponse200::class; } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed { @@ -87,7 +87,7 @@ public function normalize(mixed $object, string $format = null, array $context = } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\VolumesPrunePostResponse200' => false]; + return [\Docker\API\Model\VolumesPrunePostResponse200::class => false]; } } } else { @@ -99,11 +99,11 @@ class VolumesPrunePostResponse200Normalizer implements DenormalizerInterface, No use ValidatorTrait; public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool { - return $type === 'Docker\\API\\Model\\VolumesPrunePostResponse200'; + return $type === \Docker\API\Model\VolumesPrunePostResponse200::class; } public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool { - return is_object($data) && get_class($data) === 'Docker\\API\\Model\\VolumesPrunePostResponse200'; + return is_object($data) && get_class($data) === \Docker\API\Model\VolumesPrunePostResponse200::class; } /** * @return mixed @@ -170,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) } public function getSupportedTypes(?string $format = null) : array { - return ['Docker\\API\\Model\\VolumesPrunePostResponse200' => false]; + return [\Docker\API\Model\VolumesPrunePostResponse200::class => false]; } } } \ No newline at end of file From a273e2c5e440b150da4da2c61c8f8971d49a743d Mon Sep 17 00:00:00 2001 From: nortoh Date: Thu, 29 Aug 2024 14:12:04 -0500 Subject: [PATCH 2/2] chore: lock jane-php to ^7.8.0 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index fc882aca..7918a48b 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ }, "require": { "php": ">=7.1", - "jane-php/jane-php": "^7.6" + "jane-php/jane-php": "^7.8.0" }, "require-dev": { "phpunit/phpunit": "^10.4",